mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 17:01:44 +04:00
ath79: wlr-7100: wire up 5GHz WLAN LED
Allows to light it up on 5GHz WLAN activation. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
This commit is contained in:
committed by
Robert Marko
parent
a7f5fb4381
commit
dd8b607b45
@@ -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>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user