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 wdoga5: wdog@4003e000 {
315 compatible = "fsl,vf610-wdt", "fsl,imx21-wdt";
316 reg = <0x4003e000 0x1000>;
317 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
318 clocks = <&clks VF610_CLK_WDT>;
319 clock-names = "wdog";
323 qspi0: quadspi@40044000 {
324 #address-cells = <1>;
326 compatible = "fsl,vf610-qspi";
327 reg = <0x40044000 0x1000>, <0x20000000 0x10000000>;
328 reg-names = "QuadSPI", "QuadSPI-memory";
329 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
330 clocks = <&clks VF610_CLK_QSPI0_EN>,
331 <&clks VF610_CLK_QSPI0>;
332 clock-names = "qspi_en", "qspi";
336 iomuxc: iomuxc@40048000 {
337 compatible = "fsl,vf610-iomuxc";
338 reg = <0x40048000 0x1000>;
341 gpio0: gpio@40049000 {
342 compatible = "fsl,vf610-gpio";
343 reg = <0x40049000 0x1000 0x400ff000 0x40>;
346 interrupts = <107 IRQ_TYPE_LEVEL_HIGH>;
347 interrupt-controller;
348 #interrupt-cells = <2>;
349 gpio-ranges = <&iomuxc 0 0 32>;
352 gpio1: gpio@4004a000 {
353 compatible = "fsl,vf610-gpio";
354 reg = <0x4004a000 0x1000 0x400ff040 0x40>;
357 interrupts = <108 IRQ_TYPE_LEVEL_HIGH>;
358 interrupt-controller;
359 #interrupt-cells = <2>;
360 gpio-ranges = <&iomuxc 0 32 32>;
363 gpio2: gpio@4004b000 {
364 compatible = "fsl,vf610-gpio";
365 reg = <0x4004b000 0x1000 0x400ff080 0x40>;
368 interrupts = <109 IRQ_TYPE_LEVEL_HIGH>;
369 interrupt-controller;
370 #interrupt-cells = <2>;
371 gpio-ranges = <&iomuxc 0 64 32>;
374 gpio3: gpio@4004c000 {
375 compatible = "fsl,vf610-gpio";
376 reg = <0x4004c000 0x1000 0x400ff0c0 0x40>;
379 interrupts = <110 IRQ_TYPE_LEVEL_HIGH>;
380 interrupt-controller;
381 #interrupt-cells = <2>;
382 gpio-ranges = <&iomuxc 0 96 32>;
385 gpio4: gpio@4004d000 {
386 compatible = "fsl,vf610-gpio";
387 reg = <0x4004d000 0x1000 0x400ff100 0x40>;
390 interrupts = <111 IRQ_TYPE_LEVEL_HIGH>;
391 interrupt-controller;
392 #interrupt-cells = <2>;
393 gpio-ranges = <&iomuxc 0 128 7>;
396 anatop: anatop@40050000 {
397 compatible = "fsl,vf610-anatop", "syscon";
398 reg = <0x40050000 0x400>;
401 usbphy0: usbphy@40050800 {
402 compatible = "fsl,vf610-usbphy";
403 reg = <0x40050800 0x400>;
404 interrupts = <50 IRQ_TYPE_LEVEL_HIGH>;
405 clocks = <&clks VF610_CLK_USBPHY0>;
406 fsl,anatop = <&anatop>;
410 usbphy1: usbphy@40050c00 {
411 compatible = "fsl,vf610-usbphy";
412 reg = <0x40050c00 0x400>;
413 interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
414 clocks = <&clks VF610_CLK_USBPHY1>;
415 fsl,anatop = <&anatop>;
420 #address-cells = <1>;
422 compatible = "fsl,vf610-i2c";
423 reg = <0x40066000 0x1000>;
424 interrupts = <71 IRQ_TYPE_LEVEL_HIGH>;
425 clocks = <&clks VF610_CLK_I2C0>;
427 dmas = <&edma0 0 50>,
429 dma-names = "rx","tx";
434 #address-cells = <1>;
436 compatible = "fsl,vf610-i2c";
437 reg = <0x40067000 0x1000>;
438 interrupts = <72 IRQ_TYPE_LEVEL_HIGH>;
439 clocks = <&clks VF610_CLK_I2C1>;
441 dmas = <&edma0 0 52>,
443 dma-names = "rx","tx";
448 compatible = "fsl,vf610-ccm";
449 reg = <0x4006b000 0x1000>;
450 clocks = <&sxosc>, <&fxosc>;
451 clock-names = "sxosc", "fxosc";
455 usbdev0: usb@40034000 {
456 compatible = "fsl,vf610-usb", "fsl,imx27-usb";
457 reg = <0x40034000 0x800>;
458 interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
459 clocks = <&clks VF610_CLK_USBC0>;
460 fsl,usbphy = <&usbphy0>;
461 fsl,usbmisc = <&usbmisc0 0>;
462 dr_mode = "peripheral";
466 usbmisc0: usb@40034800 {
468 compatible = "fsl,vf610-usbmisc";
469 reg = <0x40034800 0x200>;
470 clocks = <&clks VF610_CLK_USBC0>;
475 compatible = "fsl,vf610-src", "syscon";
476 reg = <0x4006e000 0x1000>;
477 interrupts = <96 IRQ_TYPE_LEVEL_HIGH>;
481 aips1: aips-bus@40080000 {
482 compatible = "fsl,aips-bus", "simple-bus";
483 #address-cells = <1>;
485 reg = <0x40080000 0x0007f000>;
488 edma1: dma-controller@40098000 {
490 compatible = "fsl,vf610-edma";
491 reg = <0x40098000 0x2000>,
495 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
496 <11 IRQ_TYPE_LEVEL_HIGH>;
497 interrupt-names = "edma-tx", "edma-err";
498 clock-names = "dmamux0", "dmamux1";
499 clocks = <&clks VF610_CLK_DMAMUX2>,
500 <&clks VF610_CLK_DMAMUX3>;
504 snvs0: snvs@400a7000 {
505 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
506 reg = <0x400a7000 0x2000>;
508 snvsrtc: snvs-rtc-lp {
509 compatible = "fsl,sec-v4.0-mon-rtc-lp";
512 interrupts = <100 IRQ_TYPE_LEVEL_HIGH>;
513 clocks = <&clks VF610_CLK_SNVS>;
514 clock-names = "snvs-rtc";
518 uart4: serial@400a9000 {
519 compatible = "fsl,vf610-lpuart";
520 reg = <0x400a9000 0x1000>;
521 interrupts = <65 IRQ_TYPE_LEVEL_HIGH>;
522 clocks = <&clks VF610_CLK_UART4>;
527 uart5: serial@400aa000 {
528 compatible = "fsl,vf610-lpuart";
529 reg = <0x400aa000 0x1000>;
530 interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
531 clocks = <&clks VF610_CLK_UART5>;
536 dspi2: dspi2@400ac000 {
537 #address-cells = <1>;
539 compatible = "fsl,vf610-dspi";
540 reg = <0x400ac000 0x1000>;
541 interrupts = <69 IRQ_TYPE_LEVEL_HIGH>;
542 clocks = <&clks VF610_CLK_DSPI2>;
543 clock-names = "dspi";
544 spi-num-chipselects = <2>;
548 dspi3: dspi3@400ad000 {
549 #address-cells = <1>;
551 compatible = "fsl,vf610-dspi";
552 reg = <0x400ad000 0x1000>;
553 interrupts = <70 IRQ_TYPE_LEVEL_HIGH>;
554 clocks = <&clks VF610_CLK_DSPI3>;
555 clock-names = "dspi";
556 spi-num-chipselects = <2>;
561 compatible = "fsl,vf610-adc";
562 reg = <0x400bb000 0x1000>;
563 interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
564 clocks = <&clks VF610_CLK_ADC1>;
566 #io-channel-cells = <1>;
568 fsl,adck-max-frequency = <30000000>, <40000000>,
572 esdhc0: esdhc@400b1000 {
573 compatible = "fsl,imx53-esdhc";
574 reg = <0x400b1000 0x1000>;
575 interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
576 clocks = <&clks VF610_CLK_IPG_BUS>,
577 <&clks VF610_CLK_PLATFORM_BUS>,
578 <&clks VF610_CLK_ESDHC0>;
579 clock-names = "ipg", "ahb", "per";
583 esdhc1: esdhc@400b2000 {
584 compatible = "fsl,imx53-esdhc";
585 reg = <0x400b2000 0x1000>;
586 interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
587 clocks = <&clks VF610_CLK_IPG_BUS>,
588 <&clks VF610_CLK_PLATFORM_BUS>,
589 <&clks VF610_CLK_ESDHC1>;
590 clock-names = "ipg", "ahb", "per";
594 usbh1: usb@400b4000 {
595 compatible = "fsl,vf610-usb", "fsl,imx27-usb";
596 reg = <0x400b4000 0x800>;
597 interrupts = <76 IRQ_TYPE_LEVEL_HIGH>;
598 clocks = <&clks VF610_CLK_USBC1>;
599 fsl,usbphy = <&usbphy1>;
600 fsl,usbmisc = <&usbmisc1 0>;
605 usbmisc1: usb@400b4800 {
607 compatible = "fsl,vf610-usbmisc";
608 reg = <0x400b4800 0x200>;
609 clocks = <&clks VF610_CLK_USBC1>;
614 compatible = "fsl,ftm-timer";
615 reg = <0x400b8000 0x1000 0x400b9000 0x1000>;
616 interrupts = <44 IRQ_TYPE_LEVEL_HIGH>;
617 clock-names = "ftm-evt", "ftm-src",
618 "ftm-evt-counter-en", "ftm-src-counter-en";
619 clocks = <&clks VF610_CLK_FTM2>,
620 <&clks VF610_CLK_FTM3>,
621 <&clks VF610_CLK_FTM2_EXT_FIX_EN>,
622 <&clks VF610_CLK_FTM3_EXT_FIX_EN>;
626 qspi1: quadspi@400c4000 {
627 #address-cells = <1>;
629 compatible = "fsl,vf610-qspi";
630 reg = <0x400c4000 0x1000>, <0x50000000 0x10000000>;
631 reg-names = "QuadSPI", "QuadSPI-memory";
632 interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
633 clocks = <&clks VF610_CLK_QSPI1_EN>,
634 <&clks VF610_CLK_QSPI1>;
635 clock-names = "qspi_en", "qspi";
640 compatible = "fsl,vf610-dac";
641 reg = <0x400cc000 1000>;
642 interrupts = <55 IRQ_TYPE_LEVEL_HIGH>;
644 clocks = <&clks VF610_CLK_DAC0>;
649 compatible = "fsl,vf610-dac";
650 reg = <0x400cd000 1000>;
651 interrupts = <56 IRQ_TYPE_LEVEL_HIGH>;
653 clocks = <&clks VF610_CLK_DAC1>;
657 fec0: ethernet@400d0000 {
658 compatible = "fsl,mvf600-fec";
659 reg = <0x400d0000 0x1000>;
660 interrupts = <78 IRQ_TYPE_LEVEL_HIGH>;
661 clocks = <&clks VF610_CLK_ENET0>,
662 <&clks VF610_CLK_ENET0>,
663 <&clks VF610_CLK_ENET>;
664 clock-names = "ipg", "ahb", "ptp";
668 fec1: ethernet@400d1000 {
669 compatible = "fsl,mvf600-fec";
670 reg = <0x400d1000 0x1000>;
671 interrupts = <79 IRQ_TYPE_LEVEL_HIGH>;
672 clocks = <&clks VF610_CLK_ENET1>,
673 <&clks VF610_CLK_ENET1>,
674 <&clks VF610_CLK_ENET>;
675 clock-names = "ipg", "ahb", "ptp";
679 can1: flexcan@400d4000 {
680 compatible = "fsl,vf610-flexcan";
681 reg = <0x400d4000 0x4000>;
682 interrupts = <59 IRQ_TYPE_LEVEL_HIGH>;
683 clocks = <&clks VF610_CLK_FLEXCAN1>,
684 <&clks VF610_CLK_FLEXCAN1>;
685 clock-names = "ipg", "per";
690 #address-cells = <1>;
692 compatible = "fsl,vf610-nfc";
693 reg = <0x400e0000 0x4000>;
694 interrupts = <83 IRQ_TYPE_LEVEL_HIGH>;
695 clocks = <&clks VF610_CLK_NFC>;
701 #address-cells = <1>;
703 compatible = "fsl,vf610-i2c";
704 reg = <0x400e6000 0x1000>;
705 interrupts = <73 IRQ_TYPE_LEVEL_HIGH>;
706 clocks = <&clks VF610_CLK_I2C2>;
708 dmas = <&edma0 1 36>,
710 dma-names = "rx","tx";
715 #address-cells = <1>;
717 compatible = "fsl,vf610-i2c";
718 reg = <0x400e7000 0x1000>;
719 interrupts = <74 IRQ_TYPE_LEVEL_HIGH>;
720 clocks = <&clks VF610_CLK_I2C3>;
722 dmas = <&edma0 1 38>,
724 dma-names = "rx","tx";
730 compatible = "iio-hwmon";
731 io-channels = <&adc0 16>, <&adc1 16>;