qcom-ipq8064-d7800.dts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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. aliases {
  11. mdio-gpio0 = &mdio0;
  12. led-boot = &power_white;
  13. led-failsafe = &power_amber;
  14. led-running = &power_white;
  15. led-upgrade = &power_amber;
  16. };
  17. chosen {
  18. bootargs = "rootfstype=squashfs noinitrd";
  19. };
  20. keys {
  21. compatible = "gpio-keys";
  22. pinctrl-0 = <&button_pins>;
  23. pinctrl-names = "default";
  24. wifi {
  25. label = "wifi";
  26. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RFKILL>;
  28. debounce-interval = <60>;
  29. wakeup-source;
  30. };
  31. reset {
  32. label = "reset";
  33. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_RESTART>;
  35. debounce-interval = <60>;
  36. wakeup-source;
  37. };
  38. wps {
  39. label = "wps";
  40. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  41. linux,code = <KEY_WPS_BUTTON>;
  42. debounce-interval = <60>;
  43. wakeup-source;
  44. };
  45. };
  46. leds {
  47. compatible = "gpio-leds";
  48. pinctrl-0 = <&led_pins>;
  49. pinctrl-names = "default";
  50. usb1 {
  51. label = "white:usb1";
  52. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  53. };
  54. usb2 {
  55. label = "white:usb2";
  56. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  57. };
  58. power_amber: power_amber {
  59. label = "amber:power";
  60. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  61. };
  62. wan_white {
  63. label = "white:wan";
  64. gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
  65. };
  66. wan_amber {
  67. label = "amber:wan";
  68. gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
  69. };
  70. wps {
  71. label = "white:wps";
  72. gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
  73. };
  74. esata {
  75. label = "white:esata";
  76. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  77. };
  78. power_white: power_white {
  79. label = "white:power";
  80. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  81. default-state = "keep";
  82. };
  83. wifi {
  84. label = "white:wifi";
  85. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
  86. };
  87. };
  88. };
  89. &qcom_pinmux {
  90. button_pins: button_pins {
  91. mux {
  92. pins = "gpio6", "gpio54", "gpio65";
  93. function = "gpio";
  94. drive-strength = <2>;
  95. bias-pull-up;
  96. };
  97. };
  98. led_pins: led_pins {
  99. mux {
  100. pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
  101. "gpio24","gpio26", "gpio53", "gpio64";
  102. function = "gpio";
  103. drive-strength = <2>;
  104. bias-pull-up;
  105. };
  106. };
  107. usb0_pwr_en_pins: usb0_pwr_en_pins {
  108. mux {
  109. pins = "gpio15";
  110. function = "gpio";
  111. drive-strength = <12>;
  112. bias-pull-down;
  113. output-high;
  114. };
  115. };
  116. usb1_pwr_en_pins: usb1_pwr_en_pins {
  117. mux {
  118. pins = "gpio16", "gpio68";
  119. function = "gpio";
  120. drive-strength = <12>;
  121. bias-pull-down;
  122. output-high;
  123. };
  124. };
  125. };
  126. &sata_phy {
  127. status = "okay";
  128. };
  129. &sata {
  130. status = "okay";
  131. };
  132. &usb3_0 {
  133. status = "okay";
  134. pinctrl-0 = <&usb0_pwr_en_pins>;
  135. pinctrl-names = "default";
  136. };
  137. &usb3_1 {
  138. status = "okay";
  139. pinctrl-0 = <&usb1_pwr_en_pins>;
  140. pinctrl-names = "default";
  141. };
  142. &pcie0 {
  143. status = "okay";
  144. reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
  145. pinctrl-0 = <&pcie0_pins>;
  146. pinctrl-names = "default";
  147. bridge@0,0 {
  148. reg = <0x00000000 0 0 0 0>;
  149. #address-cells = <3>;
  150. #size-cells = <2>;
  151. ranges;
  152. wifi@1,0 {
  153. compatible = "pci168c,0040";
  154. reg = <0x00010000 0 0 0 0>;
  155. nvmem-cells = <&macaddr_art_6>;
  156. nvmem-cell-names = "mac-address";
  157. mac-address-increment = <(1)>;
  158. };
  159. };
  160. };
  161. &pcie1 {
  162. status = "okay";
  163. reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
  164. pinctrl-0 = <&pcie1_pins>;
  165. pinctrl-names = "default";
  166. max-link-speed = <1>;
  167. bridge@0,0 {
  168. reg = <0x00000000 0 0 0 0>;
  169. #address-cells = <3>;
  170. #size-cells = <2>;
  171. ranges;
  172. wifi@1,0 {
  173. compatible = "pci168c,0040";
  174. reg = <0x00010000 0 0 0 0>;
  175. nvmem-cells = <&macaddr_art_6>;
  176. nvmem-cell-names = "mac-address";
  177. mac-address-increment = <(2)>;
  178. };
  179. };
  180. };
  181. &nand_controller {
  182. status = "okay";
  183. pinctrl-0 = <&nand_pins>;
  184. pinctrl-names = "default";
  185. #address-cells = <1>;
  186. #size-cells = <0>;
  187. nand@0 {
  188. reg = <0>;
  189. compatible = "qcom,nandcs";
  190. nand-ecc-strength = <4>;
  191. nand-bus-width = <8>;
  192. nand-ecc-step-size = <512>;
  193. nand-is-boot-medium;
  194. qcom,boot_pages_size = <0x1180000>;
  195. partitions {
  196. compatible = "fixed-partitions";
  197. #address-cells = <1>;
  198. #size-cells = <1>;
  199. qcadata@0 {
  200. label = "qcadata";
  201. reg = <0x0000000 0x0c80000>;
  202. read-only;
  203. };
  204. APPSBL@c80000 {
  205. label = "APPSBL";
  206. reg = <0x0c80000 0x0500000>;
  207. read-only;
  208. };
  209. APPSBLENV@1180000 {
  210. label = "APPSBLENV";
  211. reg = <0x1180000 0x0080000>;
  212. read-only;
  213. };
  214. art: art@1200000 {
  215. label = "art";
  216. reg = <0x1200000 0x0140000>;
  217. read-only;
  218. };
  219. artbak: art@1340000 {
  220. label = "artbak";
  221. reg = <0x1340000 0x0140000>;
  222. read-only;
  223. };
  224. kernel@1480000 {
  225. label = "kernel";
  226. reg = <0x1480000 0x0400000>;
  227. };
  228. ubi@1880000 {
  229. label = "ubi";
  230. reg = <0x1880000 0x1C00000>;
  231. };
  232. netgear@3480000 {
  233. label = "netgear";
  234. reg = <0x3480000 0x4480000>;
  235. read-only;
  236. };
  237. reserve@7900000 {
  238. label = "reserve";
  239. reg = <0x7900000 0x0700000>;
  240. read-only;
  241. };
  242. };
  243. };
  244. };
  245. &mdio0 {
  246. status = "okay";
  247. pinctrl-0 = <&mdio0_pins>;
  248. pinctrl-names = "default";
  249. phy0: ethernet-phy@0 {
  250. reg = <0>;
  251. qca,ar8327-initvals = <
  252. 0x00004 0x7600000 /* PAD0_MODE */
  253. 0x00008 0x1000000 /* PAD5_MODE */
  254. 0x0000c 0x80 /* PAD6_MODE */
  255. 0x000e4 0x6a545 /* MAC_POWER_SEL */
  256. 0x000e0 0xc74164de /* SGMII_CTRL */
  257. 0x0007c 0x4e /* PORT0_STATUS */
  258. 0x00094 0x4e /* PORT6_STATUS */
  259. >;
  260. };
  261. phy4: ethernet-phy@4 {
  262. reg = <4>;
  263. };
  264. };
  265. &gmac1 {
  266. status = "okay";
  267. phy-mode = "rgmii";
  268. qcom,id = <1>;
  269. pinctrl-0 = <&rgmii2_pins>;
  270. pinctrl-names = "default";
  271. nvmem-cells = <&macaddr_art_6>;
  272. nvmem-cell-names = "mac-address";
  273. fixed-link {
  274. speed = <1000>;
  275. full-duplex;
  276. };
  277. };
  278. &gmac2 {
  279. status = "okay";
  280. phy-mode = "sgmii";
  281. qcom,id = <2>;
  282. nvmem-cells = <&macaddr_art_0>;
  283. nvmem-cell-names = "mac-address";
  284. fixed-link {
  285. speed = <1000>;
  286. full-duplex;
  287. };
  288. };
  289. &adm_dma {
  290. status = "okay";
  291. };
  292. &art {
  293. compatible = "nvmem-cells";
  294. #address-cells = <1>;
  295. #size-cells = <1>;
  296. macaddr_art_0: macaddr@0 {
  297. reg = <0x0 0x6>;
  298. };
  299. macaddr_art_6: macaddr@6 {
  300. reg = <0x6 0x6>;
  301. };
  302. };