ath79: eg200: enable status led usage
authorKarl Palsson <karlp@etactica.com>
Thu, 5 Sep 2019 09:36:53 +0000 (09:36 +0000)
committerPetr Štetiar <ynezz@true.cz>
Sun, 15 Sep 2019 20:56:09 +0000 (22:56 +0200)
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>
target/linux/ath79/base-files/etc/board.d/01_leds
target/linux/ath79/dts/ar9331_etactica_eg200.dts

index ced8a94fd0dd8ba9de75fdd1c93878a0a4954ea9..e317ce26e19726486ec01a1dca5647073ae0bd23 100755 (executable)
@@ -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"
index 708e9defa4cda7ee624bb91862778143fde484b7..9160aa2b2ef09c5fd38f8b739f24b1d42acec720 100644 (file)
@@ -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>;
                };