sunxi: orangepi-3: use real status led to show status
This commit is contained in:
parent
659cbb7743
commit
b5a37a30b9
@ -3,7 +3,7 @@ From: Tianling Shen <cnsztl@immortalwrt.org>
|
||||
Date: Sat, 19 Jun 2021 12:09:34 +0800
|
||||
Subject: [PATCH] arm64: dts: allwinner: h6: orangepi-3: add status LED aliases
|
||||
|
||||
Use the SYS LED on the casing for showing system status.
|
||||
Use the status led on the casing for showing system status.
|
||||
|
||||
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
|
||||
---
|
||||
@ -12,23 +12,24 @@ Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
|
||||
|
||||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
|
||||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
|
||||
@@ -18,6 +18,10 @@
|
||||
@@ -18,6 +18,11 @@
|
||||
serial0 = &uart0;
|
||||
serial1 = &uart1;
|
||||
ethernet0 = &emac;
|
||||
+ led-boot = &sys_led;
|
||||
+ led-failsafe = &sys_led;
|
||||
+ led-running = &sys_led;
|
||||
+ led-upgrade = &sys_led;
|
||||
+
|
||||
+ led-boot = &led_status;
|
||||
+ led-failsafe = &led_status;
|
||||
+ led-running = &led_status;
|
||||
+ led-upgrade = &led_status;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@@ -39,7 +43,7 @@
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
- power {
|
||||
+ sys_led: power {
|
||||
label = "orangepi:red:power";
|
||||
gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
|
||||
@@ -45,7 +50,7 @@
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
- status {
|
||||
+ led_status: status {
|
||||
label = "orangepi:green:status";
|
||||
gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user