2 * Copyright 2013 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
11 * version 2 as published by the Free Software Foundation.
13 * This file is distributed in the hope that it will be useful
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
20 * b) Permission is hereby granted, free of charge, to any person
21 * obtaining a copy of this software and associated documentation
22 * files (the "Software"), to deal in the Software without
23 * restriction, including without limitation the rights to use
24 * copy, modify, merge, publish, distribute, sublicense, and/or
25 * sell copies of the Software, and to permit persons to whom the
26 * Software is furnished to do so, subject to the following
29 * The above copyright notice and this permission notice shall be
30 * included in all copies or substantial portions of the Software.
32 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
33 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
37 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39 * OTHER DEALINGS IN THE SOFTWARE.
42 #include "vf610-pinfunc.h"
43 #include <dt-bindings/clock/vf610-clock.h>
44 #include <dt-bindings/interrupt-controller/irq.h>
45 #include <dt-bindings/gpio/gpio.h>
69 compatible = "fixed-clock";
71 clock-frequency = <24000000>;
75 compatible = "fixed-clock";
77 clock-frequency = <32768>;
80 reboot: syscon-reboot {
81 compatible = "syscon-reboot";
90 compatible = "simple-bus";
91 interrupt-parent = <&mscm_ir>;
94 aips0: aips-bus@40000000 {
95 compatible = "fsl,aips-bus", "simple-bus";
98 reg = <0x40000000 0x00070000>;
101 mscm_cpucfg: cpucfg@40001000 {
102 compatible = "fsl,vf610-mscm-cpucfg", "syscon";
103 reg = <0x40001000 0x800>;
106 mscm_ir: interrupt-controller@40001800 {
107 compatible = "fsl,vf610-mscm-ir";
108 reg = <0x40001800 0x400>;
109 fsl,cpucfg = <&mscm_cpucfg>;
110 interrupt-controller;
111 #interrupt-cells = <2>;
114 edma0: dma-controller@40018000 {
116 compatible = "fsl,vf610-edma";
117 reg = <0x40018000 0x2000>,
121 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>,
122 <9 IRQ_TYPE_LEVEL_HIGH>;
123 interrupt-names = "edma-tx", "edma-err";
124 clock-names = "dmamux0", "dmamux1";
125 clocks = <&clks VF610_CLK_DMAMUX0>,
126 <&clks VF610_CLK_DMAMUX1>;
130 can0: flexcan@40020000 {
131 compatible = "fsl,vf610-flexcan";
132 reg = <0x40020000 0x4000>;
133 interrupts = <58 IRQ_TYPE_LEVEL_HIGH>;
134 clocks = <&clks VF610_CLK_FLEXCAN0>,
135 <&clks VF610_CLK_FLEXCAN0>;
136 clock-names = "ipg", "per";
140 uart0: serial@40027000 {
141 compatible = "fsl,vf610-lpuart";
142 reg = <0x40027000 0x1000>;
143 interrupts = <61 IRQ_TYPE_LEVEL_HIGH>;
144 clocks = <&clks VF610_CLK_UART0>;
148 dma-names = "rx","tx";
152 uart1: serial@40028000 {
153 compatible = "fsl,vf610-lpuart";
154 reg = <0x40028000 0x1000>;
155 interrupts = <62 IRQ_TYPE_LEVEL_HIGH>;
156 clocks = <&clks VF610_CLK_UART1>;
160 dma-names = "rx","tx";
164 uart2: serial@40029000 {
165 compatible = "fsl,vf610-lpuart";
166 reg = <0x40029000 0x1000>;
167 interrupts = <63 IRQ_TYPE_LEVEL_HIGH>;
168 clocks = <&clks VF610_CLK_UART2>;
172 dma-names = "rx","tx";
176 uart3: serial@4002a000 {
177 compatible = "fsl,vf610-lpuart";
178 reg = <0x4002a000 0x1000>;
179 interrupts = <64 IRQ_TYPE_LEVEL_HIGH>;
180 clocks = <&clks VF610_CLK_UART3>;
184 dma-names = "rx","tx";
188 dspi0: dspi0@4002c000 {
189 #address-cells = <1>;
191 compatible = "fsl,vf610-dspi";
192 reg = <0x4002c000 0x1000>;
193 interrupts = <67 IRQ_TYPE_LEVEL_HIGH>;
194 clocks = <&clks VF610_CLK_DSPI0>;
195 clock-names = "dspi";
196 spi-num-chipselects = <6>;
200 dspi1: dspi1@4002d000 {
201 #address-cells = <1>;
203 compatible = "fsl,vf610-dspi";
204 reg = <0x4002d000 0x1000>;
205 interrupts = <68 IRQ_TYPE_LEVEL_HIGH>;
206 clocks = <&clks VF610_CLK_DSPI1>;
207 clock-names = "dspi";
208 spi-num-chipselects = <4>;
213 compatible = "fsl,vf610-sai";
214 reg = <0x4002f000 0x1000>;
215 interrupts = <84 IRQ_TYPE_LEVEL_HIGH>;
216 clocks = <&clks VF610_CLK_SAI0>,
217 <&clks VF610_CLK_SAI0_DIV>,
218 <&clks 0>, <&clks 0>;
219 clock-names = "bus", "mclk1", "mclk2", "mclk3";
220 dma-names = "tx", "rx";
221 dmas = <&edma0 0 17>,
227 compatible = "fsl,vf610-sai";
228 reg = <0x40030000 0x1000>;
229 interrupts = <85 IRQ_TYPE_LEVEL_HIGH>;
230 clocks = <&clks VF610_CLK_SAI1>,
231 <&clks VF610_CLK_SAI1_DIV>,
232 <&clks 0>, <&clks 0>;
233 clock-names = "bus", "mclk1", "mclk2", "mclk3";
234 dma-names = "tx", "rx";
235 dmas = <&edma0 0 19>,
241 compatible = "fsl,vf610-sai";
242 reg = <0x40031000 0x1000>;
243 interrupts = <86 IRQ_TYPE_LEVEL_HIGH>;
244 clocks = <&clks VF610_CLK_SAI2>,
245 <&clks VF610_CLK_SAI2_DIV>,
246 <&clks 0>, <&clks 0>;
247 clock-names = "bus", "mclk1", "mclk2", "mclk3";
248 dma-names = "tx", "rx";
249 dmas = <&edma0 0 21>,
255 compatible = "fsl,vf610-sai";
256 reg = <0x40032000 0x1000>;
257 interrupts = <87 IRQ_TYPE_LEVEL_HIGH>;
258 clocks = <&clks VF610_CLK_SAI3>,
259 <&clks VF610_CLK_SAI3_DIV>,
260 <&clks 0>, <&clks 0>;
261 clock-names = "bus", "mclk1", "mclk2", "mclk3";
262 dma-names = "tx", "rx";
269 compatible = "fsl,vf610-pit";
270 reg = <0x40037000 0x1000>;
271 interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
272 clocks = <&clks VF610_CLK_PIT>;
277 compatible = "fsl,vf610-ftm-pwm";
279 reg = <0x40038000 0x1000>;
280 clock-names = "ftm_sys", "ftm_ext",
281 "ftm_fix", "ftm_cnt_clk_en";
282 clocks = <&clks VF610_CLK_FTM0>,
283 <&clks VF610_CLK_FTM0_EXT_SEL>,
284 <&clks VF610_CLK_FTM0_FIX_SEL>,
285 <&clks VF610_CLK_FTM0_EXT_FIX_EN>;
290 compatible = "fsl,vf610-ftm-pwm";
292 reg = <0x40039000 0x1000>;
293 clock-names = "ftm_sys", "ftm_ext",
294 "ftm_fix", "ftm_cnt_clk_en";
295 clocks = <&clks VF610_CLK_FTM1>,
296 <&clks VF610_CLK_FTM1_EXT_SEL>,
297 <&clks VF610_CLK_FTM1_FIX_SEL>,
298 <&clks VF610_CLK_FTM1_EXT_FIX_EN>;
303 compatible = "fsl,vf610-adc";
304 reg = <0x4003b000 0x1000>;
305 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
306 clocks = <&clks VF610_CLK_ADC0>;
308 #io-channel-cells = <1>;
310 fsl,adck-max-frequency = <30000000>, <40000000>,
314 tcon0: timing-controller@4003d000 {
315 compatible = "fsl,vf610-tcon";
316 reg = <0x4003d000 0x1000>;
317 clocks = <&clks VF610_CLK_TCON0>;
322 wdoga5: wdog@4003e000 {
323 compatible = "fsl,vf610-wdt", "fsl,imx21-wdt";
324 reg = <0x4003e000 0x1000>;
325 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
326 clocks = <&clks VF610_CLK_WDT>;
327 clock-names = "wdog";
331 qspi0: quadspi@40044000 {
332 #address-cells = <1>;
334 compatible = "fsl,vf610-qspi";
335 reg = <0x40044000 0x1000>, <0x20000000 0x10000000>;
336 reg-names = "QuadSPI", "QuadSPI-memory";
337 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
338 clocks = <&clks VF610_CLK_QSPI0_EN>,
339 <&clks VF610_CLK_QSPI0>;
340 clock-names = "qspi_en", "qspi";
344 iomuxc: iomuxc@40048000 {
345 compatible = "fsl,vf610-iomuxc";
346 reg = <0x40048000 0x1000>;
349 gpio0: gpio@40049000 {
350 compatible = "fsl,vf610-gpio";
351 reg = <0x40049000 0x1000 0x400ff000 0x40>;
354 interrupts = <107 IRQ_TYPE_LEVEL_HIGH>;
355 interrupt-controller;
356 #interrupt-cells = <2>;
357 gpio-ranges = <&iomuxc 0 0 32>;
360 gpio1: gpio@4004a000 {
361 compatible = "fsl,vf610-gpio";
362 reg = <0x4004a000 0x1000 0x400ff040 0x40>;
365 interrupts = <108 IRQ_TYPE_LEVEL_HIGH>;
366 interrupt-controller;
367 #interrupt-cells = <2>;
368 gpio-ranges = <&iomuxc 0 32 32>;
371 gpio2: gpio@4004b000 {
372 compatible = "fsl,vf610-gpio";
373 reg = <0x4004b000 0x1000 0x400ff080 0x40>;
376 interrupts = <109 IRQ_TYPE_LEVEL_HIGH>;
377 interrupt-controller;
378 #interrupt-cells = <2>;
379 gpio-ranges = <&iomuxc 0 64 32>;
382 gpio3: gpio@4004c000 {
383 compatible = "fsl,vf610-gpio";
384 reg = <0x4004c000 0x1000 0x400ff0c0 0x40>;
387 interrupts = <110 IRQ_TYPE_LEVEL_HIGH>;
388 interrupt-controller;
389 #interrupt-cells = <2>;
390 gpio-ranges = <&iomuxc 0 96 32>;
393 gpio4: gpio@4004d000 {
394 compatible = "fsl,vf610-gpio";
395 reg = <0x4004d000 0x1000 0x400ff100 0x40>;
398 interrupts = <111 IRQ_TYPE_LEVEL_HIGH>;
399 interrupt-controller;
400 #interrupt-cells = <2>;
401 gpio-ranges = <&iomuxc 0 128 7>;
404 anatop: anatop@40050000 {
405 compatible = "fsl,vf610-anatop", "syscon";
406 reg = <0x40050000 0x400>;
409 usbphy0: usbphy@40050800 {
410 compatible = "fsl,vf610-usbphy";
411 reg = <0x40050800 0x400>;
412 interrupts = <50 IRQ_TYPE_LEVEL_HIGH>;
413 clocks = <&clks VF610_CLK_USBPHY0>;
414 fsl,anatop = <&anatop>;
418 usbphy1: usbphy@40050c00 {
419 compatible = "fsl,vf610-usbphy";
420 reg = <0x40050c00 0x400>;
421 interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
422 clocks = <&clks VF610_CLK_USBPHY1>;
423 fsl,anatop = <&anatop>;
428 compatible = "fsl,vf610-dcu";
429 reg = <0x40058000 0x1200>;
430 interrupts = <30 IRQ_TYPE_LEVEL_HIGH>;
431 clocks = <&clks VF610_CLK_DCU0>,
432 <&clks VF610_CLK_DCU0_DIV>;
433 clock-names = "dcu", "pix";
439 #address-cells = <1>;
441 compatible = "fsl,vf610-i2c";
442 reg = <0x40066000 0x1000>;
443 interrupts = <71 IRQ_TYPE_LEVEL_HIGH>;
444 clocks = <&clks VF610_CLK_I2C0>;
446 dmas = <&edma0 0 50>,
448 dma-names = "rx","tx";
453 #address-cells = <1>;
455 compatible = "fsl,vf610-i2c";
456 reg = <0x40067000 0x1000>;
457 interrupts = <72 IRQ_TYPE_LEVEL_HIGH>;
458 clocks = <&clks VF610_CLK_I2C1>;
460 dmas = <&edma0 0 52>,
462 dma-names = "rx","tx";
467 compatible = "fsl,vf610-ccm";
468 reg = <0x4006b000 0x1000>;
469 clocks = <&sxosc>, <&fxosc>;
470 clock-names = "sxosc", "fxosc";
474 usbdev0: usb@40034000 {
475 compatible = "fsl,vf610-usb", "fsl,imx27-usb";
476 reg = <0x40034000 0x800>;
477 interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
478 clocks = <&clks VF610_CLK_USBC0>;
479 fsl,usbphy = <&usbphy0>;
480 fsl,usbmisc = <&usbmisc0 0>;
481 dr_mode = "peripheral";
485 usbmisc0: usb@40034800 {
487 compatible = "fsl,vf610-usbmisc";
488 reg = <0x40034800 0x200>;
489 clocks = <&clks VF610_CLK_USBC0>;
494 compatible = "fsl,vf610-src", "syscon";
495 reg = <0x4006e000 0x1000>;
496 interrupts = <96 IRQ_TYPE_LEVEL_HIGH>;
500 aips1: aips-bus@40080000 {
501 compatible = "fsl,aips-bus", "simple-bus";
502 #address-cells = <1>;
504 reg = <0x40080000 0x0007f000>;
507 edma1: dma-controller@40098000 {
509 compatible = "fsl,vf610-edma";
510 reg = <0x40098000 0x2000>,
514 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
515 <11 IRQ_TYPE_LEVEL_HIGH>;
516 interrupt-names = "edma-tx", "edma-err";
517 clock-names = "dmamux0", "dmamux1";
518 clocks = <&clks VF610_CLK_DMAMUX2>,
519 <&clks VF610_CLK_DMAMUX3>;
523 snvs0: snvs@400a7000 {
524 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
525 reg = <0x400a7000 0x2000>;
527 snvsrtc: snvs-rtc-lp {
528 compatible = "fsl,sec-v4.0-mon-rtc-lp";
531 interrupts = <100 IRQ_TYPE_LEVEL_HIGH>;
532 clocks = <&clks VF610_CLK_SNVS>;
533 clock-names = "snvs-rtc";
537 uart4: serial@400a9000 {
538 compatible = "fsl,vf610-lpuart";
539 reg = <0x400a9000 0x1000>;
540 interrupts = <65 IRQ_TYPE_LEVEL_HIGH>;
541 clocks = <&clks VF610_CLK_UART4>;
546 uart5: serial@400aa000 {
547 compatible = "fsl,vf610-lpuart";
548 reg = <0x400aa000 0x1000>;
549 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
550 clocks = <&clks VF610_CLK_UART5>;
555 dspi2: dspi2@400ac000 {
556 #address-cells = <1>;
558 compatible = "fsl,vf610-dspi";
559 reg = <0x400ac000 0x1000>;
560 interrupts = <69 IRQ_TYPE_LEVEL_HIGH>;
561 clocks = <&clks VF610_CLK_DSPI2>;
562 clock-names = "dspi";
563 spi-num-chipselects = <2>;
567 dspi3: dspi3@400ad000 {
568 #address-cells = <1>;
570 compatible = "fsl,vf610-dspi";
571 reg = <0x400ad000 0x1000>;
572 interrupts = <70 IRQ_TYPE_LEVEL_HIGH>;
573 clocks = <&clks VF610_CLK_DSPI3>;
574 clock-names = "dspi";
575 spi-num-chipselects = <2>;
580 compatible = "fsl,vf610-adc";
581 reg = <0x400bb000 0x1000>;
582 interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
583 clocks = <&clks VF610_CLK_ADC1>;
585 #io-channel-cells = <1>;
587 fsl,adck-max-frequency = <30000000>, <40000000>,
591 esdhc0: esdhc@400b1000 {
592 compatible = "fsl,imx53-esdhc";
593 reg = <0x400b1000 0x1000>;
594 interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
595 clocks = <&clks VF610_CLK_IPG_BUS>,
596 <&clks VF610_CLK_PLATFORM_BUS>,
597 <&clks VF610_CLK_ESDHC0>;
598 clock-names = "ipg", "ahb", "per";
602 esdhc1: esdhc@400b2000 {
603 compatible = "fsl,imx53-esdhc";
604 reg = <0x400b2000 0x1000>;
605 interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
606 clocks = <&clks VF610_CLK_IPG_BUS>,
607 <&clks VF610_CLK_PLATFORM_BUS>,
608 <&clks VF610_CLK_ESDHC1>;
609 clock-names = "ipg", "ahb", "per";
613 usbh1: usb@400b4000 {
614 compatible = "fsl,vf610-usb", "fsl,imx27-usb";
615 reg = <0x400b4000 0x800>;
616 interrupts = <76 IRQ_TYPE_LEVEL_HIGH>;
617 clocks = <&clks VF610_CLK_USBC1>;
618 fsl,usbphy = <&usbphy1>;
619 fsl,usbmisc = <&usbmisc1 0>;
624 usbmisc1: usb@400b4800 {
626 compatible = "fsl,vf610-usbmisc";
627 reg = <0x400b4800 0x200>;
628 clocks = <&clks VF610_CLK_USBC1>;
633 compatible = "fsl,ftm-timer";
634 reg = <0x400b8000 0x1000 0x400b9000 0x1000>;
635 interrupts = <44 IRQ_TYPE_LEVEL_HIGH>;
636 clock-names = "ftm-evt", "ftm-src",
637 "ftm-evt-counter-en", "ftm-src-counter-en";
638 clocks = <&clks VF610_CLK_FTM2>,
639 <&clks VF610_CLK_FTM3>,
640 <&clks VF610_CLK_FTM2_EXT_FIX_EN>,
641 <&clks VF610_CLK_FTM3_EXT_FIX_EN>;
645 qspi1: quadspi@400c4000 {
646 #address-cells = <1>;
648 compatible = "fsl,vf610-qspi";
649 reg = <0x400c4000 0x1000>, <0x50000000 0x10000000>;
650 reg-names = "QuadSPI", "QuadSPI-memory";
651 interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
652 clocks = <&clks VF610_CLK_QSPI1_EN>,
653 <&clks VF610_CLK_QSPI1>;
654 clock-names = "qspi_en", "qspi";
659 compatible = "fsl,vf610-dac";
660 reg = <0x400cc000 1000>;
661 interrupts = <55 IRQ_TYPE_LEVEL_HIGH>;
663 clocks = <&clks VF610_CLK_DAC0>;
668 compatible = "fsl,vf610-dac";
669 reg = <0x400cd000 1000>;
670 interrupts = <56 IRQ_TYPE_LEVEL_HIGH>;
672 clocks = <&clks VF610_CLK_DAC1>;
676 fec0: ethernet@400d0000 {
677 compatible = "fsl,mvf600-fec";
678 reg = <0x400d0000 0x1000>;
679 interrupts = <78 IRQ_TYPE_LEVEL_HIGH>;
680 clocks = <&clks VF610_CLK_ENET0>,
681 <&clks VF610_CLK_ENET0>,
682 <&clks VF610_CLK_ENET>;
683 clock-names = "ipg", "ahb", "ptp";
687 fec1: ethernet@400d1000 {
688 compatible = "fsl,mvf600-fec";
689 reg = <0x400d1000 0x1000>;
690 interrupts = <79 IRQ_TYPE_LEVEL_HIGH>;
691 clocks = <&clks VF610_CLK_ENET1>,
692 <&clks VF610_CLK_ENET1>,
693 <&clks VF610_CLK_ENET>;
694 clock-names = "ipg", "ahb", "ptp";
698 can1: flexcan@400d4000 {
699 compatible = "fsl,vf610-flexcan";
700 reg = <0x400d4000 0x4000>;
701 interrupts = <59 IRQ_TYPE_LEVEL_HIGH>;
702 clocks = <&clks VF610_CLK_FLEXCAN1>,
703 <&clks VF610_CLK_FLEXCAN1>;
704 clock-names = "ipg", "per";
709 #address-cells = <1>;
711 compatible = "fsl,vf610-nfc";
712 reg = <0x400e0000 0x4000>;
713 interrupts = <83 IRQ_TYPE_LEVEL_HIGH>;
714 clocks = <&clks VF610_CLK_NFC>;
720 #address-cells = <1>;
722 compatible = "fsl,vf610-i2c";
723 reg = <0x400e6000 0x1000>;
724 interrupts = <73 IRQ_TYPE_LEVEL_HIGH>;
725 clocks = <&clks VF610_CLK_I2C2>;
727 dmas = <&edma0 1 36>,
729 dma-names = "rx","tx";
734 #address-cells = <1>;
736 compatible = "fsl,vf610-i2c";
737 reg = <0x400e7000 0x1000>;
738 interrupts = <74 IRQ_TYPE_LEVEL_HIGH>;
739 clocks = <&clks VF610_CLK_I2C3>;
741 dmas = <&edma0 1 38>,
743 dma-names = "rx","tx";
749 compatible = "iio-hwmon";
750 io-channels = <&adc0 16>, <&adc1 16>;