qcom-ipq8064-r7500v2.dts 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. #include "qcom-ipq8064-v2.0-smb208.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. model = "Netgear Nighthawk X4 R7500v2";
  5. compatible = "netgear,r7500v2", "qcom,ipq8064";
  6. memory@0 {
  7. reg = <0x42000000 0x1e000000>;
  8. device_type = "memory";
  9. };
  10. reserved-memory {
  11. rsvd@5fe00000 {
  12. reg = <0x5fe00000 0x200000>;
  13. reusable;
  14. };
  15. };
  16. aliases {
  17. mdio-gpio0 = &mdio0;
  18. led-boot = &power;
  19. led-failsafe = &power;
  20. led-running = &power;
  21. led-upgrade = &power;
  22. };
  23. chosen {
  24. bootargs = "rootfstype=squashfs noinitrd";
  25. };
  26. keys {
  27. compatible = "gpio-keys";
  28. pinctrl-0 = <&button_pins>;
  29. pinctrl-names = "default";
  30. wifi {
  31. label = "wifi";
  32. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  33. linux,code = <KEY_RFKILL>;
  34. debounce-interval = <60>;
  35. wakeup-source;
  36. };
  37. reset {
  38. label = "reset";
  39. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  40. linux,code = <KEY_RESTART>;
  41. debounce-interval = <60>;
  42. wakeup-source;
  43. };
  44. wps {
  45. label = "wps";
  46. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  47. linux,code = <KEY_WPS_BUTTON>;
  48. debounce-interval = <60>;
  49. wakeup-source;
  50. };
  51. };
  52. leds {
  53. compatible = "gpio-leds";
  54. pinctrl-0 = <&led_pins>;
  55. pinctrl-names = "default";
  56. usb1 {
  57. label = "amber:usb1";
  58. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  59. };
  60. usb3 {
  61. label = "amber:usb3";
  62. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  63. };
  64. status {
  65. label = "amber:status";
  66. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  67. };
  68. internet {
  69. label = "white:internet";
  70. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  71. };
  72. wan {
  73. label = "white:wan";
  74. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  75. };
  76. wps {
  77. label = "white:wps";
  78. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  79. };
  80. esata {
  81. label = "white:esata";
  82. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  83. };
  84. power: power {
  85. label = "white:power";
  86. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  87. default-state = "keep";
  88. };
  89. wifi {
  90. label = "white:wifi";
  91. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
  92. };
  93. };
  94. };
  95. &adm_dma {
  96. status = "okay";
  97. };
  98. &qcom_pinmux {
  99. button_pins: button_pins {
  100. mux {
  101. pins = "gpio6", "gpio54", "gpio65";
  102. function = "gpio";
  103. drive-strength = <2>;
  104. bias-pull-up;
  105. };
  106. };
  107. led_pins: led_pins {
  108. mux {
  109. pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
  110. "gpio24","gpio26", "gpio53", "gpio64";
  111. function = "gpio";
  112. drive-strength = <2>;
  113. bias-pull-up;
  114. };
  115. };
  116. usb0_pwr_en_pins: usb0_pwr_en_pins {
  117. mux {
  118. pins = "gpio15";
  119. function = "gpio";
  120. drive-strength = <12>;
  121. bias-pull-down;
  122. output-high;
  123. };
  124. };
  125. usb1_pwr_en_pins: usb1_pwr_en_pins {
  126. mux {
  127. pins = "gpio16", "gpio68";
  128. function = "gpio";
  129. drive-strength = <12>;
  130. bias-pull-down;
  131. output-high;
  132. };
  133. };
  134. };
  135. &sata_phy {
  136. status = "okay";
  137. };
  138. &sata {
  139. status = "okay";
  140. };
  141. &usb3_0 {
  142. status = "okay";
  143. pinctrl-0 = <&usb0_pwr_en_pins>;
  144. pinctrl-names = "default";
  145. };
  146. &usb3_1 {
  147. status = "okay";
  148. pinctrl-0 = <&usb1_pwr_en_pins>;
  149. pinctrl-names = "default";
  150. };
  151. &pcie0 {
  152. status = "okay";
  153. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
  154. pinctrl-0 = <&pcie0_pins>;
  155. pinctrl-names = "default";
  156. bridge@0,0 {
  157. reg = <0x00000000 0 0 0 0>;
  158. #address-cells = <3>;
  159. #size-cells = <2>;
  160. ranges;
  161. wifi@1,0 {
  162. compatible = "pci168c,0040";
  163. reg = <0x00010000 0 0 0 0>;
  164. nvmem-cells = <&macaddr_art_6>, <&precal_art_1000>;
  165. nvmem-cell-names = "mac-address", "pre-calibration";
  166. mac-address-increment = <(1)>;
  167. };
  168. };
  169. };
  170. &pcie1 {
  171. status = "okay";
  172. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
  173. pinctrl-0 = <&pcie1_pins>;
  174. pinctrl-names = "default";
  175. max-link-speed = <1>;
  176. bridge@0,0 {
  177. reg = <0x00000000 0 0 0 0>;
  178. #address-cells = <3>;
  179. #size-cells = <2>;
  180. ranges;
  181. wifi@1,0 {
  182. compatible = "pci168c,0040";
  183. reg = <0x00010000 0 0 0 0>;
  184. nvmem-cells = <&macaddr_art_6>, <&precal_art_5000>;
  185. nvmem-cell-names = "mac-address", "pre-calibration";
  186. mac-address-increment = <(2)>;
  187. };
  188. };
  189. };
  190. &nand {
  191. status = "okay";
  192. nand@0 {
  193. reg = <0>;
  194. compatible = "qcom,nandcs";
  195. nand-ecc-strength = <4>;
  196. nand-bus-width = <8>;
  197. nand-ecc-step-size = <512>;
  198. nand-is-boot-medium;
  199. qcom,boot-partitions = <0x0 0x1180000>;
  200. partitions {
  201. compatible = "fixed-partitions";
  202. #address-cells = <1>;
  203. #size-cells = <1>;
  204. qcadata@0 {
  205. label = "qcadata";
  206. reg = <0x0000000 0x0c80000>;
  207. read-only;
  208. };
  209. APPSBL@c80000 {
  210. label = "APPSBL";
  211. reg = <0x0c80000 0x0500000>;
  212. read-only;
  213. };
  214. APPSBLENV@1180000 {
  215. label = "APPSBLENV";
  216. reg = <0x1180000 0x0080000>;
  217. read-only;
  218. };
  219. art@1200000 {
  220. label = "art";
  221. reg = <0x1200000 0x0140000>;
  222. read-only;
  223. compatible = "nvmem-cells";
  224. #address-cells = <1>;
  225. #size-cells = <1>;
  226. macaddr_art_0: macaddr@0 {
  227. reg = <0x0 0x6>;
  228. };
  229. macaddr_art_6: macaddr@6 {
  230. reg = <0x6 0x6>;
  231. };
  232. precal_art_1000: precal@1000 {
  233. reg = <0x1000 0x2f20>;
  234. };
  235. precal_art_5000: precal@5000 {
  236. reg = <0x5000 0x2f20>;
  237. };
  238. };
  239. artbak: art@1340000 {
  240. label = "artbak";
  241. reg = <0x1340000 0x0140000>;
  242. read-only;
  243. };
  244. kernel@1480000 {
  245. label = "kernel";
  246. reg = <0x1480000 0x0400000>;
  247. };
  248. ubi@1880000 {
  249. label = "ubi";
  250. reg = <0x1880000 0x6080000>;
  251. };
  252. reserve@7900000 {
  253. label = "reserve";
  254. reg = <0x7900000 0x0700000>;
  255. read-only;
  256. };
  257. };
  258. };
  259. };
  260. &mdio0 {
  261. status = "okay";
  262. pinctrl-0 = <&mdio0_pins>;
  263. pinctrl-names = "default";
  264. phy0: ethernet-phy@0 {
  265. reg = <0>;
  266. qca,ar8327-initvals = <
  267. 0x00004 0x7600000 /* PAD0_MODE */
  268. 0x00008 0x1000000 /* PAD5_MODE */
  269. 0x0000c 0x80 /* PAD6_MODE */
  270. 0x000e4 0xaa545 /* MAC_POWER_SEL */
  271. 0x000e0 0xc74164de /* SGMII_CTRL */
  272. 0x0007c 0x4e /* PORT0_STATUS */
  273. 0x00094 0x4e /* PORT6_STATUS */
  274. >;
  275. };
  276. phy4: ethernet-phy@4 {
  277. reg = <4>;
  278. };
  279. };
  280. &gmac1 {
  281. status = "okay";
  282. phy-mode = "rgmii";
  283. qcom,id = <1>;
  284. pinctrl-0 = <&rgmii2_pins>;
  285. pinctrl-names = "default";
  286. nvmem-cells = <&macaddr_art_6>;
  287. nvmem-cell-names = "mac-address";
  288. fixed-link {
  289. speed = <1000>;
  290. full-duplex;
  291. };
  292. };
  293. &gmac2 {
  294. status = "okay";
  295. phy-mode = "sgmii";
  296. qcom,id = <2>;
  297. nvmem-cells = <&macaddr_art_0>;
  298. nvmem-cell-names = "mac-address";
  299. fixed-link {
  300. speed = <1000>;
  301. full-duplex;
  302. };
  303. };