imx6q.dtsi 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. /*
  2. * Copyright 2013 Freescale Semiconductor, Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. */
  9. #include <dt-bindings/interrupt-controller/irq.h>
  10. #include "imx6q-pinfunc.h"
  11. #include "imx6qdl.dtsi"
  12. / {
  13. aliases {
  14. ipu1 = &ipu2;
  15. spi4 = &ecspi5;
  16. };
  17. cpus {
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. cpu0: cpu@0 {
  21. compatible = "arm,cortex-a9";
  22. device_type = "cpu";
  23. reg = <0>;
  24. next-level-cache = <&L2>;
  25. operating-points = <
  26. /* kHz uV */
  27. 1200000 1275000
  28. 996000 1250000
  29. 852000 1250000
  30. 792000 1175000
  31. 396000 975000
  32. >;
  33. fsl,soc-operating-points = <
  34. /* ARM kHz SOC-PU uV */
  35. 1200000 1275000
  36. 996000 1250000
  37. 852000 1250000
  38. 792000 1175000
  39. 396000 1175000
  40. >;
  41. clock-latency = <61036>; /* two CLK32 periods */
  42. clocks = <&clks IMX6QDL_CLK_ARM>,
  43. <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
  44. <&clks IMX6QDL_CLK_STEP>,
  45. <&clks IMX6QDL_CLK_PLL1_SW>,
  46. <&clks IMX6QDL_CLK_PLL1_SYS>;
  47. clock-names = "arm", "pll2_pfd2_396m", "step",
  48. "pll1_sw", "pll1_sys";
  49. arm-supply = <&reg_arm>;
  50. pu-supply = <&reg_pu>;
  51. soc-supply = <&reg_soc>;
  52. };
  53. cpu@1 {
  54. compatible = "arm,cortex-a9";
  55. device_type = "cpu";
  56. reg = <1>;
  57. next-level-cache = <&L2>;
  58. };
  59. cpu@2 {
  60. compatible = "arm,cortex-a9";
  61. device_type = "cpu";
  62. reg = <2>;
  63. next-level-cache = <&L2>;
  64. };
  65. cpu@3 {
  66. compatible = "arm,cortex-a9";
  67. device_type = "cpu";
  68. reg = <3>;
  69. next-level-cache = <&L2>;
  70. };
  71. };
  72. soc {
  73. ocram: sram@00900000 {
  74. compatible = "mmio-sram";
  75. reg = <0x00900000 0x40000>;
  76. clocks = <&clks IMX6QDL_CLK_OCRAM>;
  77. };
  78. aips-bus@02000000 { /* AIPS1 */
  79. spba-bus@02000000 {
  80. ecspi5: ecspi@02018000 {
  81. #address-cells = <1>;
  82. #size-cells = <0>;
  83. compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
  84. reg = <0x02018000 0x4000>;
  85. interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
  86. clocks = <&clks IMX6Q_CLK_ECSPI5>,
  87. <&clks IMX6Q_CLK_ECSPI5>;
  88. clock-names = "ipg", "per";
  89. dmas = <&sdma 11 8 1>, <&sdma 12 8 2>;
  90. dma-names = "rx", "tx";
  91. status = "disabled";
  92. };
  93. };
  94. iomuxc: iomuxc@020e0000 {
  95. compatible = "fsl,imx6q-iomuxc";
  96. };
  97. };
  98. sata: sata@02200000 {
  99. compatible = "fsl,imx6q-ahci";
  100. reg = <0x02200000 0x4000>;
  101. interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>;
  102. clocks = <&clks IMX6QDL_CLK_SATA>,
  103. <&clks IMX6QDL_CLK_SATA_REF_100M>,
  104. <&clks IMX6QDL_CLK_AHB>;
  105. clock-names = "sata", "sata_ref", "ahb";
  106. status = "disabled";
  107. };
  108. gpu_vg: gpu@02204000 {
  109. compatible = "vivante,gc";
  110. reg = <0x02204000 0x4000>;
  111. interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
  112. clocks = <&clks IMX6QDL_CLK_OPENVG_AXI>,
  113. <&clks IMX6QDL_CLK_GPU2D_CORE>;
  114. clock-names = "bus", "core";
  115. power-domains = <&gpc 1>;
  116. };
  117. ipu2: ipu@02800000 {
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. compatible = "fsl,imx6q-ipu";
  121. reg = <0x02800000 0x400000>;
  122. interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>,
  123. <0 7 IRQ_TYPE_LEVEL_HIGH>;
  124. clocks = <&clks IMX6QDL_CLK_IPU2>,
  125. <&clks IMX6QDL_CLK_IPU2_DI0>,
  126. <&clks IMX6QDL_CLK_IPU2_DI1>;
  127. clock-names = "bus", "di0", "di1";
  128. resets = <&src 4>;
  129. ipu2_csi0: port@0 {
  130. reg = <0>;
  131. };
  132. ipu2_csi1: port@1 {
  133. reg = <1>;
  134. };
  135. ipu2_di0: port@2 {
  136. #address-cells = <1>;
  137. #size-cells = <0>;
  138. reg = <2>;
  139. ipu2_di0_disp0: disp0-endpoint {
  140. };
  141. ipu2_di0_hdmi: hdmi-endpoint {
  142. remote-endpoint = <&hdmi_mux_2>;
  143. };
  144. ipu2_di0_mipi: mipi-endpoint {
  145. remote-endpoint = <&mipi_mux_2>;
  146. };
  147. ipu2_di0_lvds0: lvds0-endpoint {
  148. remote-endpoint = <&lvds0_mux_2>;
  149. };
  150. ipu2_di0_lvds1: lvds1-endpoint {
  151. remote-endpoint = <&lvds1_mux_2>;
  152. };
  153. };
  154. ipu2_di1: port@3 {
  155. #address-cells = <1>;
  156. #size-cells = <0>;
  157. reg = <3>;
  158. ipu2_di1_hdmi: hdmi-endpoint {
  159. remote-endpoint = <&hdmi_mux_3>;
  160. };
  161. ipu2_di1_mipi: mipi-endpoint {
  162. remote-endpoint = <&mipi_mux_3>;
  163. };
  164. ipu2_di1_lvds0: lvds0-endpoint {
  165. remote-endpoint = <&lvds0_mux_3>;
  166. };
  167. ipu2_di1_lvds1: lvds1-endpoint {
  168. remote-endpoint = <&lvds1_mux_3>;
  169. };
  170. };
  171. };
  172. };
  173. display-subsystem {
  174. compatible = "fsl,imx-display-subsystem";
  175. ports = <&ipu1_di0>, <&ipu1_di1>, <&ipu2_di0>, <&ipu2_di1>;
  176. };
  177. gpu-subsystem {
  178. compatible = "fsl,imx-gpu-subsystem";
  179. cores = <&gpu_2d>, <&gpu_3d>, <&gpu_vg>;
  180. };
  181. };
  182. &gpio1 {
  183. gpio-ranges = <&iomuxc 0 136 2>, <&iomuxc 2 141 1>, <&iomuxc 3 139 1>,
  184. <&iomuxc 4 142 2>, <&iomuxc 6 140 1>, <&iomuxc 7 144 2>,
  185. <&iomuxc 9 138 1>, <&iomuxc 10 213 3>, <&iomuxc 13 20 1>,
  186. <&iomuxc 14 19 1>, <&iomuxc 15 21 1>, <&iomuxc 16 208 1>,
  187. <&iomuxc 17 207 1>, <&iomuxc 18 210 3>, <&iomuxc 21 209 1>,
  188. <&iomuxc 22 116 10>;
  189. };
  190. &gpio2 {
  191. gpio-ranges = <&iomuxc 0 191 16>, <&iomuxc 16 55 14>, <&iomuxc 30 35 1>,
  192. <&iomuxc 31 44 1>;
  193. };
  194. &gpio3 {
  195. gpio-ranges = <&iomuxc 0 69 16>, <&iomuxc 16 36 8>, <&iomuxc 24 45 8>;
  196. };
  197. &gpio4 {
  198. gpio-ranges = <&iomuxc 5 149 1>, <&iomuxc 6 126 10>, <&iomuxc 16 87 16>;
  199. };
  200. &gpio5 {
  201. gpio-ranges = <&iomuxc 0 85 1>, <&iomuxc 2 34 1>, <&iomuxc 4 53 1>,
  202. <&iomuxc 5 103 13>, <&iomuxc 18 150 14>;
  203. };
  204. &gpio6 {
  205. gpio-ranges = <&iomuxc 0 164 6>, <&iomuxc 6 54 1>, <&iomuxc 7 181 5>,
  206. <&iomuxc 14 186 3>, <&iomuxc 17 170 2>, <&iomuxc 19 22 12>,
  207. <&iomuxc 31 86 1>;
  208. };
  209. &gpio7 {
  210. gpio-ranges = <&iomuxc 0 172 9>, <&iomuxc 9 189 2>, <&iomuxc 11 146 3>;
  211. };
  212. &hdmi {
  213. compatible = "fsl,imx6q-hdmi";
  214. port@2 {
  215. reg = <2>;
  216. hdmi_mux_2: endpoint {
  217. remote-endpoint = <&ipu2_di0_hdmi>;
  218. };
  219. };
  220. port@3 {
  221. reg = <3>;
  222. hdmi_mux_3: endpoint {
  223. remote-endpoint = <&ipu2_di1_hdmi>;
  224. };
  225. };
  226. };
  227. &ldb {
  228. clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, <&clks IMX6QDL_CLK_LDB_DI1_SEL>,
  229. <&clks IMX6QDL_CLK_IPU1_DI0_SEL>, <&clks IMX6QDL_CLK_IPU1_DI1_SEL>,
  230. <&clks IMX6QDL_CLK_IPU2_DI0_SEL>, <&clks IMX6QDL_CLK_IPU2_DI1_SEL>,
  231. <&clks IMX6QDL_CLK_LDB_DI0>, <&clks IMX6QDL_CLK_LDB_DI1>;
  232. clock-names = "di0_pll", "di1_pll",
  233. "di0_sel", "di1_sel", "di2_sel", "di3_sel",
  234. "di0", "di1";
  235. lvds-channel@0 {
  236. port@2 {
  237. reg = <2>;
  238. lvds0_mux_2: endpoint {
  239. remote-endpoint = <&ipu2_di0_lvds0>;
  240. };
  241. };
  242. port@3 {
  243. reg = <3>;
  244. lvds0_mux_3: endpoint {
  245. remote-endpoint = <&ipu2_di1_lvds0>;
  246. };
  247. };
  248. };
  249. lvds-channel@1 {
  250. port@2 {
  251. reg = <2>;
  252. lvds1_mux_2: endpoint {
  253. remote-endpoint = <&ipu2_di0_lvds1>;
  254. };
  255. };
  256. port@3 {
  257. reg = <3>;
  258. lvds1_mux_3: endpoint {
  259. remote-endpoint = <&ipu2_di1_lvds1>;
  260. };
  261. };
  262. };
  263. };
  264. &mipi_dsi {
  265. ports {
  266. port@2 {
  267. reg = <2>;
  268. mipi_mux_2: endpoint {
  269. remote-endpoint = <&ipu2_di0_mipi>;
  270. };
  271. };
  272. port@3 {
  273. reg = <3>;
  274. mipi_mux_3: endpoint {
  275. remote-endpoint = <&ipu2_di1_mipi>;
  276. };
  277. };
  278. };
  279. };
  280. &vpu {
  281. compatible = "fsl,imx6q-vpu", "cnm,coda960";
  282. };