100-rockchip-use-system-LED-for-OpenWrt.patch 960 B

12345678910111213141516171819202122232425262728293031
  1. From 6731d2c9039fbe1ecf21915eab3acee0a999508a Mon Sep 17 00:00:00 2001
  2. From: David Bauer <mail@david-bauer.net>
  3. Date: Fri, 10 Jul 2020 21:38:20 +0200
  4. Subject: [PATCH] rockchip: use system LED for OpenWrt
  5. Use the SYS LED on the casing for showing system status.
  6. This patch is kept seperate from the NanoPi R2S support patch, as i plan
  7. on submitting the device support upstream.
  8. Signed-off-by: David Bauer <mail@david-bauer.net>
  9. ---
  10. arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts | 9 ++++++++-
  11. 1 file changed, 8 insertions(+), 1 deletion(-)
  12. --- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts
  13. +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts
  14. @@ -13,6 +13,13 @@
  15. model = "FriendlyElec NanoPi R2S";
  16. compatible = "friendlyarm,nanopi-r2s", "rockchip,rk3328";
  17. + aliases {
  18. + led-boot = &sys_led;
  19. + led-failsafe = &sys_led;
  20. + led-running = &sys_led;
  21. + led-upgrade = &sys_led;
  22. + };
  23. +
  24. chosen {
  25. stdout-path = "serial2:1500000n8";
  26. };