Commit 7aef6b3a authored by Patrice Chotard's avatar Patrice Chotard

ARM: dts: STi: Move leds node outside soc node

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: default avatarPatrice Chotard <patrice.chotard@st.com>
parent d6d854cc
...@@ -29,36 +29,35 @@ aliases { ...@@ -29,36 +29,35 @@ aliases {
ethernet0 = &ethernet0; ethernet0 = &ethernet0;
}; };
soc { leds {
compatible = "gpio-leds";
leds { user_green_1 {
compatible = "gpio-leds"; label = "User_green_1";
user_green_1 { gpios = <&pio1 3 GPIO_ACTIVE_LOW>;
label = "User_green_1"; linux,default-trigger = "heartbeat";
gpios = <&pio1 3 GPIO_ACTIVE_LOW>; default-state = "off";
linux,default-trigger = "heartbeat"; };
default-state = "off";
};
user_green_2 { user_green_2 {
label = "User_green_2"; label = "User_green_2";
gpios = <&pio4 1 GPIO_ACTIVE_LOW>; gpios = <&pio4 1 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
user_green_3 { user_green_3 {
label = "User_green_3"; label = "User_green_3";
gpios = <&pio2 1 GPIO_ACTIVE_LOW>; gpios = <&pio2 1 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
}; };
user_green_4 { user_green_4 {
label = "User_green_4"; label = "User_green_4";
gpios = <&pio2 5 GPIO_ACTIVE_LOW>; gpios = <&pio2 5 GPIO_ACTIVE_LOW>;
default-state = "off"; default-state = "off";
};
}; };
};
soc {
/* Low speed expansion connector */ /* Low speed expansion connector */
uart0: serial@9830000 { uart0: serial@9830000 {
label = "LS-UART0"; label = "LS-UART0";
......
...@@ -28,24 +28,24 @@ aliases { ...@@ -28,24 +28,24 @@ aliases {
ethernet0 = &ethernet0; 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 { soc {
sbc_serial0: serial@9530000 { sbc_serial0: serial@9530000 {
status = "okay"; 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 { i2c@9842000 {
status = "okay"; status = "okay";
}; };
......
...@@ -10,24 +10,24 @@ ...@@ -10,24 +10,24 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/media/c8sectpfe.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 { soc {
sbc_serial0: serial@9530000 { sbc_serial0: serial@9530000 {
status = "okay"; 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 { pwm0: pwm@9810000 {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment