Skip to content

Commit 9736851

Browse files
le-quang168kartben
authored andcommitted
drivers: interrupt controller: Add support for RZ/T
- Add interrupt controller driver support for RZ/T - Remove a duplicate USE_RZ_FSP_EXT_IRQ in Kconfig Signed-off-by: Quang Le <[email protected]> Signed-off-by: Nhut Nguyen <[email protected]> Signed-off-by: Binh Nguyen <[email protected]>
1 parent 70f9b46 commit 9736851

File tree

3 files changed

+157
-8
lines changed

3 files changed

+157
-8
lines changed

drivers/interrupt_controller/intc_renesas_rz_ext_irq.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
#if defined(CONFIG_SOC_SERIES_RZG3S)
1616
#include <instances/rzg/r_intc_irq.h>
1717
#include <instances/rzg/r_intc_nmi.h>
18-
#elif defined(CONFIG_SOC_SERIES_RZN2L) || defined(CONFIG_SOC_SERIES_RZT2L)
18+
#elif defined(CONFIG_SOC_SERIES_RZN2L) || defined(CONFIG_SOC_SERIES_RZT2L) || \
19+
defined(CONFIG_SOC_SERIES_RZT2M)
1920
#include <instances/rzn/r_icu.h>
2021
#endif /* CONFIG_SOC_SERIES_* */
2122
#include <zephyr/drivers/interrupt_controller/intc_rz_ext_irq.h>
@@ -39,7 +40,8 @@ struct intc_rz_ext_irq_data {
3940
#if defined(CONFIG_SOC_SERIES_RZG3S)
4041
void r_intc_irq_isr(void);
4142
void r_intc_nmi_isr(void);
42-
#elif defined(CONFIG_SOC_SERIES_RZN2L) || defined(CONFIG_SOC_SERIES_RZT2L)
43+
#elif defined(CONFIG_SOC_SERIES_RZN2L) || defined(CONFIG_SOC_SERIES_RZT2L) || \
44+
defined(CONFIG_SOC_SERIES_RZT2M)
4345
void r_icu_isr(void);
4446
#endif /* CONFIG_SOC_SERIES_* */
4547

@@ -234,6 +236,7 @@ static void intc_rz_ext_irq_callback(external_irq_callback_args_t *args)
234236

235237
#if defined(CONFIG_SOC_SERIES_RZG3S)
236238
DT_INST_FOREACH_STATUS_OKAY(INTC_RZG_EXT_IRQ_INIT)
237-
#elif defined(CONFIG_SOC_SERIES_RZN2L) || defined(CONFIG_SOC_SERIES_RZT2L)
239+
#elif defined(CONFIG_SOC_SERIES_RZN2L) || defined(CONFIG_SOC_SERIES_RZT2L) || \
240+
defined(CONFIG_SOC_SERIES_RZT2M)
238241
DT_INST_FOREACH_STATUS_OKAY(INTC_RZTN_EXT_IRQ_INIT)
239242
#endif

dts/arm/renesas/rz/rzt/r9a07g075.dtsi

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,157 @@
9595
};
9696
};
9797

98+
icu: icu@81048000 {
99+
reg = <0x81048000 0x1000>;
100+
interrupt-parent = <&gic>;
101+
#address-cells = <1>;
102+
#size-cells = <0>;
103+
104+
irq0: irq0@0 {
105+
compatible = "renesas,rz-ext-irq";
106+
reg = <0x0>;
107+
interrupts = <GIC_SPI 6 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
108+
interrupt-controller;
109+
#interrupt-cells = <2>;
110+
status = "disabled";
111+
};
112+
113+
irq1: irq@1 {
114+
compatible = "renesas,rz-ext-irq";
115+
reg = <0x1>;
116+
interrupts = <GIC_SPI 7 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
117+
interrupt-controller;
118+
#interrupt-cells = <2>;
119+
status = "disabled";
120+
};
121+
122+
irq2: irq@2 {
123+
compatible = "renesas,rz-ext-irq";
124+
reg = <0x2>;
125+
interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
126+
interrupt-controller;
127+
#interrupt-cells = <2>;
128+
status = "disabled";
129+
};
130+
131+
irq3: irq@3 {
132+
compatible = "renesas,rz-ext-irq";
133+
reg = <0x3>;
134+
interrupts = <GIC_SPI 9 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
135+
interrupt-controller;
136+
#interrupt-cells = <2>;
137+
status = "disabled";
138+
};
139+
140+
irq4: irq@4 {
141+
compatible = "renesas,rz-ext-irq";
142+
reg = <0x4>;
143+
interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
144+
interrupt-controller;
145+
#interrupt-cells = <2>;
146+
status = "disabled";
147+
};
148+
149+
irq5: irq@5 {
150+
compatible = "renesas,rz-ext-irq";
151+
reg = <0x5>;
152+
interrupts = <GIC_SPI 11 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
153+
interrupt-controller;
154+
#interrupt-cells = <2>;
155+
status = "disabled";
156+
};
157+
158+
irq6: irq@6 {
159+
compatible = "renesas,rz-ext-irq";
160+
reg = <0x6>;
161+
interrupts = <GIC_SPI 12 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
162+
interrupt-controller;
163+
#interrupt-cells = <2>;
164+
status = "disabled";
165+
};
166+
167+
irq7: irq@7 {
168+
compatible = "renesas,rz-ext-irq";
169+
reg = <0x7>;
170+
interrupts = <GIC_SPI 13 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
171+
interrupt-controller;
172+
#interrupt-cells = <2>;
173+
status = "disabled";
174+
};
175+
176+
irq8: irq@8 {
177+
compatible = "renesas,rz-ext-irq";
178+
reg = <0x8>;
179+
interrupts = <GIC_SPI 14 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
180+
interrupt-controller;
181+
#interrupt-cells = <2>;
182+
status = "disabled";
183+
};
184+
185+
irq9: irq@9 {
186+
compatible = "renesas,rz-ext-irq";
187+
reg = <0x9>;
188+
interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
189+
interrupt-controller;
190+
#interrupt-cells = <2>;
191+
status = "disabled";
192+
};
193+
194+
irq10: irq@a {
195+
compatible = "renesas,rz-ext-irq";
196+
reg = <0xa>;
197+
interrupts = <GIC_SPI 16 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
198+
interrupt-controller;
199+
#interrupt-cells = <2>;
200+
status = "disabled";
201+
};
202+
203+
irq11: irq@b {
204+
compatible = "renesas,rz-ext-irq";
205+
reg = <0xb>;
206+
interrupts = <GIC_SPI 17 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
207+
interrupt-controller;
208+
#interrupt-cells = <2>;
209+
status = "disabled";
210+
};
211+
212+
irq12: irq@c {
213+
compatible = "renesas,rz-ext-irq";
214+
reg = <0xc>;
215+
interrupts = <GIC_SPI 18 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
216+
interrupt-controller;
217+
#interrupt-cells = <2>;
218+
status = "disabled";
219+
};
220+
221+
irq13: irq@d {
222+
compatible = "renesas,rz-ext-irq";
223+
reg = <0xd>;
224+
interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
225+
interrupt-controller;
226+
#interrupt-cells = <2>;
227+
status = "disabled";
228+
};
229+
230+
irq14: irq@e {
231+
compatible = "renesas,rz-ext-irq";
232+
reg = <0xe>;
233+
interrupts = <GIC_SPI 394 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
234+
interrupt-controller;
235+
#interrupt-cells = <2>;
236+
status = "disabled";
237+
};
238+
239+
irq15: irq@f {
240+
compatible = "renesas,rz-ext-irq";
241+
reg = <0xf>;
242+
interrupts = <GIC_SPI 395 IRQ_TYPE_EDGE IRQ_DEFAULT_PRIORITY>;
243+
interrupt-controller;
244+
#interrupt-cells = <2>;
245+
status = "disabled";
246+
};
247+
};
248+
98249
pinctrl: pinctrl@800a0000 {
99250
compatible = "renesas,rzt-pinctrl";
100251
reg = <0x800a0000 0x1000 0x81030c00 0x1000>;

modules/Kconfig.renesas_fsp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,4 @@ config USE_RZ_FSP_SCI_UART
228228
help
229229
Enable RZ FSP SCI UART driver
230230

231-
config USE_RZ_FSP_EXT_IRQ
232-
bool
233-
help
234-
Enable RZ FSP External IRQ driver
235-
236231
endif

0 commit comments

Comments
 (0)