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 "AS IS", 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";
87 tempsensor: iio-hwmon {
88 compatible = "iio-hwmon";
89 io-channels = <&adc0 16>, <&adc1 16>;
95 compatible = "simple-bus";
96 interrupt-parent = <&mscm_ir>;
99 aips0: aips-bus@40000000 {
100 compatible = "fsl,aips-bus", "simple-bus";
101 #address-cells = <1>;
103 reg = <0x40000000 0x00070000>;
106 mscm_cpucfg: cpucfg@40001000 {
107 compatible = "fsl,vf610-mscm-cpucfg", "syscon";
108 reg = <0x40001000 0x800>;
111 mscm_ir: interrupt-controller@40001800 {
112 compatible = "fsl,vf610-mscm-ir";
113 reg = <0x40001800 0x400>;
114 fsl,cpucfg = <&mscm_cpucfg>;
115 interrupt-controller;
116 #interrupt-cells = <2>;
119 edma0: dma-controller@40018000 {
121 compatible = "fsl,vf610-edma";
122 reg = <0x40018000 0x2000>,
126 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>,
127 <9 IRQ_TYPE_LEVEL_HIGH>;
128 interrupt-names = "edma-tx", "edma-err";
129 clock-names = "dmamux0", "dmamux1";
130 clocks = <&clks VF610_CLK_DMAMUX0>,
131 <&clks VF610_CLK_DMAMUX1>;
135 can0: flexcan@40020000 {
136 compatible = "fsl,vf610-flexcan";
137 reg = <0x40020000 0x4000>;
138 interrupts = <58 IRQ_TYPE_LEVEL_HIGH>;
139 clocks = <&clks VF610_CLK_FLEXCAN0>,
140 <&clks VF610_CLK_FLEXCAN0>;
141 clock-names = "ipg", "per";
145 uart0: serial@40027000 {
146 compatible = "fsl,vf610-lpuart";
147 reg = <0x40027000 0x1000>;
148 interrupts = <61 IRQ_TYPE_LEVEL_HIGH>;
149 clocks = <&clks VF610_CLK_UART0>;
153 dma-names = "rx","tx";
157 uart1: serial@40028000 {
158 compatible = "fsl,vf610-lpuart";
159 reg = <0x40028000 0x1000>;
160 interrupts = <62 IRQ_TYPE_LEVEL_HIGH>;
161 clocks = <&clks VF610_CLK_UART1>;
165 dma-names = "rx","tx";
169 uart2: serial@40029000 {
170 compatible = "fsl,vf610-lpuart";
171 reg = <0x40029000 0x1000>;
172 interrupts = <63 IRQ_TYPE_LEVEL_HIGH>;
173 clocks = <&clks VF610_CLK_UART2>;
177 dma-names = "rx","tx";
181 uart3: serial@4002a000 {
182 compatible = "fsl,vf610-lpuart";
183 reg = <0x4002a000 0x1000>;
184 interrupts = <64 IRQ_TYPE_LEVEL_HIGH>;
185 clocks = <&clks VF610_CLK_UART3>;
189 dma-names = "rx","tx";
193 dspi0: dspi0@4002c000 {
194 #address-cells = <1>;
196 compatible = "fsl,vf610-dspi";
197 reg = <0x4002c000 0x1000>;
198 interrupts = <67 IRQ_TYPE_LEVEL_HIGH>;
199 clocks = <&clks VF610_CLK_DSPI0>;
200 clock-names = "dspi";
201 spi-num-chipselects = <6>;
202 dmas = <&edma1 1 12>,
204 dma-names = "rx", "tx";
208 dspi1: dspi1@4002d000 {
209 #address-cells = <1>;
211 compatible = "fsl,vf610-dspi";
212 reg = <0x4002d000 0x1000>;
213 interrupts = <68 IRQ_TYPE_LEVEL_HIGH>;
214 clocks = <&clks VF610_CLK_DSPI1>;
215 clock-names = "dspi";
216 spi-num-chipselects = <4>;
217 dmas = <&edma1 1 14>,
219 dma-names = "rx", "tx";
224 compatible = "fsl,vf610-sai";
225 reg = <0x4002f000 0x1000>;
226 interrupts = <84 IRQ_TYPE_LEVEL_HIGH>;
227 clocks = <&clks VF610_CLK_SAI0>,
228 <&clks VF610_CLK_SAI0_DIV>,
229 <&clks 0>, <&clks 0>;
230 clock-names = "bus", "mclk1", "mclk2", "mclk3";
231 dma-names = "tx", "rx";
232 dmas = <&edma0 0 17>,
238 compatible = "fsl,vf610-sai";
239 reg = <0x40030000 0x1000>;
240 interrupts = <85 IRQ_TYPE_LEVEL_HIGH>;
241 clocks = <&clks VF610_CLK_SAI1>,
242 <&clks VF610_CLK_SAI1_DIV>,
243 <&clks 0>, <&clks 0>;
244 clock-names = "bus", "mclk1", "mclk2", "mclk3";
245 dma-names = "tx", "rx";
246 dmas = <&edma0 0 19>,
252 compatible = "fsl,vf610-sai";
253 reg = <0x40031000 0x1000>;
254 interrupts = <86 IRQ_TYPE_LEVEL_HIGH>;
255 clocks = <&clks VF610_CLK_SAI2>,
256 <&clks VF610_CLK_SAI2_DIV>,
257 <&clks 0>, <&clks 0>;
258 clock-names = "bus", "mclk1", "mclk2", "mclk3";
259 dma-names = "tx", "rx";
260 dmas = <&edma0 0 21>,
266 compatible = "fsl,vf610-sai";
267 reg = <0x40032000 0x1000>;
268 interrupts = <87 IRQ_TYPE_LEVEL_HIGH>;
269 clocks = <&clks VF610_CLK_SAI3>,
270 <&clks VF610_CLK_SAI3_DIV>,
271 <&clks 0>, <&clks 0>;
272 clock-names = "bus", "mclk1", "mclk2", "mclk3";
273 dma-names = "tx", "rx";
280 compatible = "fsl,vf610-pit";
281 reg = <0x40037000 0x1000>;
282 interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
283 clocks = <&clks VF610_CLK_PIT>;
288 compatible = "fsl,vf610-ftm-pwm";
290 reg = <0x40038000 0x1000>;
291 clock-names = "ftm_sys", "ftm_ext",
292 "ftm_fix", "ftm_cnt_clk_en";
293 clocks = <&clks VF610_CLK_FTM0>,
294 <&clks VF610_CLK_FTM0_EXT_SEL>,
295 <&clks VF610_CLK_FTM0_FIX_SEL>,
296 <&clks VF610_CLK_FTM0_EXT_FIX_EN>;
301 compatible = "fsl,vf610-ftm-pwm";
303 reg = <0x40039000 0x1000>;
304 clock-names = "ftm_sys", "ftm_ext",
305 "ftm_fix", "ftm_cnt_clk_en";
306 clocks = <&clks VF610_CLK_FTM1>,
307 <&clks VF610_CLK_FTM1_EXT_SEL>,
308 <&clks VF610_CLK_FTM1_FIX_SEL>,
309 <&clks VF610_CLK_FTM1_EXT_FIX_EN>;
314 compatible = "fsl,vf610-adc";
315 reg = <0x4003b000 0x1000>;
316 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
317 clocks = <&clks VF610_CLK_ADC0>;
319 #io-channel-cells = <1>;
321 fsl,adck-max-frequency = <30000000>, <40000000>,
325 tcon0: timing-controller@4003d000 {
326 compatible = "fsl,vf610-tcon";
327 reg = <0x4003d000 0x1000>;
328 clocks = <&clks VF610_CLK_TCON0>;
333 wdoga5: wdog@4003e000 {
334 compatible = "fsl,vf610-wdt", "fsl,imx21-wdt";
335 reg = <0x4003e000 0x1000>;
336 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
337 clocks = <&clks VF610_CLK_WDT>;
338 clock-names = "wdog";
342 qspi0: quadspi@40044000 {
343 #address-cells = <1>;
345 compatible = "fsl,vf610-qspi";
346 reg = <0x40044000 0x1000>, <0x20000000 0x10000000>;
347 reg-names = "QuadSPI", "QuadSPI-memory";
348 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
349 clocks = <&clks VF610_CLK_QSPI0_EN>,
350 <&clks VF610_CLK_QSPI0>;
351 clock-names = "qspi_en", "qspi";
355 iomuxc: iomuxc@40048000 {
356 compatible = "fsl,vf610-iomuxc";
357 reg = <0x40048000 0x1000>;
360 gpio0: gpio@40049000 {
361 compatible = "fsl,vf610-gpio";
362 reg = <0x40049000 0x1000 0x400ff000 0x40>;
365 interrupts = <107 IRQ_TYPE_LEVEL_HIGH>;
366 interrupt-controller;
367 #interrupt-cells = <2>;
368 gpio-ranges = <&iomuxc 0 0 32>;
371 gpio1: gpio@4004a000 {
372 compatible = "fsl,vf610-gpio";
373 reg = <0x4004a000 0x1000 0x400ff040 0x40>;
376 interrupts = <108 IRQ_TYPE_LEVEL_HIGH>;
377 interrupt-controller;
378 #interrupt-cells = <2>;
379 gpio-ranges = <&iomuxc 0 32 32>;
382 gpio2: gpio@4004b000 {
383 compatible = "fsl,vf610-gpio";
384 reg = <0x4004b000 0x1000 0x400ff080 0x40>;
387 interrupts = <109 IRQ_TYPE_LEVEL_HIGH>;
388 interrupt-controller;
389 #interrupt-cells = <2>;
390 gpio-ranges = <&iomuxc 0 64 32>;
393 gpio3: gpio@4004c000 {
394 compatible = "fsl,vf610-gpio";
395 reg = <0x4004c000 0x1000 0x400ff0c0 0x40>;
398 interrupts = <110 IRQ_TYPE_LEVEL_HIGH>;
399 interrupt-controller;
400 #interrupt-cells = <2>;
401 gpio-ranges = <&iomuxc 0 96 32>;
404 gpio4: gpio@4004d000 {
405 compatible = "fsl,vf610-gpio";
406 reg = <0x4004d000 0x1000 0x400ff100 0x40>;
409 interrupts = <111 IRQ_TYPE_LEVEL_HIGH>;
410 interrupt-controller;
411 #interrupt-cells = <2>;
412 gpio-ranges = <&iomuxc 0 128 7>;
415 anatop: anatop@40050000 {
416 compatible = "fsl,vf610-anatop", "syscon";
417 reg = <0x40050000 0x400>;
420 usbphy0: usbphy@40050800 {
421 compatible = "fsl,vf610-usbphy";
422 reg = <0x40050800 0x400>;
423 interrupts = <50 IRQ_TYPE_LEVEL_HIGH>;
424 clocks = <&clks VF610_CLK_USBPHY0>;
425 fsl,anatop = <&anatop>;
429 usbphy1: usbphy@40050c00 {
430 compatible = "fsl,vf610-usbphy";
431 reg = <0x40050c00 0x400>;
432 interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
433 clocks = <&clks VF610_CLK_USBPHY1>;
434 fsl,anatop = <&anatop>;
439 compatible = "fsl,vf610-dcu";
440 reg = <0x40058000 0x1200>;
441 interrupts = <30 IRQ_TYPE_LEVEL_HIGH>;
442 clocks = <&clks VF610_CLK_DCU0>,
443 <&clks VF610_CLK_DCU0_DIV>;
444 clock-names = "dcu", "pix";
450 #address-cells = <1>;
452 compatible = "fsl,vf610-i2c";
453 reg = <0x40066000 0x1000>;
454 interrupts = <71 IRQ_TYPE_LEVEL_HIGH>;
455 clocks = <&clks VF610_CLK_I2C0>;
457 dmas = <&edma0 0 50>,
459 dma-names = "rx","tx";
464 #address-cells = <1>;
466 compatible = "fsl,vf610-i2c";
467 reg = <0x40067000 0x1000>;
468 interrupts = <72 IRQ_TYPE_LEVEL_HIGH>;
469 clocks = <&clks VF610_CLK_I2C1>;
471 dmas = <&edma0 0 52>,
473 dma-names = "rx","tx";
478 compatible = "fsl,vf610-ccm";
479 reg = <0x4006b000 0x1000>;
480 clocks = <&sxosc>, <&fxosc>;
481 clock-names = "sxosc", "fxosc";
485 usbdev0: usb@40034000 {
486 compatible = "fsl,vf610-usb", "fsl,imx27-usb";
487 reg = <0x40034000 0x800>;
488 interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
489 clocks = <&clks VF610_CLK_USBC0>;
490 fsl,usbphy = <&usbphy0>;
491 fsl,usbmisc = <&usbmisc0 0>;
492 dr_mode = "peripheral";
496 usbmisc0: usb@40034800 {
498 compatible = "fsl,vf610-usbmisc";
499 reg = <0x40034800 0x200>;
500 clocks = <&clks VF610_CLK_USBC0>;
505 compatible = "fsl,vf610-src", "syscon";
506 reg = <0x4006e000 0x1000>;
507 interrupts = <96 IRQ_TYPE_LEVEL_HIGH>;
511 aips1: aips-bus@40080000 {
512 compatible = "fsl,aips-bus", "simple-bus";
513 #address-cells = <1>;
515 reg = <0x40080000 0x0007f000>;
518 edma1: dma-controller@40098000 {
520 compatible = "fsl,vf610-edma";
521 reg = <0x40098000 0x2000>,
525 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
526 <11 IRQ_TYPE_LEVEL_HIGH>;
527 interrupt-names = "edma-tx", "edma-err";
528 clock-names = "dmamux0", "dmamux1";
529 clocks = <&clks VF610_CLK_DMAMUX2>,
530 <&clks VF610_CLK_DMAMUX3>;
534 ocotp: ocotp@400a5000 {
535 compatible = "fsl,vf610-ocotp", "syscon";
536 reg = <0x400a5000 0x1000>;
537 clocks = <&clks VF610_CLK_OCOTP>;
540 snvs0: snvs@400a7000 {
541 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
542 reg = <0x400a7000 0x2000>;
544 snvsrtc: snvs-rtc-lp {
545 compatible = "fsl,sec-v4.0-mon-rtc-lp";
548 interrupts = <100 IRQ_TYPE_LEVEL_HIGH>;
549 clocks = <&clks VF610_CLK_SNVS>;
550 clock-names = "snvs-rtc";
554 uart4: serial@400a9000 {
555 compatible = "fsl,vf610-lpuart";
556 reg = <0x400a9000 0x1000>;
557 interrupts = <65 IRQ_TYPE_LEVEL_HIGH>;
558 clocks = <&clks VF610_CLK_UART4>;
563 uart5: serial@400aa000 {
564 compatible = "fsl,vf610-lpuart";
565 reg = <0x400aa000 0x1000>;
566 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
567 clocks = <&clks VF610_CLK_UART5>;
572 dspi2: dspi2@400ac000 {
573 #address-cells = <1>;
575 compatible = "fsl,vf610-dspi";
576 reg = <0x400ac000 0x1000>;
577 interrupts = <69 IRQ_TYPE_LEVEL_HIGH>;
578 clocks = <&clks VF610_CLK_DSPI2>;
579 clock-names = "dspi";
580 spi-num-chipselects = <2>;
581 dmas = <&edma1 0 10>,
583 dma-names = "rx", "tx";
587 dspi3: dspi3@400ad000 {
588 #address-cells = <1>;
590 compatible = "fsl,vf610-dspi";
591 reg = <0x400ad000 0x1000>;
592 interrupts = <70 IRQ_TYPE_LEVEL_HIGH>;
593 clocks = <&clks VF610_CLK_DSPI3>;
594 clock-names = "dspi";
595 spi-num-chipselects = <2>;
596 dmas = <&edma1 0 12>,
598 dma-names = "rx", "tx";
603 compatible = "fsl,vf610-adc";
604 reg = <0x400bb000 0x1000>;
605 interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
606 clocks = <&clks VF610_CLK_ADC1>;
608 #io-channel-cells = <1>;
610 fsl,adck-max-frequency = <30000000>, <40000000>,
614 esdhc0: esdhc@400b1000 {
615 compatible = "fsl,imx53-esdhc";
616 reg = <0x400b1000 0x1000>;
617 interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
618 clocks = <&clks VF610_CLK_IPG_BUS>,
619 <&clks VF610_CLK_PLATFORM_BUS>,
620 <&clks VF610_CLK_ESDHC0>;
621 clock-names = "ipg", "ahb", "per";
625 esdhc1: esdhc@400b2000 {
626 compatible = "fsl,imx53-esdhc";
627 reg = <0x400b2000 0x1000>;
628 interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
629 clocks = <&clks VF610_CLK_IPG_BUS>,
630 <&clks VF610_CLK_PLATFORM_BUS>,
631 <&clks VF610_CLK_ESDHC1>;
632 clock-names = "ipg", "ahb", "per";
636 usbh1: usb@400b4000 {
637 compatible = "fsl,vf610-usb", "fsl,imx27-usb";
638 reg = <0x400b4000 0x800>;
639 interrupts = <76 IRQ_TYPE_LEVEL_HIGH>;
640 clocks = <&clks VF610_CLK_USBC1>;
641 fsl,usbphy = <&usbphy1>;
642 fsl,usbmisc = <&usbmisc1 0>;
647 usbmisc1: usb@400b4800 {
649 compatible = "fsl,vf610-usbmisc";
650 reg = <0x400b4800 0x200>;
651 clocks = <&clks VF610_CLK_USBC1>;
656 compatible = "fsl,ftm-timer";
657 reg = <0x400b8000 0x1000 0x400b9000 0x1000>;
658 interrupts = <44 IRQ_TYPE_LEVEL_HIGH>;
659 clock-names = "ftm-evt", "ftm-src",
660 "ftm-evt-counter-en", "ftm-src-counter-en";
661 clocks = <&clks VF610_CLK_FTM2>,
662 <&clks VF610_CLK_FTM3>,
663 <&clks VF610_CLK_FTM2_EXT_FIX_EN>,
664 <&clks VF610_CLK_FTM3_EXT_FIX_EN>;
668 qspi1: quadspi@400c4000 {
669 #address-cells = <1>;
671 compatible = "fsl,vf610-qspi";
672 reg = <0x400c4000 0x1000>, <0x50000000 0x10000000>;
673 reg-names = "QuadSPI", "QuadSPI-memory";
674 interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
675 clocks = <&clks VF610_CLK_QSPI1_EN>,
676 <&clks VF610_CLK_QSPI1>;
677 clock-names = "qspi_en", "qspi";
682 compatible = "fsl,vf610-dac";
683 reg = <0x400cc000 1000>;
684 interrupts = <55 IRQ_TYPE_LEVEL_HIGH>;
686 clocks = <&clks VF610_CLK_DAC0>;
691 compatible = "fsl,vf610-dac";
692 reg = <0x400cd000 1000>;
693 interrupts = <56 IRQ_TYPE_LEVEL_HIGH>;
695 clocks = <&clks VF610_CLK_DAC1>;
699 fec0: ethernet@400d0000 {
700 compatible = "fsl,mvf600-fec";
701 reg = <0x400d0000 0x1000>;
702 interrupts = <78 IRQ_TYPE_LEVEL_HIGH>;
703 clocks = <&clks VF610_CLK_ENET0>,
704 <&clks VF610_CLK_ENET0>,
705 <&clks VF610_CLK_ENET>;
706 clock-names = "ipg", "ahb", "ptp";
710 fec1: ethernet@400d1000 {
711 compatible = "fsl,mvf600-fec";
712 reg = <0x400d1000 0x1000>;
713 interrupts = <79 IRQ_TYPE_LEVEL_HIGH>;
714 clocks = <&clks VF610_CLK_ENET1>,
715 <&clks VF610_CLK_ENET1>,
716 <&clks VF610_CLK_ENET>;
717 clock-names = "ipg", "ahb", "ptp";
721 can1: flexcan@400d4000 {
722 compatible = "fsl,vf610-flexcan";
723 reg = <0x400d4000 0x4000>;
724 interrupts = <59 IRQ_TYPE_LEVEL_HIGH>;
725 clocks = <&clks VF610_CLK_FLEXCAN1>,
726 <&clks VF610_CLK_FLEXCAN1>;
727 clock-names = "ipg", "per";
732 #address-cells = <1>;
734 compatible = "fsl,vf610-nfc";
735 reg = <0x400e0000 0x4000>;
736 interrupts = <83 IRQ_TYPE_LEVEL_HIGH>;
737 clocks = <&clks VF610_CLK_NFC>;
743 #address-cells = <1>;
745 compatible = "fsl,vf610-i2c";
746 reg = <0x400e6000 0x1000>;
747 interrupts = <73 IRQ_TYPE_LEVEL_HIGH>;
748 clocks = <&clks VF610_CLK_I2C2>;
750 dmas = <&edma0 1 36>,
752 dma-names = "rx","tx";
757 #address-cells = <1>;
759 compatible = "fsl,vf610-i2c";
760 reg = <0x400e7000 0x1000>;
761 interrupts = <74 IRQ_TYPE_LEVEL_HIGH>;
762 clocks = <&clks VF610_CLK_I2C3>;
764 dmas = <&edma0 1 38>,
766 dma-names = "rx","tx";