430-arm64-dts-allwinner-a64-olinuxino-add-status-LED-ali.patch 890 B

1234567891011121314151617181920212223242526272829303132
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
  3. Date: Thu, 26 Mar 2020 10:09:19 +0100
  4. Subject: [PATCH] arm64: dts: allwinner: a64: olinuxino: add status LED aliases
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Signed-off-by: Petr Štetiar <ynezz@true.cz>
  9. --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
  10. +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
  11. @@ -15,6 +15,10 @@
  12. aliases {
  13. ethernet0 = &emac;
  14. serial0 = &uart0;
  15. + led-boot = &led_user;
  16. + led-failsafe = &led_user;
  17. + led-running = &led_user;
  18. + led-upgrade = &led_user;
  19. };
  20. chosen {
  21. @@ -35,7 +39,7 @@
  22. leds {
  23. compatible = "gpio-leds";
  24. - led-0 {
  25. + led_user: led-0 {
  26. label = "a64-olinuxino:red:user";
  27. gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
  28. };