045-ARM-BCM5301X-Add-LEDs-for-Netgear-R6250-V1.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. From b7e4d148906685882a081e7e50692313c5a8724e Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  3. Date: Wed, 1 Oct 2014 09:23:09 +0200
  4. Subject: [PATCH 2/2] ARM: BCM5301X: Add LEDs for Netgear R6250 V1
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  9. ---
  10. arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 34 +++++++++++++++++++++++++++++
  11. 1 file changed, 34 insertions(+)
  12. --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  13. +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  14. @@ -32,4 +32,38 @@
  15. status = "okay";
  16. };
  17. };
  18. +
  19. + leds {
  20. + compatible = "gpio-leds";
  21. +
  22. + logo {
  23. + label = "bcm53xx:white:logo";
  24. + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
  25. + linux,default-trigger = "default-on";
  26. + };
  27. +
  28. + power0 {
  29. + label = "bcm53xx:green:power";
  30. + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  31. + linux,default-trigger = "default-off";
  32. + };
  33. +
  34. + power1 {
  35. + label = "bcm53xx:amber:power";
  36. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  37. + linux,default-trigger = "default-on";
  38. + };
  39. +
  40. + usb {
  41. + label = "bcm53xx:blue:usb";
  42. + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  43. + linux,default-trigger = "default-off";
  44. + };
  45. +
  46. + wireless {
  47. + label = "bcm53xx:blue:wireless";
  48. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  49. + linux,default-trigger = "default-off";
  50. + };
  51. + };
  52. };