bcm4709-netgear-r8000.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /*
  2. * Broadcom BCM470X / BCM5301X ARM platform code.
  3. * DTS for Netgear R8000
  4. *
  5. * Copyright (C) 2015 Rafał Miłecki <[email protected]>
  6. *
  7. * Permission to use, copy, modify, and/or distribute this software for any
  8. * purpose with or without fee is hereby granted, provided that the above
  9. * copyright notice and this permission notice appear in all copies.
  10. *
  11. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  12. * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  13. * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  14. * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  15. * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  16. * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /dts-v1/;
  20. #include "bcm4709.dtsi"
  21. #include "bcm5301x-nand-cs0-bch8.dtsi"
  22. / {
  23. compatible = "netgear,r8000", "brcm,bcm4709", "brcm,bcm4708";
  24. model = "Netgear R8000 (BCM4709)";
  25. chosen {
  26. bootargs = "console=ttyS0,115200";
  27. };
  28. memory@0 {
  29. device_type = "memory";
  30. reg = <0x00000000 0x08000000>,
  31. <0x88000000 0x08000000>;
  32. };
  33. leds {
  34. compatible = "gpio-leds";
  35. power-white {
  36. label = "bcm53xx:white:power";
  37. gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  38. linux,default-trigger = "default-on";
  39. };
  40. power-amber {
  41. label = "bcm53xx:amber:power";
  42. gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  43. };
  44. wan-white {
  45. label = "bcm53xx:white:wan";
  46. gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  47. linux,default-trigger = "default-on";
  48. };
  49. wan-amber {
  50. label = "bcm53xx:amber:wan";
  51. gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  52. };
  53. 5ghz-1 {
  54. label = "bcm53xx:white:5ghz-1";
  55. gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
  56. };
  57. 2ghz {
  58. label = "bcm53xx:white:2ghz";
  59. gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  60. };
  61. wireless {
  62. label = "bcm53xx:white:wireless";
  63. gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
  64. };
  65. wps {
  66. label = "bcm53xx:white:wps";
  67. gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
  68. };
  69. 5ghz-2 {
  70. label = "bcm53xx:white:5ghz-2";
  71. gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
  72. };
  73. usb3 {
  74. label = "bcm53xx:white:usb3";
  75. gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  76. };
  77. usb2 {
  78. label = "bcm53xx:white:usb2";
  79. gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
  80. };
  81. };
  82. gpio-keys {
  83. compatible = "gpio-keys";
  84. button-rfkill {
  85. label = "WiFi";
  86. linux,code = <KEY_RFKILL>;
  87. gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
  88. };
  89. button-wps {
  90. label = "WPS";
  91. linux,code = <KEY_WPS_BUTTON>;
  92. gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
  93. };
  94. button-restart {
  95. label = "Reset";
  96. linux,code = <KEY_RESTART>;
  97. gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
  98. };
  99. button-brightness {
  100. label = "Backlight";
  101. linux,code = <KEY_BRIGHTNESS_ZERO>;
  102. gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
  103. };
  104. };
  105. };
  106. &pcie0 {
  107. #address-cells = <3>;
  108. #size-cells = <2>;
  109. bridge@0,0,0 {
  110. reg = <0x0000 0 0 0 0>;
  111. #address-cells = <3>;
  112. #size-cells = <2>;
  113. wifi@0,1,0 {
  114. reg = <0x0000 0 0 0 0>;
  115. ieee80211-freq-limit = <5735000 5835000>;
  116. };
  117. };
  118. };
  119. &pcie1 {
  120. #address-cells = <3>;
  121. #size-cells = <2>;
  122. bridge@1,0,0 {
  123. reg = <0x0000 0 0 0 0>;
  124. #address-cells = <3>;
  125. #size-cells = <2>;
  126. bridge@1,1,0 {
  127. reg = <0x0000 0 0 0 0>;
  128. #address-cells = <3>;
  129. #size-cells = <2>;
  130. bridge@1,2,2 {
  131. reg = <0x1000 0 0 0 0>;
  132. #address-cells = <3>;
  133. #size-cells = <2>;
  134. wifi@1,4,0 {
  135. reg = <0x0000 0 0 0 0>;
  136. ieee80211-freq-limit = <5170000 5730000>;
  137. };
  138. };
  139. };
  140. };
  141. };
  142. &usb2 {
  143. vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  144. };
  145. &usb3 {
  146. vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  147. };
  148. &usb3_phy {
  149. status = "okay";
  150. };
  151. &srab {
  152. status = "okay";
  153. ports {
  154. port@0 {
  155. reg = <0>;
  156. label = "lan1";
  157. };
  158. port@1 {
  159. reg = <1>;
  160. label = "lan2";
  161. };
  162. port@2 {
  163. reg = <2>;
  164. label = "lan3";
  165. };
  166. port@3 {
  167. reg = <3>;
  168. label = "lan4";
  169. };
  170. port@4 {
  171. reg = <4>;
  172. label = "wan";
  173. };
  174. port@8 {
  175. reg = <8>;
  176. label = "cpu";
  177. ethernet = <&gmac2>;
  178. fixed-link {
  179. speed = <1000>;
  180. full-duplex;
  181. };
  182. };
  183. };
  184. };