[openwrt/openwrt] ath79: fix user LED glow on Mikrotik 911 Lite boards

LEDE Commits lede-commits at lists.infradead.org
Sun Mar 12 06:05:49 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/a7a3de5edb142c7cefdb6e810cc07a6222f7541d

commit a7a3de5edb142c7cefdb6e810cc07a6222f7541d
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Tue Mar 7 01:14:05 2023 +0100

    ath79: fix user LED glow on Mikrotik 911 Lite boards
    
    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 at gmail.com>
---
 target/linux/ath79/dts/ar9344_mikrotik_routerboard-911-lite.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ath79/dts/ar9344_mikrotik_routerboard-911-lite.dts b/target/linux/ath79/dts/ar9344_mikrotik_routerboard-911-lite.dts
index d77078c5a2..0315f49d07 100644
--- a/target/linux/ath79/dts/ar9344_mikrotik_routerboard-911-lite.dts
+++ b/target/linux/ath79/dts/ar9344_mikrotik_routerboard-911-lite.dts
@@ -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)>;
 	};
 };
 




More information about the lede-commits mailing list