aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
diff options
context:
space:
mode:
authorDmitry Tunin <hanipouspilot@gmail.com>2018-08-14 15:52:01 +0300
committerMathias Kresin <dev@kresin.me>2018-08-15 07:42:36 +0200
commit3d9610aa1343fae14c246ef57b2124a5c44e98d9 (patch)
treef10be12590db078bc794fc3cd39ed4b10c5ba605 /target/linux/ath79
parent7a873974f7fd04b4d5563df2b7ed91e9be3b38b7 (diff)
downloadupstream-3d9610aa1343fae14c246ef57b2124a5c44e98d9.tar.gz
upstream-3d9610aa1343fae14c246ef57b2124a5c44e98d9.tar.bz2
upstream-3d9610aa1343fae14c246ef57b2124a5c44e98d9.zip
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 <hanipouspilot@gmail.com> [reword commit message, keep orange power led enabled during early kernel boot] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ath79')
-rw-r--r--target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts b/target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts
index c439d4f46d..5a3de683ed 100644
--- a/target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts
+++ b/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";