Skip to content

Commit c1a6c85

Browse files
nehebrobimarko
authored andcommitted
ath79: qcn5502: use led-sources for WMAC
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: openwrt#19862 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent 9c895ba commit c1a6c85

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

target/linux/ath79/dts/qcn5502_asus_rt-ac59u.dtsi

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@
4949
linux,default-trigger = "usbport";
5050
};
5151

52-
wlan2g {
53-
label = "blue:wlan2g";
54-
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
55-
linux,default-trigger = "phy1tpt";
56-
};
57-
5852
wlan5g {
5953
label = "blue:wlan5g";
6054
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
@@ -70,3 +64,10 @@
7064
&usb0 {
7165
status = "okay";
7266
};
67+
68+
&wmac {
69+
led {
70+
led-sources = <15>;
71+
led-active-low;
72+
};
73+
};

target/linux/ath79/dts/qcn5502_tplink_archer-a9-v6.dts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@
6666
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
6767
};
6868

69-
wlan2g {
70-
label = "green:wlan2g";
71-
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
72-
linux,default-trigger = "phy1tpt";
73-
};
74-
7569
wlan5g {
7670
label = "green:wlan5g";
7771
gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
@@ -246,4 +240,9 @@
246240

247241
nvmem-cells = <&cal_art_1000>, <&macaddr_info_8 0>;
248242
nvmem-cell-names = "calibration", "mac-address";
243+
244+
led {
245+
led-sources = <15>;
246+
led-active-low;
247+
};
249248
};

0 commit comments

Comments
 (0)