082-ARM-BCM5301X-Add-DT-for-Netgear-R7000.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  2. Date: Wed, 26 Aug 2015 16:11:38 +0200
  3. Subject: [PATCH] ARM: BCM5301X: Add DT for Netgear R7000
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=UTF-8
  6. Content-Transfer-Encoding: 8bit
  7. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  8. ---
  9. --- a/arch/arm/boot/dts/Makefile
  10. +++ b/arch/arm/boot/dts/Makefile
  11. @@ -68,6 +68,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  12. bcm47081-buffalo-wzr-900dhp.dtb \
  13. bcm4709-asus-rt-ac87u.dtb \
  14. bcm4709-buffalo-wxr-1900dhp.dtb \
  15. + bcm4709-netgear-r7000.dtb \
  16. bcm4709-netgear-r8000.dtb
  17. dtb-$(CONFIG_ARCH_BCM_63XX) += \
  18. bcm963138dvt.dtb
  19. --- /dev/null
  20. +++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
  21. @@ -0,0 +1,106 @@
  22. +/*
  23. + * Broadcom BCM470X / BCM5301X ARM platform code.
  24. + * DTS for Netgear R7000
  25. + *
  26. + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
  27. + *
  28. + * Licensed under the GNU/GPL. See COPYING for details.
  29. + */
  30. +
  31. +/dts-v1/;
  32. +
  33. +#include "bcm4708.dtsi"
  34. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  35. +
  36. +/ {
  37. + compatible = "netgear,r7000", "brcm,bcm4709", "brcm,bcm4708";
  38. + model = "Netgear R7000";
  39. +
  40. + chosen {
  41. + bootargs = "console=ttyS0,115200";
  42. + };
  43. +
  44. + memory {
  45. + reg = <0x00000000 0x08000000>;
  46. + };
  47. +
  48. + leds {
  49. + compatible = "gpio-leds";
  50. +
  51. + power-white {
  52. + label = "bcm53xx:white:power";
  53. + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  54. + linux,default-trigger = "default-on";
  55. + };
  56. +
  57. + power-amber {
  58. + label = "bcm53xx:amber:power";
  59. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  60. + linux,default-trigger = "default-off";
  61. + };
  62. +
  63. + 5ghz {
  64. + label = "bcm53xx:white:5ghz";
  65. + gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
  66. + linux,default-trigger = "default-off";
  67. + };
  68. +
  69. + 2ghz {
  70. + label = "bcm53xx:white:2ghz";
  71. + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  72. + linux,default-trigger = "default-off";
  73. + };
  74. +
  75. + wps {
  76. + label = "bcm53xx:white:wps";
  77. + gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
  78. + linux,default-trigger = "default-off";
  79. + };
  80. +
  81. + wireless {
  82. + label = "bcm53xx:white:wireless";
  83. + gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
  84. + linux,default-trigger = "default-off";
  85. + };
  86. +
  87. + usb3 {
  88. + label = "bcm53xx:white:usb3";
  89. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  90. + linux,default-trigger = "default-off";
  91. + };
  92. +
  93. + usb2 {
  94. + label = "bcm53xx:white:usb2";
  95. + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
  96. + linux,default-trigger = "default-off";
  97. + };
  98. + };
  99. +
  100. + gpio-keys {
  101. + compatible = "gpio-keys";
  102. + #address-cells = <1>;
  103. + #size-cells = <0>;
  104. +
  105. + wps {
  106. + label = "WPS";
  107. + linux,code = <KEY_WPS_BUTTON>;
  108. + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
  109. + };
  110. +
  111. + rfkill {
  112. + label = "WiFi";
  113. + linux,code = <KEY_RFKILL>;
  114. + gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
  115. + };
  116. +
  117. + restart {
  118. + label = "Reset";
  119. + linux,code = <KEY_RESTART>;
  120. + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
  121. + };
  122. + };
  123. +};
  124. +
  125. +&uart0 {
  126. + status = "okay";
  127. +};