sunxi: copy config and patches from 5.10 to 5.15
[openwrt/staging/dedeckeh.git] / target / linux / sunxi / patches-5.15 / 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 @@ -22,6 +22,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 @@ -31,7 +36,7 @@
28 leds {
29 compatible = "gpio-leds";
30
31 - sys {
32 + led_sys: sys {
33 label = "nanopi:red:sys";
34 gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;
35 linux,default-trigger = "heartbeat";