Sfoglia il codice sorgente

ath79: use both DIR-825 B1 power leds for boot status indication

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 <[email protected]>
[reword commit message, keep orange power led enabled during early
kernel boot]
Signed-off-by: Mathias Kresin <[email protected]>
Dmitry Tunin 7 anni fa
parent
commit
3d9610aa13
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts

+ 3 - 2
target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts

@@ -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;
 	};
 
@@ -41,9 +41,10 @@
 		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";