summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic B <linux@vicb.net>2026-07-19 20:49:14 +0200
committerHeiko Stuebner <heiko@sntech.de>2026-07-24 21:30:31 +0200
commitf4fb08d6d735ddd64ae507e0b32679df0135cd8e (patch)
tree3421c8a960de1d5a7331a8a9a45630b21a849df0
parent7f1f09ed517de6b98fbd64393a3efc8b5055c2cc (diff)
downloadlinux-next-f4fb08d6d735ddd64ae507e0b32679df0135cd8e.tar.gz
linux-next-f4fb08d6d735ddd64ae507e0b32679df0135cd8e.zip
arm64: dts: rockchip: fix label of sys_led for nanopi-r4s
This commit corrects the system LED configuration for the NanoPi R4S by replacing the deprecated label property with color and function. This changes the resulting label of mislabeled sys_led from red:power to green:status, while the labels of the other two leds stay intact (green:lan for lan_led and green:wan for wan_led). Signed-off-by: Vic B <linux@vicb.net> Link: https://patch.msgid.link/al0cKhqvPbBO_5q8@vicb.net Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
index 4274d1b6e80a..4ad012a9bdc8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
@@ -14,6 +14,7 @@
/dts-v1/;
+#include <dt-bindings/leds/common.h>
#include "rk3399-nanopi4.dtsi"
/ {
@@ -25,19 +26,22 @@
/delete-node/ led-0;
lan_led: led-lan {
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_LAN;
gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
- label = "green:lan";
};
sys_led: led-sys {
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_STATUS;
gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
- label = "red:power";
default-state = "on";
};
wan_led: led-wan {
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WAN;
gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
- label = "green:wan";
};
};