]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: mvebu: armada-39x: add missing nodes describing GPIO's
authorGrzegorz Jaszczyk <jaz@semihalf.com>
Thu, 4 Aug 2016 10:14:13 +0000 (12:14 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 8 Aug 2016 14:28:54 +0000 (16:28 +0200)
The whole Armada 39x SoC family of processors has GPIO's which all can be
supported with existing driver.

Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/boot/dts/armada-39x.dtsi

index 785f661ee61077edf5a68fa073b637a0b8206bc6..c521378e239f1c87e631e930046b4c277ba99b68 100644 (file)
@@ -55,6 +55,8 @@
        compatible = "marvell,armada390";
 
        aliases {
+               gpio0 = &gpio0;
+               gpio1 = &gpio1;
                serial0 = &uart0;
                serial1 = &uart1;
                serial2 = &uart2;
                                };
                        };
 
+                       gpio0: gpio@18100 {
+                               compatible = "marvell,orion-gpio";
+                               reg = <0x18100 0x40>;
+                               ngpios = <32>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                               interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
+                       };
+
+                       gpio1: gpio@18140 {
+                               compatible = "marvell,orion-gpio";
+                               reg = <0x18140 0x40>;
+                               ngpios = <28>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                               interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
+                       };
+
                        system-controller@18200 {
                                compatible = "marvell,armada-390-system-controller",
                                             "marvell,armada-370-xp-system-controller";