qcom-ipq8064-ad7200-c2600.dtsi 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qcom-ipq8064-v2.0.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. memory@0 {
  6. reg = <0x42000000 0x1e000000>;
  7. device_type = "memory";
  8. };
  9. aliases {
  10. mdio-gpio0 = &mdio0;
  11. label-mac-device = &gmac2;
  12. };
  13. };
  14. &qcom_pinmux {
  15. spi_pins: spi_pins {
  16. mux {
  17. pins = "gpio18", "gpio19", "gpio21";
  18. function = "gsbi5";
  19. bias-pull-down;
  20. };
  21. data {
  22. pins = "gpio18", "gpio19";
  23. drive-strength = <10>;
  24. };
  25. cs {
  26. pins = "gpio20";
  27. function = "gpio";
  28. drive-strength = <10>;
  29. bias-pull-up;
  30. };
  31. clk {
  32. pins = "gpio21";
  33. drive-strength = <12>;
  34. };
  35. };
  36. usb0_pwr_en_pin: usb0_pwr_en_pin {
  37. mux {
  38. pins = "gpio25";
  39. function = "gpio";
  40. drive-strength = <10>;
  41. bias-pull-up;
  42. output-high;
  43. };
  44. };
  45. usb1_pwr_en_pin: usb1_pwr_en_pin {
  46. mux {
  47. pins = "gpio23";
  48. function = "gpio";
  49. drive-strength = <10>;
  50. bias-pull-up;
  51. output-high;
  52. };
  53. };
  54. };
  55. &gsbi5 {
  56. qcom,mode = <GSBI_PROT_SPI>;
  57. status = "okay";
  58. spi@1a280000 {
  59. status = "okay";
  60. pinctrl-0 = <&spi_pins>;
  61. pinctrl-names = "default";
  62. cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
  63. flash@0 {
  64. compatible = "jedec,spi-nor";
  65. #address-cells = <1>;
  66. #size-cells = <1>;
  67. spi-max-frequency = <50000000>;
  68. reg = <0>;
  69. partitions {
  70. compatible = "fixed-partitions";
  71. #address-cells = <1>;
  72. #size-cells = <1>;
  73. partition@0 {
  74. label = "SBL1";
  75. reg = <0x0 0x20000>;
  76. read-only;
  77. };
  78. partition@20000 {
  79. label = "MIBIB";
  80. reg = <0x20000 0x20000>;
  81. read-only;
  82. };
  83. partition@40000 {
  84. label = "SBL2";
  85. reg = <0x40000 0x20000>;
  86. read-only;
  87. };
  88. partition@60000 {
  89. label = "SBL3";
  90. reg = <0x60000 0x30000>;
  91. read-only;
  92. };
  93. partition@90000 {
  94. label = "DDRCONFIG";
  95. reg = <0x90000 0x10000>;
  96. read-only;
  97. };
  98. partition@a0000 {
  99. label = "SSD";
  100. reg = <0xa0000 0x10000>;
  101. read-only;
  102. };
  103. partition@b0000 {
  104. label = "TZ";
  105. reg = <0xb0000 0x30000>;
  106. read-only;
  107. };
  108. partition@e0000 {
  109. label = "RPM";
  110. reg = <0xe0000 0x20000>;
  111. read-only;
  112. };
  113. partition@100000 {
  114. label = "fs-uboot";
  115. reg = <0x100000 0x70000>;
  116. read-only;
  117. };
  118. partition@170000 {
  119. label = "uboot-env";
  120. reg = <0x170000 0x40000>;
  121. read-only;
  122. };
  123. partition@1b0000 {
  124. label = "radio";
  125. reg = <0x1b0000 0x40000>;
  126. read-only;
  127. };
  128. partition@1f0000 {
  129. label = "os-image";
  130. reg = <0x1f0000 0x400000>;
  131. };
  132. partition@5f0000 {
  133. label = "rootfs";
  134. reg = <0x5f0000 0x1900000>;
  135. };
  136. defaultmac: partition@1ef0000 {
  137. label = "default-mac";
  138. reg = <0x1ef0000 0x00200>;
  139. read-only;
  140. };
  141. partition@1ef0200 {
  142. label = "pin";
  143. reg = <0x1ef0200 0x00200>;
  144. read-only;
  145. };
  146. partition@1ef0400 {
  147. label = "product-info";
  148. reg = <0x1ef0400 0x0fc00>;
  149. read-only;
  150. };
  151. partition@1f00000 {
  152. label = "partition-table";
  153. reg = <0x1f00000 0x10000>;
  154. read-only;
  155. };
  156. partition@1f10000 {
  157. label = "soft-version";
  158. reg = <0x1f10000 0x10000>;
  159. read-only;
  160. };
  161. partition@1f20000 {
  162. label = "support-list";
  163. reg = <0x1f20000 0x10000>;
  164. read-only;
  165. };
  166. partition@1f30000 {
  167. label = "profile";
  168. reg = <0x1f30000 0x10000>;
  169. read-only;
  170. };
  171. partition@1f40000 {
  172. label = "default-config";
  173. reg = <0x1f40000 0x10000>;
  174. read-only;
  175. };
  176. partition@1f50000 {
  177. label = "user-config";
  178. reg = <0x1f50000 0x40000>;
  179. read-only;
  180. };
  181. partition@1f90000 {
  182. label = "qos-db";
  183. reg = <0x1f90000 0x40000>;
  184. read-only;
  185. };
  186. partition@1fd0000 {
  187. label = "usb-config";
  188. reg = <0x1fd0000 0x10000>;
  189. read-only;
  190. };
  191. partition@1fe0000 {
  192. label = "log";
  193. reg = <0x1fe0000 0x20000>;
  194. read-only;
  195. };
  196. };
  197. };
  198. };
  199. };
  200. &usb3_0 {
  201. status = "okay";
  202. pinctrl-0 = <&usb0_pwr_en_pin>;
  203. pinctrl-names = "default";
  204. };
  205. &usb3_1 {
  206. status = "okay";
  207. pinctrl-0 = <&usb1_pwr_en_pin>;
  208. pinctrl-names = "default";
  209. };
  210. &pcie0 {
  211. status = "okay";
  212. bridge@0,0 {
  213. reg = <0x00000000 0 0 0 0>;
  214. #address-cells = <3>;
  215. #size-cells = <2>;
  216. ranges;
  217. wifi@1,0 {
  218. compatible = "pci168c,0040";
  219. reg = <0x00010000 0 0 0 0>;
  220. nvmem-cells = <&macaddr_defaultmac_8>;
  221. nvmem-cell-names = "mac-address";
  222. mac-address-increment = <(-1)>;
  223. };
  224. };
  225. };
  226. &pcie1 {
  227. status = "okay";
  228. max-link-speed = <1>;
  229. bridge@0,0 {
  230. reg = <0x00000000 0 0 0 0>;
  231. #address-cells = <3>;
  232. #size-cells = <2>;
  233. ranges;
  234. wifi@1,0 {
  235. compatible = "pci168c,0040";
  236. reg = <0x00010000 0 0 0 0>;
  237. nvmem-cells = <&macaddr_defaultmac_8>;
  238. nvmem-cell-names = "mac-address";
  239. };
  240. };
  241. };
  242. &mdio0 {
  243. status = "okay";
  244. pinctrl-0 = <&mdio0_pins>;
  245. pinctrl-names = "default";
  246. phy0: ethernet-phy@0 {
  247. reg = <0>;
  248. qca,ar8327-initvals = <
  249. 0x00004 0x7600000 /* PAD0_MODE */
  250. 0x00008 0x1000000 /* PAD5_MODE */
  251. 0x0000c 0x80 /* PAD6_MODE */
  252. 0x000e4 0x6a545 /* MAC_POWER_SEL */
  253. 0x000e0 0xc74164de /* SGMII_CTRL */
  254. 0x0007c 0x4e /* PORT0_STATUS */
  255. 0x00094 0x4e /* PORT6_STATUS */
  256. >;
  257. };
  258. phy4: ethernet-phy@4 {
  259. reg = <4>;
  260. };
  261. };
  262. &gmac1 {
  263. status = "okay";
  264. phy-mode = "rgmii";
  265. qcom,id = <1>;
  266. pinctrl-0 = <&rgmii2_pins>;
  267. pinctrl-names = "default";
  268. nvmem-cells = <&macaddr_defaultmac_8>;
  269. nvmem-cell-names = "mac-address";
  270. mac-address-increment = <1>;
  271. fixed-link {
  272. speed = <1000>;
  273. full-duplex;
  274. };
  275. };
  276. &gmac2 {
  277. status = "okay";
  278. phy-mode = "sgmii";
  279. qcom,id = <2>;
  280. nvmem-cells = <&macaddr_defaultmac_8>;
  281. nvmem-cell-names = "mac-address";
  282. fixed-link {
  283. speed = <1000>;
  284. full-duplex;
  285. };
  286. };
  287. &adm_dma {
  288. status = "okay";
  289. };
  290. &defaultmac {
  291. compatible = "nvmem-cells";
  292. #address-cells = <1>;
  293. #size-cells = <1>;
  294. macaddr_defaultmac_8: macaddr@8 {
  295. reg = <0x8 0x6>;
  296. };
  297. };