qcom-ipq8064-r7500v2.dts 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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 = &gsbi4_serial;
  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. force_gen1 = <1>;
  173. };
  174. nand@1ac00000 {
  175. status = "ok";
  176. pinctrl-0 = <&nand_pins>;
  177. pinctrl-names = "default";
  178. cs0 {
  179. reg = <0>;
  180. compatible = "qcom,nandcs";
  181. nand-ecc-strength = <4>;
  182. nand-bus-width = <8>;
  183. nand-ecc-step-size = <512>;
  184. partitions {
  185. compatible = "fixed-partitions";
  186. #address-cells = <1>;
  187. #size-cells = <1>;
  188. qcadata@0 {
  189. label = "qcadata";
  190. reg = <0x0000000 0x0c80000>;
  191. read-only;
  192. };
  193. APPSBL@c80000 {
  194. label = "APPSBL";
  195. reg = <0x0c80000 0x0500000>;
  196. read-only;
  197. };
  198. APPSBLENV@1180000 {
  199. label = "APPSBLENV";
  200. reg = <0x1180000 0x0080000>;
  201. read-only;
  202. };
  203. art: art@1200000 {
  204. label = "art";
  205. reg = <0x1200000 0x0140000>;
  206. read-only;
  207. };
  208. artbak: art@1340000 {
  209. label = "artbak";
  210. reg = <0x1340000 0x0140000>;
  211. read-only;
  212. };
  213. kernel@1480000 {
  214. label = "kernel";
  215. reg = <0x1480000 0x0400000>;
  216. };
  217. ubi@1880000 {
  218. label = "ubi";
  219. reg = <0x1880000 0x1C00000>;
  220. };
  221. netgear@3480000 {
  222. label = "netgear";
  223. reg = <0x3480000 0x4480000>;
  224. read-only;
  225. };
  226. reserve@7900000 {
  227. label = "reserve";
  228. reg = <0x7900000 0x0700000>;
  229. read-only;
  230. };
  231. firmware@1480000 {
  232. label = "firmware";
  233. reg = <0x1480000 0x2000000>;
  234. };
  235. };
  236. };
  237. };
  238. mdio0: mdio {
  239. compatible = "virtual,mdio-gpio";
  240. #address-cells = <1>;
  241. #size-cells = <0>;
  242. gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
  243. pinctrl-0 = <&mdio0_pins>;
  244. pinctrl-names = "default";
  245. phy0: ethernet-phy@0 {
  246. device_type = "ethernet-phy";
  247. reg = <0>;
  248. qca,ar8327-initvals = <
  249. 0x00004 0x7600000 /* PAD0_MODE */
  250. 0x00008 0x1000000 /* PAD5_MODE */
  251. 0x0000c 0x80 /* PAD6_MODE */
  252. 0x000e4 0xaa545 /* MAC_POWER_SEL */
  253. 0x000e0 0xc74164de /* SGMII_CTRL */
  254. 0x0007c 0x4e /* PORT0_STATUS */
  255. 0x00094 0x4e /* PORT6_STATUS */
  256. >;
  257. };
  258. phy4: ethernet-phy@4 {
  259. device_type = "ethernet-phy";
  260. reg = <4>;
  261. };
  262. };
  263. gmac1: ethernet@37200000 {
  264. status = "ok";
  265. phy-mode = "rgmii";
  266. qcom,id = <1>;
  267. pinctrl-0 = <&rgmii2_pins>;
  268. pinctrl-names = "default";
  269. mtd-mac-address = <&art 6>;
  270. fixed-link {
  271. speed = <1000>;
  272. full-duplex;
  273. };
  274. };
  275. gmac2: ethernet@37400000 {
  276. status = "ok";
  277. phy-mode = "sgmii";
  278. qcom,id = <2>;
  279. mtd-mac-address = <&art 0>;
  280. fixed-link {
  281. speed = <1000>;
  282. full-duplex;
  283. };
  284. };
  285. rpm@108000 {
  286. pinctrl-0 = <&i2c4_pins>;
  287. pinctrl-names = "default";
  288. };
  289. };
  290. gpio-keys {
  291. compatible = "gpio-keys";
  292. pinctrl-0 = <&button_pins>;
  293. pinctrl-names = "default";
  294. wifi {
  295. label = "wifi";
  296. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  297. linux,code = <KEY_RFKILL>;
  298. };
  299. reset {
  300. label = "reset";
  301. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  302. linux,code = <KEY_RESTART>;
  303. };
  304. wps {
  305. label = "wps";
  306. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  307. linux,code = <KEY_WPS_BUTTON>;
  308. };
  309. };
  310. gpio-leds {
  311. compatible = "gpio-leds";
  312. pinctrl-0 = <&led_pins>;
  313. pinctrl-names = "default";
  314. usb1 {
  315. label = "r7500v2:amber:usb1";
  316. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  317. };
  318. usb3 {
  319. label = "r7500v2:amber:usb3";
  320. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  321. };
  322. status {
  323. label = "r7500v2:amber:status";
  324. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  325. };
  326. internet {
  327. label = "r7500v2:white:internet";
  328. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  329. };
  330. wan {
  331. label = "r7500v2:white:wan";
  332. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  333. };
  334. wps {
  335. label = "r7500v2:white:wps";
  336. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  337. };
  338. esata {
  339. label = "r7500v2:white:esata";
  340. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  341. };
  342. power: power {
  343. label = "r7500v2:white:power";
  344. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  345. default-state = "keep";
  346. };
  347. wifi {
  348. label = "r7500v2:white:wifi";
  349. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
  350. };
  351. };
  352. };
  353. &adm_dma {
  354. status = "ok";
  355. };