diff mbox series

[OpenWrt-Devel,PATCHv2] ath79: eg200: enable status led usage

Message ID 20190905093147.19639-1-karlp@etactica.com
State Accepted
Headers show
Series [OpenWrt-Devel,PATCHv2] ath79: eg200: enable status led usage | expand

Commit Message

Karl Palsson Sept. 5, 2019, 9:36 a.m. UTC
From: Karl Palsson <karlp@etactica.com>

This enables using the "eTactica" LED during boot, to indicate failsafe,
and during upgrade, while still leaving the LED alone for normal
operation.  This brings the device more in line with how other devices
work, and makes the failsafe functionality easier to use and understand.

Signed-off-by: Karl Palsson <karlp@etactica.com>
---
v2 - attempt to force From: to avoid outlook365 rewriting

 target/linux/ath79/base-files/etc/board.d/01_leds | 1 -
 target/linux/ath79/dts/ar9331_etactica_eg200.dts  | 5 ++++-
 2 files changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds
index ced8a94fd0..e317ce26e1 100755
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -87,7 +87,6 @@  engenius,ews511ap)
 etactica,eg200)
 	ucidef_set_led_netdev "lan" "LAN" "$boardname:red:eth0" "eth0"
 	ucidef_set_led_oneshot "modbus" "Modbus" "$boardname:red:modbus" "100" "33"
-	ucidef_set_led_default "etactica" "etactica" "$boardname:red:etactica" "ignore"
 	;;
 glinet,gl-ar150)
 	ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
diff --git a/target/linux/ath79/dts/ar9331_etactica_eg200.dts b/target/linux/ath79/dts/ar9331_etactica_eg200.dts
index 708e9defa4..9160aa2b2e 100644
--- a/target/linux/ath79/dts/ar9331_etactica_eg200.dts
+++ b/target/linux/ath79/dts/ar9331_etactica_eg200.dts
@@ -11,6 +11,9 @@ 
 	compatible = "etactica,eg200", "qca,ar9331";
 
 	aliases {
+		led-boot = &led_etactica;
+		led-failsafe = &led_etactica;
+		led-upgrade = &led_etactica;
 		serial0 = &uart;
 	};
 
@@ -34,7 +37,7 @@ 
 			gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
 		};
 
-		etactica {
+		led_etactica: etactica {
 			label = "eg200:red:etactica";
 			gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
 		};