qcom-ipq8064-r7500v2.dts 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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. &hs_phy_0 {
  142. status = "okay";
  143. };
  144. &ss_phy_0 {
  145. status = "okay";
  146. };
  147. &usb3_0 {
  148. status = "okay";
  149. pinctrl-0 = <&usb0_pwr_en_pins>;
  150. pinctrl-names = "default";
  151. };
  152. &hs_phy_1 {
  153. status = "okay";
  154. };
  155. &ss_phy_1 {
  156. status = "okay";
  157. };
  158. &usb3_1 {
  159. status = "okay";
  160. pinctrl-0 = <&usb1_pwr_en_pins>;
  161. pinctrl-names = "default";
  162. };
  163. &pcie0 {
  164. status = "okay";
  165. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
  166. pinctrl-0 = <&pcie0_pins>;
  167. pinctrl-names = "default";
  168. bridge@0,0 {
  169. reg = <0x00000000 0 0 0 0>;
  170. #address-cells = <3>;
  171. #size-cells = <2>;
  172. ranges;
  173. wifi@1,0 {
  174. compatible = "pci168c,0040";
  175. reg = <0x00010000 0 0 0 0>;
  176. nvmem-cells = <&macaddr_art_6>, <&precal_art_1000>;
  177. nvmem-cell-names = "mac-address", "pre-calibration";
  178. mac-address-increment = <(1)>;
  179. };
  180. };
  181. };
  182. &pcie1 {
  183. status = "okay";
  184. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
  185. pinctrl-0 = <&pcie1_pins>;
  186. pinctrl-names = "default";
  187. max-link-speed = <1>;
  188. bridge@0,0 {
  189. reg = <0x00000000 0 0 0 0>;
  190. #address-cells = <3>;
  191. #size-cells = <2>;
  192. ranges;
  193. wifi@1,0 {
  194. compatible = "pci168c,0040";
  195. reg = <0x00010000 0 0 0 0>;
  196. nvmem-cells = <&macaddr_art_6>, <&precal_art_5000>;
  197. nvmem-cell-names = "mac-address", "pre-calibration";
  198. mac-address-increment = <(2)>;
  199. };
  200. };
  201. };
  202. &nand {
  203. status = "okay";
  204. nand@0 {
  205. reg = <0>;
  206. compatible = "qcom,nandcs";
  207. nand-ecc-strength = <4>;
  208. nand-bus-width = <8>;
  209. nand-ecc-step-size = <512>;
  210. nand-is-boot-medium;
  211. qcom,boot-partitions = <0x0 0x1180000>;
  212. partitions {
  213. compatible = "fixed-partitions";
  214. #address-cells = <1>;
  215. #size-cells = <1>;
  216. qcadata@0 {
  217. label = "qcadata";
  218. reg = <0x0000000 0x0c80000>;
  219. read-only;
  220. };
  221. APPSBL@c80000 {
  222. label = "APPSBL";
  223. reg = <0x0c80000 0x0500000>;
  224. read-only;
  225. };
  226. APPSBLENV@1180000 {
  227. label = "APPSBLENV";
  228. reg = <0x1180000 0x0080000>;
  229. read-only;
  230. };
  231. art@1200000 {
  232. label = "art";
  233. reg = <0x1200000 0x0140000>;
  234. read-only;
  235. compatible = "nvmem-cells";
  236. #address-cells = <1>;
  237. #size-cells = <1>;
  238. macaddr_art_0: macaddr@0 {
  239. reg = <0x0 0x6>;
  240. };
  241. macaddr_art_6: macaddr@6 {
  242. reg = <0x6 0x6>;
  243. };
  244. precal_art_1000: precal@1000 {
  245. reg = <0x1000 0x2f20>;
  246. };
  247. precal_art_5000: precal@5000 {
  248. reg = <0x5000 0x2f20>;
  249. };
  250. };
  251. artbak: art@1340000 {
  252. label = "artbak";
  253. reg = <0x1340000 0x0140000>;
  254. read-only;
  255. };
  256. kernel@1480000 {
  257. label = "kernel";
  258. reg = <0x1480000 0x0400000>;
  259. };
  260. ubi@1880000 {
  261. label = "ubi";
  262. reg = <0x1880000 0x6080000>;
  263. };
  264. reserve@7900000 {
  265. label = "reserve";
  266. reg = <0x7900000 0x0700000>;
  267. read-only;
  268. };
  269. };
  270. };
  271. };
  272. &mdio0 {
  273. status = "okay";
  274. pinctrl-0 = <&mdio0_pins>;
  275. pinctrl-names = "default";
  276. phy0: ethernet-phy@0 {
  277. reg = <0>;
  278. qca,ar8327-initvals = <
  279. 0x00004 0x7600000 /* PAD0_MODE */
  280. 0x00008 0x1000000 /* PAD5_MODE */
  281. 0x0000c 0x80 /* PAD6_MODE */
  282. 0x000e4 0xaa545 /* MAC_POWER_SEL */
  283. 0x000e0 0xc74164de /* SGMII_CTRL */
  284. 0x0007c 0x4e /* PORT0_STATUS */
  285. 0x00094 0x4e /* PORT6_STATUS */
  286. >;
  287. };
  288. phy4: ethernet-phy@4 {
  289. reg = <4>;
  290. };
  291. };
  292. &gmac1 {
  293. status = "okay";
  294. phy-mode = "rgmii";
  295. qcom,id = <1>;
  296. pinctrl-0 = <&rgmii2_pins>;
  297. pinctrl-names = "default";
  298. nvmem-cells = <&macaddr_art_6>;
  299. nvmem-cell-names = "mac-address";
  300. fixed-link {
  301. speed = <1000>;
  302. full-duplex;
  303. };
  304. };
  305. &gmac2 {
  306. status = "okay";
  307. phy-mode = "sgmii";
  308. qcom,id = <2>;
  309. nvmem-cells = <&macaddr_art_0>;
  310. nvmem-cell-names = "mac-address";
  311. fixed-link {
  312. speed = <1000>;
  313. full-duplex;
  314. };
  315. };