imx6q.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. // SPDX-License-Identifier: GPL-2.0
  2. //
  3. // Copyright 2013 Freescale Semiconductor, Inc.
  4. #include <dt-bindings/interrupt-controller/irq.h>
  5. #include "imx6q-pinfunc.h"
  6. #include "imx6qdl.dtsi"
  7. / {
  8. aliases {
  9. ipu1 = &ipu2;
  10. spi4 = &ecspi5;
  11. };
  12. cpus {
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. cpu0: cpu@0 {
  16. compatible = "arm,cortex-a9";
  17. device_type = "cpu";
  18. reg = <0>;
  19. next-level-cache = <&L2>;
  20. operating-points = <
  21. /* kHz uV */
  22. 1200000 1275000
  23. 996000 1250000
  24. 852000 1250000
  25. 792000 1175000
  26. 396000 975000
  27. >;
  28. fsl,soc-operating-points = <
  29. /* ARM kHz SOC-PU uV */
  30. 1200000 1275000
  31. 996000 1250000
  32. 852000 1250000
  33. 792000 1175000
  34. 396000 1175000
  35. >;
  36. clock-latency = <61036>; /* two CLK32 periods */
  37. #cooling-cells = <2>;
  38. clocks = <&clks IMX6QDL_CLK_ARM>,
  39. <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
  40. <&clks IMX6QDL_CLK_STEP>,
  41. <&clks IMX6QDL_CLK_PLL1_SW>,
  42. <&clks IMX6QDL_CLK_PLL1_SYS>;
  43. clock-names = "arm", "pll2_pfd2_396m", "step",
  44. "pll1_sw", "pll1_sys";
  45. arm-supply = <&reg_arm>;
  46. pu-supply = <&reg_pu>;
  47. soc-supply = <&reg_soc>;
  48. nvmem-cells = <&cpu_speed_grade>;
  49. nvmem-cell-names = "speed_grade";
  50. };
  51. cpu1: cpu@1 {
  52. compatible = "arm,cortex-a9";
  53. device_type = "cpu";
  54. reg = <1>;
  55. next-level-cache = <&L2>;
  56. operating-points = <
  57. /* kHz uV */
  58. 1200000 1275000
  59. 996000 1250000
  60. 852000 1250000
  61. 792000 1175000
  62. 396000 975000
  63. >;
  64. fsl,soc-operating-points = <
  65. /* ARM kHz SOC-PU uV */
  66. 1200000 1275000
  67. 996000 1250000
  68. 852000 1250000
  69. 792000 1175000
  70. 396000 1175000
  71. >;
  72. clock-latency = <61036>; /* two CLK32 periods */
  73. #cooling-cells = <2>;
  74. clocks = <&clks IMX6QDL_CLK_ARM>,
  75. <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
  76. <&clks IMX6QDL_CLK_STEP>,
  77. <&clks IMX6QDL_CLK_PLL1_SW>,
  78. <&clks IMX6QDL_CLK_PLL1_SYS>;
  79. clock-names = "arm", "pll2_pfd2_396m", "step",
  80. "pll1_sw", "pll1_sys";
  81. arm-supply = <&reg_arm>;
  82. pu-supply = <&reg_pu>;
  83. soc-supply = <&reg_soc>;
  84. };
  85. cpu2: cpu@2 {
  86. compatible = "arm,cortex-a9";
  87. device_type = "cpu";
  88. reg = <2>;
  89. next-level-cache = <&L2>;
  90. operating-points = <
  91. /* kHz uV */
  92. 1200000 1275000
  93. 996000 1250000
  94. 852000 1250000
  95. 792000 1175000
  96. 396000 975000
  97. >;
  98. fsl,soc-operating-points = <
  99. /* ARM kHz SOC-PU uV */
  100. 1200000 1275000
  101. 996000 1250000
  102. 852000 1250000
  103. 792000 1175000
  104. 396000 1175000
  105. >;
  106. clock-latency = <61036>; /* two CLK32 periods */
  107. #cooling-cells = <2>;
  108. clocks = <&clks IMX6QDL_CLK_ARM>,
  109. <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
  110. <&clks IMX6QDL_CLK_STEP>,
  111. <&clks IMX6QDL_CLK_PLL1_SW>,
  112. <&clks IMX6QDL_CLK_PLL1_SYS>;
  113. clock-names = "arm", "pll2_pfd2_396m", "step",
  114. "pll1_sw", "pll1_sys";
  115. arm-supply = <&reg_arm>;
  116. pu-supply = <&reg_pu>;
  117. soc-supply = <&reg_soc>;
  118. };
  119. cpu3: cpu@3 {
  120. compatible = "arm,cortex-a9";
  121. device_type = "cpu";
  122. reg = <3>;
  123. next-level-cache = <&L2>;
  124. operating-points = <
  125. /* kHz uV */
  126. 1200000 1275000
  127. 996000 1250000
  128. 852000 1250000
  129. 792000 1175000
  130. 396000 975000
  131. >;
  132. fsl,soc-operating-points = <
  133. /* ARM kHz SOC-PU uV */
  134. 1200000 1275000
  135. 996000 1250000
  136. 852000 1250000
  137. 792000 1175000
  138. 396000 1175000
  139. >;
  140. clock-latency = <61036>; /* two CLK32 periods */
  141. #cooling-cells = <2>;
  142. clocks = <&clks IMX6QDL_CLK_ARM>,
  143. <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
  144. <&clks IMX6QDL_CLK_STEP>,
  145. <&clks IMX6QDL_CLK_PLL1_SW>,
  146. <&clks IMX6QDL_CLK_PLL1_SYS>;
  147. clock-names = "arm", "pll2_pfd2_396m", "step",
  148. "pll1_sw", "pll1_sys";
  149. arm-supply = <&reg_arm>;
  150. pu-supply = <&reg_pu>;
  151. soc-supply = <&reg_soc>;
  152. };
  153. };
  154. soc: soc {
  155. ocram: sram@900000 {
  156. compatible = "mmio-sram";
  157. reg = <0x00900000 0x40000>;
  158. ranges = <0 0x00900000 0x40000>;
  159. #address-cells = <1>;
  160. #size-cells = <1>;
  161. clocks = <&clks IMX6QDL_CLK_OCRAM>;
  162. };
  163. aips1: bus@2000000 { /* AIPS1 */
  164. spba-bus@2000000 {
  165. ecspi5: spi@2018000 {
  166. #address-cells = <1>;
  167. #size-cells = <0>;
  168. compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
  169. reg = <0x02018000 0x4000>;
  170. interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
  171. clocks = <&clks IMX6Q_CLK_ECSPI5>,
  172. <&clks IMX6Q_CLK_ECSPI5>;
  173. clock-names = "ipg", "per";
  174. dmas = <&sdma 11 7 1>, <&sdma 12 7 2>;
  175. dma-names = "rx", "tx";
  176. status = "disabled";
  177. };
  178. };
  179. };
  180. sata: sata@2200000 {
  181. compatible = "fsl,imx6q-ahci";
  182. reg = <0x02200000 0x4000>;
  183. interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>;
  184. clocks = <&clks IMX6QDL_CLK_SATA>,
  185. <&clks IMX6QDL_CLK_SATA_REF_100M>,
  186. <&clks IMX6QDL_CLK_AHB>;
  187. clock-names = "sata", "sata_ref", "ahb";
  188. status = "disabled";
  189. };
  190. gpu_vg: gpu@2204000 {
  191. compatible = "vivante,gc";
  192. reg = <0x02204000 0x4000>;
  193. interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
  194. clocks = <&clks IMX6QDL_CLK_OPENVG_AXI>,
  195. <&clks IMX6QDL_CLK_GPU2D_CORE>;
  196. clock-names = "bus", "core";
  197. power-domains = <&pd_pu>;
  198. #cooling-cells = <2>;
  199. };
  200. ipu2: ipu@2800000 {
  201. #address-cells = <1>;
  202. #size-cells = <0>;
  203. compatible = "fsl,imx6q-ipu";
  204. reg = <0x02800000 0x400000>;
  205. interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>,
  206. <0 7 IRQ_TYPE_LEVEL_HIGH>;
  207. clocks = <&clks IMX6QDL_CLK_IPU2>,
  208. <&clks IMX6QDL_CLK_IPU2_DI0>,
  209. <&clks IMX6QDL_CLK_IPU2_DI1>;
  210. clock-names = "bus", "di0", "di1";
  211. resets = <&src 4>;
  212. ipu2_csi0: port@0 {
  213. reg = <0>;
  214. ipu2_csi0_from_mipi_vc2: endpoint {
  215. remote-endpoint = <&mipi_vc2_to_ipu2_csi0>;
  216. };
  217. };
  218. ipu2_csi1: port@1 {
  219. reg = <1>;
  220. ipu2_csi1_from_ipu2_csi1_mux: endpoint {
  221. remote-endpoint = <&ipu2_csi1_mux_to_ipu2_csi1>;
  222. };
  223. };
  224. ipu2_di0: port@2 {
  225. #address-cells = <1>;
  226. #size-cells = <0>;
  227. reg = <2>;
  228. ipu2_di0_disp0: endpoint@0 {
  229. reg = <0>;
  230. };
  231. ipu2_di0_hdmi: endpoint@1 {
  232. reg = <1>;
  233. remote-endpoint = <&hdmi_mux_2>;
  234. };
  235. ipu2_di0_mipi: endpoint@2 {
  236. reg = <2>;
  237. remote-endpoint = <&mipi_mux_2>;
  238. };
  239. ipu2_di0_lvds0: endpoint@3 {
  240. reg = <3>;
  241. remote-endpoint = <&lvds0_mux_2>;
  242. };
  243. ipu2_di0_lvds1: endpoint@4 {
  244. reg = <4>;
  245. remote-endpoint = <&lvds1_mux_2>;
  246. };
  247. };
  248. ipu2_di1: port@3 {
  249. #address-cells = <1>;
  250. #size-cells = <0>;
  251. reg = <3>;
  252. ipu2_di1_hdmi: endpoint@1 {
  253. reg = <1>;
  254. remote-endpoint = <&hdmi_mux_3>;
  255. };
  256. ipu2_di1_mipi: endpoint@2 {
  257. reg = <2>;
  258. remote-endpoint = <&mipi_mux_3>;
  259. };
  260. ipu2_di1_lvds0: endpoint@3 {
  261. reg = <3>;
  262. remote-endpoint = <&lvds0_mux_3>;
  263. };
  264. ipu2_di1_lvds1: endpoint@4 {
  265. reg = <4>;
  266. remote-endpoint = <&lvds1_mux_3>;
  267. };
  268. };
  269. };
  270. };
  271. capture-subsystem {
  272. compatible = "fsl,imx-capture-subsystem";
  273. ports = <&ipu1_csi0>, <&ipu1_csi1>, <&ipu2_csi0>, <&ipu2_csi1>;
  274. };
  275. display-subsystem {
  276. compatible = "fsl,imx-display-subsystem";
  277. ports = <&ipu1_di0>, <&ipu1_di1>, <&ipu2_di0>, <&ipu2_di1>;
  278. };
  279. };
  280. &gpio1 {
  281. gpio-ranges = <&iomuxc 0 136 2>, <&iomuxc 2 141 1>, <&iomuxc 3 139 1>,
  282. <&iomuxc 4 142 2>, <&iomuxc 6 140 1>, <&iomuxc 7 144 2>,
  283. <&iomuxc 9 138 1>, <&iomuxc 10 213 3>, <&iomuxc 13 20 1>,
  284. <&iomuxc 14 19 1>, <&iomuxc 15 21 1>, <&iomuxc 16 208 1>,
  285. <&iomuxc 17 207 1>, <&iomuxc 18 210 3>, <&iomuxc 21 209 1>,
  286. <&iomuxc 22 116 10>;
  287. };
  288. &gpio2 {
  289. gpio-ranges = <&iomuxc 0 191 16>, <&iomuxc 16 55 14>, <&iomuxc 30 35 1>,
  290. <&iomuxc 31 44 1>;
  291. };
  292. &gpio3 {
  293. gpio-ranges = <&iomuxc 0 69 16>, <&iomuxc 16 36 8>, <&iomuxc 24 45 8>;
  294. };
  295. &gpio4 {
  296. gpio-ranges = <&iomuxc 5 149 1>, <&iomuxc 6 126 10>, <&iomuxc 16 87 16>;
  297. };
  298. &gpio5 {
  299. gpio-ranges = <&iomuxc 0 85 1>, <&iomuxc 2 34 1>, <&iomuxc 4 53 1>,
  300. <&iomuxc 5 103 13>, <&iomuxc 18 150 14>;
  301. };
  302. &gpio6 {
  303. gpio-ranges = <&iomuxc 0 164 6>, <&iomuxc 6 54 1>, <&iomuxc 7 181 5>,
  304. <&iomuxc 14 186 3>, <&iomuxc 17 170 2>, <&iomuxc 19 22 12>,
  305. <&iomuxc 31 86 1>;
  306. };
  307. &gpio7 {
  308. gpio-ranges = <&iomuxc 0 172 9>, <&iomuxc 9 189 2>, <&iomuxc 11 146 3>;
  309. };
  310. &gpr {
  311. ipu1_csi0_mux {
  312. compatible = "video-mux";
  313. mux-controls = <&mux 0>;
  314. #address-cells = <1>;
  315. #size-cells = <0>;
  316. port@0 {
  317. reg = <0>;
  318. ipu1_csi0_mux_from_mipi_vc0: endpoint {
  319. remote-endpoint = <&mipi_vc0_to_ipu1_csi0_mux>;
  320. };
  321. };
  322. port@1 {
  323. reg = <1>;
  324. ipu1_csi0_mux_from_parallel_sensor: endpoint {
  325. };
  326. };
  327. port@2 {
  328. reg = <2>;
  329. ipu1_csi0_mux_to_ipu1_csi0: endpoint {
  330. remote-endpoint = <&ipu1_csi0_from_ipu1_csi0_mux>;
  331. };
  332. };
  333. };
  334. ipu2_csi1_mux {
  335. compatible = "video-mux";
  336. mux-controls = <&mux 1>;
  337. #address-cells = <1>;
  338. #size-cells = <0>;
  339. port@0 {
  340. reg = <0>;
  341. ipu2_csi1_mux_from_mipi_vc3: endpoint {
  342. remote-endpoint = <&mipi_vc3_to_ipu2_csi1_mux>;
  343. };
  344. };
  345. port@1 {
  346. reg = <1>;
  347. ipu2_csi1_mux_from_parallel_sensor: endpoint {
  348. };
  349. };
  350. port@2 {
  351. reg = <2>;
  352. ipu2_csi1_mux_to_ipu2_csi1: endpoint {
  353. remote-endpoint = <&ipu2_csi1_from_ipu2_csi1_mux>;
  354. };
  355. };
  356. };
  357. };
  358. &hdmi {
  359. compatible = "fsl,imx6q-hdmi";
  360. ports {
  361. port@2 {
  362. reg = <2>;
  363. hdmi_mux_2: endpoint {
  364. remote-endpoint = <&ipu2_di0_hdmi>;
  365. };
  366. };
  367. port@3 {
  368. reg = <3>;
  369. hdmi_mux_3: endpoint {
  370. remote-endpoint = <&ipu2_di1_hdmi>;
  371. };
  372. };
  373. };
  374. };
  375. &iomuxc {
  376. compatible = "fsl,imx6q-iomuxc";
  377. };
  378. &ipu1_csi1 {
  379. ipu1_csi1_from_mipi_vc1: endpoint {
  380. remote-endpoint = <&mipi_vc1_to_ipu1_csi1>;
  381. };
  382. };
  383. &ldb {
  384. clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, <&clks IMX6QDL_CLK_LDB_DI1_SEL>,
  385. <&clks IMX6QDL_CLK_IPU1_DI0_SEL>, <&clks IMX6QDL_CLK_IPU1_DI1_SEL>,
  386. <&clks IMX6QDL_CLK_IPU2_DI0_SEL>, <&clks IMX6QDL_CLK_IPU2_DI1_SEL>,
  387. <&clks IMX6QDL_CLK_LDB_DI0>, <&clks IMX6QDL_CLK_LDB_DI1>;
  388. clock-names = "di0_pll", "di1_pll",
  389. "di0_sel", "di1_sel", "di2_sel", "di3_sel",
  390. "di0", "di1";
  391. lvds-channel@0 {
  392. port@2 {
  393. reg = <2>;
  394. lvds0_mux_2: endpoint {
  395. remote-endpoint = <&ipu2_di0_lvds0>;
  396. };
  397. };
  398. port@3 {
  399. reg = <3>;
  400. lvds0_mux_3: endpoint {
  401. remote-endpoint = <&ipu2_di1_lvds0>;
  402. };
  403. };
  404. };
  405. lvds-channel@1 {
  406. port@2 {
  407. reg = <2>;
  408. lvds1_mux_2: endpoint {
  409. remote-endpoint = <&ipu2_di0_lvds1>;
  410. };
  411. };
  412. port@3 {
  413. reg = <3>;
  414. lvds1_mux_3: endpoint {
  415. remote-endpoint = <&ipu2_di1_lvds1>;
  416. };
  417. };
  418. };
  419. };
  420. &mipi_csi {
  421. port@1 {
  422. reg = <1>;
  423. mipi_vc0_to_ipu1_csi0_mux: endpoint {
  424. remote-endpoint = <&ipu1_csi0_mux_from_mipi_vc0>;
  425. };
  426. };
  427. port@2 {
  428. reg = <2>;
  429. mipi_vc1_to_ipu1_csi1: endpoint {
  430. remote-endpoint = <&ipu1_csi1_from_mipi_vc1>;
  431. };
  432. };
  433. port@3 {
  434. reg = <3>;
  435. mipi_vc2_to_ipu2_csi0: endpoint {
  436. remote-endpoint = <&ipu2_csi0_from_mipi_vc2>;
  437. };
  438. };
  439. port@4 {
  440. reg = <4>;
  441. mipi_vc3_to_ipu2_csi1_mux: endpoint {
  442. remote-endpoint = <&ipu2_csi1_mux_from_mipi_vc3>;
  443. };
  444. };
  445. };
  446. &mipi_dsi {
  447. ports {
  448. port@2 {
  449. reg = <2>;
  450. mipi_mux_2: endpoint {
  451. remote-endpoint = <&ipu2_di0_mipi>;
  452. };
  453. };
  454. port@3 {
  455. reg = <3>;
  456. mipi_mux_3: endpoint {
  457. remote-endpoint = <&ipu2_di1_mipi>;
  458. };
  459. };
  460. };
  461. };
  462. &mux {
  463. mux-reg-masks = <0x04 0x00080000>, /* MIPI_IPU1_MUX */
  464. <0x04 0x00100000>, /* MIPI_IPU2_MUX */
  465. <0x0c 0x0000000c>, /* HDMI_MUX_CTL */
  466. <0x0c 0x000000c0>, /* LVDS0_MUX_CTL */
  467. <0x0c 0x00000300>, /* LVDS1_MUX_CTL */
  468. <0x28 0x00000003>, /* DCIC1_MUX_CTL */
  469. <0x28 0x0000000c>; /* DCIC2_MUX_CTL */
  470. };
  471. &vpu {
  472. compatible = "fsl,imx6q-vpu", "cnm,coda960";
  473. };