blob: be80156d8061013b8f692e9cd0450059f425db0c [file] [log] [blame]
Frank Li94967342015-05-19 02:45:04 +08001/*
2 * Copyright 2015 Freescale Semiconductor, Inc.
Stefan Agnera67970a2016-06-26 01:47:53 -07003 * Copyright 2016 Toradex AG
Frank Li94967342015-05-19 02:45:04 +08004 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44#include <dt-bindings/clock/imx7d-clock.h>
45#include <dt-bindings/gpio/gpio.h>
Stefan Agner1e886a12016-06-26 01:47:54 -070046#include <dt-bindings/input/input.h>
Frank Li94967342015-05-19 02:45:04 +080047#include <dt-bindings/interrupt-controller/arm-gic.h>
48#include "imx7d-pinfunc.h"
49#include "skeleton.dtsi"
50
51/ {
52 aliases {
53 gpio0 = &gpio1;
54 gpio1 = &gpio2;
55 gpio2 = &gpio3;
56 gpio3 = &gpio4;
57 gpio4 = &gpio5;
58 gpio5 = &gpio6;
59 gpio6 = &gpio7;
60 i2c0 = &i2c1;
61 i2c1 = &i2c2;
62 i2c2 = &i2c3;
63 i2c3 = &i2c4;
64 mmc0 = &usdhc1;
65 mmc1 = &usdhc2;
66 mmc2 = &usdhc3;
67 serial0 = &uart1;
68 serial1 = &uart2;
69 serial2 = &uart3;
70 serial3 = &uart4;
71 serial4 = &uart5;
72 serial5 = &uart6;
73 serial6 = &uart7;
Diego Dortab754af32016-06-22 16:37:07 -030074 spi0 = &ecspi1;
75 spi1 = &ecspi2;
76 spi2 = &ecspi3;
77 spi3 = &ecspi4;
Frank Li94967342015-05-19 02:45:04 +080078 };
79
80 cpus {
81 #address-cells = <1>;
82 #size-cells = <0>;
83
84 cpu0: cpu@0 {
85 compatible = "arm,cortex-a7";
86 device_type = "cpu";
87 reg = <0>;
88 operating-points = <
89 /* KHz uV */
90 996000 1075000
91 792000 975000
92 >;
93 clock-latency = <61036>; /* two CLK32 periods */
Bai Ping698e2ac2015-11-24 18:25:15 +080094 clocks = <&clks IMX7D_CLK_ARM>;
Frank Li94967342015-05-19 02:45:04 +080095 };
Frank Li94967342015-05-19 02:45:04 +080096 };
97
Frank Li94967342015-05-19 02:45:04 +080098 ckil: clock-cki {
99 compatible = "fixed-clock";
100 #clock-cells = <0>;
101 clock-frequency = <32768>;
102 clock-output-names = "ckil";
103 };
104
105 osc: clock-osc {
106 compatible = "fixed-clock";
107 #clock-cells = <0>;
108 clock-frequency = <24000000>;
109 clock-output-names = "osc";
110 };
111
112 soc {
113 #address-cells = <1>;
114 #size-cells = <1>;
115 compatible = "simple-bus";
116 interrupt-parent = <&intc>;
117 ranges;
118
Stefan Agner974a3ab2016-07-25 23:42:35 -0700119 funnel@30041000 {
120 compatible = "arm,coresight-funnel", "arm,primecell";
121 reg = <0x30041000 0x1000>;
122 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
123 clock-names = "apb_pclk";
124
125 ca_funnel_ports: ports {
126 #address-cells = <1>;
127 #size-cells = <0>;
128
129 /* funnel input ports */
130 port@0 {
131 reg = <0>;
132 ca_funnel_in_port0: endpoint {
133 slave-mode;
134 remote-endpoint = <&etm0_out_port>;
135 };
136 };
137
138 /* funnel output port */
139 port@2 {
140 reg = <0>;
141 ca_funnel_out_port0: endpoint {
142 remote-endpoint = <&hugo_funnel_in_port0>;
143 };
144 };
145
146 /* the other input ports are not connect to anything */
147 };
148 };
149
150 etm@3007c000 {
151 compatible = "arm,coresight-etm3x", "arm,primecell";
152 reg = <0x3007c000 0x1000>;
153 cpu = <&cpu0>;
154 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
155 clock-names = "apb_pclk";
156
157 port {
158 etm0_out_port: endpoint {
159 remote-endpoint = <&ca_funnel_in_port0>;
160 };
161 };
162 };
163
164 funnel@30083000 {
165 compatible = "arm,coresight-funnel", "arm,primecell";
166 reg = <0x30083000 0x1000>;
167 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
168 clock-names = "apb_pclk";
169
170 ports {
171 #address-cells = <1>;
172 #size-cells = <0>;
173
174 /* funnel input ports */
175 port@0 {
176 reg = <0>;
177 hugo_funnel_in_port0: endpoint {
178 slave-mode;
179 remote-endpoint = <&ca_funnel_out_port0>;
180 };
181 };
182
183 port@1 {
184 reg = <1>;
185 hugo_funnel_in_port1: endpoint {
186 slave-mode; /* M4 input */
187 };
188 };
189
190 port@2 {
191 reg = <0>;
192 hugo_funnel_out_port0: endpoint {
193 remote-endpoint = <&etf_in_port>;
194 };
195 };
196
197 /* the other input ports are not connect to anything */
198 };
199 };
200
201 etf@30084000 {
202 compatible = "arm,coresight-tmc", "arm,primecell";
203 reg = <0x30084000 0x1000>;
204 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
205 clock-names = "apb_pclk";
206
207 ports {
208 #address-cells = <1>;
209 #size-cells = <0>;
210
211 port@0 {
212 reg = <0>;
213 etf_in_port: endpoint {
214 slave-mode;
215 remote-endpoint = <&hugo_funnel_out_port0>;
216 };
217 };
218
219 port@1 {
220 reg = <0>;
221 etf_out_port: endpoint {
222 remote-endpoint = <&replicator_in_port0>;
223 };
224 };
225 };
226 };
227
228 etr@30086000 {
229 compatible = "arm,coresight-tmc", "arm,primecell";
230 reg = <0x30086000 0x1000>;
231 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
232 clock-names = "apb_pclk";
233
234 port {
235 etr_in_port: endpoint {
236 slave-mode;
237 remote-endpoint = <&replicator_out_port1>;
238 };
239 };
240 };
241
242 tpiu@30087000 {
243 compatible = "arm,coresight-tpiu", "arm,primecell";
244 reg = <0x30087000 0x1000>;
245 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
246 clock-names = "apb_pclk";
247
248 port {
249 tpiu_in_port: endpoint {
250 slave-mode;
251 remote-endpoint = <&replicator_out_port1>;
252 };
253 };
254 };
255
256 replicator {
257 /*
258 * non-configurable replicators don't show up on the
259 * AMBA bus. As such no need to add "arm,primecell"
260 */
261 compatible = "arm,coresight-replicator";
262
263 ports {
264 #address-cells = <1>;
265 #size-cells = <0>;
266
267 /* replicator output ports */
268 port@0 {
269 reg = <0>;
270 replicator_out_port0: endpoint {
271 remote-endpoint = <&tpiu_in_port>;
272 };
273 };
274
275 port@1 {
276 reg = <1>;
277 replicator_out_port1: endpoint {
278 remote-endpoint = <&etr_in_port>;
279 };
280 };
281
282 /* replicator input port */
283 port@2 {
284 reg = <0>;
285 replicator_in_port0: endpoint {
286 slave-mode;
287 remote-endpoint = <&etf_out_port>;
288 };
289 };
290 };
291 };
292
293 intc: interrupt-controller@31001000 {
294 compatible = "arm,cortex-a7-gic";
Stefan Agnerb28c9bf2016-07-25 23:42:36 -0700295 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Stefan Agner974a3ab2016-07-25 23:42:35 -0700296 #interrupt-cells = <3>;
297 interrupt-controller;
298 reg = <0x31001000 0x1000>,
Stefan Agnerb28c9bf2016-07-25 23:42:36 -0700299 <0x31002000 0x2000>,
Stefan Agner974a3ab2016-07-25 23:42:35 -0700300 <0x31004000 0x2000>,
301 <0x31006000 0x2000>;
302 };
303
304 timer {
305 compatible = "arm,armv7-timer";
306 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
307 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
308 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
309 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
310 };
311
Frank Li94967342015-05-19 02:45:04 +0800312 aips1: aips-bus@30000000 {
313 compatible = "fsl,aips-bus", "simple-bus";
314 #address-cells = <1>;
315 #size-cells = <1>;
316 reg = <0x30000000 0x400000>;
317 ranges;
318
319 gpio1: gpio@30200000 {
320 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
321 reg = <0x30200000 0x10000>;
322 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>, /* GPIO1_INT15_0 */
323 <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; /* GPIO1_INT31_16 */
324 gpio-controller;
325 #gpio-cells = <2>;
326 interrupt-controller;
327 #interrupt-cells = <2>;
328 };
329
330 gpio2: gpio@30210000 {
331 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
332 reg = <0x30210000 0x10000>;
333 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
334 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
335 gpio-controller;
336 #gpio-cells = <2>;
337 interrupt-controller;
338 #interrupt-cells = <2>;
339 };
340
341 gpio3: gpio@30220000 {
342 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
343 reg = <0x30220000 0x10000>;
344 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
345 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
346 gpio-controller;
347 #gpio-cells = <2>;
348 interrupt-controller;
349 #interrupt-cells = <2>;
350 };
351
352 gpio4: gpio@30230000 {
353 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
354 reg = <0x30230000 0x10000>;
355 interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
356 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
357 gpio-controller;
358 #gpio-cells = <2>;
359 interrupt-controller;
360 #interrupt-cells = <2>;
361 };
362
363 gpio5: gpio@30240000 {
364 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
365 reg = <0x30240000 0x10000>;
366 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
367 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
368 gpio-controller;
369 #gpio-cells = <2>;
370 interrupt-controller;
371 #interrupt-cells = <2>;
372 };
373
374 gpio6: gpio@30250000 {
375 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
376 reg = <0x30250000 0x10000>;
377 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
378 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
379 gpio-controller;
380 #gpio-cells = <2>;
381 interrupt-controller;
382 #interrupt-cells = <2>;
383 };
384
385 gpio7: gpio@30260000 {
386 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
387 reg = <0x30260000 0x10000>;
388 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
389 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
390 gpio-controller;
391 #gpio-cells = <2>;
392 interrupt-controller;
393 #interrupt-cells = <2>;
394 };
395
Frank Li6f5f9bc2015-05-29 03:40:57 +0800396 wdog1: wdog@30280000 {
397 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
398 reg = <0x30280000 0x10000>;
399 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
400 clocks = <&clks IMX7D_WDOG1_ROOT_CLK>;
401 };
402
403 wdog2: wdog@30290000 {
404 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
405 reg = <0x30290000 0x10000>;
406 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
407 clocks = <&clks IMX7D_WDOG2_ROOT_CLK>;
408 status = "disabled";
409 };
410
411 wdog3: wdog@302a0000 {
412 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
413 reg = <0x302a0000 0x10000>;
414 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
415 clocks = <&clks IMX7D_WDOG3_ROOT_CLK>;
416 status = "disabled";
417 };
418
419 wdog4: wdog@302b0000 {
420 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
421 reg = <0x302b0000 0x10000>;
422 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
423 clocks = <&clks IMX7D_WDOG4_ROOT_CLK>;
424 status = "disabled";
425 };
426
Adrian Alonso149c08e2015-09-25 16:05:57 -0500427 iomuxc_lpsr: iomuxc-lpsr@302c0000 {
428 compatible = "fsl,imx7d-iomuxc-lpsr";
429 reg = <0x302c0000 0x10000>;
430 fsl,input-sel = <&iomuxc>;
431 };
432
Frank Li94967342015-05-19 02:45:04 +0800433 gpt1: gpt@302d0000 {
434 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
435 reg = <0x302d0000 0x10000>;
436 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
437 clocks = <&clks IMX7D_CLK_DUMMY>,
438 <&clks IMX7D_GPT1_ROOT_CLK>;
439 clock-names = "ipg", "per";
440 };
441
442 gpt2: gpt@302e0000 {
443 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
444 reg = <0x302e0000 0x10000>;
445 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
446 clocks = <&clks IMX7D_CLK_DUMMY>,
447 <&clks IMX7D_GPT2_ROOT_CLK>;
448 clock-names = "ipg", "per";
449 status = "disabled";
450 };
451
452 gpt3: gpt@302f0000 {
453 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
454 reg = <0x302f0000 0x10000>;
455 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
456 clocks = <&clks IMX7D_CLK_DUMMY>,
457 <&clks IMX7D_GPT3_ROOT_CLK>;
458 clock-names = "ipg", "per";
459 status = "disabled";
460 };
461
462 gpt4: gpt@30300000 {
463 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
464 reg = <0x30300000 0x10000>;
465 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
466 clocks = <&clks IMX7D_CLK_DUMMY>,
467 <&clks IMX7D_GPT4_ROOT_CLK>;
468 clock-names = "ipg", "per";
469 status = "disabled";
470 };
471
472 iomuxc: iomuxc@30330000 {
473 compatible = "fsl,imx7d-iomuxc";
474 reg = <0x30330000 0x10000>;
475 };
476
477 gpr: iomuxc-gpr@30340000 {
478 compatible = "fsl,imx7d-iomuxc-gpr", "syscon";
479 reg = <0x30340000 0x10000>;
480 };
481
482 ocotp: ocotp-ctrl@30350000 {
483 compatible = "syscon";
484 reg = <0x30350000 0x10000>;
485 clocks = <&clks IMX7D_CLK_DUMMY>;
486 status = "disabled";
487 };
488
489 anatop: anatop@30360000 {
490 compatible = "fsl,imx7d-anatop", "fsl,imx6q-anatop",
491 "syscon", "simple-bus";
492 reg = <0x30360000 0x10000>;
493 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
494 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
495
Fabio Estevam298701ec2016-05-03 10:57:31 -0300496 reg_1p0d: regulator-vdd1p0d {
Frank Li94967342015-05-19 02:45:04 +0800497 compatible = "fsl,anatop-regulator";
498 regulator-name = "vdd1p0d";
499 regulator-min-microvolt = <800000>;
500 regulator-max-microvolt = <1200000>;
501 anatop-reg-offset = <0x210>;
502 anatop-vol-bit-shift = <8>;
503 anatop-vol-bit-width = <5>;
504 anatop-min-bit-val = <8>;
505 anatop-min-voltage = <800000>;
506 anatop-max-voltage = <1200000>;
507 anatop-enable-bit = <31>;
508 };
509 };
510
511 snvs: snvs@30370000 {
Frank Liabb9f252015-07-29 01:50:00 +0800512 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
513 reg = <0x30370000 0x10000>;
Frank Li94967342015-05-19 02:45:04 +0800514
Frank Liabb9f252015-07-29 01:50:00 +0800515 snvs_rtc: snvs-rtc-lp {
Frank Li94967342015-05-19 02:45:04 +0800516 compatible = "fsl,sec-v4.0-mon-rtc-lp";
Frank Liabb9f252015-07-29 01:50:00 +0800517 regmap = <&snvs>;
518 offset = <0x34>;
Frank Li94967342015-05-19 02:45:04 +0800519 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
520 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
521 };
Frank Liabb9f252015-07-29 01:50:00 +0800522
523 snvs_poweroff: snvs-poweroff {
524 compatible = "syscon-poweroff";
525 regmap = <&snvs>;
526 offset = <0x38>;
527 mask = <0x60>;
528 };
529
530 snvs_pwrkey: snvs-powerkey {
531 compatible = "fsl,sec-v4.0-pwrkey";
532 regmap = <&snvs>;
533 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
534 linux,keycode = <KEY_POWER>;
535 wakeup-source;
536 };
Frank Li94967342015-05-19 02:45:04 +0800537 };
538
539 clks: ccm@30380000 {
540 compatible = "fsl,imx7d-ccm";
541 reg = <0x30380000 0x10000>;
542 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
543 <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
544 #clock-cells = <1>;
545 clocks = <&ckil>, <&osc>;
546 clock-names = "ckil", "osc";
547 };
548
549 src: src@30390000 {
550 compatible = "fsl,imx7d-src", "fsl,imx51-src", "syscon";
551 reg = <0x30390000 0x10000>;
552 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
553 #reset-cells = <1>;
554 };
555 };
556
Fabio Estevam208c9fe2015-09-02 15:16:20 -0300557 aips2: aips-bus@30400000 {
558 compatible = "fsl,aips-bus", "simple-bus";
559 #address-cells = <1>;
560 #size-cells = <1>;
561 reg = <0x30400000 0x400000>;
562 ranges;
563
Haibo Chena3d19f22015-12-08 18:26:22 +0800564 adc1: adc@30610000 {
565 compatible = "fsl,imx7d-adc";
566 reg = <0x30610000 0x10000>;
567 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
568 clocks = <&clks IMX7D_ADC_ROOT_CLK>;
569 clock-names = "adc";
570 status = "disabled";
571 };
572
573 adc2: adc@30620000 {
574 compatible = "fsl,imx7d-adc";
575 reg = <0x30620000 0x10000>;
576 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
577 clocks = <&clks IMX7D_ADC_ROOT_CLK>;
578 clock-names = "adc";
579 status = "disabled";
580 };
581
Diego Dortab754af32016-06-22 16:37:07 -0300582 ecspi4: ecspi@30630000 {
583 #address-cells = <1>;
584 #size-cells = <0>;
585 compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
586 reg = <0x30630000 0x10000>;
587 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
588 clocks = <&clks IMX7D_ECSPI4_ROOT_CLK>,
589 <&clks IMX7D_ECSPI4_ROOT_CLK>;
590 clock-names = "ipg", "per";
591 status = "disabled";
592 };
593
Fabio Estevam208c9fe2015-09-02 15:16:20 -0300594 pwm1: pwm@30660000 {
595 compatible = "fsl,imx7d-pwm", "fsl,imx27-pwm";
596 reg = <0x30660000 0x10000>;
597 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
598 clocks = <&clks IMX7D_PWM1_ROOT_CLK>,
599 <&clks IMX7D_PWM1_ROOT_CLK>;
600 clock-names = "ipg", "per";
601 #pwm-cells = <2>;
602 status = "disabled";
603 };
604
605 pwm2: pwm@30670000 {
606 compatible = "fsl,imx7d-pwm", "fsl,imx27-pwm";
607 reg = <0x30670000 0x10000>;
608 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
609 clocks = <&clks IMX7D_PWM2_ROOT_CLK>,
610 <&clks IMX7D_PWM2_ROOT_CLK>;
611 clock-names = "ipg", "per";
612 #pwm-cells = <2>;
613 status = "disabled";
614 };
615
616 pwm3: pwm@30680000 {
617 compatible = "fsl,imx7d-pwm", "fsl,imx27-pwm";
618 reg = <0x30680000 0x10000>;
619 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
620 clocks = <&clks IMX7D_PWM3_ROOT_CLK>,
621 <&clks IMX7D_PWM3_ROOT_CLK>;
622 clock-names = "ipg", "per";
623 #pwm-cells = <2>;
624 status = "disabled";
625 };
626
627 pwm4: pwm@30690000 {
628 compatible = "fsl,imx7d-pwm", "fsl,imx27-pwm";
629 reg = <0x30690000 0x10000>;
630 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
631 clocks = <&clks IMX7D_PWM4_ROOT_CLK>,
632 <&clks IMX7D_PWM4_ROOT_CLK>;
633 clock-names = "ipg", "per";
634 #pwm-cells = <2>;
635 status = "disabled";
636 };
Gary Bissone8ed73f2016-04-02 18:25:43 +0200637
638 lcdif: lcdif@30730000 {
639 compatible = "fsl,imx7d-lcdif", "fsl,imx28-lcdif";
640 reg = <0x30730000 0x10000>;
641 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
642 clocks = <&clks IMX7D_LCDIF_PIXEL_ROOT_CLK>,
643 <&clks IMX7D_CLK_DUMMY>,
644 <&clks IMX7D_CLK_DUMMY>;
645 clock-names = "pix", "axi", "disp_axi";
646 status = "disabled";
647 };
Fabio Estevam208c9fe2015-09-02 15:16:20 -0300648 };
649
Frank Li94967342015-05-19 02:45:04 +0800650 aips3: aips-bus@30800000 {
651 compatible = "fsl,aips-bus", "simple-bus";
652 #address-cells = <1>;
653 #size-cells = <1>;
654 reg = <0x30800000 0x400000>;
655 ranges;
656
Diego Dortab754af32016-06-22 16:37:07 -0300657 ecspi1: ecspi@30820000 {
658 #address-cells = <1>;
659 #size-cells = <0>;
660 compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
661 reg = <0x30820000 0x10000>;
662 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
663 clocks = <&clks IMX7D_ECSPI1_ROOT_CLK>,
664 <&clks IMX7D_ECSPI1_ROOT_CLK>;
665 clock-names = "ipg", "per";
666 status = "disabled";
667 };
668
669 ecspi2: ecspi@30830000 {
670 #address-cells = <1>;
671 #size-cells = <0>;
672 compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
673 reg = <0x30830000 0x10000>;
674 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
675 clocks = <&clks IMX7D_ECSPI2_ROOT_CLK>,
676 <&clks IMX7D_ECSPI2_ROOT_CLK>;
677 clock-names = "ipg", "per";
678 status = "disabled";
679 };
680
681 ecspi3: ecspi@30840000 {
682 #address-cells = <1>;
683 #size-cells = <0>;
684 compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
685 reg = <0x30840000 0x10000>;
686 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
687 clocks = <&clks IMX7D_ECSPI3_ROOT_CLK>,
688 <&clks IMX7D_ECSPI3_ROOT_CLK>;
689 clock-names = "ipg", "per";
690 status = "disabled";
691 };
692
Frank Li94967342015-05-19 02:45:04 +0800693 uart1: serial@30860000 {
694 compatible = "fsl,imx7d-uart",
695 "fsl,imx6q-uart";
696 reg = <0x30860000 0x10000>;
697 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
698 clocks = <&clks IMX7D_UART1_ROOT_CLK>,
699 <&clks IMX7D_UART1_ROOT_CLK>;
700 clock-names = "ipg", "per";
701 status = "disabled";
702 };
703
Fabio Estevam178b2d02015-09-24 16:18:12 -0300704 uart2: serial@30890000 {
Frank Li94967342015-05-19 02:45:04 +0800705 compatible = "fsl,imx7d-uart",
706 "fsl,imx6q-uart";
Fabio Estevam178b2d02015-09-24 16:18:12 -0300707 reg = <0x30890000 0x10000>;
Frank Li94967342015-05-19 02:45:04 +0800708 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
709 clocks = <&clks IMX7D_UART2_ROOT_CLK>,
710 <&clks IMX7D_UART2_ROOT_CLK>;
711 clock-names = "ipg", "per";
712 status = "disabled";
713 };
714
715 uart3: serial@30880000 {
716 compatible = "fsl,imx7d-uart",
717 "fsl,imx6q-uart";
718 reg = <0x30880000 0x10000>;
719 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
720 clocks = <&clks IMX7D_UART3_ROOT_CLK>,
721 <&clks IMX7D_UART3_ROOT_CLK>;
722 clock-names = "ipg", "per";
723 status = "disabled";
724 };
725
Fabio Estevam7310f072016-08-10 13:00:27 -0300726 sai1: sai@308a0000 {
727 #sound-dai-cells = <0>;
728 compatible = "fsl,imx7d-sai", "fsl,imx6sx-sai";
729 reg = <0x308a0000 0x10000>;
730 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
731 clocks = <&clks IMX7D_SAI1_IPG_CLK>,
732 <&clks IMX7D_SAI1_ROOT_CLK>,
733 <&clks IMX7D_CLK_DUMMY>,
734 <&clks IMX7D_CLK_DUMMY>;
735 clock-names = "bus", "mclk1", "mclk2", "mclk3";
736 dma-names = "rx", "tx";
737 dmas = <&sdma 8 24 0>, <&sdma 9 24 0>;
738 status = "disabled";
739 };
740
741 sai2: sai@308b0000 {
742 #sound-dai-cells = <0>;
743 compatible = "fsl,imx7d-sai", "fsl,imx6sx-sai";
744 reg = <0x308b0000 0x10000>;
745 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
746 clocks = <&clks IMX7D_SAI2_IPG_CLK>,
747 <&clks IMX7D_SAI2_ROOT_CLK>,
748 <&clks IMX7D_CLK_DUMMY>,
749 <&clks IMX7D_CLK_DUMMY>;
750 clock-names = "bus", "mclk1", "mclk2", "mclk3";
751 dma-names = "rx", "tx";
752 dmas = <&sdma 10 24 0>, <&sdma 11 24 0>;
753 status = "disabled";
754 };
755
756 sai3: sai@308c0000 {
757 #sound-dai-cells = <0>;
758 compatible = "fsl,imx7d-sai", "fsl,imx6sx-sai";
759 reg = <0x308c0000 0x10000>;
760 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
761 clocks = <&clks IMX7D_SAI3_IPG_CLK>,
762 <&clks IMX7D_SAI3_ROOT_CLK>,
763 <&clks IMX7D_CLK_DUMMY>,
764 <&clks IMX7D_CLK_DUMMY>;
765 clock-names = "bus", "mclk1", "mclk2", "mclk3";
766 dma-names = "rx", "tx";
767 dmas = <&sdma 12 24 0>, <&sdma 13 24 0>;
768 status = "disabled";
769 };
770
Gary Bissonc1474012016-04-02 18:25:44 +0200771 flexcan1: can@30a00000 {
772 compatible = "fsl,imx7d-flexcan", "fsl,imx6q-flexcan";
773 reg = <0x30a00000 0x10000>;
774 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
775 clocks = <&clks IMX7D_CLK_DUMMY>,
776 <&clks IMX7D_CAN1_ROOT_CLK>;
777 clock-names = "ipg", "per";
778 status = "disabled";
779 };
780
781 flexcan2: can@30a10000 {
782 compatible = "fsl,imx7d-flexcan", "fsl,imx6q-flexcan";
783 reg = <0x30a10000 0x10000>;
784 interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
785 clocks = <&clks IMX7D_CLK_DUMMY>,
786 <&clks IMX7D_CAN2_ROOT_CLK>;
787 clock-names = "ipg", "per";
788 status = "disabled";
789 };
790
Frank Li94967342015-05-19 02:45:04 +0800791 i2c1: i2c@30a20000 {
792 #address-cells = <1>;
793 #size-cells = <0>;
794 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
795 reg = <0x30a20000 0x10000>;
796 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
797 clocks = <&clks IMX7D_I2C1_ROOT_CLK>;
798 status = "disabled";
799 };
800
801 i2c2: i2c@30a30000 {
802 #address-cells = <1>;
803 #size-cells = <0>;
804 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
805 reg = <0x30a30000 0x10000>;
806 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
807 clocks = <&clks IMX7D_I2C2_ROOT_CLK>;
808 status = "disabled";
809 };
810
811 i2c3: i2c@30a40000 {
812 #address-cells = <1>;
813 #size-cells = <0>;
814 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
815 reg = <0x30a40000 0x10000>;
816 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
817 clocks = <&clks IMX7D_I2C3_ROOT_CLK>;
818 status = "disabled";
819 };
820
821 i2c4: i2c@30a50000 {
822 #address-cells = <1>;
823 #size-cells = <0>;
824 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
825 reg = <0x30a50000 0x10000>;
826 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
827 clocks = <&clks IMX7D_I2C4_ROOT_CLK>;
828 status = "disabled";
829 };
830
831 uart4: serial@30a60000 {
832 compatible = "fsl,imx7d-uart",
833 "fsl,imx6q-uart";
834 reg = <0x30a60000 0x10000>;
835 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
836 clocks = <&clks IMX7D_UART4_ROOT_CLK>,
837 <&clks IMX7D_UART4_ROOT_CLK>;
838 clock-names = "ipg", "per";
839 status = "disabled";
840 };
841
842 uart5: serial@30a70000 {
843 compatible = "fsl,imx7d-uart",
844 "fsl,imx6q-uart";
845 reg = <0x30a70000 0x10000>;
846 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
847 clocks = <&clks IMX7D_UART5_ROOT_CLK>,
848 <&clks IMX7D_UART5_ROOT_CLK>;
849 clock-names = "ipg", "per";
850 status = "disabled";
851 };
852
853 uart6: serial@30a80000 {
854 compatible = "fsl,imx7d-uart",
855 "fsl,imx6q-uart";
856 reg = <0x30a80000 0x10000>;
857 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
858 clocks = <&clks IMX7D_UART6_ROOT_CLK>,
859 <&clks IMX7D_UART6_ROOT_CLK>;
860 clock-names = "ipg", "per";
861 status = "disabled";
862 };
863
864 uart7: serial@30a90000 {
865 compatible = "fsl,imx7d-uart",
866 "fsl,imx6q-uart";
867 reg = <0x30a90000 0x10000>;
868 interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
869 clocks = <&clks IMX7D_UART7_ROOT_CLK>,
870 <&clks IMX7D_UART7_ROOT_CLK>;
871 clock-names = "ipg", "per";
872 status = "disabled";
873 };
874
Fabio Estevam60f5a222015-09-07 22:57:11 -0300875 usbotg1: usb@30b10000 {
876 compatible = "fsl,imx7d-usb", "fsl,imx27-usb";
877 reg = <0x30b10000 0x200>;
878 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
879 clocks = <&clks IMX7D_USB_CTRL_CLK>;
880 fsl,usbphy = <&usbphynop1>;
881 fsl,usbmisc = <&usbmisc1 0>;
882 phy-clkgate-delay-us = <400>;
883 status = "disabled";
884 };
885
Fabio Estevam60f5a222015-09-07 22:57:11 -0300886 usbh: usb@30b30000 {
887 compatible = "fsl,imx7d-usb", "fsl,imx27-usb";
888 reg = <0x30b30000 0x200>;
889 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
890 clocks = <&clks IMX7D_USB_CTRL_CLK>;
891 fsl,usbphy = <&usbphynop3>;
892 fsl,usbmisc = <&usbmisc3 0>;
893 phy_type = "hsic";
894 dr_mode = "host";
895 phy-clkgate-delay-us = <400>;
896 status = "disabled";
897 };
898
899 usbmisc1: usbmisc@30b10200 {
900 #index-cells = <1>;
901 compatible = "fsl,imx7d-usbmisc", "fsl,imx6q-usbmisc";
902 reg = <0x30b10200 0x200>;
903 };
904
Fabio Estevam60f5a222015-09-07 22:57:11 -0300905 usbmisc3: usbmisc@30b30200 {
906 #index-cells = <1>;
907 compatible = "fsl,imx7d-usbmisc", "fsl,imx6q-usbmisc";
908 reg = <0x30b30200 0x200>;
909 };
910
911 usbphynop1: usbphynop1 {
912 compatible = "usb-nop-xceiv";
913 clocks = <&clks IMX7D_USB_PHY1_CLK>;
914 clock-names = "main_clk";
915 };
916
Fabio Estevam60f5a222015-09-07 22:57:11 -0300917 usbphynop3: usbphynop3 {
918 compatible = "usb-nop-xceiv";
919 clocks = <&clks IMX7D_USB_HSIC_ROOT_CLK>;
920 clock-names = "main_clk";
921 };
922
Frank Li94967342015-05-19 02:45:04 +0800923 usdhc1: usdhc@30b40000 {
924 compatible = "fsl,imx7d-usdhc", "fsl,imx6sl-usdhc";
925 reg = <0x30b40000 0x10000>;
926 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
927 clocks = <&clks IMX7D_CLK_DUMMY>,
928 <&clks IMX7D_CLK_DUMMY>,
929 <&clks IMX7D_USDHC1_ROOT_CLK>;
930 clock-names = "ipg", "ahb", "per";
931 bus-width = <4>;
932 status = "disabled";
933 };
934
935 usdhc2: usdhc@30b50000 {
936 compatible = "fsl,imx7d-usdhc", "fsl,imx6sl-usdhc";
937 reg = <0x30b50000 0x10000>;
938 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
939 clocks = <&clks IMX7D_CLK_DUMMY>,
940 <&clks IMX7D_CLK_DUMMY>,
941 <&clks IMX7D_USDHC2_ROOT_CLK>;
942 clock-names = "ipg", "ahb", "per";
943 bus-width = <4>;
944 status = "disabled";
945 };
946
947 usdhc3: usdhc@30b60000 {
948 compatible = "fsl,imx7d-usdhc", "fsl,imx6sl-usdhc";
949 reg = <0x30b60000 0x10000>;
950 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
951 clocks = <&clks IMX7D_CLK_DUMMY>,
952 <&clks IMX7D_CLK_DUMMY>,
953 <&clks IMX7D_USDHC3_ROOT_CLK>;
954 clock-names = "ipg", "ahb", "per";
955 bus-width = <4>;
956 status = "disabled";
957 };
Fugang Duan0f629212015-09-07 10:55:01 +0800958
Fabio Estevam2f5ac9b2016-08-10 13:00:28 -0300959 sdma: sdma@30bd0000 {
960 compatible = "fsl,imx7d-sdma", "fsl,imx35-sdma";
961 reg = <0x30bd0000 0x10000>;
962 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
963 clocks = <&clks IMX7D_SDMA_CORE_CLK>,
964 <&clks IMX7D_AHB_CHANNEL_ROOT_CLK>;
965 clock-names = "ipg", "ahb";
966 #dma-cells = <3>;
967 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
968 };
969
Fugang Duan0f629212015-09-07 10:55:01 +0800970 fec1: ethernet@30be0000 {
971 compatible = "fsl,imx7d-fec", "fsl,imx6sx-fec";
972 reg = <0x30be0000 0x10000>;
973 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
974 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
975 <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
976 clocks = <&clks IMX7D_ENET_AXI_ROOT_CLK>,
977 <&clks IMX7D_ENET_AXI_ROOT_CLK>,
978 <&clks IMX7D_ENET1_TIME_ROOT_CLK>,
979 <&clks IMX7D_PLL_ENET_MAIN_125M_CLK>,
980 <&clks IMX7D_ENET_PHY_REF_ROOT_CLK>;
981 clock-names = "ipg", "ahb", "ptp",
982 "enet_clk_ref", "enet_out";
983 fsl,num-tx-queues=<3>;
984 fsl,num-rx-queues=<3>;
985 status = "disabled";
986 };
Frank Li94967342015-05-19 02:45:04 +0800987 };
988 };
989};