Skip to content

Commit 099807b

Browse files
nehebhauke
authored andcommitted
ath79: fix some ath10k LEDs
ath10k loads before ath9k and thus ends up as phy0. Also use led-sources to avoid some confusion. Signed-off-by: Rosen Penev <[email protected]> Link: openwrt/openwrt#19860 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 592d4e6 commit 099807b

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

target/linux/ath79/dts/qca9531_engenius_ews511ap.dts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,10 @@
5050
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
5151
};
5252

53-
wlan2g {
54-
label = "green:wlan2g";
55-
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
56-
linux,default-trigger = "phy0tpt";
57-
};
58-
5953
wlan5g {
6054
label = "green:wlan5g";
6155
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
62-
linux,default-trigger = "phy1tpt";
56+
linux,default-trigger = "phy0tpt";
6357
};
6458
};
6559

@@ -157,4 +151,9 @@
157151

158152
nvmem-cells = <&cal_art_1000>;
159153
nvmem-cell-names = "calibration";
154+
155+
led {
156+
led-sources = <15>;
157+
led-active-low;
158+
};
160159
};

target/linux/ath79/dts/qca9531_tplink_archer-d50-v1.dts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,10 @@
2121
leds {
2222
compatible = "gpio-leds";
2323

24-
wlan2g {
25-
label = "white:wlan2g";
26-
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27-
linux,default-trigger = "phy0tpt";
28-
};
29-
3024
wlan5g {
3125
label = "white:wlan5g";
3226
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33-
linux,default-trigger = "phy1tpt";
27+
linux,default-trigger = "phy0tpt";
3428
};
3529

3630
qss {
@@ -190,6 +184,11 @@
190184

191185
nvmem-cells = <&macaddr_romfile_f100 0>, <&cal_art_1000>;
192186
nvmem-cell-names = "mac-address", "calibration";
187+
188+
led {
189+
led-sources = <14>;
190+
led-active-low;
191+
};
193192
};
194193

195194
&pcie0 {

0 commit comments

Comments
 (0)