qcom-ipq8064-r7500v2.dts 7.5 KB

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