ath79: use both DIR-825 B1 power leds for boot status indication
authorDmitry Tunin <hanipouspilot@gmail.com>
Tue, 14 Aug 2018 12:52:01 +0000 (15:52 +0300)
committerMathias Kresin <dev@kresin.me>
Wed, 15 Aug 2018 05:42:36 +0000 (07:42 +0200)
Use the orange led by default to match the bootloader/stock firmware
behaviour. Turn on the blue power led after boot to indicate a finished
boot and the orange one off.

Signed-off-by: Dmitry Tunin <hanipouspilot@gmail.com>
[reword commit message, keep orange power led enabled during early
kernel boot]
Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts

index c439d4f46def418424d51bf8887f4f95e194f7f9..5a3de683ed38cc286f8cf64673e617219e851d07 100644 (file)
@@ -13,7 +13,7 @@
        aliases {
                led-boot = &orange_power;
                led-failsafe = &orange_power;
-               led-running = &orange_power;
+               led-running = &blue_power;
                led-upgrade = &orange_power;
        };
 
                orange_power: orange_power {
                        label = "d-link:orange:power";
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
+                       default-state = "on";
                };
 
-               blue_power {
+               blue_power: blue_power {
                        label = "d-link:blue:power";
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        default-state = "off";