From 79b83d0eac040cd4dbb1f1e9ceffc08477cb7c46 Mon Sep 17 00:00:00 2001 From: 5kft <5kft@users.noreply.github.com> Date: Sat, 20 Oct 2018 17:35:13 +0000 Subject: [PATCH] cleaned up Orange Pi Zero Plus2 LED configuration --- ...rd-h5-orangepi-zero-plus2-onboard-led.patch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/patch/kernel/sunxi-dev/board-h5-orangepi-zero-plus2-onboard-led.patch b/patch/kernel/sunxi-dev/board-h5-orangepi-zero-plus2-onboard-led.patch index 856a3b515..2b81012a6 100644 --- a/patch/kernel/sunxi-dev/board-h5-orangepi-zero-plus2-onboard-led.patch +++ b/patch/kernel/sunxi-dev/board-h5-orangepi-zero-plus2-onboard-led.patch @@ -1,5 +1,5 @@ diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts -index 53c8c116..0a531e55 100644 +index 53c8c116..50ad2e4f 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts @@ -82,6 +82,22 @@ @@ -9,19 +9,19 @@ index 53c8c116..0a531e55 100644 + + leds { + compatible = "gpio-leds"; ++ + pwr { + label = "orangepi:green:pwr"; + gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */ -+ default-state = "on"; -+ }; -+ status { -+ label = "orangepi:red:status"; -+ linux,default-trigger = "mmc0"; -+ gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */ -+ default-state = "on"; -+ }; ++ linux,default-trigger = "default-on"; + }; + ++ status { ++ label = "orangepi:red:status"; ++ gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */ ++ linux,default-trigger = "heartbeat"; ++ }; ++ }; }; &de {