[openwrt/openwrt] ath79: tl-wdr4900-v2: set ath9k led-pin

LEDE Commits lede-commits at lists.infradead.org
Sat Sep 20 03:49:12 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/95e04234c1b3379f59747fc6e0dea60033b550b8

commit 95e04234c1b3379f59747fc6e0dea60033b550b8
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sat May 24 18:02:14 2025 -0700

    ath79: tl-wdr4900-v2: set ath9k led-pin
    
    Instead of having two LED entries that supposedly control the same
    thing, set the pin properly.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/18905
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 .../ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts     | 30 ++++++++--------------
 1 file changed, 11 insertions(+), 19 deletions(-)

diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts b/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts
index e5da140364..8761e998ec 100644
--- a/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts
+++ b/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts
@@ -40,28 +40,12 @@
 			linux,default-trigger = "usbport";
 		};
 
-		wlan2g {
-			label = "blue:wlan2g";
-			gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
-			linux,default-trigger = "phy0tpt";
-		};
-
 		qss {
 			label = "blue:qss";
 			gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
 		};
 	};
 
-	ath9k-leds {
-		compatible = "gpio-leds";
-
-		wlan5g {
-			label = "blue:wlan5g";
-			gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
-			linux,default-trigger = "phy1tpt";
-		};
-	};
-
 	keys {
 		compatible = "gpio-keys";
 
@@ -93,13 +77,16 @@
 &pcie1 {
 	status = "okay";
 
-	ath9k: wifi at 0,0 {
+	wifi at 0,0 {
 		compatible = "pci168c,0033";
 		reg = <0x0000 0 0 0 0>;
 		nvmem-cells = <&macaddr_uboot_1fc00 (-2)>, <&cal_ath9k_pci>;
 		nvmem-cell-names = "mac-address", "calibration";
-		#gpio-cells = <2>;
-		gpio-controller;
+
+		led {
+			led-sources = <0>;
+			led-active-low;
+		};
 	};
 };
 
@@ -230,4 +217,9 @@
 
 	nvmem-cells = <&macaddr_uboot_1fc00 (-1)>, <&cal_ath9k_soc>;
 	nvmem-cell-names = "mac-address", "calibration";
+
+	led {
+		led-sources = <12>;
+		led-active-low;
+	};
 };




More information about the lede-commits mailing list