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