[openwrt/openwrt] rockchip: add system-LED aliases specific to OpenWrt

LEDE Commits lede-commits at lists.infradead.org
Fri Sep 9 16:56:40 PDT 2022


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/1588069612f5db0720cbb942a6f8787878c223c3

commit 1588069612f5db0720cbb942a6f8787878c223c3
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Fri Sep 9 23:35:49 2022 +0200

    rockchip: add system-LED aliases specific to OpenWrt
    
    Add the aliases sections required to detect LEDs specific to OpenWrt
    boot / update indication for the NanoPi R4S.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
---
 .../rockchip/patches-5.10/106-r4s-openwrt-leds.patch     | 16 ++++++++++++++++
 .../rockchip/patches-5.15/106-r4s-openwrt-leds.patch     | 16 ++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/target/linux/rockchip/patches-5.10/106-r4s-openwrt-leds.patch b/target/linux/rockchip/patches-5.10/106-r4s-openwrt-leds.patch
new file mode 100644
index 0000000000..d7579d61e9
--- /dev/null
+++ b/target/linux/rockchip/patches-5.10/106-r4s-openwrt-leds.patch
@@ -0,0 +1,16 @@
+--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
++++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
+@@ -19,6 +19,13 @@
+ 	model = "FriendlyElec NanoPi R4S";
+ 	compatible = "friendlyarm,nanopi-r4s", "rockchip,rk3399";
+ 
++	aliases {
++		led-boot = &sys_led;
++		led-failsafe = &sys_led;
++		led-running = &sys_led;
++		led-upgrade = &sys_led;
++	};
++
+ 	/delete-node/ display-subsystem;
+ 
+ 	gpio-leds {
diff --git a/target/linux/rockchip/patches-5.15/106-r4s-openwrt-leds.patch b/target/linux/rockchip/patches-5.15/106-r4s-openwrt-leds.patch
new file mode 100644
index 0000000000..d7579d61e9
--- /dev/null
+++ b/target/linux/rockchip/patches-5.15/106-r4s-openwrt-leds.patch
@@ -0,0 +1,16 @@
+--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
++++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
+@@ -19,6 +19,13 @@
+ 	model = "FriendlyElec NanoPi R4S";
+ 	compatible = "friendlyarm,nanopi-r4s", "rockchip,rk3399";
+ 
++	aliases {
++		led-boot = &sys_led;
++		led-failsafe = &sys_led;
++		led-running = &sys_led;
++		led-upgrade = &sys_led;
++	};
++
+ 	/delete-node/ display-subsystem;
+ 
+ 	gpio-leds {




More information about the lede-commits mailing list