047-0010-ARM-dts-BCM5301X-Add-missing-Netgear-R8000-LEDs-and-.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. From 4a5782a889cfbc8523d7097c3f147572ed5129a6 Mon Sep 17 00:00:00 2001
  2. From: Aditya Xavier <adityaxavier@gmail.com>
  3. Date: Sat, 28 Jan 2017 20:07:49 +0530
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add missing Netgear R8000 LEDs and Keys
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Added two WAN status LEDs and a GPIO key for brightness which were
  9. missing.
  10. Signed-off-by: Aditya Xavier <adityaxavier@gmail.com>
  11. Acked-by: Rafał Miłecki <rafal@milecki.pl>
  12. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  13. ---
  14. arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 22 ++++++++++++++++++++--
  15. 1 file changed, 20 insertions(+), 2 deletions(-)
  16. --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
  17. +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
  18. @@ -38,18 +38,30 @@
  19. leds {
  20. compatible = "gpio-leds";
  21. - power0 {
  22. + power-white {
  23. label = "bcm53xx:white:power";
  24. gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  25. linux,default-trigger = "default-on";
  26. };
  27. - power1 {
  28. + power-amber {
  29. label = "bcm53xx:amber:power";
  30. gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  31. linux,default-trigger = "default-off";
  32. };
  33. + wan-white {
  34. + label = "bcm53xx:white:wan";
  35. + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  36. + linux,default-trigger = "default-on";
  37. + };
  38. +
  39. + wan-amber {
  40. + label = "bcm53xx:amber:wan";
  41. + gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  42. + linux,default-trigger = "default-off";
  43. + };
  44. +
  45. 5ghz-1 {
  46. label = "bcm53xx:white:5ghz-1";
  47. gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
  48. @@ -115,6 +127,12 @@
  49. linux,code = <KEY_RESTART>;
  50. gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
  51. };
  52. +
  53. + brightness {
  54. + label = "Backlight";
  55. + linux,code = <KEY_BRIGHTNESS_ZERO>;
  56. + gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
  57. + };
  58. };
  59. };