mediatek: fix ledbar of UniFi 6 LR when running custom U-Boot
authorDaniel Golle <daniel@makrotopia.org>
Sun, 11 Sep 2022 19:24:05 +0000 (20:24 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 18 Sep 2022 14:40:04 +0000 (15:40 +0100)
The RGB LED of the UniFi 6 LR v1 doesn't work when using the Openwrt-
built U-Boot. This is because the vendor loader resets the ledbar
controller while our U-Boot doesn't care.
Add reset-gpio so the ledbar driver in Linux will always reset the
ledbar controller.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 0b5cf952cf5b70d3af2424d05b15ce2730a3dc11)

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

index 8f15d3f110ee6df2d9fc71927ac2dc74c89bc406..b3299a988fe873c4b48bb595caf0aa3109a5190d 100644 (file)
@@ -9,7 +9,8 @@
                compatible = "ubnt,ledbar";
                reg = <0x30>;
 
-               enable-gpio = <&pio 59 0>;
+               enable-gpio = <&pio 59 GPIO_ACTIVE_LOW>;
+               reset-gpio = <&pio 60 GPIO_ACTIVE_LOW>;
 
                red {
                        label = "red";