imx6dl.dtsi 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. // SPDX-License-Identifier: GPL-2.0
  2. //
  3. // Copyright 2013 Freescale Semiconductor, Inc.
  4. #include <dt-bindings/interrupt-controller/irq.h>
  5. #include "imx6dl-pinfunc.h"
  6. #include "imx6qdl.dtsi"
  7. / {
  8. aliases {
  9. i2c3 = &i2c4;
  10. };
  11. cpus {
  12. #address-cells = <1>;
  13. #size-cells = <0>;
  14. cpu0: cpu@0 {
  15. compatible = "arm,cortex-a9";
  16. device_type = "cpu";
  17. reg = <0>;
  18. next-level-cache = <&L2>;
  19. operating-points = <
  20. /* kHz uV */
  21. 996000 1250000
  22. 792000 1175000
  23. 396000 1150000
  24. >;
  25. fsl,soc-operating-points = <
  26. /* ARM kHz SOC-PU uV */
  27. 996000 1175000
  28. 792000 1175000
  29. 396000 1175000
  30. >;
  31. clock-latency = <61036>; /* two CLK32 periods */
  32. #cooling-cells = <2>;
  33. clocks = <&clks IMX6QDL_CLK_ARM>,
  34. <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
  35. <&clks IMX6QDL_CLK_STEP>,
  36. <&clks IMX6QDL_CLK_PLL1_SW>,
  37. <&clks IMX6QDL_CLK_PLL1_SYS>;
  38. clock-names = "arm", "pll2_pfd2_396m", "step",
  39. "pll1_sw", "pll1_sys";
  40. arm-supply = <&reg_arm>;
  41. pu-supply = <&reg_pu>;
  42. soc-supply = <&reg_soc>;
  43. nvmem-cells = <&cpu_speed_grade>;
  44. nvmem-cell-names = "speed_grade";
  45. };
  46. cpu@1 {
  47. compatible = "arm,cortex-a9";
  48. device_type = "cpu";
  49. reg = <1>;
  50. next-level-cache = <&L2>;
  51. operating-points = <
  52. /* kHz uV */
  53. 996000 1250000
  54. 792000 1175000
  55. 396000 1150000
  56. >;
  57. fsl,soc-operating-points = <
  58. /* ARM kHz SOC-PU uV */
  59. 996000 1175000
  60. 792000 1175000
  61. 396000 1175000
  62. >;
  63. clock-latency = <61036>; /* two CLK32 periods */
  64. #cooling-cells = <2>;
  65. clocks = <&clks IMX6QDL_CLK_ARM>,
  66. <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
  67. <&clks IMX6QDL_CLK_STEP>,
  68. <&clks IMX6QDL_CLK_PLL1_SW>,
  69. <&clks IMX6QDL_CLK_PLL1_SYS>;
  70. clock-names = "arm", "pll2_pfd2_396m", "step",
  71. "pll1_sw", "pll1_sys";
  72. arm-supply = <&reg_arm>;
  73. pu-supply = <&reg_pu>;
  74. soc-supply = <&reg_soc>;
  75. };
  76. };
  77. soc: soc {
  78. ocram: sram@900000 {
  79. compatible = "mmio-sram";
  80. reg = <0x00900000 0x20000>;
  81. ranges = <0 0x00900000 0x20000>;
  82. #address-cells = <1>;
  83. #size-cells = <1>;
  84. clocks = <&clks IMX6QDL_CLK_OCRAM>;
  85. };
  86. aips1: bus@2000000 {
  87. pxp: pxp@20f0000 {
  88. reg = <0x020f0000 0x4000>;
  89. interrupts = <0 98 IRQ_TYPE_LEVEL_HIGH>;
  90. };
  91. epdc: epdc@20f4000 {
  92. reg = <0x020f4000 0x4000>;
  93. interrupts = <0 97 IRQ_TYPE_LEVEL_HIGH>;
  94. };
  95. };
  96. aips2: bus@2100000 {
  97. i2c4: i2c@21f8000 {
  98. #address-cells = <1>;
  99. #size-cells = <0>;
  100. compatible = "fsl,imx6q-i2c", "fsl,imx21-i2c";
  101. reg = <0x021f8000 0x4000>;
  102. interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
  103. clocks = <&clks IMX6DL_CLK_I2C4>;
  104. status = "disabled";
  105. };
  106. };
  107. };
  108. capture-subsystem {
  109. compatible = "fsl,imx-capture-subsystem";
  110. ports = <&ipu1_csi0>, <&ipu1_csi1>;
  111. };
  112. display-subsystem {
  113. compatible = "fsl,imx-display-subsystem";
  114. ports = <&ipu1_di0>, <&ipu1_di1>;
  115. };
  116. };
  117. &gpio1 {
  118. gpio-ranges = <&iomuxc 0 131 2>, <&iomuxc 2 137 8>, <&iomuxc 10 189 2>,
  119. <&iomuxc 12 194 1>, <&iomuxc 13 193 1>, <&iomuxc 14 192 1>,
  120. <&iomuxc 15 191 1>, <&iomuxc 16 185 2>, <&iomuxc 18 184 1>,
  121. <&iomuxc 19 187 1>, <&iomuxc 20 183 1>, <&iomuxc 21 188 1>,
  122. <&iomuxc 22 123 3>, <&iomuxc 25 121 1>, <&iomuxc 26 127 1>,
  123. <&iomuxc 27 126 1>, <&iomuxc 28 128 1>, <&iomuxc 29 130 1>,
  124. <&iomuxc 30 129 1>, <&iomuxc 31 122 1>;
  125. };
  126. &gpio2 {
  127. gpio-ranges = <&iomuxc 0 161 8>, <&iomuxc 8 208 8>, <&iomuxc 16 74 1>,
  128. <&iomuxc 17 73 1>, <&iomuxc 18 72 1>, <&iomuxc 19 71 1>,
  129. <&iomuxc 20 70 1>, <&iomuxc 21 69 1>, <&iomuxc 22 68 1>,
  130. <&iomuxc 23 79 2>, <&iomuxc 25 118 2>, <&iomuxc 27 117 1>,
  131. <&iomuxc 28 113 4>;
  132. };
  133. &gpio3 {
  134. gpio-ranges = <&iomuxc 0 97 2>, <&iomuxc 2 105 8>, <&iomuxc 10 99 6>,
  135. <&iomuxc 16 81 16>;
  136. };
  137. &gpio4 {
  138. gpio-ranges = <&iomuxc 5 136 1>, <&iomuxc 6 145 1>, <&iomuxc 7 150 1>,
  139. <&iomuxc 8 146 1>, <&iomuxc 9 151 1>, <&iomuxc 10 147 1>,
  140. <&iomuxc 11 152 1>, <&iomuxc 12 148 1>, <&iomuxc 13 153 1>,
  141. <&iomuxc 14 149 1>, <&iomuxc 15 154 1>, <&iomuxc 16 39 7>,
  142. <&iomuxc 23 56 1>, <&iomuxc 24 61 7>, <&iomuxc 31 46 1>;
  143. };
  144. &gpio5 {
  145. gpio-ranges = <&iomuxc 0 120 1>, <&iomuxc 2 77 1>, <&iomuxc 4 76 1>,
  146. <&iomuxc 5 47 9>, <&iomuxc 14 57 4>, <&iomuxc 18 37 1>,
  147. <&iomuxc 19 36 1>, <&iomuxc 20 35 1>, <&iomuxc 21 38 1>,
  148. <&iomuxc 22 29 6>, <&iomuxc 28 19 4>;
  149. };
  150. &gpio6 {
  151. gpio-ranges = <&iomuxc 0 23 6>, <&iomuxc 6 75 1>, <&iomuxc 7 156 1>,
  152. <&iomuxc 8 155 1>, <&iomuxc 9 170 1>, <&iomuxc 10 169 1>,
  153. <&iomuxc 11 157 1>, <&iomuxc 14 158 3>, <&iomuxc 17 204 1>,
  154. <&iomuxc 18 203 1>, <&iomuxc 19 182 1>, <&iomuxc 20 177 4>,
  155. <&iomuxc 24 175 1>, <&iomuxc 25 171 1>, <&iomuxc 26 181 1>,
  156. <&iomuxc 27 172 3>, <&iomuxc 30 176 1>, <&iomuxc 31 78 1>;
  157. };
  158. &gpio7 {
  159. gpio-ranges = <&iomuxc 0 202 1>, <&iomuxc 1 201 1>, <&iomuxc 2 196 1>,
  160. <&iomuxc 3 195 1>, <&iomuxc 4 197 4>, <&iomuxc 8 205 1>,
  161. <&iomuxc 9 207 1>, <&iomuxc 10 206 1>, <&iomuxc 11 133 3>;
  162. };
  163. &gpr {
  164. ipu1_csi0_mux {
  165. compatible = "video-mux";
  166. mux-controls = <&mux 0>;
  167. #address-cells = <1>;
  168. #size-cells = <0>;
  169. port@0 {
  170. reg = <0>;
  171. ipu1_csi0_mux_from_mipi_vc0: endpoint {
  172. remote-endpoint = <&mipi_vc0_to_ipu1_csi0_mux>;
  173. };
  174. };
  175. port@1 {
  176. reg = <1>;
  177. ipu1_csi0_mux_from_mipi_vc1: endpoint {
  178. remote-endpoint = <&mipi_vc1_to_ipu1_csi0_mux>;
  179. };
  180. };
  181. port@2 {
  182. reg = <2>;
  183. ipu1_csi0_mux_from_mipi_vc2: endpoint {
  184. remote-endpoint = <&mipi_vc2_to_ipu1_csi0_mux>;
  185. };
  186. };
  187. port@3 {
  188. reg = <3>;
  189. ipu1_csi0_mux_from_mipi_vc3: endpoint {
  190. remote-endpoint = <&mipi_vc3_to_ipu1_csi0_mux>;
  191. };
  192. };
  193. port@4 {
  194. reg = <4>;
  195. ipu1_csi0_mux_from_parallel_sensor: endpoint {
  196. };
  197. };
  198. port@5 {
  199. reg = <5>;
  200. ipu1_csi0_mux_to_ipu1_csi0: endpoint {
  201. remote-endpoint = <&ipu1_csi0_from_ipu1_csi0_mux>;
  202. };
  203. };
  204. };
  205. ipu1_csi1_mux {
  206. compatible = "video-mux";
  207. mux-controls = <&mux 1>;
  208. #address-cells = <1>;
  209. #size-cells = <0>;
  210. port@0 {
  211. reg = <0>;
  212. ipu1_csi1_mux_from_mipi_vc0: endpoint {
  213. remote-endpoint = <&mipi_vc0_to_ipu1_csi1_mux>;
  214. };
  215. };
  216. port@1 {
  217. reg = <1>;
  218. ipu1_csi1_mux_from_mipi_vc1: endpoint {
  219. remote-endpoint = <&mipi_vc1_to_ipu1_csi1_mux>;
  220. };
  221. };
  222. port@2 {
  223. reg = <2>;
  224. ipu1_csi1_mux_from_mipi_vc2: endpoint {
  225. remote-endpoint = <&mipi_vc2_to_ipu1_csi1_mux>;
  226. };
  227. };
  228. port@3 {
  229. reg = <3>;
  230. ipu1_csi1_mux_from_mipi_vc3: endpoint {
  231. remote-endpoint = <&mipi_vc3_to_ipu1_csi1_mux>;
  232. };
  233. };
  234. port@4 {
  235. reg = <4>;
  236. ipu1_csi1_mux_from_parallel_sensor: endpoint {
  237. };
  238. };
  239. port@5 {
  240. reg = <5>;
  241. ipu1_csi1_mux_to_ipu1_csi1: endpoint {
  242. remote-endpoint = <&ipu1_csi1_from_ipu1_csi1_mux>;
  243. };
  244. };
  245. };
  246. };
  247. &gpt {
  248. compatible = "fsl,imx6dl-gpt";
  249. };
  250. &hdmi {
  251. compatible = "fsl,imx6dl-hdmi";
  252. };
  253. &iomuxc {
  254. compatible = "fsl,imx6dl-iomuxc";
  255. };
  256. &ipu1_csi1 {
  257. ipu1_csi1_from_ipu1_csi1_mux: endpoint {
  258. remote-endpoint = <&ipu1_csi1_mux_to_ipu1_csi1>;
  259. };
  260. };
  261. &ldb {
  262. clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, <&clks IMX6QDL_CLK_LDB_DI1_SEL>,
  263. <&clks IMX6QDL_CLK_IPU1_DI0_SEL>, <&clks IMX6QDL_CLK_IPU1_DI1_SEL>,
  264. <&clks IMX6QDL_CLK_LDB_DI0>, <&clks IMX6QDL_CLK_LDB_DI1>;
  265. clock-names = "di0_pll", "di1_pll",
  266. "di0_sel", "di1_sel",
  267. "di0", "di1";
  268. };
  269. &mipi_csi {
  270. port@1 {
  271. reg = <1>;
  272. #address-cells = <1>;
  273. #size-cells = <0>;
  274. mipi_vc0_to_ipu1_csi0_mux: endpoint@0 {
  275. reg = <0>;
  276. remote-endpoint = <&ipu1_csi0_mux_from_mipi_vc0>;
  277. };
  278. mipi_vc0_to_ipu1_csi1_mux: endpoint@1 {
  279. reg = <1>;
  280. remote-endpoint = <&ipu1_csi1_mux_from_mipi_vc0>;
  281. };
  282. };
  283. port@2 {
  284. reg = <2>;
  285. #address-cells = <1>;
  286. #size-cells = <0>;
  287. mipi_vc1_to_ipu1_csi0_mux: endpoint@0 {
  288. reg = <0>;
  289. remote-endpoint = <&ipu1_csi0_mux_from_mipi_vc1>;
  290. };
  291. mipi_vc1_to_ipu1_csi1_mux: endpoint@1 {
  292. reg = <1>;
  293. remote-endpoint = <&ipu1_csi1_mux_from_mipi_vc1>;
  294. };
  295. };
  296. port@3 {
  297. reg = <3>;
  298. #address-cells = <1>;
  299. #size-cells = <0>;
  300. mipi_vc2_to_ipu1_csi0_mux: endpoint@0 {
  301. reg = <0>;
  302. remote-endpoint = <&ipu1_csi0_mux_from_mipi_vc2>;
  303. };
  304. mipi_vc2_to_ipu1_csi1_mux: endpoint@1 {
  305. reg = <1>;
  306. remote-endpoint = <&ipu1_csi1_mux_from_mipi_vc2>;
  307. };
  308. };
  309. port@4 {
  310. reg = <4>;
  311. #address-cells = <1>;
  312. #size-cells = <0>;
  313. mipi_vc3_to_ipu1_csi0_mux: endpoint@0 {
  314. reg = <0>;
  315. remote-endpoint = <&ipu1_csi0_mux_from_mipi_vc3>;
  316. };
  317. mipi_vc3_to_ipu1_csi1_mux: endpoint@1 {
  318. reg = <1>;
  319. remote-endpoint = <&ipu1_csi1_mux_from_mipi_vc3>;
  320. };
  321. };
  322. };
  323. &mux {
  324. mux-reg-masks = <0x34 0x00000007>, /* IPU_CSI0_MUX */
  325. <0x34 0x00000038>, /* IPU_CSI1_MUX */
  326. <0x0c 0x0000000c>, /* HDMI_MUX_CTL */
  327. <0x0c 0x000000c0>, /* LVDS0_MUX_CTL */
  328. <0x0c 0x00000300>, /* LVDS1_MUX_CTL */
  329. <0x28 0x00000003>, /* DCIC1_MUX_CTL */
  330. <0x28 0x0000000c>; /* DCIC2_MUX_CTL */
  331. };
  332. &vpu {
  333. compatible = "fsl,imx6dl-vpu", "cnm,coda960";
  334. };