qcom-ipq8064-d7800.dts 7.4 KB

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