sunxi: copy patches from 5.15 to 6.1
[openwrt/openwrt.git] / target / linux / sunxi / patches-6.1 / 431-arm64-dts-allwinner-nanopi-r1s-h5-add-status-LED.patch
1 From 1845163a052efac124f00656eb72f38947630a42 Mon Sep 17 00:00:00 2001
2 From: Chukun Pan <amadeus@jmu.edu.cn>
3 Date: Sun, 10 Oct 2021 21:50:18 +0800
4 Subject: [PATCH] arm64: dts: allwinner: NanoPi R1S H5: add status LED aliases
5
6 Use the SYS LED on the casing for showing system status.
7
8 Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
9 ---
10 arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | 7 ++++++-
11 1 file changed, 6 insertions(+), 1 deletion(-)
12
13 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts
14 +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts
15 @@ -23,6 +23,11 @@
16 ethernet0 = &emac;
17 ethernet1 = &rtl8189etv;
18 serial0 = &uart0;
19 +
20 + led-boot = &led_sys;
21 + led-failsafe = &led_sys;
22 + led-running = &led_sys;
23 + led-upgrade = &led_sys;
24 };
25
26 chosen {
27 @@ -38,7 +43,7 @@
28 gpios = <&pio 0 9 GPIO_ACTIVE_HIGH>;
29 };
30
31 - led-1 {
32 + led_sys: led-1 {
33 function = LED_FUNCTION_STATUS;
34 color = <LED_COLOR_ID_RED>;
35 gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;