qcom-ipq8064-r7500.dts 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. #include "qcom-ipq8064-v1.0.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. model = "Netgear Nighthawk X4 R7500";
  5. compatible = "netgear,r7500", "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. };
  114. pcie1: pci@1b700000 {
  115. status = "ok";
  116. };
  117. nand@1ac00000 {
  118. status = "ok";
  119. pinctrl-0 = <&nand_pins>;
  120. pinctrl-names = "default";
  121. nand-ecc-strength = <4>;
  122. nand-bus-width = <8>;
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. qcadata@0 {
  126. label = "qcadata";
  127. reg = <0x0000000 0x0c80000>;
  128. read-only;
  129. };
  130. APPSBL@c80000 {
  131. label = "APPSBL";
  132. reg = <0x0c80000 0x0500000>;
  133. read-only;
  134. };
  135. APPSBLENV@1180000 {
  136. label = "APPSBLENV";
  137. reg = <0x1180000 0x0080000>;
  138. read-only;
  139. };
  140. art: art@1200000 {
  141. label = "art";
  142. reg = <0x1200000 0x0140000>;
  143. read-only;
  144. };
  145. kernel@1340000 {
  146. label = "kernel";
  147. reg = <0x1340000 0x0200000>;
  148. };
  149. ubi@1540000 {
  150. label = "ubi";
  151. reg = <0x1540000 0x1800000>;
  152. };
  153. netgear@2d40000 {
  154. label = "netgear";
  155. reg = <0x2d40000 0x0c00000>;
  156. read-only;
  157. };
  158. reserve@3940000 {
  159. label = "reserve";
  160. reg = <0x3940000 0x46c0000>;
  161. read-only;
  162. };
  163. firmware@1340000 {
  164. label = "firmware";
  165. reg = <0x1340000 0x1a00000>;
  166. };
  167. };
  168. mdio0: mdio {
  169. compatible = "virtual,mdio-gpio";
  170. #address-cells = <1>;
  171. #size-cells = <0>;
  172. gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
  173. pinctrl-0 = <&mdio0_pins>;
  174. pinctrl-names = "default";
  175. phy0: ethernet-phy@0 {
  176. device_type = "ethernet-phy";
  177. reg = <0>;
  178. qca,ar8327-initvals = <
  179. 0x00004 0x7600000 /* PAD0_MODE */
  180. 0x00008 0x1000000 /* PAD5_MODE */
  181. 0x0000c 0x80 /* PAD6_MODE */
  182. 0x000e4 0x6a545 /* MAC_POWER_SEL */
  183. 0x000e0 0xc74164de /* SGMII_CTRL */
  184. 0x0007c 0x4e /* PORT0_STATUS */
  185. 0x00094 0x4e /* PORT6_STATUS */
  186. >;
  187. };
  188. phy4: ethernet-phy@4 {
  189. device_type = "ethernet-phy";
  190. reg = <4>;
  191. };
  192. };
  193. gmac1: ethernet@37200000 {
  194. status = "ok";
  195. phy-mode = "rgmii";
  196. qcom,id = <1>;
  197. pinctrl-0 = <&rgmii2_pins>;
  198. pinctrl-names = "default";
  199. mtd-mac-address = <&art 6>;
  200. fixed-link {
  201. speed = <1000>;
  202. full-duplex;
  203. };
  204. };
  205. gmac2: ethernet@37400000 {
  206. status = "ok";
  207. phy-mode = "sgmii";
  208. qcom,id = <2>;
  209. mtd-mac-address = <&art 0>;
  210. fixed-link {
  211. speed = <1000>;
  212. full-duplex;
  213. };
  214. };
  215. };
  216. gpio-keys {
  217. compatible = "gpio-keys";
  218. wifi {
  219. label = "wifi";
  220. gpios = <&qcom_pinmux 6 1>;
  221. linux,code = <KEY_WLAN>;
  222. };
  223. reset {
  224. label = "reset";
  225. gpios = <&qcom_pinmux 54 1>;
  226. linux,code = <KEY_RESTART>;
  227. };
  228. wps {
  229. label = "wps";
  230. gpios = <&qcom_pinmux 65 1>;
  231. linux,code = <KEY_WPS_BUTTON>;
  232. };
  233. };
  234. gpio-leds {
  235. compatible = "gpio-leds";
  236. usb1 {
  237. label = "r7500:amber:usb1";
  238. gpios = <&qcom_pinmux 7 0>;
  239. };
  240. usb3 {
  241. label = "r7500:amber:usb3";
  242. gpios = <&qcom_pinmux 8 0>;
  243. };
  244. status {
  245. label = "r7500:amber:status";
  246. gpios = <&qcom_pinmux 9 0>;
  247. };
  248. internet {
  249. label = "r7500:white:internet";
  250. gpios = <&qcom_pinmux 22 0>;
  251. };
  252. wan {
  253. label = "r7500:white:wan";
  254. gpios = <&qcom_pinmux 23 0>;
  255. };
  256. wps {
  257. label = "r7500:white:wps";
  258. gpios = <&qcom_pinmux 24 0>;
  259. };
  260. esata {
  261. label = "r7500:white:esata";
  262. gpios = <&qcom_pinmux 26 0>;
  263. };
  264. power {
  265. label = "r7500:white:power";
  266. gpios = <&qcom_pinmux 53 0>;
  267. default-state = "on";
  268. };
  269. rfkill {
  270. label = "r7500:white:rfkill";
  271. gpios = <&qcom_pinmux 64 0>;
  272. };
  273. wifi5g {
  274. label = "r7500:white:wifi5g";
  275. gpios = <&qcom_pinmux 67 0>;
  276. };
  277. };
  278. };
  279. &adm_dma {
  280. status = "ok";
  281. };