]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: wlr-7100: wire up 5GHz WLAN LED
authorTomasz Maciej Nowak <tmn505@gmail.com>
Mon, 4 May 2026 17:48:40 +0000 (19:48 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 7 May 2026 16:26:30 +0000 (18:26 +0200)
Allows to light it up on 5GHz WLAN activation.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
target/linux/ath79/dts/ar1022_sitecom_wlr-7100.dts

index a8589b769f7568791abc2ba05686aadc24379fd5..840503933b96cb3624458715241afd8041551dd4 100644 (file)
@@ -35,6 +35,8 @@
 
        leds {
                compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&enable_gpio_11>;
 
                ops {
                        label = "white:ops";
                        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";
+               };
        };
 };
 
        };
 };
 
+&pinmux {
+       enable_gpio_11: pinmux-enable-gpio-11 {
+               pinctrl-single,bits = <0x8 0x0 0xff000000>;
+       };
+};
+
 &ref {
        clock-frequency = <25000000>;
 };