qcom-ipq8065-r7800.dts 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. #include "qcom-ipq8065-v1.0.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. model = "Netgear Nighthawk X4S R7800";
  5. compatible = "netgear,r7800", "qcom,ipq8065";
  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. };
  19. aliases {
  20. serial0 = &uart4;
  21. mdio-gpio0 = &mdio0;
  22. };
  23. chosen {
  24. bootargs = "rootfstype=squashfs noinitrd";
  25. linux,stdout-path = "serial0:115200n8";
  26. };
  27. soc {
  28. pinmux@800000 {
  29. i2c4_pins: i2c4_pinmux {
  30. pins = "gpio12", "gpio13";
  31. function = "gsbi4";
  32. bias-disable;
  33. };
  34. pcie0_pins: pcie0_pinmux {
  35. mux {
  36. pins = "gpio3";
  37. function = "pcie1_rst";
  38. drive-strength = <12>;
  39. bias-disable;
  40. };
  41. };
  42. pcie1_pins: pcie1_pinmux {
  43. mux {
  44. pins = "gpio48";
  45. function = "pcie2_rst";
  46. drive-strength = <12>;
  47. bias-disable;
  48. };
  49. };
  50. nand_pins: nand_pins {
  51. mux {
  52. pins = "gpio34", "gpio35", "gpio36",
  53. "gpio37", "gpio38", "gpio39",
  54. "gpio40", "gpio41", "gpio42",
  55. "gpio43", "gpio44", "gpio45",
  56. "gpio46", "gpio47";
  57. function = "nand";
  58. drive-strength = <10>;
  59. bias-disable;
  60. };
  61. pullups {
  62. pins = "gpio39";
  63. bias-pull-up;
  64. };
  65. hold {
  66. pins = "gpio40", "gpio41", "gpio42",
  67. "gpio43", "gpio44", "gpio45",
  68. "gpio46", "gpio47";
  69. bias-bus-hold;
  70. };
  71. };
  72. mdio0_pins: mdio0_pins {
  73. mux {
  74. pins = "gpio0", "gpio1";
  75. function = "gpio";
  76. drive-strength = <8>;
  77. bias-disable;
  78. };
  79. };
  80. rgmii2_pins: rgmii2_pins {
  81. mux {
  82. pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
  83. "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
  84. function = "rgmii2";
  85. drive-strength = <8>;
  86. bias-disable;
  87. };
  88. };
  89. };
  90. gsbi@16300000 {
  91. qcom,mode = <GSBI_PROT_I2C_UART>;
  92. status = "ok";
  93. serial@16340000 {
  94. status = "ok";
  95. };
  96. /*
  97. * The i2c device on gsbi4 should not be enabled.
  98. * On ipq806x designs gsbi4 i2c is meant for exclusive
  99. * RPM usage. Turning this on in kernel manifests as
  100. * i2c failure for the RPM.
  101. */
  102. };
  103. sata-phy@1b400000 {
  104. status = "ok";
  105. };
  106. sata@29000000 {
  107. status = "ok";
  108. };
  109. phy@100f8800 { /* USB3 port 1 HS phy */
  110. status = "ok";
  111. };
  112. phy@100f8830 { /* USB3 port 1 SS phy */
  113. status = "ok";
  114. };
  115. phy@110f8800 { /* USB3 port 0 HS phy */
  116. status = "ok";
  117. };
  118. phy@110f8830 { /* USB3 port 0 SS phy */
  119. status = "ok";
  120. };
  121. usb30@0 {
  122. status = "ok";
  123. };
  124. usb30@1 {
  125. status = "ok";
  126. };
  127. pcie0: pci@1b500000 {
  128. status = "ok";
  129. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
  130. pinctrl-0 = <&pcie0_pins>;
  131. pinctrl-names = "default";
  132. };
  133. pcie1: pci@1b700000 {
  134. status = "ok";
  135. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
  136. pinctrl-0 = <&pcie1_pins>;
  137. pinctrl-names = "default";
  138. };
  139. nand@1ac00000 {
  140. status = "ok";
  141. pinctrl-0 = <&nand_pins>;
  142. pinctrl-names = "default";
  143. nand-ecc-strength = <4>;
  144. nand-bus-width = <8>;
  145. #address-cells = <1>;
  146. #size-cells = <1>;
  147. qcadata@0 {
  148. label = "qcadata";
  149. reg = <0x0000000 0x0c80000>;
  150. read-only;
  151. };
  152. APPSBL@c80000 {
  153. label = "APPSBL";
  154. reg = <0x0c80000 0x0500000>;
  155. read-only;
  156. };
  157. APPSBLENV@1180000 {
  158. label = "APPSBLENV";
  159. reg = <0x1180000 0x0080000>;
  160. read-only;
  161. };
  162. art: art@1200000 {
  163. label = "art";
  164. reg = <0x1200000 0x0140000>;
  165. read-only;
  166. };
  167. artbak: art@1340000 {
  168. label = "artbak";
  169. reg = <0x1340000 0x0140000>;
  170. read-only;
  171. };
  172. kernel@1480000 {
  173. label = "kernel";
  174. reg = <0x1480000 0x0200000>;
  175. };
  176. ubi@1680000 {
  177. label = "ubi";
  178. reg = <0x1680000 0x1E00000>;
  179. };
  180. netgear@3480000 {
  181. label = "netgear";
  182. reg = <0x3480000 0x4480000>;
  183. read-only;
  184. };
  185. reserve@7900000 {
  186. label = "reserve";
  187. reg = <0x7900000 0x0700000>;
  188. read-only;
  189. };
  190. firmware@1480000 {
  191. label = "firmware";
  192. reg = <0x1480000 0x2000000>;
  193. };
  194. };
  195. mdio0: mdio {
  196. compatible = "virtual,mdio-gpio";
  197. #address-cells = <1>;
  198. #size-cells = <0>;
  199. gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
  200. pinctrl-0 = <&mdio0_pins>;
  201. pinctrl-names = "default";
  202. phy0: ethernet-phy@0 {
  203. device_type = "ethernet-phy";
  204. reg = <0>;
  205. qca,ar8327-initvals = <
  206. 0x00004 0x7600000 /* PAD0_MODE */
  207. 0x00008 0x1000000 /* PAD5_MODE */
  208. 0x0000c 0x80 /* PAD6_MODE */
  209. 0x000e4 0xaa545 /* MAC_POWER_SEL */
  210. 0x000e0 0xc74164de /* SGMII_CTRL */
  211. 0x0007c 0x4e /* PORT0_STATUS */
  212. 0x00094 0x4e /* PORT6_STATUS */
  213. >;
  214. };
  215. phy4: ethernet-phy@4 {
  216. device_type = "ethernet-phy";
  217. reg = <4>;
  218. };
  219. };
  220. gmac1: ethernet@37200000 {
  221. status = "ok";
  222. phy-mode = "rgmii";
  223. qcom,id = <1>;
  224. pinctrl-0 = <&rgmii2_pins>;
  225. pinctrl-names = "default";
  226. mtd-mac-address = <&art 6>;
  227. fixed-link {
  228. speed = <1000>;
  229. full-duplex;
  230. };
  231. };
  232. gmac2: ethernet@37400000 {
  233. status = "ok";
  234. phy-mode = "sgmii";
  235. qcom,id = <2>;
  236. mtd-mac-address = <&art 0>;
  237. fixed-link {
  238. speed = <1000>;
  239. full-duplex;
  240. };
  241. };
  242. };
  243. gpio-keys {
  244. compatible = "gpio-keys";
  245. wifi {
  246. label = "wifi";
  247. gpios = <&qcom_pinmux 6 1>;
  248. linux,code = <KEY_WLAN>;
  249. };
  250. reset {
  251. label = "reset";
  252. gpios = <&qcom_pinmux 54 1>;
  253. linux,code = <KEY_RESTART>;
  254. };
  255. wps {
  256. label = "wps";
  257. gpios = <&qcom_pinmux 65 1>;
  258. linux,code = <KEY_WPS_BUTTON>;
  259. };
  260. };
  261. gpio-leds {
  262. compatible = "gpio-leds";
  263. usb1 {
  264. label = "r7800:amber:usb1";
  265. gpios = <&qcom_pinmux 7 0>;
  266. };
  267. usb3 {
  268. label = "r7800:amber:usb3";
  269. gpios = <&qcom_pinmux 8 0>;
  270. };
  271. status {
  272. label = "r7800:amber:status";
  273. gpios = <&qcom_pinmux 9 0>;
  274. };
  275. internet {
  276. label = "r7800:white:internet";
  277. gpios = <&qcom_pinmux 22 0>;
  278. };
  279. wan {
  280. label = "r7800:white:wan";
  281. gpios = <&qcom_pinmux 23 0>;
  282. };
  283. wps {
  284. label = "r7800:white:wps";
  285. gpios = <&qcom_pinmux 24 0>;
  286. };
  287. esata {
  288. label = "r7800:white:esata";
  289. gpios = <&qcom_pinmux 26 0>;
  290. };
  291. power {
  292. label = "r7800:white:power";
  293. gpios = <&qcom_pinmux 53 0>;
  294. default-state = "on";
  295. };
  296. rfkill {
  297. label = "r7800:white:rfkill";
  298. gpios = <&qcom_pinmux 64 0>;
  299. };
  300. wifi {
  301. label = "r7800:white:wifi";
  302. gpios = <&qcom_pinmux 67 0>;
  303. };
  304. };
  305. };
  306. &adm_dma {
  307. status = "ok";
  308. };