]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: dir-825-c1: set LED pin properly 18908/head
authorRosen Penev <rosenp@gmail.com>
Sun, 25 May 2025 03:41:27 +0000 (20:41 -0700)
committerRobert Marko <robimarko@gmail.com>
Mon, 25 Aug 2025 08:31:49 +0000 (10:31 +0200)
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 <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18908
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/dts/ar9344_dlink_dir-825-c1.dts
target/linux/ath79/dts/ar9344_dlink_dir-8x5.dtsi

index f0ca94f2317d772855af2dede1d4d622015ac2e6..d99fd7714d14830aaabc164539a258a474073a53 100644 (file)
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
 
-               wlan2g {
-                       label = "blue:wlan2g";
-                       gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
-                       linux,default-trigger = "phy0tpt";
-               };
-
                wps {
                        function = LED_FUNCTION_WPS;
                        color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };
+};
 
-       leds-ath9k {
-               compatible = "gpio-leds";
+&ath9k {
+       led {
+               led-sources = <0>;
+               led-active-low;
+       };
+};
 
-               wlan5g {
-                       label = "blue:wlan5g";
-                       gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
-                       linux,default-trigger = "phy1tpt";
-               };
+&wmac {
+       led {
+               led-sources = <13>;
+               led-active-low;
        };
 };
 
index 3c718f5c6e8d39071a304358dbe63722d0fb09b9..e4eda6cde7630213a9e94950571497a6f004d053 100644 (file)
@@ -65,8 +65,6 @@
                   nvmem-cell-names = "mac-address", "calibration";
                 */
                qca,no-eeprom; /* remove this when "mac-address" works  */
-               gpio-controller;
-               #gpio-cells = <2>;
        };
 };