1/*
2 * Copyright (c) 2023 Nuvoton Technology Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/* Common Wake-Up Unit Input (WUI) mapping configurations in npcx family */
8#include <nuvoton/npcx/npcx-miwus-wui-map.dtsi>
9
10/* Specific Wake-Up Unit Input (WUI) mapping configurations in npcx4 series */
11/ {
12	/* Mapping between MIWU wui bits and source device */
13	npcx-miwus-wui-map {
14		compatible = "nuvoton,npcx-miwu-wui-map";
15
16		/* MIWU table 0 */
17		/* MIWU group H */
18		wui_ioe7: wui0-8-7 {
19			miwus = <&miwu0 7 7>; /* GPIOE7 */
20		};
21
22		/* MIWU table 1 */
23		/* MIWU group B */
24		wui_io13: wui1-2-3 {
25			miwus = <&miwu1 1 3>; /* GPIO13 */
26		};
27
28		/* MIWU group G */
29		wui_io66: wui1-7-6 {
30			miwus = <&miwu1 6 6>; /* GPIO66 */
31		};
32
33		/* MIWU table 2 */
34		/* MIWU group E */
35		wui_slp_msc: wui2-5-0 {
36			miwus = <&miwu2 4 0>; /* SLP_MSC */
37		};
38		wui_z8: wui2-5-1 {
39			miwus = <&miwu2 4 1>; /* Z8 */
40		};
41		wui_z9: wui2-5-2 {
42			miwus = <&miwu2 4 2>; /* Z9 */
43		};
44		wui_z10: wui2-5-3 {
45			miwus = <&miwu2 4 3>; /* Z10 */
46		};
47
48		/* MIWU group F */
49		wui_io12: wui2-6-0 {
50			miwus = <&miwu2 5 0>; /* GPIO12 */
51		};
52		wui_smb2: wui2-6-3 {
53			miwus = <&miwu2 5 3>; /* SMB2 */
54		};
55		wui_smb3: wui2-6-4 {
56			miwus = <&miwu2 5 4>; /* SMB3 */
57		};
58		wui_iod6: wui2-6-5 {
59			miwus = <&miwu2 5 5>; /* GPIOD6 */
60		};
61		wui_iob6: wui2-6-6 {
62			miwus = <&miwu2 5 6>; /* GPIOB6 */
63		};
64		wui_lct: wui2-6-7 {
65			miwus = <&miwu2 5 7>; /* LCT Event */
66		};
67
68		/* MIWU group G */
69		wui_cr_sin2: wui2-7-3 {
70			miwus = <&miwu2 6 3>; /* CR_SIN2 */
71		};
72		wui_cr_sin3: wui2-7-4 {
73			miwus = <&miwu2 6 4>; /* CR_SIN3 */
74		};
75		wui_cr_sin4: wui2-7-5 {
76			miwus = <&miwu2 6 5>; /* CR_SIN4 */
77		};
78		wui_i3c1_addrw: wui2-7-6 {
79			miwus = <&miwu2 6 6>; /* I3C1_ADDRW */
80		};
81		wui_i3c1_rstw: wui2-7-7 {
82			miwus = <&miwu2 6 7>; /* I3C1_RSTW */
83		};
84
85		/* MIWU group G */
86		wui_i3c2_addrw: wui2-8-0 {
87			miwus = <&miwu2 7 0>; /* I3C2_ADDRW */
88		};
89		wui_i3c2_rstw: wui2-8-1 {
90			miwus = <&miwu2 7 1>; /* I3C2_RSTW */
91		};
92		wui_i3c3_addrw: wui2-8-2 {
93			miwus = <&miwu2 7 2>; /* I3C3_ADDRW */
94		};
95		wui_i3c3_rstw: wui2-8-3 {
96			miwus = <&miwu2 7 3>; /* I3C3_RSTW */
97		};
98	};
99};
100