Skip to content

Commit 592d4e6

Browse files
nehebhauke
authored andcommitted
ath79: mr600-v1: use led-sources for ath9k
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 <[email protected]> Link: openwrt/openwrt#19860 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent d4dcb94 commit 592d4e6

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

target/linux/ath79/dts/ar9344_openmesh_mr600-v1.dts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
leds {
1919
compatible = "gpio-leds";
2020

21-
wifi5g_green {
22-
label = "green:wifi5g";
23-
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
24-
linux,default-trigger = "phy0tpt";
25-
};
26-
2721
wps_blue {
2822
function = LED_FUNCTION_WPS;
2923
color = <LED_COLOR_ID_BLUE>;
@@ -37,14 +31,18 @@
3731
default-state = "on";
3832
};
3933
};
34+
};
4035

41-
leds-ath9k {
42-
compatible = "gpio-leds";
36+
&wmac {
37+
led {
38+
led-sources = <12>;
39+
led-active-low;
40+
};
41+
};
4342

44-
wifi2g {
45-
label = "blue:wifi2g";
46-
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
47-
linux,default-trigger = "phy1tpt";
48-
};
43+
&ath9k {
44+
led {
45+
led-sources = <0>;
46+
led-active-low;
4947
};
5048
};

target/linux/ath79/dts/ar9344_openmesh_mr600.dtsi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,10 @@
138138
&pcie {
139139
status = "okay";
140140

141-
ath9k: wifi@0,0 {
141+
wifi@0,0 {
142142
compatible = "pci168c,0030";
143143
reg = <0x0000 0 0 0 0>;
144144
nvmem-cells = <&macaddr_art_0 8>, <&calibration_art_5000>;
145145
nvmem-cell-names = "mac-address", "calibration";
146-
147-
gpio-controller;
148-
#gpio-cells = <2>;
149146
};
150147
};

0 commit comments

Comments
 (0)