mirror of
https://github.com/openwrt/openwrt.git
synced 2026-07-14 02:54:48 +04:00
ramips: timecloud: fix LED configs
The LED(s) does not have a label for status, ethernet, or whatsoever. These two LEDs, are used to form one dual-color indicator. On vendor firmware, the light is turned from orange to white, when external storage is detected and ready to use. However, if we use white for any other triggers (USB / SD card / ethernet), it is difficult to see while the orange is on. Thus, we change led-running to white to indicate a successful startup. Also add the missing pinmux config for uart3 since LEDs take GPIO 7 and 8. Signed-off-by: David Yang <mmyangfl@gmail.com> Link: https://github.com/openwrt/openwrt/pull/23182 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
committed by
Jonas Jelonek
parent
6420c5f1e9
commit
3392fd3513
@@ -9,10 +9,10 @@
|
||||
model = "Thunder Timecloud";
|
||||
|
||||
aliases {
|
||||
led-boot = &led_statuso;
|
||||
led-failsafe = &led_statuso;
|
||||
led-running = &led_statuso;
|
||||
led-upgrade = &led_statuso;
|
||||
led-boot = &led_orange;
|
||||
led-failsafe = &led_orange;
|
||||
led-running = &led_white;
|
||||
led-upgrade = &led_orange;
|
||||
label-mac-device = &gmac0;
|
||||
};
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
statw {
|
||||
led_white: white {
|
||||
function = LED_FUNCTION_STATUS;
|
||||
color = <LED_COLOR_ID_WHITE>;
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
led_statuso: stato {
|
||||
led_orange: orange {
|
||||
function = LED_FUNCTION_STATUS;
|
||||
color = <LED_COLOR_ID_ORANGE>;
|
||||
gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
|
||||
@@ -124,7 +124,7 @@
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "i2c", "uart2", "jtag";
|
||||
groups = "i2c", "uart2", "uart3", "jtag";
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user