[openwrt/openwrt] ath79: wb2000: use led-sources for ath9k
LEDE Commits
lede-commits at lists.infradead.org
Mon Aug 25 01:32:48 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f5930cb6b5136a275a23bfda59c2dd69883bc0a4
commit f5930cb6b5136a275a23bfda59c2dd69883bc0a4
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sat May 24 18:14:47 2025 -0700
ath79: wb2000: 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 <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18906
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
.../linux/ath79/dts/ar9344_winchannel_wb2000.dts | 27 ++++++++--------------
1 file changed, 9 insertions(+), 18 deletions(-)
diff --git a/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts b/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts
index 145ff0418e..43e4c7a44e 100644
--- a/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts
+++ b/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts
@@ -38,12 +38,6 @@
leds {
compatible = "gpio-leds";
- wlan2g {
- label = "green:2g";
- gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
- linux,default-trigger = "phy0tpt";
- };
-
usb {
function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
@@ -68,16 +62,6 @@
debounce-interval = <60>;
};
};
-
- ath9k-leds {
- compatible = "gpio-leds";
-
- wlan {
- label = "green:5g";
- gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "phy1tpt";
- };
- };
};
&ref {
@@ -170,8 +154,11 @@
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&macaddr_addr_0 0x10>, <&calibration_art_5000>;
nvmem-cell-names = "mac-address", "calibration";
- #gpio-cells = <2>;
- gpio-controller;
+
+ led {
+ led-sources = <6>;
+ led-active-low;
+ };
};
};
@@ -188,6 +175,10 @@
nvmem-cells = <&macaddr_addr_0 0>, <&calibration_art_1000>;
nvmem-cell-names = "mac-address", "calibration";
+
+ led {
+ led-sources = <20>;
+ };
};
&mdio0 {
More information about the lede-commits
mailing list