[openwrt/openwrt] rockchip: show boot stages on nanopi R6 system LED
LEDE Commits
lede-commits at lists.infradead.org
Sat Mar 15 02:40:17 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/de9ad11dac094b6074c9b23341acbc28806404ae
commit de9ad11dac094b6074c9b23341acbc28806404ae
Author: Michel Lespinasse <michel at lespinasse.org>
AuthorDate: Thu Jan 16 00:50:01 2025 -0800
rockchip: show boot stages on nanopi R6 system LED
Set up openwrt to show boot progress on the nanopi R6S or R6C system LED.
The LED blinking states indicate the boot stage. The LED is defined as
a power LED, but can still be set to heartbeat in /etc/config/system
after the system is done booting.
Signed-off-by: Michel Lespinasse <michel at lespinasse.org>
Link: https://github.com/openwrt/openwrt/pull/17638
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../401-1-nanopi-r6-show-boot-status-on-system-led | 33 ++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/target/linux/rockchip/patches-6.6/401-1-nanopi-r6-show-boot-status-on-system-led b/target/linux/rockchip/patches-6.6/401-1-nanopi-r6-show-boot-status-on-system-led
new file mode 100644
index 0000000000..f891cf5f16
--- /dev/null
+++ b/target/linux/rockchip/patches-6.6/401-1-nanopi-r6-show-boot-status-on-system-led
@@ -0,0 +1,33 @@
+Nanopi R6: show boot progress on the system LED
+
+Set up openwrt to show boot progress on the nanopi R6S or R6C system LED.
+
+The LED blinking states indicate the boot stage. The led is defined as
+a power LED, but can still be set to heartbeat in /etc/config/system
+after the system is done booting.
+
+--- a/arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6.dtsi
++++ b/arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6.dtsi
+@@ -16,6 +16,10 @@
+ ethernet0 = &gmac1;
+ mmc0 = &sdmmc;
+ mmc1 = &sdhci;
++ led-boot = &sys_led;
++ led-failsafe = &sys_led;
++ led-running = &sys_led;
++ led-upgrade = &sys_led;
+ };
+
+ chosen {
+@@ -54,9 +58,9 @@
+
+ sys_led: led-0 {
+ color = <LED_COLOR_ID_RED>;
+- function = LED_FUNCTION_HEARTBEAT;
++ function = LED_FUNCTION_POWER;
+ gpios = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
+- linux,default-trigger = "heartbeat";
++ default-state = "on";
+ pinctrl-names = "default";
+ pinctrl-0 = <&sys_led_pin>;
+ };
More information about the lede-commits
mailing list