mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
f58e562b07
The recent differentiation between v1 and v2 of the UniFi 6 LR added support for the v2 version which has GPIO-controlled LEDs instead of using an additional microcontroller to drive an RGB led. The polarity of the white LED, however, was inverted and the default states didn't make a lot of sense after all. Fix that. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
25 lines
408 B
Plaintext
25 lines
408 B
Plaintext
#include "mt7622-ubnt-unifi-6-lr.dtsi"
|
|
|
|
/ {
|
|
aliases {
|
|
led-boot = &led_white;
|
|
led-failsafe = &led_white;
|
|
led-running = &led_blue;
|
|
led-upgrade = &led_blue;
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_white: dome_white {
|
|
label = "white:dome";
|
|
gpios = <&pio 0x43 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_blue: dome_blue {
|
|
label = "blue:dome";
|
|
gpios = <&pio 0x44 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|