[PATCH v2 2/3] ath79: wlr-7100: wire up 5GHz WLAN LED

Tomasz Maciej Nowak tmn505 at terefe.re
Sat Mar 14 07:27:29 PDT 2026


From: Tomasz Maciej Nowak <tmn505 at gmail.com>

Allows to light it up on 5GHz WLAN activation.

Signed-off-by: Tomasz Maciej Nowak <tmn505 at gmail.com>
---
v2
new patch

 .../linux/ath79/dts/ar1022_sitecom_wlr-7100.dts   | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/target/linux/ath79/dts/ar1022_sitecom_wlr-7100.dts b/target/linux/ath79/dts/ar1022_sitecom_wlr-7100.dts
index ad5f4c809788..a009d1be30cb 100644
--- a/target/linux/ath79/dts/ar1022_sitecom_wlr-7100.dts
+++ b/target/linux/ath79/dts/ar1022_sitecom_wlr-7100.dts
@@ -35,6 +35,8 @@
 
 	leds {
 		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&enable_gpio_11>;
 
 		ops {
 			label = "white:ops";
@@ -47,6 +49,13 @@
 			gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
 			default-state = "on";
 		};
+
+		wlan5g {
+			function = LED_FUNCTION_WLAN_5GHZ;
+			color = <LED_COLOR_ID_BLUE>;
+			gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "phy0tpt";
+		};
 	};
 };
 
@@ -94,6 +103,12 @@
 	};
 };
 
+&pinmux {
+	enable_gpio_11: pinmux-enable-gpio-11 {
+		pinctrl-single,bits = <0x8 0x0 0xff000000>;
+	};
+};
+
 &ref {
 	clock-frequency = <25000000>;
 };
-- 
2.53.0




More information about the openwrt-devel mailing list