050-v4.17-0001-ARM-dts-BCM5301X-add-missing-LEDs-for-Buffalo-WZR-90.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. From 811ae58e76da88106f6d28159d4ea7b163dfaa48 Mon Sep 17 00:00:00 2001
  2. From: INAGAKI Hiroshi <musashino.open@gmail.com>
  3. Date: Wed, 7 Mar 2018 20:33:56 +0900
  4. Subject: [PATCH] ARM: dts: BCM5301X: add missing LEDs for Buffalo WZR-900DHP
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Buffalo WZR-900DHP has 8 LEDs, but there is not LED definitions in the
  9. dts and cannot configure these LEDs.
  10. I Added missing LED definitions for WZR-900DHP.
  11. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
  12. Reviewed-by: Rafał Miłecki <rafal@milecki.pl>
  13. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  14. ---
  15. arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 68 +++++++++++++++++++++++
  16. 1 file changed, 68 insertions(+)
  17. --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
  18. +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
  19. @@ -35,6 +35,74 @@
  20. 0x88000000 0x08000000>;
  21. };
  22. + spi {
  23. + compatible = "spi-gpio";
  24. + num-chipselects = <1>;
  25. + gpio-sck = <&chipcommon 7 0>;
  26. + gpio-mosi = <&chipcommon 4 0>;
  27. + cs-gpios = <&chipcommon 6 0>;
  28. + #address-cells = <1>;
  29. + #size-cells = <0>;
  30. +
  31. + hc595: gpio_spi@0 {
  32. + compatible = "fairchild,74hc595";
  33. + reg = <0>;
  34. + registers-number = <1>;
  35. + spi-max-frequency = <100000>;
  36. +
  37. + gpio-controller;
  38. + #gpio-cells = <2>;
  39. +
  40. + };
  41. + };
  42. +
  43. + leds {
  44. + compatible = "gpio-leds";
  45. +
  46. + usb {
  47. + label = "bcm53xx:green:usb";
  48. + gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
  49. + };
  50. +
  51. + power0 {
  52. + label = "bcm53xx:green:power";
  53. + gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
  54. + linux,default-trigger = "default-on";
  55. + };
  56. +
  57. + power1 {
  58. + label = "bcm53xx:red:power";
  59. + gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
  60. + };
  61. +
  62. + router0 {
  63. + label = "bcm53xx:green:router";
  64. + gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
  65. + linux,default-trigger = "default-on";
  66. + };
  67. +
  68. + router1 {
  69. + label = "bcm53xx:amber:router";
  70. + gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
  71. + };
  72. +
  73. + wan {
  74. + label = "bcm53xx:green:wan";
  75. + gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
  76. + linux,default-trigger = "default-on";
  77. + };
  78. +
  79. + wireless0 {
  80. + label = "bcm53xx:green:wireless";
  81. + gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
  82. + };
  83. +
  84. + wireless1 {
  85. + label = "bcm53xx:amber:wireless";
  86. + gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
  87. + };
  88. + };
  89. +
  90. gpio-keys {
  91. compatible = "gpio-keys";
  92. #address-cells = <1>;