qcom-ipq8064-r7500.dts 7.3 KB

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