2020-04-11 17:55:46

by Vincent Stehlé

[permalink] [raw]
Subject: [PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: Fix led polarity

The PWR-LED on the bananapi m2 zero board is on when gpio PL10 is low.
This has been verified on a board and in the schematics [1].

[1]: http://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO#Documents

Fixes: 8b8061fcbfae ("ARM: dts: sun8i: h2+: add support for Banana Pi M2 Zero board")
Signed-off-by: Vincent Stehlé <[email protected]>
Cc: Icenowy Zheng <[email protected]>
Cc: Maxime Ripard <[email protected]>
---
arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
index d277d043031b2..4c6704e4c57ec 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
@@ -31,7 +31,7 @@ leds {

pwr_led {
label = "bananapi-m2-zero:red:pwr";
- gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
+ gpios = <&r_pio 0 10 GPIO_ACTIVE_LOW>; /* PL10 */
default-state = "on";
};
};
--
2.25.1


2020-04-14 14:50:49

by Maxime Ripard

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: Fix led polarity

On Sat, Apr 11, 2020 at 07:48:43PM +0200, Vincent Stehl? wrote:
> The PWR-LED on the bananapi m2 zero board is on when gpio PL10 is low.
> This has been verified on a board and in the schematics [1].
>
> [1]: http://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO#Documents
>
> Fixes: 8b8061fcbfae ("ARM: dts: sun8i: h2+: add support for Banana Pi M2 Zero board")
> Signed-off-by: Vincent Stehl? <[email protected]>
> Cc: Icenowy Zheng <[email protected]>
> Cc: Maxime Ripard <[email protected]>

Applied, thanks

Maxime


Attachments:
(No filename) (536.00 B)
signature.asc (235.00 B)
Download all attachments