]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: qcn5502: use led-sources for WMAC 19862/head
authorRosen Penev <rosenp@gmail.com>
Sun, 25 May 2025 01:10:42 +0000 (18:10 -0700)
committerRobert Marko <robimarko@gmail.com>
Wed, 27 Aug 2025 10:48:44 +0000 (12:48 +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.

It's also a bit funny matching against phy0 and phy1 when both differ
between ath9k and ath10k.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19862
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/dts/qcn5502_asus_rt-ac59u.dtsi
target/linux/ath79/dts/qcn5502_tplink_archer-a9-v6.dts

index 3d3df1adccaa53347e92e44e9fde9649cfa2c629..dfa68895f8b3c7e8e566be02cdefdb18fd823cf4 100644 (file)
                        linux,default-trigger = "usbport";
                };
 
-               wlan2g {
-                       label = "blue:wlan2g";
-                       gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
-                       linux,default-trigger = "phy1tpt";
-               };
-
                wlan5g {
                        label = "blue:wlan5g";
                        gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
 &usb0 {
        status = "okay";
 };
+
+&wmac {
+       led {
+               led-sources = <15>;
+               led-active-low;
+       };
+};
index b6748637056bb1298dc1c5f8ae73bc9afbe87092..c905dc79f0c979b7b0924c339896c3c7c62c1fdd 100644 (file)
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
-               wlan2g {
-                       label = "green:wlan2g";
-                       gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
-                       linux,default-trigger = "phy1tpt";
-               };
-
                wlan5g {
                        label = "green:wlan5g";
                        gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
 
        nvmem-cells = <&cal_art_1000>, <&macaddr_info_8 0>;
        nvmem-cell-names = "calibration", "mac-address";
+
+       led {
+               led-sources = <15>;
+               led-active-low;
+       };
 };