mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-17 10:20:01 +00:00
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>
(cherry picked from commit 5a82bb909b
)
This commit is contained in:
parent
0cd6b3fd0c
commit
d4a21d75a9
@ -13,6 +13,10 @@
|
|||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
serial0 = &uart0;
|
serial0 = &uart0;
|
||||||
|
led-boot = &led_white;
|
||||||
|
led-failsafe = &led_white;
|
||||||
|
led-running = &led_blue;
|
||||||
|
led-upgrade = &led_white;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
@ -51,13 +55,12 @@
|
|||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
led_run: led@0 {
|
led_blue: led@0 {
|
||||||
label = "blue:run";
|
label = "blue:run";
|
||||||
gpios = <&pio 38 GPIO_ACTIVE_LOW>;
|
gpios = <&pio 38 GPIO_ACTIVE_LOW>;
|
||||||
default-state = "on";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
led@1 {
|
led_white: led@1 {
|
||||||
label = "white:system";
|
label = "white:system";
|
||||||
gpios = <&pio 37 GPIO_ACTIVE_LOW>;
|
gpios = <&pio 37 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user