1/*
2 * Copyright (c) 2021 Nuvoton Technology Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/ {
8	/* Mapping between MIWU group and interrupts */
9	npcx-miwus-int-map {
10		map_miwu0_groups: map-miwu0-groups {
11			compatible = "nuvoton,npcx-miwu-int-map";
12			parent = <&miwu0>;
13
14			group_b0: group-b0-map {
15				irq        = <31>;
16				irq-prio   = <2>;
17				group-mask = <0x02>;
18			};
19			group_c0: group-c0-map {
20				irq        = <15>;
21				irq-prio   = <2>;
22				group-mask = <0x04>;
23			};
24		};
25
26		map_miwu1_groups: map-miwu1-groups {
27			compatible = "nuvoton,npcx-miwu-int-map";
28			parent = <&miwu1>;
29
30			group_a1: group-a1-map {
31				irq        = <47>;
32				irq-prio   = <2>;
33				group-mask = <0x01>;
34			};
35			group_b1: group-b1-map {
36				irq        = <48>;
37				irq-prio   = <2>;
38				group-mask = <0x02>;
39			};
40			group_c1: group-c1-map {
41				irq        = <49>;
42				irq-prio   = <2>;
43				group-mask = <0x04>;
44			};
45			group_d1: group-d1-map {
46				irq        = <50>;
47				irq-prio   = <2>;
48				group-mask = <0x08>;
49			};
50			group_e1: group-e1-map {
51				irq        = <51>;
52				irq-prio   = <2>;
53				group-mask = <0x10>;
54			};
55			group_f1: group-f1-map {
56				irq        = <52>;
57				irq-prio   = <2>;
58				group-mask = <0x20>;
59			};
60			group_g1: group-g1-map {
61				irq        = <53>;
62				irq-prio   = <2>;
63				group-mask = <0x40>;
64			};
65			group_h1: group-h1-map {
66				irq        = <54>;
67				irq-prio   = <2>;
68				group-mask = <0x80>;
69			};
70		};
71
72		map_miwu2_groups: map-miwu2-groups {
73			compatible = "nuvoton,npcx-miwu-int-map";
74			parent = <&miwu2>;
75
76			group_a2: group-a2-map {
77				irq        = <60>;
78				irq-prio   = <2>;
79				group-mask = <0x01>;
80			};
81			group_b2: group-b2-map {
82				irq        = <61>;
83				irq-prio   = <2>;
84				group-mask = <0x02>;
85			};
86			group_c2: group-c2-map {
87				irq        = <62>;
88				irq-prio   = <2>;
89				group-mask = <0x04>;
90			};
91			group_d2: group-d2-map {
92				irq        = <63>;
93				irq-prio   = <2>;
94				group-mask = <0x08>;
95			};
96		};
97	};
98};
99