소스 검색

mediatek: fix ledbar of UniFi 6 LR when running custom U-Boot

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 <[email protected]>
Daniel Golle 3 년 전
부모
커밋
0b5cf952cf
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v1.dtsi

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

@@ -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";