qcom-ipq8064-r7500v2.dts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. #include "qcom-ipq8064-v1.0.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. #address-cells = <1>;
  12. #size-cells = <1>;
  13. ranges;
  14. rsvd@41200000 {
  15. reg = <0x41200000 0x300000>;
  16. no-map;
  17. };
  18. rsvd@5fe00000 {
  19. reg = <0x5fe00000 0x200000>;
  20. reusable;
  21. };
  22. };
  23. aliases {
  24. serial0 = &uart4;
  25. mdio-gpio0 = &mdio0;
  26. };
  27. chosen {
  28. bootargs = "rootfstype=squashfs noinitrd";
  29. linux,stdout-path = "serial0:115200n8";
  30. };
  31. soc {
  32. pinmux@800000 {
  33. i2c4_pins: i2c4_pinmux {
  34. pins = "gpio12", "gpio13";
  35. function = "gsbi4";
  36. bias-disable;
  37. };
  38. nand_pins: nand_pins {
  39. mux {
  40. pins = "gpio34", "gpio35", "gpio36",
  41. "gpio37", "gpio38", "gpio39",
  42. "gpio40", "gpio41", "gpio42",
  43. "gpio43", "gpio44", "gpio45",
  44. "gpio46", "gpio47";
  45. function = "nand";
  46. drive-strength = <10>;
  47. bias-disable;
  48. };
  49. pullups {
  50. pins = "gpio39";
  51. bias-pull-up;
  52. };
  53. hold {
  54. pins = "gpio40", "gpio41", "gpio42",
  55. "gpio43", "gpio44", "gpio45",
  56. "gpio46", "gpio47";
  57. bias-bus-hold;
  58. };
  59. };
  60. mdio0_pins: mdio0_pins {
  61. mux {
  62. pins = "gpio0", "gpio1";
  63. function = "gpio";
  64. drive-strength = <8>;
  65. bias-disable;
  66. };
  67. };
  68. rgmii2_pins: rgmii2_pins {
  69. mux {
  70. pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
  71. "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
  72. function = "rgmii2";
  73. drive-strength = <8>;
  74. bias-disable;
  75. };
  76. };
  77. };
  78. gsbi@16300000 {
  79. qcom,mode = <GSBI_PROT_I2C_UART>;
  80. status = "ok";
  81. serial@16340000 {
  82. status = "ok";
  83. };
  84. /*
  85. * The i2c device on gsbi4 should not be enabled.
  86. * On ipq806x designs gsbi4 i2c is meant for exclusive
  87. * RPM usage. Turning this on in kernel manifests as
  88. * i2c failure for the RPM.
  89. */
  90. };
  91. sata-phy@1b400000 {
  92. status = "ok";
  93. };
  94. sata@29000000 {
  95. status = "ok";
  96. };
  97. phy@100f8800 { /* USB3 port 1 HS phy */
  98. status = "ok";
  99. };
  100. phy@100f8830 { /* USB3 port 1 SS phy */
  101. status = "ok";
  102. };
  103. phy@110f8800 { /* USB3 port 0 HS phy */
  104. status = "ok";
  105. };
  106. phy@110f8830 { /* USB3 port 0 SS phy */
  107. status = "ok";
  108. };
  109. usb30@0 {
  110. status = "ok";
  111. };
  112. usb30@1 {
  113. status = "ok";
  114. };
  115. pcie0: pci@1b500000 {
  116. status = "ok";
  117. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
  118. pinctrl-0 = <&pcie0_pins>;
  119. pinctrl-names = "default";
  120. };
  121. pcie1: pci@1b700000 {
  122. status = "ok";
  123. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
  124. pinctrl-0 = <&pcie1_pins>;
  125. pinctrl-names = "default";
  126. };
  127. nand@1ac00000 {
  128. status = "ok";
  129. pinctrl-0 = <&nand_pins>;
  130. pinctrl-names = "default";
  131. nand-ecc-strength = <4>;
  132. nand-bus-width = <8>;
  133. #address-cells = <1>;
  134. #size-cells = <1>;
  135. qcadata@0 {
  136. label = "qcadata";
  137. reg = <0x0000000 0x0c80000>;
  138. read-only;
  139. };
  140. APPSBL@c80000 {
  141. label = "APPSBL";
  142. reg = <0x0c80000 0x0500000>;
  143. read-only;
  144. };
  145. APPSBLENV@1180000 {
  146. label = "APPSBLENV";
  147. reg = <0x1180000 0x0080000>;
  148. read-only;
  149. };
  150. art: art@1200000 {
  151. label = "art";
  152. reg = <0x1200000 0x0140000>;
  153. read-only;
  154. };
  155. artbak: art@1340000 {
  156. label = "artbak";
  157. reg = <0x1340000 0x0140000>;
  158. read-only;
  159. };
  160. kernel@1480000 {
  161. label = "kernel";
  162. reg = <0x1480000 0x0200000>;
  163. };
  164. ubi@1680000 {
  165. label = "ubi";
  166. reg = <0x1680000 0x1E00000>;
  167. };
  168. netgear@3480000 {
  169. label = "netgear";
  170. reg = <0x3480000 0x4480000>;
  171. read-only;
  172. };
  173. reserve@7900000 {
  174. label = "reserve";
  175. reg = <0x7900000 0x0700000>;
  176. read-only;
  177. };
  178. firmware@1480000 {
  179. label = "firmware";
  180. reg = <0x1480000 0x2000000>;
  181. };
  182. };
  183. mdio0: mdio {
  184. compatible = "virtual,mdio-gpio";
  185. #address-cells = <1>;
  186. #size-cells = <0>;
  187. gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
  188. pinctrl-0 = <&mdio0_pins>;
  189. pinctrl-names = "default";
  190. phy0: ethernet-phy@0 {
  191. device_type = "ethernet-phy";
  192. reg = <0>;
  193. qca,ar8327-initvals = <
  194. 0x00004 0x7600000 /* PAD0_MODE */
  195. 0x00008 0x1000000 /* PAD5_MODE */
  196. 0x0000c 0x80 /* PAD6_MODE */
  197. 0x000e4 0xaa545 /* MAC_POWER_SEL */
  198. 0x000e0 0xc74164de /* SGMII_CTRL */
  199. 0x0007c 0x4e /* PORT0_STATUS */
  200. 0x00094 0x4e /* PORT6_STATUS */
  201. >;
  202. };
  203. phy4: ethernet-phy@4 {
  204. device_type = "ethernet-phy";
  205. reg = <4>;
  206. };
  207. };
  208. gmac1: ethernet@37200000 {
  209. status = "ok";
  210. phy-mode = "rgmii";
  211. qcom,id = <1>;
  212. pinctrl-0 = <&rgmii2_pins>;
  213. pinctrl-names = "default";
  214. mtd-mac-address = <&art 6>;
  215. fixed-link {
  216. speed = <1000>;
  217. full-duplex;
  218. };
  219. };
  220. gmac2: ethernet@37400000 {
  221. status = "ok";
  222. phy-mode = "sgmii";
  223. qcom,id = <2>;
  224. mtd-mac-address = <&art 0>;
  225. fixed-link {
  226. speed = <1000>;
  227. full-duplex;
  228. };
  229. };
  230. };
  231. gpio-keys {
  232. compatible = "gpio-keys";
  233. wifi {
  234. label = "wifi";
  235. gpios = <&qcom_pinmux 6 1>;
  236. linux,code = <KEY_WLAN>;
  237. };
  238. reset {
  239. label = "reset";
  240. gpios = <&qcom_pinmux 54 1>;
  241. linux,code = <KEY_RESTART>;
  242. };
  243. wps {
  244. label = "wps";
  245. gpios = <&qcom_pinmux 65 1>;
  246. linux,code = <KEY_WPS_BUTTON>;
  247. };
  248. };
  249. gpio-leds {
  250. compatible = "gpio-leds";
  251. usb1 {
  252. label = "r7500v2:amber:usb1";
  253. gpios = <&qcom_pinmux 7 0>;
  254. };
  255. usb3 {
  256. label = "r7500v2:amber:usb3";
  257. gpios = <&qcom_pinmux 8 0>;
  258. };
  259. status {
  260. label = "r7500v2:amber:status";
  261. gpios = <&qcom_pinmux 9 0>;
  262. };
  263. internet {
  264. label = "r7500v2:white:internet";
  265. gpios = <&qcom_pinmux 22 0>;
  266. };
  267. wan {
  268. label = "r7500v2:white:wan";
  269. gpios = <&qcom_pinmux 23 0>;
  270. };
  271. wps {
  272. label = "r7500v2:white:wps";
  273. gpios = <&qcom_pinmux 24 0>;
  274. };
  275. esata {
  276. label = "r7500v2:white:esata";
  277. gpios = <&qcom_pinmux 26 0>;
  278. };
  279. power {
  280. label = "r7500v2:white:power";
  281. gpios = <&qcom_pinmux 53 0>;
  282. default-state = "on";
  283. };
  284. rfkill {
  285. label = "r7500v2:white:rfkill";
  286. gpios = <&qcom_pinmux 64 0>;
  287. };
  288. };
  289. };
  290. &adm_dma {
  291. status = "ok";
  292. };