From d40956a74c34000fb7ab83fa7deeaa6535ef4e5d Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Tue, 21 Aug 2018 23:17:00 +0200 Subject: [PATCH] ath79: ubnt-xm: hijack LED4 as booting/failsafe Create aliases for led-booting and led-failsafe pointing at ubnt:green:link4 LED, forUbiquiti XM series, so visual feedback on device status becomes available, in order to enter failsafe mode via button. led-running and led-upgrade aliases are omitted to avoid conflicting with RSSI LEDs when in normal operation. Signed-off-by: Lech Perczak --- target/linux/ath79/dts/ar7241_ubnt_xm.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi b/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi index fddcbe2b163..f6cefdabd09 100644 --- a/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi +++ b/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi @@ -9,6 +9,11 @@ compatible = "ubnt,xm", "qca,ar7241"; model = "Ubiquiti Networks XM (rev 1.0) board"; + aliases { + led-boot = &link4; + led-failsafe = &link4; + }; + /* extosc: ref { compatible = "fixed-clock"; #clock-cells = <0>; @@ -42,7 +47,7 @@ gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; }; - link4 { + link4: link4 { label = "ubnt:green:link4"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; -- 2.30.2