summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2024-01-06 19:59:13 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2024-01-09 00:03:07 +0100
commit5a82bb909bf16786b85508d2e974ddf0a14bb10c (patch)
tree3395ee1b8c0286437a2af27778ff8a58f99408f0 /target
parentc7c2257f8289ba278a6baffb6fea945b4ad47344 (diff)
downloadopenwrt-5a82bb909bf16786b85508d2e974ddf0a14bb10c.tar.gz
openwrt-5a82bb909bf16786b85508d2e974ddf0a14bb10c.tar.bz2
openwrt-5a82bb909bf16786b85508d2e974ddf0a14bb10c.zip
mediatek: GL-MT6000: Add missing LED state definitions
Adjust LED names and provide the OpenWrt status indicator aliases to actually use LEDs by the OpenWrt boot & sysupgrade processes. * Name both LEDs clearly by the color * Add the missing OpenWrt LED status indicator aliases and remove the now unnecessary default status from blue LED After this commit, the LEDs are used as: * bootloader, really early Linux boot: blue LED is on * preinit/failsafe: white LED blinks rapidly * late boot: white LED blinks slowly * boot completed, running normally: blue LED is on * sysupgrade: white LED blinks Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'target')
-rw-r--r--target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts9
1 files changed, 6 insertions, 3 deletions
diff --git a/target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts b/target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts
index fded507039..9a7031df53 100644
--- a/target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts
+++ b/target/linux/mediatek/dts/mt7986a-glinet-gl-mt6000.dts
@@ -13,6 +13,10 @@
aliases {
serial0 = &uart0;
+ led-boot = &led_white;
+ led-failsafe = &led_white;
+ led-running = &led_blue;
+ led-upgrade = &led_white;
};
chosen {
@@ -51,13 +55,12 @@
leds {
compatible = "gpio-leds";
- led_run: led@0 {
+ led_blue: led@0 {
label = "blue:run";
gpios = <&pio 38 GPIO_ACTIVE_LOW>;
- default-state = "on";
};
- led@1 {
+ led_white: led@1 {
label = "white:system";
gpios = <&pio 37 GPIO_ACTIVE_LOW>;
};