ath79: improve status LED definitions for GL-AR750
authorHannu Nyman <hannu.nyman@iki.fi>
Wed, 15 Apr 2020 20:05:27 +0000 (23:05 +0300)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 15 Apr 2020 22:02:03 +0000 (00:02 +0200)
Improve the status LED functionality in GL-AR750
by adding the definitions for different statuses
(boot, failsafe, running, flashing).

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts

index 269779212398b7555abdc6fcc489e5c7cb8f6837..dcffccf0a8d666f3f54d0cba7d3aec9ac11e3f86 100644 (file)
        model = "GL.iNet GL-AR750";
 
        aliases {
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
                label-mac-device = &eth0;
        };
 
@@ -36,7 +40,7 @@
        leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "gl-ar750:white:power";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                        default-state = "on";