diff --git a/patch/kernel/sunxi-dev/board-orangepi-zero-plus2-onboard-led-support.patch b/patch/kernel/sunxi-dev/board-orangepi-zero-plus2-onboard-led-support.patch new file mode 100644 index 0000000000..856a3b5155 --- /dev/null +++ b/patch/kernel/sunxi-dev/board-orangepi-zero-plus2-onboard-led-support.patch @@ -0,0 +1,27 @@ +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 +--- 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 @@ + reset-gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */ + post-power-on-delay-ms = <200>; + }; ++ ++ 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"; ++ }; ++ }; ++ + }; + + &de {