Commit 3db5894b authored by Romain Perier's avatar Romain Perier Committed by Heiko Stuebner

ARM: dts: rockchip: add label property for leds on Radxa Rock

The leds-gpio driver recently switched to the device property API. The device_node
name is no longer retrieved if the "label" devicetree property is not found.
In this case the driver tries to create entries with (null) name in
/sys/class/leds, which is wrong and generates backtrace as several gpio_leds have
the same name. Also renamed subnode "yellow" to "blue" to match the last
schematics updates.
Signed-off-by: default avatarRomain Perier <romain.perier@gmail.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent ff9d0ecb
......@@ -43,16 +43,19 @@ gpio-leds {
compatible = "gpio-leds";
green {
label = "rock:green:user1";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
default-state = "off";
};
yellow {
blue {
label = "rock:blue:user2";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
default-state = "off";
};
sleep {
label = "rock:red:power";
gpios = <&gpio0 15 0>;
default-state = "off";
};
......
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