qcom-ipq8064-r7500v2.dts 6.0 KB

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