arm: dts: ls1028a: move the GPIO controller nodes into /soc
authorMichael Walle <michael@walle.cc>
Wed, 13 Oct 2021 16:14:10 +0000 (18:14 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 11:48:23 +0000 (17:18 +0530)
While inserting them into the new location, keep them sorted by the
register base offset just like in the linux kernel device tree.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/dts/fsl-ls1028a.dtsi

index 349c4bf..9f46655 100644 (file)
                status = "disabled";
        };
 
-       gpio0: gpio@2300000 {
-               compatible = "fsl,ls1028a-gpio","fsl,qoriq-gpio";
-               reg = <0x0 0x2300000 0x0 0x10000>;
-               interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
-               gpio-controller;
-               #gpio-cells = <2>;
-               interrupt-controller;
-               #interrupt-cells = <2>;
-               little-endian;
-       };
-
-       gpio1: gpio@2310000 {
-               compatible = "fsl,ls1028a-gpio","fsl,qoriq-gpio";
-               reg = <0x0 0x2310000 0x0 0x10000>;
-               interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
-               gpio-controller;
-               #gpio-cells = <2>;
-               interrupt-controller;
-               #interrupt-cells = <2>;
-               little-endian;
-       };
-
-       gpio2: gpio@2320000 {
-               compatible = "fsl,ls1028a-gpio","fsl,qoriq-gpio";
-               reg = <0x0 0x2320000 0x0 0x10000>;
-               interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
-               gpio-controller;
-               #gpio-cells = <2>;
-               interrupt-controller;
-               #interrupt-cells = <2>;
-               little-endian;
-       };
-
        sata: sata@3200000 {
                compatible = "fsl,ls1028a-ahci";
                reg = <0x0 0x3200000 0x0 0x10000        /* ccsr sata base */
                        little-endian;
                        status = "disabled";
                };
+
+               gpio0: gpio@2300000 {
+                       compatible = "fsl,ls1028a-gpio","fsl,qoriq-gpio";
+                       reg = <0x0 0x2300000 0x0 0x10000>;
+                       interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+                       little-endian;
+               };
+
+               gpio1: gpio@2310000 {
+                       compatible = "fsl,ls1028a-gpio","fsl,qoriq-gpio";
+                       reg = <0x0 0x2310000 0x0 0x10000>;
+                       interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+                       little-endian;
+               };
+
+               gpio2: gpio@2320000 {
+                       compatible = "fsl,ls1028a-gpio","fsl,qoriq-gpio";
+                       reg = <0x0 0x2320000 0x0 0x10000>;
+                       interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+                       little-endian;
+               };
        };
 };