1 /*
2  * Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_DT_BINDINGS_INTERRUPT_CONTROLLER_RENESAS_RA_ICU_H_
8 #define ZEPHYR_DT_BINDINGS_INTERRUPT_CONTROLLER_RENESAS_RA_ICU_H_
9 
10 #define RA_ICU_IRQ_UNSPECIFIED (-1)
11 
12 #define RA_ICU_PORT_IRQ0       (1 << 8)
13 #define RA_ICU_PORT_IRQ1       (2 << 8)
14 #define RA_ICU_PORT_IRQ2       (3 << 8)
15 #define RA_ICU_PORT_IRQ3       (4 << 8)
16 #define RA_ICU_PORT_IRQ4       (5 << 8)
17 #define RA_ICU_PORT_IRQ5       (6 << 8)
18 #define RA_ICU_PORT_IRQ6       (7 << 8)
19 #define RA_ICU_PORT_IRQ7       (8 << 8)
20 #define RA_ICU_PORT_IRQ8       (9 << 8)
21 #define RA_ICU_PORT_IRQ9       (10 << 8)
22 #define RA_ICU_PORT_IRQ10      (11 << 8)
23 #define RA_ICU_PORT_IRQ11      (12 << 8)
24 #define RA_ICU_PORT_IRQ12      (13 << 8)
25 #define RA_ICU_PORT_IRQ14      (15 << 8)
26 #define RA_ICU_PORT_IRQ15      (16 << 8)
27 #define RA_ICU_DMAC0_INT       (17 << 8)
28 #define RA_ICU_DMAC1_INT       (18 << 8)
29 #define RA_ICU_DMAC2_INT       (19 << 8)
30 #define RA_ICU_DMAC3_INT       (20 << 8)
31 #define RA_ICU_DTC_COMPLETE    (21 << 8)
32 #define RA_ICU_ICU_SNZCANCEL   (23 << 8)
33 #define RA_ICU_FCU_FRDYI       (24 << 8)
34 #define RA_ICU_LVD_LVD1        (25 << 8)
35 #define RA_ICU_LVD_LVD2        (26 << 8)
36 #define RA_ICU_VBATT_LVD       (27 << 8)
37 #define RA_ICU_MOSC_STOP       (28 << 8)
38 #define RA_ICU_SYSTEM_SNZREQ   (29 << 8)
39 #define RA_ICU_AGT0_AGTI       (30 << 8)
40 #define RA_ICU_AGT0_AGTCMAI    (31 << 8)
41 #define RA_ICU_AGT0_AGTCMBI    (32 << 8)
42 #define RA_ICU_AGT1_AGTI       (33 << 8)
43 #define RA_ICU_AGT1_AGTCMAI    (34 << 8)
44 #define RA_ICU_AGT1_AGTCMBI    (35 << 8)
45 #define RA_ICU_IWDT_NMIUNDF    (36 << 8)
46 #define RA_ICU_WDT_NMIUNDF     (37 << 8)
47 #define RA_ICU_RTC_ALM         (38 << 8)
48 #define RA_ICU_RTC_PRD         (39 << 8)
49 #define RA_ICU_RTC_CUP         (40 << 8)
50 #define RA_ICU_ADC140_ADI      (41 << 8)
51 #define RA_ICU_ADC140_GBADI    (42 << 8)
52 #define RA_ICU_ADC140_CMPAI    (43 << 8)
53 #define RA_ICU_ADC140_CMPBI    (44 << 8)
54 #define RA_ICU_ADC140_WCMPM    (45 << 8)
55 #define RA_ICU_ADC140_WCMPUM   (46 << 8)
56 #define RA_ICU_ACMP_LP0        (47 << 8)
57 #define RA_ICU_ACMP_LP1        (48 << 8)
58 #define RA_ICU_USBFS_D0FIFO    (49 << 8)
59 #define RA_ICU_USBFS_D1FIFO    (50 << 8)
60 #define RA_ICU_USBFS_USBI      (51 << 8)
61 #define RA_ICU_USBFS_USBR      (52 << 8)
62 #define RA_ICU_IIC0_RXI        (53 << 8)
63 #define RA_ICU_IIC0_TXI        (54 << 8)
64 #define RA_ICU_IIC0_TEI        (55 << 8)
65 #define RA_ICU_IIC0_EEI        (56 << 8)
66 #define RA_ICU_IIC0_WUI        (57 << 8)
67 #define RA_ICU_IIC1_RXI        (58 << 8)
68 #define RA_ICU_IIC1_TXI        (59 << 8)
69 #define RA_ICU_IIC1_TEI        (60 << 8)
70 #define RA_ICU_IIC1_EEI        (61 << 8)
71 #define RA_ICU_SSIE0_SSITXI    (62 << 8)
72 #define RA_ICU_SSIE0_SSIRXI    (63 << 8)
73 
74 #define RA_ICU_SSIE0_SSIF      (65 << 8)
75 #define RA_ICU_CTSU_CTSUWR     (66 << 8)
76 #define RA_ICU_CTSU_CTSURD     (67 << 8)
77 #define RA_ICU_CTSU_CTSUFN     (68 << 8)
78 #define RA_ICU_KEY_INTKR       (69 << 8)
79 #define RA_ICU_DOC_DOPCI       (70 << 8)
80 #define RA_ICU_CAC_FERRI       (71 << 8)
81 #define RA_ICU_CAC_MENDI       (72 << 8)
82 #define RA_ICU_CAC_OVFI        (73 << 8)
83 #define RA_ICU_CAN0_ERS        (74 << 8)
84 #define RA_ICU_CAN0_RXF        (75 << 8)
85 #define RA_ICU_CAN0_TXF        (76 << 8)
86 #define RA_ICU_CAN0_RXM        (77 << 8)
87 #define RA_ICU_CAN0_TXM        (78 << 8)
88 #define RA_ICU_IOPORT_GROUP1   (70 << 8)
89 #define RA_ICU_IOPORT_GROUP2   (80 << 8)
90 #define RA_ICU_IOPORT_GROUP3   (81 << 8)
91 #define RA_ICU_IOPORT_GROUP4   (82 << 8)
92 #define RA_ICU_ELC_SWEVT0      (83 << 8)
93 #define RA_ICU_ELC_SWEVT1      (84 << 8)
94 #define RA_ICU_POEG_GROUP0     (85 << 8)
95 #define RA_ICU_POEG_GROUP1     (86 << 8)
96 #define RA_ICU_GPT0_CCMPA      (87 << 8)
97 #define RA_ICU_GPT0_CCMPB      (88 << 8)
98 #define RA_ICU_GPT0_CMPC       (89 << 8)
99 #define RA_ICU_GPT0_CMPD       (90 << 8)
100 #define RA_ICU_GPT0_CMPE       (91 << 8)
101 #define RA_ICU_GPT0_CMPF       (92 << 8)
102 #define RA_ICU_GPT0_OVF        (93 << 8)
103 #define RA_ICU_GPT0_UDF        (94 << 8)
104 #define RA_ICU_GPT1_CCMPA      (95 << 8)
105 #define RA_ICU_GPT1_CCMPB      (96 << 8)
106 #define RA_ICU_GPT1_CMPC       (97 << 8)
107 #define RA_ICU_GPT1_CMPD       (98 << 8)
108 #define RA_ICU_GPT1_CMPE       (99 << 8)
109 #define RA_ICU_GPT1_CMPF       (100 << 8)
110 #define RA_ICU_GPT1_OVF        (101 << 8)
111 #define RA_ICU_GPT1_UDF        (102 << 8)
112 #define RA_ICU_GPT2_CCMPA      (103 << 8)
113 #define RA_ICU_GPT2_CCMPB      (104 << 8)
114 #define RA_ICU_GPT2_CMPC       (105 << 8)
115 #define RA_ICU_GPT2_CMPD       (106 << 8)
116 #define RA_ICU_GPT2_CMPE       (107 << 8)
117 #define RA_ICU_GPT2_CMPF       (108 << 8)
118 #define RA_ICU_GPT2_OVF        (109 << 8)
119 #define RA_ICU_GPT2_UDF        (110 << 8)
120 #define RA_ICU_GPT3_CCMPA      (111 << 8)
121 #define RA_ICU_GPT3_CCMPB      (112 << 8)
122 #define RA_ICU_GPT3_CMPC       (113 << 8)
123 #define RA_ICU_GPT3_CMPD       (114 << 8)
124 #define RA_ICU_GPT3_CMPE       (115 << 8)
125 #define RA_ICU_GPT3_CMPF       (116 << 8)
126 #define RA_ICU_GPT3_OVF        (117 << 8)
127 #define RA_ICU_GPT3_UDF        (118 << 8)
128 #define RA_ICU_GPT4_CCMPA      (119 << 8)
129 #define RA_ICU_GPT4_CCMPB      (120 << 8)
130 #define RA_ICU_GPT4_CMPC       (121 << 8)
131 #define RA_ICU_GPT4_CMPD       (122 << 8)
132 #define RA_ICU_GPT4_CMPE       (123 << 8)
133 #define RA_ICU_GPT4_CMPF       (124 << 8)
134 #define RA_ICU_GPT4_OVF        (125 << 8)
135 #define RA_ICU_GPT4_UDF        (126 << 8)
136 #define RA_ICU_GPT5_CCMPA      (127 << 8)
137 #define RA_ICU_GPT5_CCMPB      (128 << 8)
138 #define RA_ICU_GPT5_CMPC       (129 << 8)
139 #define RA_ICU_GPT5_CMPD       (130 << 8)
140 #define RA_ICU_GPT5_CMPE       (131 << 8)
141 #define RA_ICU_GPT5_CMPF       (132 << 8)
142 #define RA_ICU_GPT5_OVF        (133 << 8)
143 #define RA_ICU_GPT5_UDF        (134 << 8)
144 #define RA_ICU_GPT6_CCMPA      (135 << 8)
145 #define RA_ICU_GPT6_CCMPB      (136 << 8)
146 #define RA_ICU_GPT6_CMPC       (137 << 8)
147 #define RA_ICU_GPT6_CMPD       (138 << 8)
148 #define RA_ICU_GPT6_CMPE       (139 << 8)
149 #define RA_ICU_GPT6_CMPF       (140 << 8)
150 #define RA_ICU_GPT6_OVF        (141 << 8)
151 #define RA_ICU_GPT6_UDF        (142 << 8)
152 #define RA_ICU_GPT7_CCMPA      (143 << 8)
153 #define RA_ICU_GPT7_CCMPB      (144 << 8)
154 #define RA_ICU_GPT7_CMPC       (145 << 8)
155 #define RA_ICU_GPT7_CMPD       (146 << 8)
156 #define RA_ICU_GPT7_CMPE       (147 << 8)
157 #define RA_ICU_GPT7_CMPF       (148 << 8)
158 #define RA_ICU_GPT7_OVF        (149 << 8)
159 #define RA_ICU_GPT7_UDF        (150 << 8)
160 #define RA_ICU_GPT_UVWEDGE     (151 << 8)
161 #define RA_ICU_SCI0_RXI        (152 << 8)
162 #define RA_ICU_SCI0_TXI        (153 << 8)
163 #define RA_ICU_SCI0_TEI        (154 << 8)
164 #define RA_ICU_SCI0_ERI        (155 << 8)
165 #define RA_ICU_SCI0_AM         (156 << 8)
166 #define RA_ICU_SCI0_RXI_OR_ERI (157 << 8)
167 #define RA_ICU_SCI1_RXI        (158 << 8)
168 #define RA_ICU_SCI1_TXI        (159 << 8)
169 #define RA_ICU_SCI1_TEI        (160 << 8)
170 #define RA_ICU_SCI1_ERI        (161 << 8)
171 #define RA_ICU_SCI1_AM         (162 << 8)
172 #define RA_ICU_SCI2_RXI        (163 << 8)
173 #define RA_ICU_SCI2_TXI        (164 << 8)
174 #define RA_ICU_SCI2_TEI        (165 << 8)
175 #define RA_ICU_SCI2_ERI        (166 << 8)
176 #define RA_ICU_SCI2_AM         (167 << 8)
177 #define RA_ICU_SCI9_RXI        (168 << 8)
178 #define RA_ICU_SCI9_TXI        (169 << 8)
179 #define RA_ICU_SCI9_TEI        (170 << 8)
180 #define RA_ICU_SCI9_ERI        (171 << 8)
181 #define RA_ICU_SCI9_AM         (172 << 8)
182 #define RA_ICU_SPI0_SPRI       (173 << 8)
183 #define RA_ICU_SPI0_SPTI       (174 << 8)
184 #define RA_ICU_SPI0_SPII       (175 << 8)
185 #define RA_ICU_SPI0_SPEI       (176 << 8)
186 #define RA_ICU_SPI0_SPTEND     (177 << 8)
187 #define RA_ICU_SPI1_SPRI       (178 << 8)
188 #define RA_ICU_SPI1_SPTI       (179 << 8)
189 #define RA_ICU_SPI1_SPII       (180 << 8)
190 #define RA_ICU_SPI1_SPEI       (181 << 8)
191 #define RA_ICU_SPI1_SPTEND     (182 << 8)
192 
193 #endif /* ZEPHYR_DT_BINDINGS_INTERRUPT_CONTROLLER_RENESAS_RA_ICU_H_ */
194