imx6q.dtsi 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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. spi4 = &ecspi5;
  15. };
  16. cpus {
  17. #address-cells = <1>;
  18. #size-cells = <0>;
  19. cpu@0 {
  20. compatible = "arm,cortex-a9";
  21. device_type = "cpu";
  22. reg = <0>;
  23. next-level-cache = <&L2>;
  24. operating-points = <
  25. /* kHz uV */
  26. 1200000 1275000
  27. 996000 1250000
  28. 852000 1250000
  29. 792000 1150000
  30. 396000 975000
  31. >;
  32. fsl,soc-operating-points = <
  33. /* ARM kHz SOC-PU uV */
  34. 1200000 1275000
  35. 996000 1250000
  36. 852000 1250000
  37. 792000 1175000
  38. 396000 1175000
  39. >;
  40. clock-latency = <61036>; /* two CLK32 periods */
  41. clocks = <&clks IMX6QDL_CLK_ARM>,
  42. <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
  43. <&clks IMX6QDL_CLK_STEP>,
  44. <&clks IMX6QDL_CLK_PLL1_SW>,
  45. <&clks IMX6QDL_CLK_PLL1_SYS>;
  46. clock-names = "arm", "pll2_pfd2_396m", "step",
  47. "pll1_sw", "pll1_sys";
  48. arm-supply = <&reg_arm>;
  49. pu-supply = <&reg_pu>;
  50. soc-supply = <&reg_soc>;
  51. };
  52. cpu@1 {
  53. compatible = "arm,cortex-a9";
  54. device_type = "cpu";
  55. reg = <1>;
  56. next-level-cache = <&L2>;
  57. };
  58. cpu@2 {
  59. compatible = "arm,cortex-a9";
  60. device_type = "cpu";
  61. reg = <2>;
  62. next-level-cache = <&L2>;
  63. };
  64. cpu@3 {
  65. compatible = "arm,cortex-a9";
  66. device_type = "cpu";
  67. reg = <3>;
  68. next-level-cache = <&L2>;
  69. };
  70. };
  71. soc {
  72. ocram: sram@00900000 {
  73. compatible = "mmio-sram";
  74. reg = <0x00900000 0x40000>;
  75. clocks = <&clks IMX6QDL_CLK_OCRAM>;
  76. };
  77. aips-bus@02000000 { /* AIPS1 */
  78. spba-bus@02000000 {
  79. ecspi5: ecspi@02018000 {
  80. #address-cells = <1>;
  81. #size-cells = <0>;
  82. compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
  83. reg = <0x02018000 0x4000>;
  84. interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
  85. clocks = <&clks IMX6Q_CLK_ECSPI5>,
  86. <&clks IMX6Q_CLK_ECSPI5>;
  87. clock-names = "ipg", "per";
  88. status = "disabled";
  89. };
  90. };
  91. iomuxc: iomuxc@020e0000 {
  92. compatible = "fsl,imx6q-iomuxc";
  93. ipu2 {
  94. pinctrl_ipu2_1: ipu2grp-1 {
  95. fsl,pins = <
  96. MX6QDL_PAD_DI0_DISP_CLK__IPU2_DI0_DISP_CLK 0x10
  97. MX6QDL_PAD_DI0_PIN15__IPU2_DI0_PIN15 0x10
  98. MX6QDL_PAD_DI0_PIN2__IPU2_DI0_PIN02 0x10
  99. MX6QDL_PAD_DI0_PIN3__IPU2_DI0_PIN03 0x10
  100. MX6QDL_PAD_DI0_PIN4__IPU2_DI0_PIN04 0x80000000
  101. MX6QDL_PAD_DISP0_DAT0__IPU2_DISP0_DATA00 0x10
  102. MX6QDL_PAD_DISP0_DAT1__IPU2_DISP0_DATA01 0x10
  103. MX6QDL_PAD_DISP0_DAT2__IPU2_DISP0_DATA02 0x10
  104. MX6QDL_PAD_DISP0_DAT3__IPU2_DISP0_DATA03 0x10
  105. MX6QDL_PAD_DISP0_DAT4__IPU2_DISP0_DATA04 0x10
  106. MX6QDL_PAD_DISP0_DAT5__IPU2_DISP0_DATA05 0x10
  107. MX6QDL_PAD_DISP0_DAT6__IPU2_DISP0_DATA06 0x10
  108. MX6QDL_PAD_DISP0_DAT7__IPU2_DISP0_DATA07 0x10
  109. MX6QDL_PAD_DISP0_DAT8__IPU2_DISP0_DATA08 0x10
  110. MX6QDL_PAD_DISP0_DAT9__IPU2_DISP0_DATA09 0x10
  111. MX6QDL_PAD_DISP0_DAT10__IPU2_DISP0_DATA10 0x10
  112. MX6QDL_PAD_DISP0_DAT11__IPU2_DISP0_DATA11 0x10
  113. MX6QDL_PAD_DISP0_DAT12__IPU2_DISP0_DATA12 0x10
  114. MX6QDL_PAD_DISP0_DAT13__IPU2_DISP0_DATA13 0x10
  115. MX6QDL_PAD_DISP0_DAT14__IPU2_DISP0_DATA14 0x10
  116. MX6QDL_PAD_DISP0_DAT15__IPU2_DISP0_DATA15 0x10
  117. MX6QDL_PAD_DISP0_DAT16__IPU2_DISP0_DATA16 0x10
  118. MX6QDL_PAD_DISP0_DAT17__IPU2_DISP0_DATA17 0x10
  119. MX6QDL_PAD_DISP0_DAT18__IPU2_DISP0_DATA18 0x10
  120. MX6QDL_PAD_DISP0_DAT19__IPU2_DISP0_DATA19 0x10
  121. MX6QDL_PAD_DISP0_DAT20__IPU2_DISP0_DATA20 0x10
  122. MX6QDL_PAD_DISP0_DAT21__IPU2_DISP0_DATA21 0x10
  123. MX6QDL_PAD_DISP0_DAT22__IPU2_DISP0_DATA22 0x10
  124. MX6QDL_PAD_DISP0_DAT23__IPU2_DISP0_DATA23 0x10
  125. >;
  126. };
  127. };
  128. };
  129. };
  130. sata: sata@02200000 {
  131. compatible = "fsl,imx6q-ahci";
  132. reg = <0x02200000 0x4000>;
  133. interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>;
  134. clocks = <&clks IMX6QDL_CLK_SATA>,
  135. <&clks IMX6QDL_CLK_SATA_REF_100M>,
  136. <&clks IMX6QDL_CLK_AHB>;
  137. clock-names = "sata", "sata_ref", "ahb";
  138. status = "disabled";
  139. };
  140. ipu2: ipu@02800000 {
  141. #address-cells = <1>;
  142. #size-cells = <0>;
  143. compatible = "fsl,imx6q-ipu";
  144. reg = <0x02800000 0x400000>;
  145. interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>,
  146. <0 7 IRQ_TYPE_LEVEL_HIGH>;
  147. clocks = <&clks IMX6QDL_CLK_IPU2>,
  148. <&clks IMX6QDL_CLK_IPU2_DI0>,
  149. <&clks IMX6QDL_CLK_IPU2_DI1>;
  150. clock-names = "bus", "di0", "di1";
  151. resets = <&src 4>;
  152. ipu2_csi0: port@0 {
  153. reg = <0>;
  154. };
  155. ipu2_csi1: port@1 {
  156. reg = <1>;
  157. };
  158. ipu2_di0: port@2 {
  159. #address-cells = <1>;
  160. #size-cells = <0>;
  161. reg = <2>;
  162. ipu2_di0_disp0: endpoint@0 {
  163. };
  164. ipu2_di0_hdmi: endpoint@1 {
  165. remote-endpoint = <&hdmi_mux_2>;
  166. };
  167. ipu2_di0_mipi: endpoint@2 {
  168. };
  169. ipu2_di0_lvds0: endpoint@3 {
  170. remote-endpoint = <&lvds0_mux_2>;
  171. };
  172. ipu2_di0_lvds1: endpoint@4 {
  173. remote-endpoint = <&lvds1_mux_2>;
  174. };
  175. };
  176. ipu2_di1: port@3 {
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. reg = <3>;
  180. ipu2_di1_hdmi: endpoint@1 {
  181. remote-endpoint = <&hdmi_mux_3>;
  182. };
  183. ipu2_di1_mipi: endpoint@2 {
  184. };
  185. ipu2_di1_lvds0: endpoint@3 {
  186. remote-endpoint = <&lvds0_mux_3>;
  187. };
  188. ipu2_di1_lvds1: endpoint@4 {
  189. remote-endpoint = <&lvds1_mux_3>;
  190. };
  191. };
  192. };
  193. };
  194. display-subsystem {
  195. compatible = "fsl,imx-display-subsystem";
  196. ports = <&ipu1_di0>, <&ipu1_di1>, <&ipu2_di0>, <&ipu2_di1>;
  197. };
  198. };
  199. &hdmi {
  200. compatible = "fsl,imx6q-hdmi";
  201. port@2 {
  202. reg = <2>;
  203. hdmi_mux_2: endpoint {
  204. remote-endpoint = <&ipu2_di0_hdmi>;
  205. };
  206. };
  207. port@3 {
  208. reg = <3>;
  209. hdmi_mux_3: endpoint {
  210. remote-endpoint = <&ipu2_di1_hdmi>;
  211. };
  212. };
  213. };
  214. &ldb {
  215. clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, <&clks IMX6QDL_CLK_LDB_DI1_SEL>,
  216. <&clks IMX6QDL_CLK_IPU1_DI0_SEL>, <&clks IMX6QDL_CLK_IPU1_DI1_SEL>,
  217. <&clks IMX6QDL_CLK_IPU2_DI0_SEL>, <&clks IMX6QDL_CLK_IPU2_DI1_SEL>,
  218. <&clks IMX6QDL_CLK_LDB_DI0>, <&clks IMX6QDL_CLK_LDB_DI1>;
  219. clock-names = "di0_pll", "di1_pll",
  220. "di0_sel", "di1_sel", "di2_sel", "di3_sel",
  221. "di0", "di1";
  222. lvds-channel@0 {
  223. port@2 {
  224. reg = <2>;
  225. lvds0_mux_2: endpoint {
  226. remote-endpoint = <&ipu2_di0_lvds0>;
  227. };
  228. };
  229. port@3 {
  230. reg = <3>;
  231. lvds0_mux_3: endpoint {
  232. remote-endpoint = <&ipu2_di1_lvds0>;
  233. };
  234. };
  235. };
  236. lvds-channel@1 {
  237. port@2 {
  238. reg = <2>;
  239. lvds1_mux_2: endpoint {
  240. remote-endpoint = <&ipu2_di0_lvds1>;
  241. };
  242. };
  243. port@3 {
  244. reg = <3>;
  245. lvds1_mux_3: endpoint {
  246. remote-endpoint = <&ipu2_di1_lvds1>;
  247. };
  248. };
  249. };
  250. };
  251. &mipi_dsi {
  252. port@2 {
  253. reg = <2>;
  254. mipi_mux_2: endpoint {
  255. remote-endpoint = <&ipu2_di0_mipi>;
  256. };
  257. };
  258. port@3 {
  259. reg = <3>;
  260. mipi_mux_3: endpoint {
  261. remote-endpoint = <&ipu2_di1_mipi>;
  262. };
  263. };
  264. };