blob: 75e9d1b5599482e7a19a1896b9d55a07ee2b3911 [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>;
Frank Li94967342015-05-19 02:45:04 +080088 clock-latency = <61036>; /* two CLK32 periods */
Bai Ping698e2ac2015-11-24 18:25:15 +080089 clocks = <&clks IMX7D_CLK_ARM>;
Frank Li94967342015-05-19 02:45:04 +080090 };
Frank Li94967342015-05-19 02:45:04 +080091 };
92
Frank Li94967342015-05-19 02:45:04 +080093 ckil: clock-cki {
94 compatible = "fixed-clock";
95 #clock-cells = <0>;
96 clock-frequency = <32768>;
97 clock-output-names = "ckil";
98 };
99
100 osc: clock-osc {
101 compatible = "fixed-clock";
102 #clock-cells = <0>;
103 clock-frequency = <24000000>;
104 clock-output-names = "osc";
105 };
106
107 soc {
108 #address-cells = <1>;
109 #size-cells = <1>;
110 compatible = "simple-bus";
111 interrupt-parent = <&intc>;
112 ranges;
113
Stefan Agner974a3ab2016-07-25 23:42:35 -0700114 funnel@30041000 {
115 compatible = "arm,coresight-funnel", "arm,primecell";
116 reg = <0x30041000 0x1000>;
117 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
118 clock-names = "apb_pclk";
119
120 ca_funnel_ports: ports {
121 #address-cells = <1>;
122 #size-cells = <0>;
123
124 /* funnel input ports */
125 port@0 {
126 reg = <0>;
127 ca_funnel_in_port0: endpoint {
128 slave-mode;
129 remote-endpoint = <&etm0_out_port>;
130 };
131 };
132
133 /* funnel output port */
134 port@2 {
135 reg = <0>;
136 ca_funnel_out_port0: endpoint {
137 remote-endpoint = <&hugo_funnel_in_port0>;
138 };
139 };
140
141 /* the other input ports are not connect to anything */
142 };
143 };
144
145 etm@3007c000 {
146 compatible = "arm,coresight-etm3x", "arm,primecell";
147 reg = <0x3007c000 0x1000>;
148 cpu = <&cpu0>;
149 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
150 clock-names = "apb_pclk";
151
152 port {
153 etm0_out_port: endpoint {
154 remote-endpoint = <&ca_funnel_in_port0>;
155 };
156 };
157 };
158
159 funnel@30083000 {
160 compatible = "arm,coresight-funnel", "arm,primecell";
161 reg = <0x30083000 0x1000>;
162 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
163 clock-names = "apb_pclk";
164
165 ports {
166 #address-cells = <1>;
167 #size-cells = <0>;
168
169 /* funnel input ports */
170 port@0 {
171 reg = <0>;
172 hugo_funnel_in_port0: endpoint {
173 slave-mode;
174 remote-endpoint = <&ca_funnel_out_port0>;
175 };
176 };
177
178 port@1 {
179 reg = <1>;
180 hugo_funnel_in_port1: endpoint {
181 slave-mode; /* M4 input */
182 };
183 };
184
185 port@2 {
186 reg = <0>;
187 hugo_funnel_out_port0: endpoint {
188 remote-endpoint = <&etf_in_port>;
189 };
190 };
191
192 /* the other input ports are not connect to anything */
193 };
194 };
195
196 etf@30084000 {
197 compatible = "arm,coresight-tmc", "arm,primecell";
198 reg = <0x30084000 0x1000>;
199 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
200 clock-names = "apb_pclk";
201
202 ports {
203 #address-cells = <1>;
204 #size-cells = <0>;
205
206 port@0 {
207 reg = <0>;
208 etf_in_port: endpoint {
209 slave-mode;
210 remote-endpoint = <&hugo_funnel_out_port0>;
211 };
212 };
213
214 port@1 {
215 reg = <0>;
216 etf_out_port: endpoint {
217 remote-endpoint = <&replicator_in_port0>;
218 };
219 };
220 };
221 };
222
223 etr@30086000 {
224 compatible = "arm,coresight-tmc", "arm,primecell";
225 reg = <0x30086000 0x1000>;
226 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
227 clock-names = "apb_pclk";
228
229 port {
230 etr_in_port: endpoint {
231 slave-mode;
232 remote-endpoint = <&replicator_out_port1>;
233 };
234 };
235 };
236
237 tpiu@30087000 {
238 compatible = "arm,coresight-tpiu", "arm,primecell";
239 reg = <0x30087000 0x1000>;
240 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
241 clock-names = "apb_pclk";
242
243 port {
244 tpiu_in_port: endpoint {
245 slave-mode;
246 remote-endpoint = <&replicator_out_port1>;
247 };
248 };
249 };
250
251 replicator {
252 /*
253 * non-configurable replicators don't show up on the
254 * AMBA bus. As such no need to add "arm,primecell"
255 */
256 compatible = "arm,coresight-replicator";
257
258 ports {
259 #address-cells = <1>;
260 #size-cells = <0>;
261
262 /* replicator output ports */
263 port@0 {
264 reg = <0>;
265 replicator_out_port0: endpoint {
266 remote-endpoint = <&tpiu_in_port>;
267 };
268 };
269
270 port@1 {
271 reg = <1>;
272 replicator_out_port1: endpoint {
273 remote-endpoint = <&etr_in_port>;
274 };
275 };
276
277 /* replicator input port */
278 port@2 {
279 reg = <0>;
280 replicator_in_port0: endpoint {
281 slave-mode;
282 remote-endpoint = <&etf_out_port>;
283 };
284 };
285 };
286 };
287
288 intc: interrupt-controller@31001000 {
289 compatible = "arm,cortex-a7-gic";
Stefan Agnerb28c9bf2016-07-25 23:42:36 -0700290 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Stefan Agner974a3ab2016-07-25 23:42:35 -0700291 #interrupt-cells = <3>;
292 interrupt-controller;
293 reg = <0x31001000 0x1000>,
Stefan Agnerb28c9bf2016-07-25 23:42:36 -0700294 <0x31002000 0x2000>,
Stefan Agner974a3ab2016-07-25 23:42:35 -0700295 <0x31004000 0x2000>,
296 <0x31006000 0x2000>;
297 };
298
299 timer {
300 compatible = "arm,armv7-timer";
301 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
302 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
303 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
304 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
305 };
306
Frank Li94967342015-05-19 02:45:04 +0800307 aips1: aips-bus@30000000 {
308 compatible = "fsl,aips-bus", "simple-bus";
309 #address-cells = <1>;
310 #size-cells = <1>;
311 reg = <0x30000000 0x400000>;
312 ranges;
313
314 gpio1: gpio@30200000 {
315 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
316 reg = <0x30200000 0x10000>;
317 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>, /* GPIO1_INT15_0 */
318 <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; /* GPIO1_INT31_16 */
319 gpio-controller;
320 #gpio-cells = <2>;
321 interrupt-controller;
322 #interrupt-cells = <2>;
323 };
324
325 gpio2: gpio@30210000 {
326 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
327 reg = <0x30210000 0x10000>;
328 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
329 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
330 gpio-controller;
331 #gpio-cells = <2>;
332 interrupt-controller;
333 #interrupt-cells = <2>;
334 };
335
336 gpio3: gpio@30220000 {
337 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
338 reg = <0x30220000 0x10000>;
339 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
340 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
341 gpio-controller;
342 #gpio-cells = <2>;
343 interrupt-controller;
344 #interrupt-cells = <2>;
345 };
346
347 gpio4: gpio@30230000 {
348 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
349 reg = <0x30230000 0x10000>;
350 interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
351 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
352 gpio-controller;
353 #gpio-cells = <2>;
354 interrupt-controller;
355 #interrupt-cells = <2>;
356 };
357
358 gpio5: gpio@30240000 {
359 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
360 reg = <0x30240000 0x10000>;
361 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
362 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
363 gpio-controller;
364 #gpio-cells = <2>;
365 interrupt-controller;
366 #interrupt-cells = <2>;
367 };
368
369 gpio6: gpio@30250000 {
370 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
371 reg = <0x30250000 0x10000>;
372 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
373 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
374 gpio-controller;
375 #gpio-cells = <2>;
376 interrupt-controller;
377 #interrupt-cells = <2>;
378 };
379
380 gpio7: gpio@30260000 {
381 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
382 reg = <0x30260000 0x10000>;
383 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
384 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
385 gpio-controller;
386 #gpio-cells = <2>;
387 interrupt-controller;
388 #interrupt-cells = <2>;
389 };
390
Frank Li6f5f9bc2015-05-29 03:40:57 +0800391 wdog1: wdog@30280000 {
392 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
393 reg = <0x30280000 0x10000>;
394 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
395 clocks = <&clks IMX7D_WDOG1_ROOT_CLK>;
396 };
397
398 wdog2: wdog@30290000 {
399 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
400 reg = <0x30290000 0x10000>;
401 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
402 clocks = <&clks IMX7D_WDOG2_ROOT_CLK>;
403 status = "disabled";
404 };
405
406 wdog3: wdog@302a0000 {
407 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
408 reg = <0x302a0000 0x10000>;
409 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
410 clocks = <&clks IMX7D_WDOG3_ROOT_CLK>;
411 status = "disabled";
412 };
413
414 wdog4: wdog@302b0000 {
415 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
416 reg = <0x302b0000 0x10000>;
417 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
418 clocks = <&clks IMX7D_WDOG4_ROOT_CLK>;
419 status = "disabled";
420 };
421
Adrian Alonso149c08e2015-09-25 16:05:57 -0500422 iomuxc_lpsr: iomuxc-lpsr@302c0000 {
423 compatible = "fsl,imx7d-iomuxc-lpsr";
424 reg = <0x302c0000 0x10000>;
425 fsl,input-sel = <&iomuxc>;
426 };
427
Frank Li94967342015-05-19 02:45:04 +0800428 gpt1: gpt@302d0000 {
429 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
430 reg = <0x302d0000 0x10000>;
431 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
432 clocks = <&clks IMX7D_CLK_DUMMY>,
433 <&clks IMX7D_GPT1_ROOT_CLK>;
434 clock-names = "ipg", "per";
435 };
436
437 gpt2: gpt@302e0000 {
438 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
439 reg = <0x302e0000 0x10000>;
440 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
441 clocks = <&clks IMX7D_CLK_DUMMY>,
442 <&clks IMX7D_GPT2_ROOT_CLK>;
443 clock-names = "ipg", "per";
444 status = "disabled";
445 };
446
447 gpt3: gpt@302f0000 {
448 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
449 reg = <0x302f0000 0x10000>;
450 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
451 clocks = <&clks IMX7D_CLK_DUMMY>,
452 <&clks IMX7D_GPT3_ROOT_CLK>;
453 clock-names = "ipg", "per";
454 status = "disabled";
455 };
456
457 gpt4: gpt@30300000 {
458 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
459 reg = <0x30300000 0x10000>;
460 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
461 clocks = <&clks IMX7D_CLK_DUMMY>,
462 <&clks IMX7D_GPT4_ROOT_CLK>;
463 clock-names = "ipg", "per";
464 status = "disabled";
465 };
466
467 iomuxc: iomuxc@30330000 {
468 compatible = "fsl,imx7d-iomuxc";
469 reg = <0x30330000 0x10000>;
470 };
471
472 gpr: iomuxc-gpr@30340000 {
473 compatible = "fsl,imx7d-iomuxc-gpr", "syscon";
474 reg = <0x30340000 0x10000>;
475 };
476
477 ocotp: ocotp-ctrl@30350000 {
478 compatible = "syscon";
479 reg = <0x30350000 0x10000>;
480 clocks = <&clks IMX7D_CLK_DUMMY>;
481 status = "disabled";
482 };
483
484 anatop: anatop@30360000 {
485 compatible = "fsl,imx7d-anatop", "fsl,imx6q-anatop",
486 "syscon", "simple-bus";
487 reg = <0x30360000 0x10000>;
488 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
489 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
490
Fabio Estevam298701ec2016-05-03 10:57:31 -0300491 reg_1p0d: regulator-vdd1p0d {
Frank Li94967342015-05-19 02:45:04 +0800492 compatible = "fsl,anatop-regulator";
493 regulator-name = "vdd1p0d";
494 regulator-min-microvolt = <800000>;
495 regulator-max-microvolt = <1200000>;
496 anatop-reg-offset = <0x210>;
497 anatop-vol-bit-shift = <8>;
498 anatop-vol-bit-width = <5>;
499 anatop-min-bit-val = <8>;
500 anatop-min-voltage = <800000>;
501 anatop-max-voltage = <1200000>;
502 anatop-enable-bit = <31>;
503 };
504 };
505
506 snvs: snvs@30370000 {
Frank Liabb9f252015-07-29 01:50:00 +0800507 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
508 reg = <0x30370000 0x10000>;
Frank Li94967342015-05-19 02:45:04 +0800509
Frank Liabb9f252015-07-29 01:50:00 +0800510 snvs_rtc: snvs-rtc-lp {
Frank Li94967342015-05-19 02:45:04 +0800511 compatible = "fsl,sec-v4.0-mon-rtc-lp";
Frank Liabb9f252015-07-29 01:50:00 +0800512 regmap = <&snvs>;
513 offset = <0x34>;
Frank Li94967342015-05-19 02:45:04 +0800514 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
515 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
516 };
Frank Liabb9f252015-07-29 01:50:00 +0800517
518 snvs_poweroff: snvs-poweroff {
519 compatible = "syscon-poweroff";
520 regmap = <&snvs>;
521 offset = <0x38>;
522 mask = <0x60>;
523 };
524
525 snvs_pwrkey: snvs-powerkey {
526 compatible = "fsl,sec-v4.0-pwrkey";
527 regmap = <&snvs>;
528 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
529 linux,keycode = <KEY_POWER>;
530 wakeup-source;
531 };
Frank Li94967342015-05-19 02:45:04 +0800532 };
533
534 clks: ccm@30380000 {
535 compatible = "fsl,imx7d-ccm";
536 reg = <0x30380000 0x10000>;
537 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
538 <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
539 #clock-cells = <1>;
540 clocks = <&ckil>, <&osc>;
541 clock-names = "ckil", "osc";
542 };
543
544 src: src@30390000 {
545 compatible = "fsl,imx7d-src", "fsl,imx51-src", "syscon";
546 reg = <0x30390000 0x10000>;
547 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
548 #reset-cells = <1>;
549 };
550 };
551
Fabio Estevam208c9fe2015-09-02 15:16:20 -0300552 aips2: aips-bus@30400000 {
553 compatible = "fsl,aips-bus", "simple-bus";
554 #address-cells = <1>;
555 #size-cells = <1>;
556 reg = <0x30400000 0x400000>;
557 ranges;
558
Haibo Chena3d19f22015-12-08 18:26:22 +0800559 adc1: adc@30610000 {
560 compatible = "fsl,imx7d-adc";
561 reg = <0x30610000 0x10000>;
562 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
563 clocks = <&clks IMX7D_ADC_ROOT_CLK>;
564 clock-names = "adc";
565 status = "disabled";
566 };
567
568 adc2: adc@30620000 {
569 compatible = "fsl,imx7d-adc";
570 reg = <0x30620000 0x10000>;
571 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
572 clocks = <&clks IMX7D_ADC_ROOT_CLK>;
573 clock-names = "adc";
574 status = "disabled";
575 };
576
Diego Dortab754af32016-06-22 16:37:07 -0300577 ecspi4: ecspi@30630000 {
578 #address-cells = <1>;
579 #size-cells = <0>;
580 compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
581 reg = <0x30630000 0x10000>;
582 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
583 clocks = <&clks IMX7D_ECSPI4_ROOT_CLK>,
584 <&clks IMX7D_ECSPI4_ROOT_CLK>;
585 clock-names = "ipg", "per";
586 status = "disabled";
587 };
588
Fabio Estevam208c9fe2015-09-02 15:16:20 -0300589 pwm1: pwm@30660000 {
590 compatible = "fsl,imx7d-pwm", "fsl,imx27-pwm";
591 reg = <0x30660000 0x10000>;
592 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
593 clocks = <&clks IMX7D_PWM1_ROOT_CLK>,
594 <&clks IMX7D_PWM1_ROOT_CLK>;
595 clock-names = "ipg", "per";
596 #pwm-cells = <2>;
597 status = "disabled";
598 };
599
600 pwm2: pwm@30670000 {
601 compatible = "fsl,imx7d-pwm", "fsl,imx27-pwm";
602 reg = <0x30670000 0x10000>;
603 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
604 clocks = <&clks IMX7D_PWM2_ROOT_CLK>,
605 <&clks IMX7D_PWM2_ROOT_CLK>;
606 clock-names = "ipg", "per";
607 #pwm-cells = <2>;
608 status = "disabled";
609 };
610
611 pwm3: pwm@30680000 {
612 compatible = "fsl,imx7d-pwm", "fsl,imx27-pwm";
613 reg = <0x30680000 0x10000>;
614 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
615 clocks = <&clks IMX7D_PWM3_ROOT_CLK>,
616 <&clks IMX7D_PWM3_ROOT_CLK>;
617 clock-names = "ipg", "per";
618 #pwm-cells = <2>;
619 status = "disabled";
620 };
621
622 pwm4: pwm@30690000 {
623 compatible = "fsl,imx7d-pwm", "fsl,imx27-pwm";
624 reg = <0x30690000 0x10000>;
625 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
626 clocks = <&clks IMX7D_PWM4_ROOT_CLK>,
627 <&clks IMX7D_PWM4_ROOT_CLK>;
628 clock-names = "ipg", "per";
629 #pwm-cells = <2>;
630 status = "disabled";
631 };
Gary Bissone8ed73f2016-04-02 18:25:43 +0200632
633 lcdif: lcdif@30730000 {
634 compatible = "fsl,imx7d-lcdif", "fsl,imx28-lcdif";
635 reg = <0x30730000 0x10000>;
636 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
637 clocks = <&clks IMX7D_LCDIF_PIXEL_ROOT_CLK>,
638 <&clks IMX7D_CLK_DUMMY>,
639 <&clks IMX7D_CLK_DUMMY>;
640 clock-names = "pix", "axi", "disp_axi";
641 status = "disabled";
642 };
Fabio Estevam208c9fe2015-09-02 15:16:20 -0300643 };
644
Frank Li94967342015-05-19 02:45:04 +0800645 aips3: aips-bus@30800000 {
646 compatible = "fsl,aips-bus", "simple-bus";
647 #address-cells = <1>;
648 #size-cells = <1>;
649 reg = <0x30800000 0x400000>;
650 ranges;
651
Diego Dortab754af32016-06-22 16:37:07 -0300652 ecspi1: ecspi@30820000 {
653 #address-cells = <1>;
654 #size-cells = <0>;
655 compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
656 reg = <0x30820000 0x10000>;
657 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
658 clocks = <&clks IMX7D_ECSPI1_ROOT_CLK>,
659 <&clks IMX7D_ECSPI1_ROOT_CLK>;
660 clock-names = "ipg", "per";
661 status = "disabled";
662 };
663
664 ecspi2: ecspi@30830000 {
665 #address-cells = <1>;
666 #size-cells = <0>;
667 compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
668 reg = <0x30830000 0x10000>;
669 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
670 clocks = <&clks IMX7D_ECSPI2_ROOT_CLK>,
671 <&clks IMX7D_ECSPI2_ROOT_CLK>;
672 clock-names = "ipg", "per";
673 status = "disabled";
674 };
675
676 ecspi3: ecspi@30840000 {
677 #address-cells = <1>;
678 #size-cells = <0>;
679 compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
680 reg = <0x30840000 0x10000>;
681 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
682 clocks = <&clks IMX7D_ECSPI3_ROOT_CLK>,
683 <&clks IMX7D_ECSPI3_ROOT_CLK>;
684 clock-names = "ipg", "per";
685 status = "disabled";
686 };
687
Frank Li94967342015-05-19 02:45:04 +0800688 uart1: serial@30860000 {
689 compatible = "fsl,imx7d-uart",
690 "fsl,imx6q-uart";
691 reg = <0x30860000 0x10000>;
692 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
693 clocks = <&clks IMX7D_UART1_ROOT_CLK>,
694 <&clks IMX7D_UART1_ROOT_CLK>;
695 clock-names = "ipg", "per";
696 status = "disabled";
697 };
698
Fabio Estevam178b2d02015-09-24 16:18:12 -0300699 uart2: serial@30890000 {
Frank Li94967342015-05-19 02:45:04 +0800700 compatible = "fsl,imx7d-uart",
701 "fsl,imx6q-uart";
Fabio Estevam178b2d02015-09-24 16:18:12 -0300702 reg = <0x30890000 0x10000>;
Frank Li94967342015-05-19 02:45:04 +0800703 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
704 clocks = <&clks IMX7D_UART2_ROOT_CLK>,
705 <&clks IMX7D_UART2_ROOT_CLK>;
706 clock-names = "ipg", "per";
707 status = "disabled";
708 };
709
710 uart3: serial@30880000 {
711 compatible = "fsl,imx7d-uart",
712 "fsl,imx6q-uart";
713 reg = <0x30880000 0x10000>;
714 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
715 clocks = <&clks IMX7D_UART3_ROOT_CLK>,
716 <&clks IMX7D_UART3_ROOT_CLK>;
717 clock-names = "ipg", "per";
718 status = "disabled";
719 };
720
Fabio Estevam7310f072016-08-10 13:00:27 -0300721 sai1: sai@308a0000 {
722 #sound-dai-cells = <0>;
723 compatible = "fsl,imx7d-sai", "fsl,imx6sx-sai";
724 reg = <0x308a0000 0x10000>;
725 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
726 clocks = <&clks IMX7D_SAI1_IPG_CLK>,
727 <&clks IMX7D_SAI1_ROOT_CLK>,
728 <&clks IMX7D_CLK_DUMMY>,
729 <&clks IMX7D_CLK_DUMMY>;
730 clock-names = "bus", "mclk1", "mclk2", "mclk3";
731 dma-names = "rx", "tx";
732 dmas = <&sdma 8 24 0>, <&sdma 9 24 0>;
733 status = "disabled";
734 };
735
736 sai2: sai@308b0000 {
737 #sound-dai-cells = <0>;
738 compatible = "fsl,imx7d-sai", "fsl,imx6sx-sai";
739 reg = <0x308b0000 0x10000>;
740 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
741 clocks = <&clks IMX7D_SAI2_IPG_CLK>,
742 <&clks IMX7D_SAI2_ROOT_CLK>,
743 <&clks IMX7D_CLK_DUMMY>,
744 <&clks IMX7D_CLK_DUMMY>;
745 clock-names = "bus", "mclk1", "mclk2", "mclk3";
746 dma-names = "rx", "tx";
747 dmas = <&sdma 10 24 0>, <&sdma 11 24 0>;
748 status = "disabled";
749 };
750
751 sai3: sai@308c0000 {
752 #sound-dai-cells = <0>;
753 compatible = "fsl,imx7d-sai", "fsl,imx6sx-sai";
754 reg = <0x308c0000 0x10000>;
755 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
756 clocks = <&clks IMX7D_SAI3_IPG_CLK>,
757 <&clks IMX7D_SAI3_ROOT_CLK>,
758 <&clks IMX7D_CLK_DUMMY>,
759 <&clks IMX7D_CLK_DUMMY>;
760 clock-names = "bus", "mclk1", "mclk2", "mclk3";
761 dma-names = "rx", "tx";
762 dmas = <&sdma 12 24 0>, <&sdma 13 24 0>;
763 status = "disabled";
764 };
765
Gary Bissonc1474012016-04-02 18:25:44 +0200766 flexcan1: can@30a00000 {
767 compatible = "fsl,imx7d-flexcan", "fsl,imx6q-flexcan";
768 reg = <0x30a00000 0x10000>;
769 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
770 clocks = <&clks IMX7D_CLK_DUMMY>,
771 <&clks IMX7D_CAN1_ROOT_CLK>;
772 clock-names = "ipg", "per";
773 status = "disabled";
774 };
775
776 flexcan2: can@30a10000 {
777 compatible = "fsl,imx7d-flexcan", "fsl,imx6q-flexcan";
778 reg = <0x30a10000 0x10000>;
779 interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
780 clocks = <&clks IMX7D_CLK_DUMMY>,
781 <&clks IMX7D_CAN2_ROOT_CLK>;
782 clock-names = "ipg", "per";
783 status = "disabled";
784 };
785
Frank Li94967342015-05-19 02:45:04 +0800786 i2c1: i2c@30a20000 {
787 #address-cells = <1>;
788 #size-cells = <0>;
789 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
790 reg = <0x30a20000 0x10000>;
791 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
792 clocks = <&clks IMX7D_I2C1_ROOT_CLK>;
793 status = "disabled";
794 };
795
796 i2c2: i2c@30a30000 {
797 #address-cells = <1>;
798 #size-cells = <0>;
799 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
800 reg = <0x30a30000 0x10000>;
801 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
802 clocks = <&clks IMX7D_I2C2_ROOT_CLK>;
803 status = "disabled";
804 };
805
806 i2c3: i2c@30a40000 {
807 #address-cells = <1>;
808 #size-cells = <0>;
809 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
810 reg = <0x30a40000 0x10000>;
811 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
812 clocks = <&clks IMX7D_I2C3_ROOT_CLK>;
813 status = "disabled";
814 };
815
816 i2c4: i2c@30a50000 {
817 #address-cells = <1>;
818 #size-cells = <0>;
819 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
820 reg = <0x30a50000 0x10000>;
821 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
822 clocks = <&clks IMX7D_I2C4_ROOT_CLK>;
823 status = "disabled";
824 };
825
826 uart4: serial@30a60000 {
827 compatible = "fsl,imx7d-uart",
828 "fsl,imx6q-uart";
829 reg = <0x30a60000 0x10000>;
830 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
831 clocks = <&clks IMX7D_UART4_ROOT_CLK>,
832 <&clks IMX7D_UART4_ROOT_CLK>;
833 clock-names = "ipg", "per";
834 status = "disabled";
835 };
836
837 uart5: serial@30a70000 {
838 compatible = "fsl,imx7d-uart",
839 "fsl,imx6q-uart";
840 reg = <0x30a70000 0x10000>;
841 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
842 clocks = <&clks IMX7D_UART5_ROOT_CLK>,
843 <&clks IMX7D_UART5_ROOT_CLK>;
844 clock-names = "ipg", "per";
845 status = "disabled";
846 };
847
848 uart6: serial@30a80000 {
849 compatible = "fsl,imx7d-uart",
850 "fsl,imx6q-uart";
851 reg = <0x30a80000 0x10000>;
852 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
853 clocks = <&clks IMX7D_UART6_ROOT_CLK>,
854 <&clks IMX7D_UART6_ROOT_CLK>;
855 clock-names = "ipg", "per";
856 status = "disabled";
857 };
858
859 uart7: serial@30a90000 {
860 compatible = "fsl,imx7d-uart",
861 "fsl,imx6q-uart";
862 reg = <0x30a90000 0x10000>;
863 interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
864 clocks = <&clks IMX7D_UART7_ROOT_CLK>,
865 <&clks IMX7D_UART7_ROOT_CLK>;
866 clock-names = "ipg", "per";
867 status = "disabled";
868 };
869
Fabio Estevam60f5a222015-09-07 22:57:11 -0300870 usbotg1: usb@30b10000 {
871 compatible = "fsl,imx7d-usb", "fsl,imx27-usb";
872 reg = <0x30b10000 0x200>;
873 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
874 clocks = <&clks IMX7D_USB_CTRL_CLK>;
875 fsl,usbphy = <&usbphynop1>;
876 fsl,usbmisc = <&usbmisc1 0>;
877 phy-clkgate-delay-us = <400>;
878 status = "disabled";
879 };
880
Fabio Estevam60f5a222015-09-07 22:57:11 -0300881 usbh: usb@30b30000 {
882 compatible = "fsl,imx7d-usb", "fsl,imx27-usb";
883 reg = <0x30b30000 0x200>;
884 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
885 clocks = <&clks IMX7D_USB_CTRL_CLK>;
886 fsl,usbphy = <&usbphynop3>;
887 fsl,usbmisc = <&usbmisc3 0>;
888 phy_type = "hsic";
889 dr_mode = "host";
890 phy-clkgate-delay-us = <400>;
891 status = "disabled";
892 };
893
894 usbmisc1: usbmisc@30b10200 {
895 #index-cells = <1>;
896 compatible = "fsl,imx7d-usbmisc", "fsl,imx6q-usbmisc";
897 reg = <0x30b10200 0x200>;
898 };
899
Fabio Estevam60f5a222015-09-07 22:57:11 -0300900 usbmisc3: usbmisc@30b30200 {
901 #index-cells = <1>;
902 compatible = "fsl,imx7d-usbmisc", "fsl,imx6q-usbmisc";
903 reg = <0x30b30200 0x200>;
904 };
905
906 usbphynop1: usbphynop1 {
907 compatible = "usb-nop-xceiv";
908 clocks = <&clks IMX7D_USB_PHY1_CLK>;
909 clock-names = "main_clk";
910 };
911
Fabio Estevam60f5a222015-09-07 22:57:11 -0300912 usbphynop3: usbphynop3 {
913 compatible = "usb-nop-xceiv";
914 clocks = <&clks IMX7D_USB_HSIC_ROOT_CLK>;
915 clock-names = "main_clk";
916 };
917
Frank Li94967342015-05-19 02:45:04 +0800918 usdhc1: usdhc@30b40000 {
919 compatible = "fsl,imx7d-usdhc", "fsl,imx6sl-usdhc";
920 reg = <0x30b40000 0x10000>;
921 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
922 clocks = <&clks IMX7D_CLK_DUMMY>,
923 <&clks IMX7D_CLK_DUMMY>,
924 <&clks IMX7D_USDHC1_ROOT_CLK>;
925 clock-names = "ipg", "ahb", "per";
926 bus-width = <4>;
927 status = "disabled";
928 };
929
930 usdhc2: usdhc@30b50000 {
931 compatible = "fsl,imx7d-usdhc", "fsl,imx6sl-usdhc";
932 reg = <0x30b50000 0x10000>;
933 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
934 clocks = <&clks IMX7D_CLK_DUMMY>,
935 <&clks IMX7D_CLK_DUMMY>,
936 <&clks IMX7D_USDHC2_ROOT_CLK>;
937 clock-names = "ipg", "ahb", "per";
938 bus-width = <4>;
939 status = "disabled";
940 };
941
942 usdhc3: usdhc@30b60000 {
943 compatible = "fsl,imx7d-usdhc", "fsl,imx6sl-usdhc";
944 reg = <0x30b60000 0x10000>;
945 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
946 clocks = <&clks IMX7D_CLK_DUMMY>,
947 <&clks IMX7D_CLK_DUMMY>,
948 <&clks IMX7D_USDHC3_ROOT_CLK>;
949 clock-names = "ipg", "ahb", "per";
950 bus-width = <4>;
951 status = "disabled";
952 };
Fugang Duan0f629212015-09-07 10:55:01 +0800953
Fabio Estevam2f5ac9b2016-08-10 13:00:28 -0300954 sdma: sdma@30bd0000 {
955 compatible = "fsl,imx7d-sdma", "fsl,imx35-sdma";
956 reg = <0x30bd0000 0x10000>;
957 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
958 clocks = <&clks IMX7D_SDMA_CORE_CLK>,
959 <&clks IMX7D_AHB_CHANNEL_ROOT_CLK>;
960 clock-names = "ipg", "ahb";
961 #dma-cells = <3>;
962 fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";
963 };
964
Fugang Duan0f629212015-09-07 10:55:01 +0800965 fec1: ethernet@30be0000 {
966 compatible = "fsl,imx7d-fec", "fsl,imx6sx-fec";
967 reg = <0x30be0000 0x10000>;
968 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
969 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
970 <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
971 clocks = <&clks IMX7D_ENET_AXI_ROOT_CLK>,
972 <&clks IMX7D_ENET_AXI_ROOT_CLK>,
973 <&clks IMX7D_ENET1_TIME_ROOT_CLK>,
974 <&clks IMX7D_PLL_ENET_MAIN_125M_CLK>,
975 <&clks IMX7D_ENET_PHY_REF_ROOT_CLK>;
976 clock-names = "ipg", "ahb", "ptp",
977 "enet_clk_ref", "enet_out";
978 fsl,num-tx-queues=<3>;
979 fsl,num-rx-queues=<3>;
980 status = "disabled";
981 };
Frank Li94967342015-05-19 02:45:04 +0800982 };
983 };
984};