dts: arm: gigadevice: gd32f403: add support for exti
Add DT node for EXTI (External Interrupt Controller). Only line
interrupts added for now (used for GPIO interrupts).
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
diff --git a/dts/arm/gigadevice/gd32f403/gd32f403.dtsi b/dts/arm/gigadevice/gd32f403/gd32f403.dtsi
index aae5cf3..98dce7e 100644
--- a/dts/arm/gigadevice/gd32f403/gd32f403.dtsi
+++ b/dts/arm/gigadevice/gd32f403/gd32f403.dtsi
@@ -91,6 +91,21 @@
label = "USART_4";
};
+ exti: interrupt-controller@40010400 {
+ compatible = "gd,gd32-exti";
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ reg = <0x40010400 0x400>;
+ num-lines = <19>;
+ interrupts = <6 0>, <7 0>, <8 0>, <9 0>, <10 0>, <23 0>,
+ <40 0>;
+ interrupt-names = "line0", "line1", "line2",
+ "line3", "line4", "line5-9",
+ "line10-15";
+ status = "okay";
+ label = "EXTI";
+ };
+
afio: afio@40010000 {
compatible = "gd,gd32-afio";
reg = <0x40010000 0x400>;