2 * Copyright 2015 Freescale Semiconductor, Inc.
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
43 #include <dt-bindings/clock/imx7d-clock.h>
44 #include <dt-bindings/gpio/gpio.h>
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
46 #include "imx7d-pinfunc.h"
47 #include "skeleton.dtsi"
79 compatible = "arm,cortex-a7";
87 clock-latency = <61036>; /* two CLK32 periods */
88 clocks = <&clks IMX7D_ARM_A7_ROOT_CLK>, <&clks IMX7D_ARM_A7_ROOT_SRC>,
89 <&clks IMX7D_PLL_ARM_MAIN_CLK>, <&clks IMX7D_PLL_SYS_MAIN_CLK>;
90 clock-names = "arm", "arm_root_src", "pll_arm", "pll_sys_main";
94 compatible = "arm,cortex-a7";
100 intc: interrupt-controller@31001000 {
101 compatible = "arm,cortex-a7-gic";
102 #interrupt-cells = <3>;
103 interrupt-controller;
104 reg = <0x31001000 0x1000>,
111 compatible = "fixed-clock";
113 clock-frequency = <32768>;
114 clock-output-names = "ckil";
118 compatible = "fixed-clock";
120 clock-frequency = <24000000>;
121 clock-output-names = "osc";
125 compatible = "arm,coresight-tmc", "arm,primecell";
126 reg = <0x30086000 0x1000>;
127 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
128 clock-names = "apb_pclk";
131 etr_in_port: endpoint {
133 remote-endpoint = <&replicator_out_port1>;
139 compatible = "arm,coresight-tpiu", "arm,primecell";
140 reg = <0x30087000 0x1000>;
141 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
142 clock-names = "apb_pclk";
145 tpiu_in_port: endpoint {
147 remote-endpoint = <&replicator_out_port1>;
154 * non-configurable replicators don't show up on the
155 * AMBA bus. As such no need to add "arm,primecell"
157 compatible = "arm,coresight-replicator";
160 #address-cells = <1>;
163 /* replicator output ports */
166 replicator_out_port0: endpoint {
167 remote-endpoint = <&tpiu_in_port>;
173 replicator_out_port1: endpoint {
174 remote-endpoint = <&etr_in_port>;
178 /* replicator input port */
181 replicator_in_port0: endpoint {
183 remote-endpoint = <&etf_out_port>;
190 compatible = "arm,coresight-tmc", "arm,primecell";
191 reg = <0x30084000 0x1000>;
192 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
193 clock-names = "apb_pclk";
196 #address-cells = <1>;
201 etf_in_port: endpoint {
203 remote-endpoint = <&hugo_funnel_out_port0>;
209 etf_out_port: endpoint {
210 remote-endpoint = <&replicator_in_port0>;
217 compatible = "arm,coresight-funnel", "arm,primecell";
218 reg = <0x30083000 0x1000>;
219 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
220 clock-names = "apb_pclk";
223 #address-cells = <1>;
226 /* funnel input ports */
229 hugo_funnel_in_port0: endpoint {
231 remote-endpoint = <&ca_funnel_out_port0>;
237 hugo_funnel_in_port1: endpoint {
238 slave-mode; /* M4 input */
244 hugo_funnel_out_port0: endpoint {
245 remote-endpoint = <&etf_in_port>;
249 /* the other input ports are not connect to anything */
254 compatible = "arm,coresight-funnel", "arm,primecell";
255 reg = <0x30041000 0x1000>;
256 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
257 clock-names = "apb_pclk";
260 #address-cells = <1>;
263 /* funnel input ports */
266 ca_funnel_in_port0: endpoint {
268 remote-endpoint = <&etm0_out_port>;
274 ca_funnel_in_port1: endpoint {
276 remote-endpoint = <&etm1_out_port>;
280 /* funnel output port */
283 ca_funnel_out_port0: endpoint {
284 remote-endpoint = <&hugo_funnel_in_port0>;
288 /* the other input ports are not connect to anything */
293 compatible = "arm,coresight-etm3x", "arm,primecell";
294 reg = <0x3007c000 0x1000>;
296 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
297 clock-names = "apb_pclk";
300 etm0_out_port: endpoint {
301 remote-endpoint = <&ca_funnel_in_port0>;
307 compatible = "arm,coresight-etm3x", "arm,primecell";
308 reg = <0x3007d000 0x1000>;
311 * System will hang if added nosmp in kernel command line
312 * without arm,primecell-periphid because amba bus try to
313 * read id and core1 power off at this time.
315 arm,primecell-periphid = <0xbb956>;
317 clocks = <&clks IMX7D_MAIN_AXI_ROOT_CLK>;
318 clock-names = "apb_pclk";
321 etm1_out_port: endpoint {
322 remote-endpoint = <&ca_funnel_in_port1>;
328 #address-cells = <1>;
330 compatible = "simple-bus";
331 interrupt-parent = <&intc>;
334 aips1: aips-bus@30000000 {
335 compatible = "fsl,aips-bus", "simple-bus";
336 #address-cells = <1>;
338 reg = <0x30000000 0x400000>;
341 gpio1: gpio@30200000 {
342 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
343 reg = <0x30200000 0x10000>;
344 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>, /* GPIO1_INT15_0 */
345 <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; /* GPIO1_INT31_16 */
348 interrupt-controller;
349 #interrupt-cells = <2>;
352 gpio2: gpio@30210000 {
353 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
354 reg = <0x30210000 0x10000>;
355 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
356 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
359 interrupt-controller;
360 #interrupt-cells = <2>;
363 gpio3: gpio@30220000 {
364 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
365 reg = <0x30220000 0x10000>;
366 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
367 <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
370 interrupt-controller;
371 #interrupt-cells = <2>;
374 gpio4: gpio@30230000 {
375 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
376 reg = <0x30230000 0x10000>;
377 interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
378 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
381 interrupt-controller;
382 #interrupt-cells = <2>;
385 gpio5: gpio@30240000 {
386 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
387 reg = <0x30240000 0x10000>;
388 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
389 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
392 interrupt-controller;
393 #interrupt-cells = <2>;
396 gpio6: gpio@30250000 {
397 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
398 reg = <0x30250000 0x10000>;
399 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
400 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
403 interrupt-controller;
404 #interrupt-cells = <2>;
407 gpio7: gpio@30260000 {
408 compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";
409 reg = <0x30260000 0x10000>;
410 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
411 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
414 interrupt-controller;
415 #interrupt-cells = <2>;
418 wdog1: wdog@30280000 {
419 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
420 reg = <0x30280000 0x10000>;
421 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
422 clocks = <&clks IMX7D_WDOG1_ROOT_CLK>;
425 wdog2: wdog@30290000 {
426 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
427 reg = <0x30290000 0x10000>;
428 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
429 clocks = <&clks IMX7D_WDOG2_ROOT_CLK>;
433 wdog3: wdog@302a0000 {
434 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
435 reg = <0x302a0000 0x10000>;
436 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
437 clocks = <&clks IMX7D_WDOG3_ROOT_CLK>;
441 wdog4: wdog@302b0000 {
442 compatible = "fsl,imx7d-wdt", "fsl,imx21-wdt";
443 reg = <0x302b0000 0x10000>;
444 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
445 clocks = <&clks IMX7D_WDOG4_ROOT_CLK>;
450 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
451 reg = <0x302d0000 0x10000>;
452 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
453 clocks = <&clks IMX7D_CLK_DUMMY>,
454 <&clks IMX7D_GPT1_ROOT_CLK>;
455 clock-names = "ipg", "per";
459 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
460 reg = <0x302e0000 0x10000>;
461 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
462 clocks = <&clks IMX7D_CLK_DUMMY>,
463 <&clks IMX7D_GPT2_ROOT_CLK>;
464 clock-names = "ipg", "per";
469 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
470 reg = <0x302f0000 0x10000>;
471 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
472 clocks = <&clks IMX7D_CLK_DUMMY>,
473 <&clks IMX7D_GPT3_ROOT_CLK>;
474 clock-names = "ipg", "per";
479 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
480 reg = <0x30300000 0x10000>;
481 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
482 clocks = <&clks IMX7D_CLK_DUMMY>,
483 <&clks IMX7D_GPT4_ROOT_CLK>;
484 clock-names = "ipg", "per";
488 iomuxc: iomuxc@30330000 {
489 compatible = "fsl,imx7d-iomuxc";
490 reg = <0x30330000 0x10000>;
493 gpr: iomuxc-gpr@30340000 {
494 compatible = "fsl,imx7d-iomuxc-gpr", "syscon";
495 reg = <0x30340000 0x10000>;
498 ocotp: ocotp-ctrl@30350000 {
499 compatible = "syscon";
500 reg = <0x30350000 0x10000>;
501 clocks = <&clks IMX7D_CLK_DUMMY>;
505 anatop: anatop@30360000 {
506 compatible = "fsl,imx7d-anatop", "fsl,imx6q-anatop",
507 "syscon", "simple-bus";
508 reg = <0x30360000 0x10000>;
509 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
510 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
512 reg_1p0d: regulator-vdd1p0d@210 {
513 compatible = "fsl,anatop-regulator";
514 regulator-name = "vdd1p0d";
515 regulator-min-microvolt = <800000>;
516 regulator-max-microvolt = <1200000>;
517 anatop-reg-offset = <0x210>;
518 anatop-vol-bit-shift = <8>;
519 anatop-vol-bit-width = <5>;
520 anatop-min-bit-val = <8>;
521 anatop-min-voltage = <800000>;
522 anatop-max-voltage = <1200000>;
523 anatop-enable-bit = <31>;
527 snvs: snvs@30370000 {
528 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
529 reg = <0x30370000 0x10000>;
531 snvs_rtc: snvs-rtc-lp {
532 compatible = "fsl,sec-v4.0-mon-rtc-lp";
535 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
536 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
539 snvs_poweroff: snvs-poweroff {
540 compatible = "syscon-poweroff";
546 snvs_pwrkey: snvs-powerkey {
547 compatible = "fsl,sec-v4.0-pwrkey";
549 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
550 linux,keycode = <KEY_POWER>;
556 compatible = "fsl,imx7d-ccm";
557 reg = <0x30380000 0x10000>;
558 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
559 <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
561 clocks = <&ckil>, <&osc>;
562 clock-names = "ckil", "osc";
566 compatible = "fsl,imx7d-src", "fsl,imx51-src", "syscon";
567 reg = <0x30390000 0x10000>;
568 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
573 aips3: aips-bus@30800000 {
574 compatible = "fsl,aips-bus", "simple-bus";
575 #address-cells = <1>;
577 reg = <0x30800000 0x400000>;
580 uart1: serial@30860000 {
581 compatible = "fsl,imx7d-uart",
583 reg = <0x30860000 0x10000>;
584 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
585 clocks = <&clks IMX7D_UART1_ROOT_CLK>,
586 <&clks IMX7D_UART1_ROOT_CLK>;
587 clock-names = "ipg", "per";
591 uart2: serial@30890000 {
592 compatible = "fsl,imx7d-uart",
594 reg = <0x30890000 0x10000>;
595 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
596 clocks = <&clks IMX7D_UART2_ROOT_CLK>,
597 <&clks IMX7D_UART2_ROOT_CLK>;
598 clock-names = "ipg", "per";
602 uart3: serial@30880000 {
603 compatible = "fsl,imx7d-uart",
605 reg = <0x30880000 0x10000>;
606 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
607 clocks = <&clks IMX7D_UART3_ROOT_CLK>,
608 <&clks IMX7D_UART3_ROOT_CLK>;
609 clock-names = "ipg", "per";
614 #address-cells = <1>;
616 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
617 reg = <0x30a20000 0x10000>;
618 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
619 clocks = <&clks IMX7D_I2C1_ROOT_CLK>;
624 #address-cells = <1>;
626 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
627 reg = <0x30a30000 0x10000>;
628 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
629 clocks = <&clks IMX7D_I2C2_ROOT_CLK>;
634 #address-cells = <1>;
636 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
637 reg = <0x30a40000 0x10000>;
638 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
639 clocks = <&clks IMX7D_I2C3_ROOT_CLK>;
644 #address-cells = <1>;
646 compatible = "fsl,imx7d-i2c", "fsl,imx21-i2c";
647 reg = <0x30a50000 0x10000>;
648 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
649 clocks = <&clks IMX7D_I2C4_ROOT_CLK>;
653 uart4: serial@30a60000 {
654 compatible = "fsl,imx7d-uart",
656 reg = <0x30a60000 0x10000>;
657 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
658 clocks = <&clks IMX7D_UART4_ROOT_CLK>,
659 <&clks IMX7D_UART4_ROOT_CLK>;
660 clock-names = "ipg", "per";
664 uart5: serial@30a70000 {
665 compatible = "fsl,imx7d-uart",
667 reg = <0x30a70000 0x10000>;
668 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
669 clocks = <&clks IMX7D_UART5_ROOT_CLK>,
670 <&clks IMX7D_UART5_ROOT_CLK>;
671 clock-names = "ipg", "per";
675 uart6: serial@30a80000 {
676 compatible = "fsl,imx7d-uart",
678 reg = <0x30a80000 0x10000>;
679 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
680 clocks = <&clks IMX7D_UART6_ROOT_CLK>,
681 <&clks IMX7D_UART6_ROOT_CLK>;
682 clock-names = "ipg", "per";
686 uart7: serial@30a90000 {
687 compatible = "fsl,imx7d-uart",
689 reg = <0x30a90000 0x10000>;
690 interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
691 clocks = <&clks IMX7D_UART7_ROOT_CLK>,
692 <&clks IMX7D_UART7_ROOT_CLK>;
693 clock-names = "ipg", "per";
697 usdhc1: usdhc@30b40000 {
698 compatible = "fsl,imx7d-usdhc", "fsl,imx6sl-usdhc";
699 reg = <0x30b40000 0x10000>;
700 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
701 clocks = <&clks IMX7D_CLK_DUMMY>,
702 <&clks IMX7D_CLK_DUMMY>,
703 <&clks IMX7D_USDHC1_ROOT_CLK>;
704 clock-names = "ipg", "ahb", "per";
709 usdhc2: usdhc@30b50000 {
710 compatible = "fsl,imx7d-usdhc", "fsl,imx6sl-usdhc";
711 reg = <0x30b50000 0x10000>;
712 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
713 clocks = <&clks IMX7D_CLK_DUMMY>,
714 <&clks IMX7D_CLK_DUMMY>,
715 <&clks IMX7D_USDHC2_ROOT_CLK>;
716 clock-names = "ipg", "ahb", "per";
721 usdhc3: usdhc@30b60000 {
722 compatible = "fsl,imx7d-usdhc", "fsl,imx6sl-usdhc";
723 reg = <0x30b60000 0x10000>;
724 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
725 clocks = <&clks IMX7D_CLK_DUMMY>,
726 <&clks IMX7D_CLK_DUMMY>,
727 <&clks IMX7D_USDHC3_ROOT_CLK>;
728 clock-names = "ipg", "ahb", "per";