lantiq: tplink_tdw89x0: use led-sources for wifi LED main master
authorRosen Penev <[email protected]>
Sat, 6 Dec 2025 03:44:33 +0000 (19:44 -0800)
committerHauke Mehrtens <[email protected]>
Sat, 6 Dec 2025 18:30:22 +0000 (19:30 +0100)
Avoids having to create a custom LED for wifi.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21059
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_tdw89x0.dtsi

index 104c905baadad53c3d91fdfe5b40304eeabb5d61..30927fe549c82cb482549ca8ffb7c7c1a1b83036 100644 (file)
@@ -18,7 +18,6 @@
 
                led-dsl = &led_dsl;
                led-internet = &led_internet;
-               led-wifi = &led_wifi;
        };
 
        memory@0 {
                };
        };
 
-       ath9k-leds {
-               compatible = "gpio-leds";
-
-               led_wifi: wifi {
-                       label = "green:wifi";
-                       gpios = <&ath9k 0 GPIO_ACTIVE_HIGH>;
-                       linux,default-trigger = "phy0tpt";
-               };
-       };
-
-
        usb_vbus: regulator-usb-vbus {
                compatible = "regulator-fixed";
 
 
                ath9k: wifi@0,0 {
                        reg = <0 0 0 0 0>;
-                       #gpio-cells = <2>;
-                       gpio-controller;
                        ieee80211-freq-limit = <2402000 2482000>;
+
+                       led {
+                               led-sources = <0>;
+                       };
                };
        };
 };