044-0001-ARM-BCM5301X-Add-DT-for-Netgear-R8500.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. From b5057e498da8211ac3cc8ff5780034e5da61d077 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Tue, 23 Aug 2016 08:40:32 +0200
  4. Subject: [PATCH] ARM: BCM5301X: Add DT for Netgear R8500
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Netgear R8500 is another BCM47094 device, it just has three BCM4366
  9. wireless chipsets. It's a very standard DT with mostly GPIO devices.
  10. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  11. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  12. ---
  13. arch/arm/boot/dts/Makefile | 1 +
  14. arch/arm/boot/dts/bcm47094-netgear-r8500.dts | 104 +++++++++++++++++++++++++++
  15. 2 files changed, 105 insertions(+)
  16. create mode 100644 arch/arm/boot/dts/bcm47094-netgear-r8500.dts
  17. --- a/arch/arm/boot/dts/Makefile
  18. +++ b/arch/arm/boot/dts/Makefile
  19. @@ -77,6 +77,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  20. bcm4709-netgear-r7000.dtb \
  21. bcm4709-netgear-r8000.dtb \
  22. bcm47094-dlink-dir-885l.dtb \
  23. + bcm47094-netgear-r8500.dtb \
  24. bcm94708.dtb \
  25. bcm94709.dtb \
  26. bcm953012er.dtb \
  27. --- /dev/null
  28. +++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
  29. @@ -0,0 +1,104 @@
  30. +/*
  31. + * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
  32. + *
  33. + * Licensed under the ISC license.
  34. + */
  35. +
  36. +/dts-v1/;
  37. +
  38. +#include "bcm4708.dtsi"
  39. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  40. +
  41. +/ {
  42. + compatible = "netgear,r8500", "brcm,bcm47094", "brcm,bcm4708";
  43. + model = "Netgear R8500";
  44. +
  45. + chosen {
  46. + bootargs = "console=ttyS0,115200";
  47. + };
  48. +
  49. + memory {
  50. + reg = <0x00000000 0x08000000>;
  51. + };
  52. +
  53. + leds {
  54. + compatible = "gpio-leds";
  55. +
  56. + power0 {
  57. + label = "bcm53xx:white:power";
  58. + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  59. + linux,default-trigger = "default-on";
  60. + };
  61. +
  62. + power1 {
  63. + label = "bcm53xx:amber:power";
  64. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  65. + linux,default-trigger = "default-off";
  66. + };
  67. +
  68. + 5ghz-1 {
  69. + label = "bcm53xx:white:5ghz-1";
  70. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  71. + linux,default-trigger = "default-off";
  72. + };
  73. +
  74. + 5ghz-2 {
  75. + label = "bcm53xx:white:5ghz-2";
  76. + gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
  77. + linux,default-trigger = "default-off";
  78. + };
  79. +
  80. + 2ghz {
  81. + label = "bcm53xx:white:2ghz";
  82. + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  83. + linux,default-trigger = "default-off";
  84. + };
  85. +
  86. + usb2 {
  87. + label = "bcm53xx:white:usb2";
  88. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  89. + linux,default-trigger = "default-off";
  90. + };
  91. +
  92. + usb3 {
  93. + label = "bcm53xx:white:usb3";
  94. + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
  95. + linux,default-trigger = "default-off";
  96. + };
  97. + };
  98. +
  99. + gpio-keys {
  100. + compatible = "gpio-keys";
  101. + #address-cells = <1>;
  102. + #size-cells = <0>;
  103. +
  104. + brightness {
  105. + label = "Backlight";
  106. + linux,code = <KEY_BRIGHTNESS_ZERO>;
  107. + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
  108. + };
  109. +
  110. + restart {
  111. + label = "Reset";
  112. + linux,code = <KEY_RESTART>;
  113. + gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  114. + };
  115. +
  116. + wps {
  117. + label = "WPS";
  118. + linux,code = <KEY_WPS_BUTTON>;
  119. + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  120. + };
  121. +
  122. + rfkill {
  123. + label = "WiFi";
  124. + linux,code = <KEY_RFKILL>;
  125. + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
  126. + };
  127. + };
  128. +};
  129. +
  130. +&uart0 {
  131. + status = "okay";
  132. + clock-frequency = <125000000>;
  133. +};