]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: STi: Move leds node outside soc node
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 9 Jan 2018 15:38:57 +0000 (16:38 +0100)
committerPatrice Chotard <patrice.chotard@st.com>
Mon, 12 Feb 2018 14:24:34 +0000 (15:24 +0100)
Leds are not part of soc, so nove them outside soc node.
This allows to fix the following warnings when compiling
dtb with W=1 option :

arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg):
Node /soc/leds missing or empty reg/ranges property

arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg):
Node /soc/leds missing or empty reg/ranges property

arch/arm/boot/dts/stih418-b2199.dtb: Warning (simple_bus_reg):
Node /soc/leds missing or empty reg/ranges property

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/boot/dts/stih410-b2260.dts
arch/arm/boot/dts/stih418-b2199.dts
arch/arm/boot/dts/stihxxx-b2120.dtsi

index faafc7b12951a4d4db5745d055ba5849df9e1561..69c2abcaeda86a4fd742fdda0ad31536cd7c832a 100644 (file)
@@ -29,36 +29,35 @@ aliases {
                ethernet0 = &ethernet0;
        };
 
-       soc {
-
-               leds {
-                       compatible = "gpio-leds";
-                       user_green_1 {
-                               label = "User_green_1";
-                               gpios = <&pio1 3 GPIO_ACTIVE_LOW>;
-                               linux,default-trigger = "heartbeat";
-                               default-state = "off";
-                       };
+       leds {
+               compatible = "gpio-leds";
+               user_green_1 {
+                       label = "User_green_1";
+                       gpios = <&pio1 3 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "heartbeat";
+                       default-state = "off";
+               };
 
-                       user_green_2 {
-                               label = "User_green_2";
-                               gpios = <&pio4 1 GPIO_ACTIVE_LOW>;
-                               default-state = "off";
-                       };
+               user_green_2 {
+                       label = "User_green_2";
+                       gpios = <&pio4 1 GPIO_ACTIVE_LOW>;
+                       default-state = "off";
+               };
 
-                       user_green_3 {
-                               label = "User_green_3";
-                               gpios = <&pio2 1 GPIO_ACTIVE_LOW>;
-                               default-state = "off";
-                       };
+               user_green_3 {
+                       label = "User_green_3";
+                       gpios = <&pio2 1 GPIO_ACTIVE_LOW>;
+                       default-state = "off";
+               };
 
-                       user_green_4 {
-                               label = "User_green_4";
-                               gpios = <&pio2 5 GPIO_ACTIVE_LOW>;
-                               default-state = "off";
-                       };
+               user_green_4 {
+                       label = "User_green_4";
+                       gpios = <&pio2 5 GPIO_ACTIVE_LOW>;
+                       default-state = "off";
                };
+       };
 
+       soc {
                /* Low speed expansion connector */
                uart0: serial@9830000 {
                        label = "LS-UART0";
index 5418a0ece6599e545cbbdd88a8e8b545edbb3c73..1ce38ce79952ead0387e747493465f8bac0ad915 100644 (file)
@@ -28,24 +28,24 @@ aliases {
                ethernet0 = &ethernet0;
        };
 
+       leds {
+               compatible = "gpio-leds";
+               red {
+                       label = "Front Panel LED";
+                       gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
+               };
+               green {
+                       gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+       };
+
        soc {
                sbc_serial0: serial@9530000 {
                        status = "okay";
                };
 
-               leds {
-                       compatible = "gpio-leds";
-                       red {
-                               label = "Front Panel LED";
-                               gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
-                               linux,default-trigger = "heartbeat";
-                       };
-                       green {
-                               gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
-                               default-state = "off";
-                       };
-               };
-
                i2c@9842000 {
                        status = "okay";
                };
index 68783e8223b899ad53e50684feb1846e2e8602d6..1fd3a2b5b938286eb0d72bc38708a6e2c9331066 100644 (file)
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/media/c8sectpfe.h>
 / {
+       leds {
+               compatible = "gpio-leds";
+               red {
+                       label = "Front Panel LED";
+                       gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "heartbeat";
+               };
+               green {
+                       gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+       };
+
        soc {
                sbc_serial0: serial@9530000 {
                        status = "okay";
                };
 
-               leds {
-                       compatible = "gpio-leds";
-                       red {
-                               label = "Front Panel LED";
-                               gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
-                               linux,default-trigger = "heartbeat";
-                       };
-                       green {
-                               gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
-                               default-state = "off";
-                       };
-               };
-
                pwm0: pwm@9810000 {
                        status = "okay";
                };