]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6q.dtsi
c5f92ce4a9f8b1441e8232f382737f61fcc7ad82
[karo-tx-linux.git] / arch / arm / boot / dts / imx6q.dtsi
1
2 /*
3  * Copyright 2013 Freescale Semiconductor, Inc.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  */
10
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include "imx6q-pinfunc.h"
13 #include "imx6qdl.dtsi"
14
15 / {
16         aliases {
17                 spi4 = &ecspi5;
18         };
19
20         cpus {
21                 #address-cells = <1>;
22                 #size-cells = <0>;
23
24                 cpu@0 {
25                         compatible = "arm,cortex-a9";
26                         device_type = "cpu";
27                         reg = <0>;
28                         next-level-cache = <&L2>;
29                         operating-points = <
30                                 /* kHz    uV */
31                                 1200000 1275000
32                                 996000  1250000
33                                 852000  1250000
34                                 792000  1150000
35                                 396000  975000
36                         >;
37                         fsl,soc-operating-points = <
38                                 /* ARM kHz  SOC-PU uV */
39                                 1200000 1275000
40                                 996000  1250000
41                                 852000  1250000
42                                 792000  1175000
43                                 396000  1175000
44                         >;
45                         clock-latency = <61036>; /* two CLK32 periods */
46                         clocks = <&clks 104>, <&clks 6>, <&clks 16>,
47                                  <&clks 17>, <&clks 170>;
48                         clock-names = "arm", "pll2_pfd2_396m", "step",
49                                       "pll1_sw", "pll1_sys";
50                         arm-supply = <&reg_arm>;
51                         pu-supply = <&reg_pu>;
52                         soc-supply = <&reg_soc>;
53                 };
54
55                 cpu@1 {
56                         compatible = "arm,cortex-a9";
57                         device_type = "cpu";
58                         reg = <1>;
59                         next-level-cache = <&L2>;
60                 };
61
62                 cpu@2 {
63                         compatible = "arm,cortex-a9";
64                         device_type = "cpu";
65                         reg = <2>;
66                         next-level-cache = <&L2>;
67                 };
68
69                 cpu@3 {
70                         compatible = "arm,cortex-a9";
71                         device_type = "cpu";
72                         reg = <3>;
73                         next-level-cache = <&L2>;
74                 };
75         };
76
77         soc {
78                 gpu@00130000 {
79                         compatible = "fsl,imx6q-gpu";
80                         reg = <0x00130000 0x4000>, <0x00134000 0x4000>,
81                               <0x02204000 0x4000>, <0x0 0x0>;
82                         reg-names = "iobase_3d", "iobase_2d",
83                                     "iobase_vg", "phys_baseaddr";
84                         interrupts = <0 9 0x04>, <0 10 0x04>,<0 11 0x04>;
85                         interrupt-names = "irq_3d", "irq_2d", "irq_vg";
86                         clocks = <&clks 26>, <&clks 143>,
87                                  <&clks 27>, <&clks 121>,
88                                  <&clks 122>, <&clks 74>;
89                         clock-names = "gpu2d_axi_clk", "openvg_axi_clk",
90                                       "gpu3d_axi_clk", "gpu2d_clk",
91                                       "gpu3d_clk", "gpu3d_shader_clk";
92                         resets = <&src 0>, <&src 3>, <&src 3>;
93                         reset-names = "gpu3d", "gpu2d", "gpuvg";
94                 };
95
96                 ocram: sram@00900000 {
97                         compatible = "mmio-sram";
98                         reg = <0x00900000 0x40000>;
99                         clocks = <&clks 142>;
100                 };
101
102                 aips-bus@02000000 { /* AIPS1 */
103                         spba-bus@02000000 {
104                                 ecspi5: ecspi@02018000 {
105                                         #address-cells = <1>;
106                                         #size-cells = <0>;
107                                         compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
108                                         reg = <0x02018000 0x4000>;
109                                         interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
110                                         clocks = <&clks 116>, <&clks 116>;
111                                         clock-names = "ipg", "per";
112                                         status = "disabled";
113                                 };
114                         };
115
116                         vpu@02040000 {
117                                 status = "okay";
118                         };
119
120                         iomuxc: iomuxc@020e0000 {
121                                 compatible = "fsl,imx6q-iomuxc";
122                         };
123                 };
124
125                 sata: sata@02200000 {
126                         compatible = "fsl,imx6q-ahci";
127                         reg = <0x02200000 0x4000>;
128                         interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>;
129                         clocks =  <&clks 154>, <&clks 187>, <&clks 105>;
130                         clock-names = "sata", "sata_ref", "ahb";
131                         status = "disabled";
132                 };
133
134                 ipu2: ipu@02800000 {
135                         #address-cells = <1>;
136                         #size-cells = <0>;
137                         compatible = "fsl,imx6q-ipu";
138                         reg = <0x02800000 0x400000>;
139                         interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>,
140                                      <0 7 IRQ_TYPE_LEVEL_HIGH>;
141                         clocks = <&clks 133>, <&clks 134>, <&clks 137>;
142                         clock-names = "bus", "di0", "di1";
143                         resets = <&src 4>;
144
145                         ipu2_di0: port@2 {
146                                 #address-cells = <1>;
147                                 #size-cells = <0>;
148                                 reg = <2>;
149
150                                 ipu2_di0_disp0: endpoint@0 {
151                                 };
152
153                                 ipu2_di0_hdmi: endpoint@1 {
154                                         remote-endpoint = <&hdmi_mux_2>;
155                                 };
156
157                                 ipu2_di0_mipi: endpoint@2 {
158                                 };
159
160                                 ipu2_di0_lvds0: endpoint@3 {
161                                         remote-endpoint = <&lvds0_mux_2>;
162                                 };
163
164                                 ipu2_di0_lvds1: endpoint@4 {
165                                         remote-endpoint = <&lvds1_mux_2>;
166                                 };
167                         };
168
169                         ipu2_di1: port@3 {
170                                 #address-cells = <1>;
171                                 #size-cells = <0>;
172                                 reg = <3>;
173
174                                 ipu2_di1_hdmi: endpoint@1 {
175                                         remote-endpoint = <&hdmi_mux_3>;
176                                 };
177
178                                 ipu2_di1_mipi: endpoint@2 {
179                                 };
180
181                                 ipu2_di1_lvds0: endpoint@3 {
182                                         remote-endpoint = <&lvds0_mux_3>;
183                                 };
184
185                                 ipu2_di1_lvds1: endpoint@4 {
186                                         remote-endpoint = <&lvds1_mux_3>;
187                                 };
188                         };
189                 };
190         };
191
192         display-subsystem {
193                 compatible = "fsl,imx-display-subsystem";
194                 ports = <&ipu1_di0>, <&ipu1_di1>, <&ipu2_di0>, <&ipu2_di1>;
195         };
196 };
197
198 &hdmi {
199         compatible = "fsl,imx6q-hdmi";
200
201         port@2 {
202                 reg = <2>;
203
204                 hdmi_mux_2: endpoint {
205                         remote-endpoint = <&ipu2_di0_hdmi>;
206                 };
207         };
208
209         port@3 {
210                 reg = <3>;
211
212                 hdmi_mux_3: endpoint {
213                         remote-endpoint = <&ipu2_di1_hdmi>;
214                 };
215         };
216 };
217
218 &ldb {
219         clocks = <&clks 33>, <&clks 34>,
220                  <&clks 39>, <&clks 40>, <&clks 41>, <&clks 42>,
221                  <&clks 135>, <&clks 136>;
222         clock-names = "di0_pll", "di1_pll",
223                       "di0_sel", "di1_sel", "di2_sel", "di3_sel",
224                       "di0", "di1";
225
226         lvds-channel@0 {
227                 port@2 {
228                         reg = <2>;
229
230                         lvds0_mux_2: endpoint {
231                                 remote-endpoint = <&ipu2_di0_lvds0>;
232                         };
233                 };
234
235                 port@3 {
236                         reg = <3>;
237
238                         lvds0_mux_3: endpoint {
239                                 remote-endpoint = <&ipu2_di1_lvds0>;
240                         };
241                 };
242         };
243
244         lvds-channel@1 {
245                 port@2 {
246                         reg = <2>;
247
248                         lvds1_mux_2: endpoint {
249                                 remote-endpoint = <&ipu2_di0_lvds1>;
250                         };
251                 };
252
253                 port@3 {
254                         reg = <3>;
255
256                         lvds1_mux_3: endpoint {
257                                 remote-endpoint = <&ipu2_di1_lvds1>;
258                         };
259                 };
260         };
261 };
262
263 &mipi_dsi {
264         port@2 {
265                 reg = <2>;
266
267                 mipi_mux_2: endpoint {
268                         remote-endpoint = <&ipu2_di0_mipi>;
269                 };
270         };
271
272         port@3 {
273                 reg = <3>;
274
275                 mipi_mux_3: endpoint {
276                         remote-endpoint = <&ipu2_di1_mipi>;
277                 };
278         };
279 };
280
281 &iomuxc {
282         ipu2 {
283                 pinctrl_ipu2_1: ipu2grp-1 {
284                         fsl,pins = <
285                                 MX6QDL_PAD_DI0_DISP_CLK__IPU2_DI0_DISP_CLK 0x10
286                                 MX6QDL_PAD_DI0_PIN15__IPU2_DI0_PIN15       0x10
287                                 MX6QDL_PAD_DI0_PIN2__IPU2_DI0_PIN02        0x10
288                                 MX6QDL_PAD_DI0_PIN3__IPU2_DI0_PIN03        0x10
289                                 MX6QDL_PAD_DI0_PIN4__IPU2_DI0_PIN04        0x80000000
290                                 MX6QDL_PAD_DISP0_DAT0__IPU2_DISP0_DATA00   0x10
291                                 MX6QDL_PAD_DISP0_DAT1__IPU2_DISP0_DATA01   0x10
292                                 MX6QDL_PAD_DISP0_DAT2__IPU2_DISP0_DATA02   0x10
293                                 MX6QDL_PAD_DISP0_DAT3__IPU2_DISP0_DATA03   0x10
294                                 MX6QDL_PAD_DISP0_DAT4__IPU2_DISP0_DATA04   0x10
295                                 MX6QDL_PAD_DISP0_DAT5__IPU2_DISP0_DATA05   0x10
296                                 MX6QDL_PAD_DISP0_DAT6__IPU2_DISP0_DATA06   0x10
297                                 MX6QDL_PAD_DISP0_DAT7__IPU2_DISP0_DATA07   0x10
298                                 MX6QDL_PAD_DISP0_DAT8__IPU2_DISP0_DATA08   0x10
299                                 MX6QDL_PAD_DISP0_DAT9__IPU2_DISP0_DATA09   0x10
300                                 MX6QDL_PAD_DISP0_DAT10__IPU2_DISP0_DATA10  0x10
301                                 MX6QDL_PAD_DISP0_DAT11__IPU2_DISP0_DATA11  0x10
302                                 MX6QDL_PAD_DISP0_DAT12__IPU2_DISP0_DATA12  0x10
303                                 MX6QDL_PAD_DISP0_DAT13__IPU2_DISP0_DATA13  0x10
304                                 MX6QDL_PAD_DISP0_DAT14__IPU2_DISP0_DATA14  0x10
305                                 MX6QDL_PAD_DISP0_DAT15__IPU2_DISP0_DATA15  0x10
306                                 MX6QDL_PAD_DISP0_DAT16__IPU2_DISP0_DATA16  0x10
307                                 MX6QDL_PAD_DISP0_DAT17__IPU2_DISP0_DATA17  0x10
308                                 MX6QDL_PAD_DISP0_DAT18__IPU2_DISP0_DATA18  0x10
309                                 MX6QDL_PAD_DISP0_DAT19__IPU2_DISP0_DATA19  0x10
310                                 MX6QDL_PAD_DISP0_DAT20__IPU2_DISP0_DATA20  0x10
311                                 MX6QDL_PAD_DISP0_DAT21__IPU2_DISP0_DATA21  0x10
312                                 MX6QDL_PAD_DISP0_DAT22__IPU2_DISP0_DATA22  0x10
313                                 MX6QDL_PAD_DISP0_DAT23__IPU2_DISP0_DATA23  0x10
314                         >;
315                 };
316         };
317 };