qcom-ipq8064-d7800.dts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. #include "qcom-ipq8064-v2.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 = &gsbi4_serial;
  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. 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 = "okay";
  119. serial@16340000 {
  120. status = "okay";
  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 = "okay";
  131. };
  132. sata@29000000 {
  133. ports-implemented = <0x1>;
  134. status = "okay";
  135. };
  136. usb3_0: usb3@110f8800 {
  137. status = "okay";
  138. pinctrl-0 = <&usb0_pwr_en_pins>;
  139. pinctrl-names = "default";
  140. };
  141. usb3_1: usb3@100f8800 {
  142. status = "okay";
  143. pinctrl-0 = <&usb1_pwr_en_pins>;
  144. pinctrl-names = "default";
  145. };
  146. pcie0: pci@1b500000 {
  147. status = "okay";
  148. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
  149. pinctrl-0 = <&pcie0_pins>;
  150. pinctrl-names = "default";
  151. };
  152. pcie1: pci@1b700000 {
  153. status = "okay";
  154. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
  155. pinctrl-0 = <&pcie1_pins>;
  156. pinctrl-names = "default";
  157. force_gen1 = <1>;
  158. };
  159. nand@1ac00000 {
  160. status = "okay";
  161. pinctrl-0 = <&nand_pins>;
  162. pinctrl-names = "default";
  163. #address-cells = <1>;
  164. #size-cells = <1>;
  165. cs0 {
  166. reg = <0>;
  167. compatible = "qcom,nandcs";
  168. nand-ecc-strength = <4>;
  169. nand-bus-width = <8>;
  170. nand-ecc-step-size = <512>;
  171. partitions {
  172. compatible = "fixed-partitions";
  173. #address-cells = <1>;
  174. #size-cells = <1>;
  175. qcadata@0 {
  176. label = "qcadata";
  177. reg = <0x0000000 0x0c80000>;
  178. read-only;
  179. };
  180. APPSBL@c80000 {
  181. label = "APPSBL";
  182. reg = <0x0c80000 0x0500000>;
  183. read-only;
  184. };
  185. APPSBLENV@1180000 {
  186. label = "APPSBLENV";
  187. reg = <0x1180000 0x0080000>;
  188. read-only;
  189. };
  190. art: art@1200000 {
  191. label = "art";
  192. reg = <0x1200000 0x0140000>;
  193. read-only;
  194. };
  195. artbak: art@1340000 {
  196. label = "artbak";
  197. reg = <0x1340000 0x0140000>;
  198. read-only;
  199. };
  200. kernel@1480000 {
  201. label = "kernel";
  202. reg = <0x1480000 0x0400000>;
  203. };
  204. ubi@1880000 {
  205. label = "ubi";
  206. reg = <0x1880000 0x1C00000>;
  207. };
  208. netgear@3480000 {
  209. label = "netgear";
  210. reg = <0x3480000 0x4480000>;
  211. read-only;
  212. };
  213. reserve@7900000 {
  214. label = "reserve";
  215. reg = <0x7900000 0x0700000>;
  216. read-only;
  217. };
  218. };
  219. };
  220. };
  221. mdio0: mdio {
  222. compatible = "virtual,mdio-gpio";
  223. #address-cells = <1>;
  224. #size-cells = <0>;
  225. gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
  226. pinctrl-0 = <&mdio0_pins>;
  227. pinctrl-names = "default";
  228. phy0: ethernet-phy@0 {
  229. reg = <0>;
  230. qca,ar8327-initvals = <
  231. 0x00004 0x7600000 /* PAD0_MODE */
  232. 0x00008 0x1000000 /* PAD5_MODE */
  233. 0x0000c 0x80 /* PAD6_MODE */
  234. 0x000e4 0x6a545 /* MAC_POWER_SEL */
  235. 0x000e0 0xc74164de /* SGMII_CTRL */
  236. 0x0007c 0x4e /* PORT0_STATUS */
  237. 0x00094 0x4e /* PORT6_STATUS */
  238. >;
  239. };
  240. phy4: ethernet-phy@4 {
  241. reg = <4>;
  242. };
  243. };
  244. gmac1: ethernet@37200000 {
  245. status = "okay";
  246. phy-mode = "rgmii";
  247. phy-handle = <&phy4>;
  248. qcom,id = <1>;
  249. pinctrl-0 = <&rgmii2_pins>;
  250. pinctrl-names = "default";
  251. mtd-mac-address = <&art 6>;
  252. };
  253. gmac2: ethernet@37400000 {
  254. status = "okay";
  255. phy-mode = "sgmii";
  256. qcom,id = <2>;
  257. mtd-mac-address = <&art 0>;
  258. fixed-link {
  259. speed = <1000>;
  260. full-duplex;
  261. };
  262. };
  263. };
  264. keys {
  265. compatible = "gpio-keys";
  266. pinctrl-0 = <&button_pins>;
  267. pinctrl-names = "default";
  268. wifi {
  269. label = "wifi";
  270. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  271. linux,code = <KEY_RFKILL>;
  272. };
  273. reset {
  274. label = "reset";
  275. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  276. linux,code = <KEY_RESTART>;
  277. };
  278. wps {
  279. label = "wps";
  280. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  281. linux,code = <KEY_WPS_BUTTON>;
  282. };
  283. };
  284. leds {
  285. compatible = "gpio-leds";
  286. pinctrl-0 = <&led_pins>;
  287. pinctrl-names = "default";
  288. usb1 {
  289. label = "d7800:white:usb1";
  290. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  291. };
  292. usb2 {
  293. label = "d7800:white:usb2";
  294. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  295. };
  296. power_amber: power_amber {
  297. label = "d7800:amber:power";
  298. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  299. };
  300. wan_white {
  301. label = "d7800:white:wan";
  302. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  303. };
  304. wan_amber {
  305. label = "d7800:amber:wan";
  306. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  307. };
  308. wps {
  309. label = "d7800:white:wps";
  310. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  311. };
  312. esata {
  313. label = "d7800:white:esata";
  314. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  315. };
  316. power_white: power_white {
  317. label = "d7800:white:power";
  318. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  319. default-state = "keep";
  320. };
  321. wifi {
  322. label = "d7800:white:wifi";
  323. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
  324. };
  325. };
  326. };
  327. &adm_dma {
  328. status = "okay";
  329. };