]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: whr-g301n: remove custon wifi LED 20023/head
authorRosen Penev <rosenp@gmail.com>
Thu, 11 Sep 2025 23:48:59 +0000 (16:48 -0700)
committerRobert Marko <robimarko@gmail.com>
Thu, 18 Sep 2025 09:11:02 +0000 (11:11 +0200)
The driver makes its own ath9k LED which handles everything.

Simplifies DTS slightly.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20023
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts

index a72a89a2183b102806dcd1edfb0398c36538078e..5ebc9f748f9c7cf4d5f5483c140faf2bb2ee8ce8 100644 (file)
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
        };
-
-       ath9k-leds {
-               compatible = "gpio-leds";
-
-               wlan {
-                       function = LED_FUNCTION_WLAN;
-                       color = <LED_COLOR_ID_GREEN>;
-                       gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
-                       linux,default-trigger = "phy0tpt";
-               };
-       };
 };
 
 &spi {
 &pcie {
        status = "okay";
 
-       ath9k: wifi@0,0 {
+       wifi@0,0 {
                compatible = "pci168c,002a";
                reg = <0x0000 0 0 0 0>;
                nvmem-cells = <&cal_art_1000>, <&macaddr_art_120c 0>;
                nvmem-cell-names = "calibration", "mac-address";
-               #gpio-cells = <2>;
-               gpio-controller;
+
+               led {
+                       led-sources = <1>;
+                       led-active-low;
+               };
        };
 };