1/*
2 * Copyright (c) 2023 Nuvoton Technology Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/* Common MIWU group-interrupt mapping configurations in npcx family */
8#include <nuvoton/npcx/npcx-miwus-int-map.dtsi>
9
10/* Specific MIWU group-interrupt mapping configurations in npcx4 series */
11/ {
12	/* Mapping between MIWU group and interrupts */
13	npcx-miwus-int-map {
14		map_miwu0_groups: map-miwu0-groups {
15			compatible = "nuvoton,npcx-miwu-int-map";
16			parent = <&miwu0>;
17
18			group_a0: group-a0-map {
19				irq        = <7>;
20				irq-prio   = <2>;
21				group-mask = <0x01>;
22			};
23			group_d0: group-d0-map {
24				irq        = <5>;
25				irq-prio   = <2>;
26				group-mask = <0x08>;
27			};
28			group_e0: group-e0-map {
29				irq        = <11>;
30				irq-prio   = <2>;
31				group-mask = <0x10>;
32			};
33			group_f0: group-f0-map {
34				irq        = <35>;
35				irq-prio   = <2>;
36				group-mask = <0x20>;
37			};
38			group_g0: group-g0-map {
39				irq        = <42>;
40				irq-prio   = <2>;
41				group-mask = <0x40>;
42			};
43			group_h0: group-h0-map {
44				irq        = <46>;
45				irq-prio   = <2>;
46				group-mask = <0x80>;
47			};
48		};
49
50		map_miwu2_groups: map-miwu2-groups {
51			compatible = "nuvoton,npcx-miwu-int-map";
52			parent = <&miwu2>;
53
54			group_e2: group-e2-map {
55				irq        = <64>;
56				irq-prio   = <2>;
57				group-mask = <0x10>;
58			};
59			group_f2: group-f2-map {
60				irq        = <59>;
61				irq-prio   = <2>;
62				group-mask = <0x20>;
63			};
64			group_g2: group-g2-map {
65				irq        = <55>;
66				irq-prio   = <2>;
67				group-mask = <0x40>;
68			};
69			group_h2: group-h2-map {
70				irq        = <82>;
71				irq-prio   = <2>;
72				group-mask = <0x80>;
73			};
74		};
75	};
76};
77