From: Lech Perczak Date: Tue, 7 Mar 2023 00:14:05 +0000 (+0100) Subject: ath79: fix user LED glow on Mikrotik 911 Lite boards X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a7a3de5edb142c7cefdb6e810cc07a6222f7541d;p=openwrt%2Fstaging%2Frmilecki.git 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 --- 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 d77078c5a22..0315f49d074 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)>; }; };