mediatek: mt7622: fix white dome LED of UniFi 6 LR
authorDaniel Golle <daniel@makrotopia.org>
Mon, 4 Jul 2022 17:42:20 +0000 (18:42 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 4 Jul 2022 18:58:18 +0000 (19:58 +0100)
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>
(cherry picked from commit f58e562b07803192d029a6be8c8c372e1ed11c68)

target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v2.dtsi

index 3e9cea7285a118c6ebe96ec1fd85b68d986d95d6..4d278805d40707f8fe68d24061d64ba9d92703ba 100644 (file)
 
                led_white: dome_white {
                        label = "white:dome";
-                       linux,default-trigger = "default-on";
-                       gpios = <&pio 0x43 GPIO_ACTIVE_HIGH>;
+                       gpios = <&pio 0x43 GPIO_ACTIVE_LOW>;
                };
 
                led_blue: dome_blue {
                        label = "blue:dome";
-                       default-state = "off";
                        gpios = <&pio 0x44 GPIO_ACTIVE_HIGH>;
                };
        };