59 lines
1.4 KiB
Diff
59 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tianling Shen <cnsztl@gmail.com>
|
|
Date: Mon Aug 05 16:14:33 2024 +0800
|
|
Subject: [PATCH] arm64: dts: rockchip: Update LED properties for Radxa
|
|
Rock 5A
|
|
|
|
Add OpenWrt's LED aliases for showing system status.
|
|
|
|
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
|
|
---
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
|
|
@@ -16,6 +16,10 @@
|
|
ethernet0 = &gmac1;
|
|
mmc0 = &sdhci;
|
|
mmc1 = &sdmmc;
|
|
+ led-boot = &led_green;
|
|
+ led-failsafe = &led_green;
|
|
+ led-running = &led_green;
|
|
+ led-upgrade = &led_green;
|
|
};
|
|
|
|
analog-sound {
|
|
@@ -50,13 +54,19 @@
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
pinctrl-names = "default";
|
|
- pinctrl-0 = <&io_led>;
|
|
+ pinctrl-0 = <&leds>;
|
|
+
|
|
+ led_green: led-0 {
|
|
+ color = <LED_COLOR_ID_GREEN>;
|
|
+ default-state = "on";
|
|
+ function = LED_FUNCTION_POWER;
|
|
+ gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
|
|
+ };
|
|
|
|
io-led {
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
|
|
- linux,default-trigger = "heartbeat";
|
|
};
|
|
};
|
|
|
|
@@ -366,8 +376,9 @@
|
|
|
|
&pinctrl {
|
|
leds {
|
|
- io_led: io-led {
|
|
- rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
+ leds: leds {
|
|
+ rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
+ <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|