qcom-ipq8064-ad7200-c2600.dtsi 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qcom-ipq8064-v2.0-smb208.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. memory@0 {
  6. reg = <0x42000000 0x1e000000>;
  7. device_type = "memory";
  8. };
  9. reserved-memory {
  10. ramoops@42100000 {
  11. compatible = "ramoops";
  12. reg = <0x42100000 0x40000>;
  13. record-size = <0x4000>;
  14. console-size = <0x4000>;
  15. ftrace-size = <0x4000>;
  16. pmsg-size = <0x4000>;
  17. };
  18. };
  19. aliases {
  20. mdio-gpio0 = &mdio0;
  21. label-mac-device = &gmac2;
  22. };
  23. };
  24. &qcom_pinmux {
  25. spi_pins: spi_pins {
  26. mux {
  27. pins = "gpio18", "gpio19", "gpio21";
  28. function = "gsbi5";
  29. bias-pull-down;
  30. };
  31. data {
  32. pins = "gpio18", "gpio19";
  33. drive-strength = <10>;
  34. };
  35. cs {
  36. pins = "gpio20";
  37. function = "gpio";
  38. drive-strength = <10>;
  39. bias-pull-up;
  40. };
  41. clk {
  42. pins = "gpio21";
  43. drive-strength = <12>;
  44. };
  45. };
  46. usb0_pwr_en_pin: usb0_pwr_en_pin {
  47. mux {
  48. pins = "gpio25";
  49. function = "gpio";
  50. drive-strength = <10>;
  51. bias-pull-up;
  52. output-high;
  53. };
  54. };
  55. usb1_pwr_en_pin: usb1_pwr_en_pin {
  56. mux {
  57. pins = "gpio23";
  58. function = "gpio";
  59. drive-strength = <10>;
  60. bias-pull-up;
  61. output-high;
  62. };
  63. };
  64. };
  65. &gsbi5 {
  66. qcom,mode = <GSBI_PROT_SPI>;
  67. status = "okay";
  68. spi@1a280000 {
  69. status = "okay";
  70. pinctrl-0 = <&spi_pins>;
  71. pinctrl-names = "default";
  72. cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
  73. flash@0 {
  74. compatible = "jedec,spi-nor";
  75. #address-cells = <1>;
  76. #size-cells = <1>;
  77. spi-max-frequency = <50000000>;
  78. reg = <0>;
  79. partitions {
  80. compatible = "fixed-partitions";
  81. #address-cells = <1>;
  82. #size-cells = <1>;
  83. partition@0 {
  84. label = "SBL1";
  85. reg = <0x0 0x20000>;
  86. read-only;
  87. };
  88. partition@20000 {
  89. label = "MIBIB";
  90. reg = <0x20000 0x20000>;
  91. read-only;
  92. };
  93. partition@40000 {
  94. label = "SBL2";
  95. reg = <0x40000 0x20000>;
  96. read-only;
  97. };
  98. partition@60000 {
  99. label = "SBL3";
  100. reg = <0x60000 0x30000>;
  101. read-only;
  102. };
  103. partition@90000 {
  104. label = "DDRCONFIG";
  105. reg = <0x90000 0x10000>;
  106. read-only;
  107. };
  108. partition@a0000 {
  109. label = "SSD";
  110. reg = <0xa0000 0x10000>;
  111. read-only;
  112. };
  113. partition@b0000 {
  114. label = "TZ";
  115. reg = <0xb0000 0x30000>;
  116. read-only;
  117. };
  118. partition@e0000 {
  119. label = "RPM";
  120. reg = <0xe0000 0x20000>;
  121. read-only;
  122. };
  123. partition@100000 {
  124. label = "fs-uboot";
  125. reg = <0x100000 0x70000>;
  126. read-only;
  127. };
  128. partition@170000 {
  129. label = "uboot-env";
  130. reg = <0x170000 0x40000>;
  131. read-only;
  132. };
  133. partition@1b0000 {
  134. label = "radio";
  135. reg = <0x1b0000 0x40000>;
  136. read-only;
  137. nvmem-layout {
  138. compatible = "fixed-layout";
  139. #address-cells = <1>;
  140. #size-cells = <1>;
  141. precal_radio_1000: precal@1000 {
  142. reg = <0x1000 0x2f20>;
  143. };
  144. precal_radio_5000: precal@5000 {
  145. reg = <0x5000 0x2f20>;
  146. };
  147. };
  148. };
  149. partition@1f0000 {
  150. label = "os-image";
  151. reg = <0x1f0000 0x400000>;
  152. };
  153. partition@5f0000 {
  154. label = "rootfs";
  155. reg = <0x5f0000 0x1900000>;
  156. };
  157. defaultmac: partition@1ef0000 {
  158. label = "default-mac";
  159. reg = <0x1ef0000 0x00200>;
  160. read-only;
  161. nvmem-layout {
  162. compatible = "fixed-layout";
  163. #address-cells = <1>;
  164. #size-cells = <1>;
  165. macaddr_defaultmac_8: macaddr@8 {
  166. compatible = "mac-base";
  167. reg = <0x8 0x6>;
  168. #nvmem-cell-cells = <1>;
  169. };
  170. };
  171. };
  172. partition@1ef0200 {
  173. label = "pin";
  174. reg = <0x1ef0200 0x00200>;
  175. read-only;
  176. };
  177. partition@1ef0400 {
  178. label = "product-info";
  179. reg = <0x1ef0400 0x0fc00>;
  180. read-only;
  181. };
  182. partition@1f00000 {
  183. label = "partition-table";
  184. reg = <0x1f00000 0x10000>;
  185. read-only;
  186. };
  187. partition@1f10000 {
  188. label = "soft-version";
  189. reg = <0x1f10000 0x10000>;
  190. read-only;
  191. };
  192. partition@1f20000 {
  193. label = "support-list";
  194. reg = <0x1f20000 0x10000>;
  195. read-only;
  196. };
  197. partition@1f30000 {
  198. label = "profile";
  199. reg = <0x1f30000 0x10000>;
  200. read-only;
  201. };
  202. partition@1f40000 {
  203. label = "default-config";
  204. reg = <0x1f40000 0x10000>;
  205. read-only;
  206. };
  207. partition@1f50000 {
  208. label = "user-config";
  209. reg = <0x1f50000 0x40000>;
  210. read-only;
  211. };
  212. partition@1f90000 {
  213. label = "qos-db";
  214. reg = <0x1f90000 0x40000>;
  215. read-only;
  216. };
  217. partition@1fd0000 {
  218. label = "usb-config";
  219. reg = <0x1fd0000 0x10000>;
  220. read-only;
  221. };
  222. partition@1fe0000 {
  223. label = "log";
  224. reg = <0x1fe0000 0x20000>;
  225. read-only;
  226. };
  227. };
  228. };
  229. };
  230. };
  231. &hs_phy_0 {
  232. status = "okay";
  233. };
  234. &ss_phy_0 {
  235. status = "okay";
  236. };
  237. &usb3_0 {
  238. status = "okay";
  239. pinctrl-0 = <&usb0_pwr_en_pin>;
  240. pinctrl-names = "default";
  241. };
  242. &hs_phy_1 {
  243. status = "okay";
  244. };
  245. &ss_phy_1 {
  246. status = "okay";
  247. };
  248. &usb3_1 {
  249. status = "okay";
  250. pinctrl-0 = <&usb1_pwr_en_pin>;
  251. pinctrl-names = "default";
  252. };
  253. &pcie0 {
  254. status = "okay";
  255. bridge@0,0 {
  256. reg = <0x00000000 0 0 0 0>;
  257. #address-cells = <3>;
  258. #size-cells = <2>;
  259. ranges;
  260. wifi@1,0 {
  261. compatible = "pci168c,0040";
  262. reg = <0x00010000 0 0 0 0>;
  263. nvmem-cells = <&macaddr_defaultmac_8 (-1)>, <&precal_radio_1000>;
  264. nvmem-cell-names = "mac-address", "pre-calibration";
  265. };
  266. };
  267. };
  268. &pcie1 {
  269. status = "okay";
  270. max-link-speed = <1>;
  271. bridge@0,0 {
  272. reg = <0x00000000 0 0 0 0>;
  273. #address-cells = <3>;
  274. #size-cells = <2>;
  275. ranges;
  276. wifi@1,0 {
  277. compatible = "pci168c,0040";
  278. reg = <0x00010000 0 0 0 0>;
  279. nvmem-cells = <&macaddr_defaultmac_8 0>, <&precal_radio_5000>;
  280. nvmem-cell-names = "mac-address", "pre-calibration";
  281. };
  282. };
  283. };
  284. &mdio0 {
  285. status = "okay";
  286. pinctrl-0 = <&mdio0_pins>;
  287. pinctrl-names = "default";
  288. switch@10 {
  289. compatible = "qca,qca8337";
  290. #address-cells = <1>;
  291. #size-cells = <0>;
  292. reg = <0x10>;
  293. ports {
  294. #address-cells = <1>;
  295. #size-cells = <0>;
  296. port@0 {
  297. reg = <0>;
  298. label = "cpu";
  299. ethernet = <&gmac1>;
  300. phy-mode = "rgmii";
  301. tx-internal-delay-ps = <1000>;
  302. rx-internal-delay-ps = <1000>;
  303. fixed-link {
  304. speed = <1000>;
  305. full-duplex;
  306. };
  307. };
  308. port@1 {
  309. reg = <1>;
  310. label = "lan4";
  311. phy-mode = "internal";
  312. phy-handle = <&phy_port1>;
  313. };
  314. port@2 {
  315. reg = <2>;
  316. label = "lan3";
  317. phy-mode = "internal";
  318. phy-handle = <&phy_port2>;
  319. };
  320. port@3 {
  321. reg = <3>;
  322. label = "lan2";
  323. phy-mode = "internal";
  324. phy-handle = <&phy_port3>;
  325. };
  326. port@4 {
  327. reg = <4>;
  328. label = "lan1";
  329. phy-mode = "internal";
  330. phy-handle = <&phy_port4>;
  331. };
  332. port@5 {
  333. reg = <5>;
  334. label = "wan";
  335. phy-mode = "internal";
  336. phy-handle = <&phy_port5>;
  337. };
  338. port@6 {
  339. reg = <6>;
  340. label = "cpu";
  341. ethernet = <&gmac2>;
  342. phy-mode = "sgmii";
  343. qca,sgmii-enable-pll;
  344. fixed-link {
  345. speed = <1000>;
  346. full-duplex;
  347. };
  348. };
  349. };
  350. mdio {
  351. #address-cells = <1>;
  352. #size-cells = <0>;
  353. phy_port1: phy@0 {
  354. reg = <0>;
  355. };
  356. phy_port2: phy@1 {
  357. reg = <1>;
  358. };
  359. phy_port3: phy@2 {
  360. reg = <2>;
  361. };
  362. phy_port4: phy@3 {
  363. reg = <3>;
  364. };
  365. phy_port5: phy@4 {
  366. reg = <4>;
  367. };
  368. };
  369. };
  370. };
  371. &gmac1 {
  372. status = "okay";
  373. phy-mode = "rgmii";
  374. qcom,id = <1>;
  375. pinctrl-0 = <&rgmii2_pins>;
  376. pinctrl-names = "default";
  377. nvmem-cells = <&macaddr_defaultmac_8 1>;
  378. nvmem-cell-names = "mac-address";
  379. fixed-link {
  380. speed = <1000>;
  381. full-duplex;
  382. };
  383. };
  384. &gmac2 {
  385. status = "okay";
  386. phy-mode = "sgmii";
  387. qcom,id = <2>;
  388. nvmem-cells = <&macaddr_defaultmac_8 0>;
  389. nvmem-cell-names = "mac-address";
  390. fixed-link {
  391. speed = <1000>;
  392. full-duplex;
  393. };
  394. };
  395. &adm_dma {
  396. status = "okay";
  397. };