qcom-ipq8064-r7500.dts 6.6 KB

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