2023-06-25 16:37:30 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Tianling Shen <cnsztl@gmail.com>
|
|
|
|
Date: Tue Jun 20 16:45:27 2023 +0800
|
|
|
|
Subject: [PATCH] arm64: dts: rockchip: Update LED properties for NanoPi R5
|
|
|
|
series
|
|
|
|
|
|
|
|
Add OpenWrt's LED aliases for showing system status.
|
|
|
|
|
|
|
|
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
|
|
|
|
---
|
|
|
|
|
2023-06-25 16:37:31 +00:00
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5c.dts
|
|
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5c.dts
|
2024-02-12 11:21:38 +00:00
|
|
|
@@ -40,7 +40,6 @@
|
2023-06-25 16:37:31 +00:00
|
|
|
power_led: led-power {
|
2024-02-12 11:21:38 +00:00
|
|
|
color = <LED_COLOR_ID_RED>;
|
|
|
|
function = LED_FUNCTION_POWER;
|
2023-06-25 16:37:31 +00:00
|
|
|
- linux,default-trigger = "heartbeat";
|
|
|
|
gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2023-06-25 16:37:30 +00:00
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts
|
|
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts
|
2024-02-12 11:21:38 +00:00
|
|
|
@@ -39,7 +39,6 @@
|
2023-06-25 16:37:30 +00:00
|
|
|
power_led: led-power {
|
2024-02-12 11:21:38 +00:00
|
|
|
color = <LED_COLOR_ID_RED>;
|
|
|
|
function = LED_FUNCTION_POWER;
|
2023-06-25 16:37:30 +00:00
|
|
|
- linux,default-trigger = "heartbeat";
|
|
|
|
gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi
|
|
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dtsi
|
|
|
|
@@ -18,6 +18,11 @@
|
|
|
|
aliases {
|
|
|
|
mmc0 = &sdmmc0;
|
|
|
|
mmc1 = &sdhci;
|
|
|
|
+
|
|
|
|
+ led-boot = &power_led;
|
|
|
|
+ led-failsafe = &power_led;
|
|
|
|
+ led-running = &power_led;
|
|
|
|
+ led-upgrade = &power_led;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen: chosen {
|