qcom-ipq8064-r7500v2.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  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. 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 0x6080000>;
  220. };
  221. reserve@7900000 {
  222. label = "reserve";
  223. reg = <0x7900000 0x0700000>;
  224. read-only;
  225. };
  226. };
  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. reg = <0>;
  238. qca,ar8327-initvals = <
  239. 0x00004 0x7600000 /* PAD0_MODE */
  240. 0x00008 0x1000000 /* PAD5_MODE */
  241. 0x0000c 0x80 /* PAD6_MODE */
  242. 0x000e4 0xaa545 /* MAC_POWER_SEL */
  243. 0x000e0 0xc74164de /* SGMII_CTRL */
  244. 0x0007c 0x4e /* PORT0_STATUS */
  245. 0x00094 0x4e /* PORT6_STATUS */
  246. >;
  247. };
  248. phy4: ethernet-phy@4 {
  249. reg = <4>;
  250. };
  251. };
  252. gmac1: ethernet@37200000 {
  253. status = "ok";
  254. phy-mode = "rgmii";
  255. qcom,id = <1>;
  256. pinctrl-0 = <&rgmii2_pins>;
  257. pinctrl-names = "default";
  258. mtd-mac-address = <&art 6>;
  259. fixed-link {
  260. speed = <1000>;
  261. full-duplex;
  262. };
  263. };
  264. gmac2: ethernet@37400000 {
  265. status = "ok";
  266. phy-mode = "sgmii";
  267. qcom,id = <2>;
  268. mtd-mac-address = <&art 0>;
  269. fixed-link {
  270. speed = <1000>;
  271. full-duplex;
  272. };
  273. };
  274. };
  275. keys {
  276. compatible = "gpio-keys";
  277. pinctrl-0 = <&button_pins>;
  278. pinctrl-names = "default";
  279. wifi {
  280. label = "wifi";
  281. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  282. linux,code = <KEY_RFKILL>;
  283. };
  284. reset {
  285. label = "reset";
  286. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  287. linux,code = <KEY_RESTART>;
  288. };
  289. wps {
  290. label = "wps";
  291. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  292. linux,code = <KEY_WPS_BUTTON>;
  293. };
  294. };
  295. leds {
  296. compatible = "gpio-leds";
  297. pinctrl-0 = <&led_pins>;
  298. pinctrl-names = "default";
  299. usb1 {
  300. label = "r7500v2:amber:usb1";
  301. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  302. };
  303. usb3 {
  304. label = "r7500v2:amber:usb3";
  305. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  306. };
  307. status {
  308. label = "r7500v2:amber:status";
  309. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  310. };
  311. internet {
  312. label = "r7500v2:white:internet";
  313. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  314. };
  315. wan {
  316. label = "r7500v2:white:wan";
  317. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  318. };
  319. wps {
  320. label = "r7500v2:white:wps";
  321. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  322. };
  323. esata {
  324. label = "r7500v2:white:esata";
  325. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  326. };
  327. power: power {
  328. label = "r7500v2:white:power";
  329. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  330. default-state = "keep";
  331. };
  332. wifi {
  333. label = "r7500v2:white:wifi";
  334. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
  335. };
  336. };
  337. };
  338. &adm_dma {
  339. status = "ok";
  340. };