0055-ramips-Support-LEDs-on-D-Link-DIR-860L-B1.patch 893 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Thu, 30 Jun 2016 15:34:32 +0200
  3. Subject: ramips: Support LEDs on D-Link DIR-860L B1
  4. Adds the required gpio definitions.
  5. Signed-off-by: Johannes Wienke <languitar@semipol.de>
  6. Backport of OpenWrt r48715
  7. diff --git a/target/linux/ramips/dts/DIR-860L-B1.dts b/target/linux/ramips/dts/DIR-860L-B1.dts
  8. index 23ec114..2582b3d 100644
  9. --- a/target/linux/ramips/dts/DIR-860L-B1.dts
  10. +++ b/target/linux/ramips/dts/DIR-860L-B1.dts
  11. @@ -97,6 +97,26 @@
  12. gpio-leds {
  13. compatible = "gpio-leds";
  14. +
  15. + power {
  16. + label = "d-link:orange:power";
  17. + gpios = <&gpio0 13 1>;
  18. + };
  19. +
  20. + power2 {
  21. + label = "d-link:green:power";
  22. + gpios = <&gpio0 15 1>;
  23. + };
  24. +
  25. + net {
  26. + label = "d-link:orange:net";
  27. + gpios = <&gpio0 14 1>;
  28. + };
  29. +
  30. + net2 {
  31. + label = "d-link:green:net";
  32. + gpios = <&gpio0 16 1>;
  33. + };
  34. };
  35. gpio-keys-polled {