aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Perier <romain.perier@gmail.com>2014-11-23 11:19:35 -0500
committerHeiko Stuebner <heiko@sntech.de>2014-11-30 18:09:45 -0500
commit3db5894beb21df6ee11dfcafc070f1abd4cdf27d (patch)
tree3bf04ca2e7ea5e82748b517dd9eef293ab0102a7
parentff9d0ecbbe9181b6fb575223e79c6b98c687af8d (diff)
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: Romain Perier <romain.perier@gmail.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm/boot/dts/rk3188-radxarock.dts5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/rk3188-radxarock.dts b/arch/arm/boot/dts/rk3188-radxarock.dts
index 6eb62c053055..9a09579b8309 100644
--- a/arch/arm/boot/dts/rk3188-radxarock.dts
+++ b/arch/arm/boot/dts/rk3188-radxarock.dts
@@ -43,16 +43,19 @@
43 compatible = "gpio-leds"; 43 compatible = "gpio-leds";
44 44
45 green { 45 green {
46 label = "rock:green:user1";
46 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 47 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
47 default-state = "off"; 48 default-state = "off";
48 }; 49 };
49 50
50 yellow { 51 blue {
52 label = "rock:blue:user2";
51 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 53 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
52 default-state = "off"; 54 default-state = "off";
53 }; 55 };
54 56
55 sleep { 57 sleep {
58 label = "rock:red:power";
56 gpios = <&gpio0 15 0>; 59 gpios = <&gpio0 15 0>;
57 default-state = "off"; 60 default-state = "off";
58 }; 61 };