[openwrt/openwrt] ath79: db120: use led-sources for ath9k
LEDE Commits
lede-commits at lists.infradead.org
Sun Aug 24 07:55:39 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/715f9541e864b80ab65e1ed1a4bb6a8c900b9546
commit 715f9541e864b80ab65e1ed1a4bb6a8c900b9546
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sat May 24 18:20:09 2025 -0700
ath79: db120: 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>
Tested-by: Zoltan HERPAI wigyori at uid0.hu
Link: https://github.com/openwrt/openwrt/pull/18907
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ath79/dts/ar9344_atheros_db120.dts | 30 +++++++++----------------
1 file changed, 11 insertions(+), 19 deletions(-)
diff --git a/target/linux/ath79/dts/ar9344_atheros_db120.dts b/target/linux/ath79/dts/ar9344_atheros_db120.dts
index 5004f40341..1f47ee9a38 100644
--- a/target/linux/ath79/dts/ar9344_atheros_db120.dts
+++ b/target/linux/ath79/dts/ar9344_atheros_db120.dts
@@ -21,12 +21,6 @@
leds {
compatible = "gpio-leds";
- wlan2g {
- label = "green:wlan2g";
- gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "phy0tpt";
- };
-
wlan5g {
label = "green:wlan5g";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
@@ -48,16 +42,6 @@
};
};
- leds-ath9k {
- compatible = "gpio-leds";
-
- wlan5g-ath {
- label = "green:wlan5g-ath";
- gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "phy1tpt";
- };
- };
-
keys {
compatible = "gpio-keys";
@@ -225,14 +209,17 @@
&pcie {
status = "okay";
- ath9k: wifi at 0,0 {
+ wifi at 0,0 {
compatible = "pci168c,0030";
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&calibration_art_5000>;
nvmem-cell-names = "calibration";
ieee80211-freq-limit = <4900000 5990000>;
- #gpio-cells = <2>;
- gpio-controller;
+
+ led {
+ led-sources = <0>;
+ led-active-low;
+ };
};
};
@@ -241,6 +228,11 @@
nvmem-cells = <&calibration_art_1000>;
nvmem-cell-names = "calibration";
+
+ led {
+ led-sources = <13>;
+ led-active-low;
+ };
};
&usb {
More information about the lede-commits
mailing list