ath79: tplink_tl-wdrxxxx: use led-sources for ath9k
authorRosen Penev <[email protected]>
Sun, 25 May 2025 21:17:22 +0000 (14:17 -0700)
committerHauke Mehrtens <[email protected]>
Fri, 28 Nov 2025 23:46:36 +0000 (00:46 +0100)
The ath9k driver creates an ath9k LED by default. Instead of having a
non functional LED, configure it properly and remove the extra as it's
not needed.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19861
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/ath79/dts/ar9344_tplink_tl-wdr3500-v1.dts
target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
target/linux/ath79/dts/ar9344_tplink_tl-wdrxxxx.dtsi

index 013b44a1239e43c8e8bf2a1df6193ffadac16c82..ae2183ad1595798340a25b60b9f974a2c8d07296 100644 (file)
 &pcie {
        status = "okay";
 
-       ath9k: wifi@0,0 {
+       wifi@0,0 {
                compatible = "pci168c,0033";
                reg = <0x0000 0 0 0 0>;
-               #gpio-cells = <2>;
-               gpio-controller;
                nvmem-cells = <&macaddr_uboot_1fc00 1>, <&cal_art_5000>;
                nvmem-cell-names = "mac-address", "calibration";
+
+               led {
+                       led-sources = <0>;
+                       led-active-low;
+               };
        };
 };
 
index 8411a9b061aa236337ed9edb44cd335f95f080ef..575f86ef41d50f12a36f9e58781e47be9535647c 100644 (file)
        ath9k: wifi@0,0 {
                compatible = "pci168c,0033";
                reg = <0x0000 0 0 0 0>;
-               #gpio-cells = <2>;
-               gpio-controller;
                nvmem-cells = <&macaddr_uboot_1fc00 0>, <&cal_art_5000>;
                nvmem-cell-names = "mac-address", "calibration";
+
+               led {
+                       led-sources = <0>;
+                       led-active-low;
+               };
        };
 };
 
index 94bfef57f62f4a1fcaec7de8c871357f7b090db6..4c25d61c5aeacfa5cbb902870c777e5240121c33 100644 (file)
                };
        };
 
-       ath9k-leds {
-               compatible = "gpio-leds";
-
-               wlan5g {
-                       label = "green:wlan5g";
-                       gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
-                       linux,default-trigger = "phy1tpt";
-               };
-       };
-
        keys {
                compatible = "gpio-keys";