From c9c4b2116c0984eb8baeff03e806030ee9c6175f Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Mon, 16 Jul 2018 16:27:22 +0800 Subject: ramips: Use dts alias based status led Also fix several typos in led node name. Signed-off-by: Chuanhong Guo --- target/linux/ramips/dts/DIR-810L.dts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/dts/DIR-810L.dts') diff --git a/target/linux/ramips/dts/DIR-810L.dts b/target/linux/ramips/dts/DIR-810L.dts index 7a1736d563..22487a8e5d 100644 --- a/target/linux/ramips/dts/DIR-810L.dts +++ b/target/linux/ramips/dts/DIR-810L.dts @@ -9,6 +9,10 @@ compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; model = "D-Link DIR-810L"; + aliases { + led-status = &led_power_green; + }; + gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>; @@ -31,7 +35,7 @@ gpio-leds { compatible = "gpio-leds"; - power { + led_power_green: power { label = "dir-810l:green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; @@ -41,7 +45,7 @@ gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; }; - status { + power2 { label = "dir-810l:orange:power"; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; -- cgit v1.2.3