ARM: dts: at91: sama5d2: add AIC node
authorClément Léger <clement.leger@bootlin.com>
Thu, 31 Mar 2022 08:55:07 +0000 (10:55 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 1 Apr 2022 12:42:46 +0000 (15:42 +0300)
When using interrupts property, a global interrupt controller needs to
be added to avoid warnings when compiling device-tree:

 arch/arm/dts/at91-sama5d2_xplained.dtb: Warning (interrupts_property):
    /ahb/apb/timer@f800c000: Missing interrupt-parent

Add AIC node as the sama5d2 global interrupt controller.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
arch/arm/dts/sama5d2.dtsi

index 038cd73..7de58e4 100644 (file)
@@ -3,6 +3,7 @@
 / {
        model = "Atmel SAMA5D2 family SoC";
        compatible = "atmel,sama5d2";
+       interrupt-parent = <&aic>;
 
        aliases {
                spi0 = &spi0;
                                status = "disabled";
                        };
 
+                       aic: interrupt-controller@fc020000 {
+                               #interrupt-cells = <3>;
+                               compatible = "atmel,sama5d2-aic";
+                               interrupt-controller;
+                               reg = <0xfc020000 0x200>;
+                               atmel,external-irqs = <49>;
+                       };
+
                        i2c1: i2c@fc028000 {
                                compatible = "atmel,sama5d2-i2c";
                                reg = <0xfc028000 0x100>;