qcom-ipq8064-r7500v2.dts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. #include "qcom-ipq8064-v2.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. 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. disable {
  72. pins = "gpio34", "gpio35", "gpio36",
  73. "gpio37", "gpio38";
  74. function = "nand";
  75. drive-strength = <10>;
  76. bias-disable;
  77. };
  78. pullups {
  79. pins = "gpio39";
  80. function = "nand";
  81. drive-strength = <10>;
  82. bias-pull-up;
  83. };
  84. hold {
  85. pins = "gpio40", "gpio41", "gpio42",
  86. "gpio43", "gpio44", "gpio45",
  87. "gpio46", "gpio47";
  88. function = "nand";
  89. drive-strength = <10>;
  90. bias-bus-hold;
  91. };
  92. };
  93. rgmii2_pins: rgmii2_pins {
  94. mux {
  95. pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
  96. "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
  97. function = "rgmii2";
  98. drive-strength = <8>;
  99. bias-disable;
  100. };
  101. };
  102. usb0_pwr_en_pins: usb0_pwr_en_pins {
  103. mux {
  104. pins = "gpio15";
  105. function = "gpio";
  106. drive-strength = <12>;
  107. bias-pull-down;
  108. output-high;
  109. };
  110. };
  111. usb1_pwr_en_pins: usb1_pwr_en_pins {
  112. mux {
  113. pins = "gpio16", "gpio68";
  114. function = "gpio";
  115. drive-strength = <12>;
  116. bias-pull-down;
  117. output-high;
  118. };
  119. };
  120. };
  121. gsbi@16300000 {
  122. qcom,mode = <GSBI_PROT_I2C_UART>;
  123. status = "okay";
  124. serial@16340000 {
  125. status = "okay";
  126. };
  127. /*
  128. * The i2c device on gsbi4 should not be enabled.
  129. * On ipq806x designs gsbi4 i2c is meant for exclusive
  130. * RPM usage. Turning this on in kernel manifests as
  131. * i2c failure for the RPM.
  132. */
  133. };
  134. sata-phy@1b400000 {
  135. status = "okay";
  136. };
  137. sata@29000000 {
  138. status = "okay";
  139. };
  140. usb3_0: usb3@110f8800 {
  141. status = "okay";
  142. pinctrl-0 = <&usb0_pwr_en_pins>;
  143. pinctrl-names = "default";
  144. };
  145. usb3_1: usb3@100f8800 {
  146. status = "okay";
  147. pinctrl-0 = <&usb1_pwr_en_pins>;
  148. pinctrl-names = "default";
  149. };
  150. pcie0: pci@1b500000 {
  151. status = "okay";
  152. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
  153. pinctrl-0 = <&pcie0_pins>;
  154. pinctrl-names = "default";
  155. };
  156. pcie1: pci@1b700000 {
  157. status = "okay";
  158. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
  159. pinctrl-0 = <&pcie1_pins>;
  160. pinctrl-names = "default";
  161. force_gen1 = <1>;
  162. };
  163. nand@1ac00000 {
  164. status = "okay";
  165. pinctrl-0 = <&nand_pins>;
  166. pinctrl-names = "default";
  167. cs0 {
  168. reg = <0>;
  169. compatible = "qcom,nandcs";
  170. nand-ecc-strength = <4>;
  171. nand-bus-width = <8>;
  172. nand-ecc-step-size = <512>;
  173. partitions {
  174. compatible = "fixed-partitions";
  175. #address-cells = <1>;
  176. #size-cells = <1>;
  177. qcadata@0 {
  178. label = "qcadata";
  179. reg = <0x0000000 0x0c80000>;
  180. read-only;
  181. };
  182. APPSBL@c80000 {
  183. label = "APPSBL";
  184. reg = <0x0c80000 0x0500000>;
  185. read-only;
  186. };
  187. APPSBLENV@1180000 {
  188. label = "APPSBLENV";
  189. reg = <0x1180000 0x0080000>;
  190. read-only;
  191. };
  192. art: art@1200000 {
  193. label = "art";
  194. reg = <0x1200000 0x0140000>;
  195. read-only;
  196. };
  197. artbak: art@1340000 {
  198. label = "artbak";
  199. reg = <0x1340000 0x0140000>;
  200. read-only;
  201. };
  202. kernel@1480000 {
  203. label = "kernel";
  204. reg = <0x1480000 0x0400000>;
  205. };
  206. ubi@1880000 {
  207. label = "ubi";
  208. reg = <0x1880000 0x6080000>;
  209. };
  210. reserve@7900000 {
  211. label = "reserve";
  212. reg = <0x7900000 0x0700000>;
  213. read-only;
  214. };
  215. };
  216. };
  217. };
  218. mdio0: mdio {
  219. compatible = "virtual,mdio-gpio";
  220. #address-cells = <1>;
  221. #size-cells = <0>;
  222. gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
  223. <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
  224. pinctrl-0 = <&mdio0_pins>;
  225. pinctrl-names = "default";
  226. phy0: ethernet-phy@0 {
  227. reg = <0>;
  228. qca,ar8327-initvals = <
  229. 0x00004 0x7600000 /* PAD0_MODE */
  230. 0x00008 0x1000000 /* PAD5_MODE */
  231. 0x0000c 0x80 /* PAD6_MODE */
  232. 0x000e4 0xaa545 /* MAC_POWER_SEL */
  233. 0x000e0 0xc74164de /* SGMII_CTRL */
  234. 0x0007c 0x4e /* PORT0_STATUS */
  235. 0x00094 0x4e /* PORT6_STATUS */
  236. >;
  237. };
  238. phy4: ethernet-phy@4 {
  239. reg = <4>;
  240. };
  241. };
  242. gmac1: ethernet@37200000 {
  243. status = "okay";
  244. phy-mode = "rgmii";
  245. qcom,id = <1>;
  246. pinctrl-0 = <&rgmii2_pins>;
  247. pinctrl-names = "default";
  248. mtd-mac-address = <&art 6>;
  249. fixed-link {
  250. speed = <1000>;
  251. full-duplex;
  252. };
  253. };
  254. gmac2: ethernet@37400000 {
  255. status = "okay";
  256. phy-mode = "sgmii";
  257. qcom,id = <2>;
  258. mtd-mac-address = <&art 0>;
  259. fixed-link {
  260. speed = <1000>;
  261. full-duplex;
  262. };
  263. };
  264. };
  265. keys {
  266. compatible = "gpio-keys";
  267. pinctrl-0 = <&button_pins>;
  268. pinctrl-names = "default";
  269. wifi {
  270. label = "wifi";
  271. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  272. linux,code = <KEY_RFKILL>;
  273. };
  274. reset {
  275. label = "reset";
  276. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  277. linux,code = <KEY_RESTART>;
  278. };
  279. wps {
  280. label = "wps";
  281. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  282. linux,code = <KEY_WPS_BUTTON>;
  283. };
  284. };
  285. leds {
  286. compatible = "gpio-leds";
  287. pinctrl-0 = <&led_pins>;
  288. pinctrl-names = "default";
  289. usb1 {
  290. label = "amber:usb1";
  291. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  292. };
  293. usb3 {
  294. label = "amber:usb3";
  295. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  296. };
  297. status {
  298. label = "amber:status";
  299. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  300. };
  301. internet {
  302. label = "white:internet";
  303. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  304. };
  305. wan {
  306. label = "white:wan";
  307. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  308. };
  309. wps {
  310. label = "white:wps";
  311. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  312. };
  313. esata {
  314. label = "white:esata";
  315. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  316. };
  317. power: power {
  318. label = "white:power";
  319. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  320. default-state = "keep";
  321. };
  322. wifi {
  323. label = "white:wifi";
  324. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
  325. };
  326. };
  327. };
  328. &adm_dma {
  329. status = "okay";
  330. };