ath79: fix user LED glow on Mikrotik 911 Lite boards
authorLech Perczak <lech.perczak@gmail.com>
Tue, 7 Mar 2023 00:14:05 +0000 (01:14 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 12 Mar 2023 13:00:26 +0000 (14:00 +0100)
GPIO3, to which the user LED is connected on RB911-Lite boards seems to
still sink current, even when driven high. Enabling open drain for this
pin fixes this behaviour and gets rid of the glow when LED is set to
off, so enable it.

Fixes: 43c7132bf8e7 ("ath79: add support for MikroTik RouterBOARD 911 Lite2/Lite5")
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
target/linux/ath79/dts/ar9344_mikrotik_routerboard-911-lite.dts

index d77078c5a22c684451a84f071f94cfe32aab661a..0315f49d07480d9348a1025f160da69dc4c40a95 100644 (file)
@@ -25,7 +25,7 @@
 
        led_user: user {
                label = "green:user";
-               gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
+               gpios = <&gpio 3 (GPIO_ACTIVE_LOW|GPIO_OPEN_DRAIN)>;
        };
 };