mpc85xx: tl-wdr4900: add back 5ghz LED
authorRosen Penev <[email protected]>
Tue, 12 Aug 2025 18:22:27 +0000 (11:22 -0700)
committerRobert Marko <[email protected]>
Wed, 13 Aug 2025 07:58:03 +0000 (09:58 +0200)
In the conversion to dts, qca,led-pin was used for both interfaces.
Unfortunately, it's mutually exclusive with gpio-controller which made
it not do anything.

Fixes: 949e1a0 ("mpc85xx: tl-wdr4900: move platform code to dts")
Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19758
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit cc0ff28f235a14283138559249d413b7aa2a9a4d)

target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts

index 4fd9767d2d45500f6e46c30a37da433896afb253..861f4511de4d2dfc964ddec21e6601ca6b170ea5 100644 (file)
                compatible = "gpio-leds";
 
                led-0 {
+                       gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
+                       color = <LED_COLOR_ID_GREEN>;
+                       function = LED_FUNCTION_WLAN_5GHZ;
+                       linux,default-trigger = "phy0tpt";
+               };
+
+               led-1 {
                        gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
                        color = <LED_COLOR_ID_GREEN>;
                        function = LED_FUNCTION_WPS;
                };
 
-               system_green: led-1 {
+               system_green: led-2 {
                        gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        color = <LED_COLOR_ID_GREEN>;
                        function = LED_FUNCTION_STATUS;
                };
 
-               led-2 {
+               led-3 {
                        gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
                        color = <LED_COLOR_ID_GREEN>;
                        function = LED_FUNCTION_USB;
                        trigger-sources = <&hub_port1>;
                };
 
-               led-3 {
+               led-4 {
                        gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
                        color = <LED_COLOR_ID_GREEN>;
                        function = LED_FUNCTION_USB;