]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: timecloud: fix LED configs 23182/head
authorDavid Yang <mmyangfl@gmail.com>
Fri, 1 May 2026 17:43:00 +0000 (01:43 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 29 Jun 2026 07:36:35 +0000 (09:36 +0200)
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>
target/linux/ramips/dts/mt7621_thunder_timecloud.dts

index e7aef362005a286bb4ba2e056ae56f480a7dd366..dfd5a705479b0c092913e94e97bab09cac9841a7 100644 (file)
@@ -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;
        };
 
        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>;
 
 &state_default {
        gpio {
-               groups = "i2c", "uart2", "jtag";
+               groups = "i2c", "uart2", "uart3", "jtag";
                function = "gpio";
        };
 };