2 * sama5d2.dtsi - Device Tree Include file for SAMA5D2 family SoC
4 * Copyright (C) 2015 Atmel,
5 * 2015 Ludovic Desroches <ludovic.desroches@atmel.com>
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
46 #include "skeleton.dtsi"
47 #include <dt-bindings/dma/at91.h>
48 #include <dt-bindings/interrupt-controller/irq.h>
49 #include <dt-bindings/clock/at91.h>
52 model = "Atmel SAMA5D2 family SoC";
53 compatible = "atmel,sama5d2";
54 interrupt-parent = <&aic>;
69 compatible = "arm,cortex-a5";
71 next-level-cache = <&L2>;
76 reg = <0x20000000 0x20000000>;
80 slow_xtal: slow_xtal {
81 compatible = "fixed-clock";
83 clock-frequency = <0>;
86 main_xtal: main_xtal {
87 compatible = "fixed-clock";
89 clock-frequency = <0>;
92 adc_op_clk: adc_op_clk{
93 compatible = "fixed-clock";
95 clock-frequency = <1000000>;
99 ns_sram: sram@00200000 {
100 compatible = "mmio-sram";
101 reg = <0x00200000 0x20000>;
105 compatible = "simple-bus";
106 #address-cells = <1>;
110 usb0: gadget@00300000 {
111 #address-cells = <1>;
113 compatible = "atmel,sama5d3-udc";
114 reg = <0x00300000 0x100000
116 interrupts = <42 IRQ_TYPE_LEVEL_HIGH 2>;
117 clocks = <&udphs_clk>, <&utmi>;
118 clock-names = "pclk", "hclk";
123 atmel,fifo-size = <64>;
124 atmel,nb-banks = <1>;
129 atmel,fifo-size = <1024>;
130 atmel,nb-banks = <3>;
137 atmel,fifo-size = <1024>;
138 atmel,nb-banks = <3>;
145 atmel,fifo-size = <1024>;
146 atmel,nb-banks = <2>;
153 atmel,fifo-size = <1024>;
154 atmel,nb-banks = <2>;
161 atmel,fifo-size = <1024>;
162 atmel,nb-banks = <2>;
169 atmel,fifo-size = <1024>;
170 atmel,nb-banks = <2>;
177 atmel,fifo-size = <1024>;
178 atmel,nb-banks = <2>;
185 atmel,fifo-size = <1024>;
186 atmel,nb-banks = <2>;
192 atmel,fifo-size = <1024>;
193 atmel,nb-banks = <2>;
199 atmel,fifo-size = <1024>;
200 atmel,nb-banks = <2>;
206 atmel,fifo-size = <1024>;
207 atmel,nb-banks = <2>;
213 atmel,fifo-size = <1024>;
214 atmel,nb-banks = <2>;
220 atmel,fifo-size = <1024>;
221 atmel,nb-banks = <2>;
227 atmel,fifo-size = <1024>;
228 atmel,nb-banks = <2>;
234 atmel,fifo-size = <1024>;
235 atmel,nb-banks = <2>;
240 usb1: ohci@00400000 {
241 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
242 reg = <0x00400000 0x100000>;
243 interrupts = <41 IRQ_TYPE_LEVEL_HIGH 2>;
244 clocks = <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
245 clock-names = "ohci_clk", "hclk", "uhpck";
249 usb2: ehci@00500000 {
250 compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
251 reg = <0x00500000 0x100000>;
252 interrupts = <41 IRQ_TYPE_LEVEL_HIGH 2>;
253 clocks = <&utmi>, <&uhphs_clk>;
254 clock-names = "usb_clk", "ehci_clk";
258 L2: cache-controller@00a00000 {
259 compatible = "arm,pl310-cache";
260 reg = <0x00a00000 0x1000>;
261 interrupts = <63 IRQ_TYPE_LEVEL_HIGH 4>;
267 compatible = "simple-bus";
268 #address-cells = <1>;
272 ramc0: ramc@f000c000 {
273 compatible = "atmel,sama5d3-ddramc";
274 reg = <0xf000c000 0x200>;
275 clocks = <&ddrck>, <&mpddr_clk>;
276 clock-names = "ddrck", "mpddr";
279 dma0: dma-controller@f0010000 {
280 compatible = "atmel,sama5d4-dma";
281 reg = <0xf0010000 0x1000>;
282 interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>;
284 clocks = <&dma0_clk>;
285 clock-names = "dma_clk";
289 compatible = "atmel,sama5d2-pmc";
290 reg = <0xf0014000 0x160>;
291 interrupts = <74 IRQ_TYPE_LEVEL_HIGH 7>;
292 interrupt-controller;
293 #address-cells = <1>;
295 #interrupt-cells = <1>;
297 main_rc_osc: main_rc_osc {
298 compatible = "atmel,at91sam9x5-clk-main-rc-osc";
300 interrupt-parent = <&pmc>;
301 interrupts = <AT91_PMC_MOSCRCS>;
302 clock-frequency = <12000000>;
303 clock-accuracy = <100000000>;
307 compatible = "atmel,at91rm9200-clk-main-osc";
309 interrupt-parent = <&pmc>;
310 interrupts = <AT91_PMC_MOSCS>;
311 clocks = <&main_xtal>;
315 compatible = "atmel,at91sam9x5-clk-main";
317 interrupt-parent = <&pmc>;
318 interrupts = <AT91_PMC_MOSCSELS>;
319 clocks = <&main_rc_osc &main_osc>;
323 compatible = "atmel,sama5d3-clk-pll";
325 interrupt-parent = <&pmc>;
326 interrupts = <AT91_PMC_LOCKA>;
329 atmel,clk-input-range = <12000000 12000000>;
330 #atmel,pll-clk-output-range-cells = <4>;
331 atmel,pll-clk-output-ranges = <600000000 1200000000 0 0>;
335 compatible = "atmel,at91sam9x5-clk-plldiv";
341 compatible = "atmel,at91sam9x5-clk-utmi";
343 interrupt-parent = <&pmc>;
344 interrupts = <AT91_PMC_LOCKU>;
349 compatible = "atmel,at91sam9x5-clk-master";
351 interrupt-parent = <&pmc>;
352 interrupts = <AT91_PMC_MCKRDY>;
353 clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>;
354 atmel,clk-output-range = <124000000 166000000>;
355 atmel,clk-divisors = <1 2 4 3>;
360 compatible = "atmel,sama5d4-clk-h32mx";
365 compatible = "atmel,at91sam9x5-clk-usb";
367 clocks = <&plladiv>, <&utmi>;
371 compatible = "atmel,at91sam9x5-clk-programmable";
372 #address-cells = <1>;
374 interrupt-parent = <&pmc>;
375 clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>, <&mck>;
380 interrupts = <AT91_PMC_PCKRDY(0)>;
386 interrupts = <AT91_PMC_PCKRDY(1)>;
392 interrupts = <AT91_PMC_PCKRDY(2)>;
397 compatible = "atmel,at91rm9200-clk-system";
398 #address-cells = <1>;
451 compatible = "atmel,at91sam9x5-clk-peripheral";
452 #address-cells = <1>;
456 macb0_clk: macb0_clk {
459 atmel,clk-output-range = <0 83000000>;
465 atmel,clk-output-range = <0 83000000>;
468 matrix1_clk: matrix1_clk {
481 atmel,clk-output-range = <0 83000000>;
487 atmel,clk-output-range = <0 83000000>;
493 atmel,clk-output-range = <0 83000000>;
499 atmel,clk-output-range = <0 83000000>;
505 atmel,clk-output-range = <0 83000000>;
511 atmel,clk-output-range = <0 83000000>;
514 uart0_clk: uart0_clk {
517 atmel,clk-output-range = <0 83000000>;
520 uart1_clk: uart1_clk {
523 atmel,clk-output-range = <0 83000000>;
526 uart2_clk: uart2_clk {
529 atmel,clk-output-range = <0 83000000>;
532 uart3_clk: uart3_clk {
535 atmel,clk-output-range = <0 83000000>;
538 uart4_clk: uart4_clk {
541 atmel,clk-output-range = <0 83000000>;
547 atmel,clk-output-range = <0 83000000>;
553 atmel,clk-output-range = <0 83000000>;
559 atmel,clk-output-range = <0 83000000>;
565 atmel,clk-output-range = <0 83000000>;
571 atmel,clk-output-range = <0 83000000>;
577 atmel,clk-output-range = <0 83000000>;
583 atmel,clk-output-range = <0 83000000>;
589 atmel,clk-output-range = <0 83000000>;
592 uhphs_clk: uhphs_clk {
595 atmel,clk-output-range = <0 83000000>;
598 udphs_clk: udphs_clk {
601 atmel,clk-output-range = <0 83000000>;
607 atmel,clk-output-range = <0 83000000>;
613 atmel,clk-output-range = <0 83000000>;
619 atmel,clk-output-range = <0 83000000>;
622 classd_clk: classd_clk {
625 atmel,clk-output-range = <0 83000000>;
630 compatible = "atmel,at91sam9x5-clk-peripheral";
631 #address-cells = <1>;
660 mpddr_clk: mpddr_clk {
665 matrix0_clk: matrix0_clk {
670 sdmmc0_hclk: sdmmc0_hclk {
675 sdmmc1_hclk: sdmmc1_hclk {
690 qspi0_clk: qspi0_clk {
695 qspi1_clk: qspi1_clk {
703 compatible = "atmel,at91sam9g46-sha";
704 reg = <0xf0028000 0x100>;
705 interrupts = <12 IRQ_TYPE_LEVEL_HIGH 0>;
707 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
708 AT91_XDMAC_DT_PERID(30))>;
711 clock-names = "sha_clk";
716 compatible = "atmel,at91sam9g46-aes";
717 reg = <0xf002c000 0x100>;
718 interrupts = <9 IRQ_TYPE_LEVEL_HIGH 0>;
720 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
721 AT91_XDMAC_DT_PERID(26))>,
723 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
724 AT91_XDMAC_DT_PERID(27))>;
725 dma-names = "tx", "rx";
727 clock-names = "aes_clk";
732 compatible = "atmel,at91rm9200-spi";
733 reg = <0xf8000000 0x100>;
734 interrupts = <33 IRQ_TYPE_LEVEL_HIGH 7>;
736 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
737 AT91_XDMAC_DT_PERID(6))>,
739 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
740 AT91_XDMAC_DT_PERID(7))>;
741 dma-names = "tx", "rx";
742 clocks = <&spi0_clk>;
743 clock-names = "spi_clk";
744 atmel,fifo-size = <16>;
745 #address-cells = <1>;
750 macb0: ethernet@f8008000 {
751 compatible = "atmel,sama5d2-gem";
752 reg = <0xf8008000 0x1000>;
753 interrupts = <5 IRQ_TYPE_LEVEL_HIGH 3 /* Queue 0 */
754 66 IRQ_TYPE_LEVEL_HIGH 3 /* Queue 1 */
755 67 IRQ_TYPE_LEVEL_HIGH 3>; /* Queue 2 */
756 #address-cells = <1>;
758 clocks = <&macb0_clk>, <&macb0_clk>;
759 clock-names = "hclk", "pclk";
763 tcb0: timer@f800c000 {
764 compatible = "atmel,at91sam9x5-tcb";
765 reg = <0xf800c000 0x100>;
766 interrupts = <35 IRQ_TYPE_LEVEL_HIGH 0>;
767 clocks = <&tcb0_clk>, <&clk32k>;
768 clock-names = "t0_clk", "slow_clk";
771 tcb1: timer@f8010000 {
772 compatible = "atmel,at91sam9x5-tcb";
773 reg = <0xf8010000 0x100>;
774 interrupts = <36 IRQ_TYPE_LEVEL_HIGH 0>;
775 clocks = <&tcb1_clk>, <&clk32k>;
776 clock-names = "t0_clk", "slow_clk";
779 uart0: serial@f801c000 {
780 compatible = "atmel,at91sam9260-usart";
781 reg = <0xf801c000 0x100>;
782 interrupts = <24 IRQ_TYPE_LEVEL_HIGH 7>;
783 clocks = <&uart0_clk>;
784 clock-names = "usart";
788 uart1: serial@f8020000 {
789 compatible = "atmel,at91sam9260-usart";
790 reg = <0xf8020000 0x100>;
791 interrupts = <25 IRQ_TYPE_LEVEL_HIGH 7>;
792 clocks = <&uart1_clk>;
793 clock-names = "usart";
797 uart2: serial@f8024000 {
798 compatible = "atmel,at91sam9260-usart";
799 reg = <0xf8024000 0x100>;
800 interrupts = <26 IRQ_TYPE_LEVEL_HIGH 7>;
801 clocks = <&uart2_clk>;
802 clock-names = "usart";
807 compatible = "atmel,sama5d2-i2c";
808 reg = <0xf8028000 0x100>;
809 interrupts = <29 IRQ_TYPE_LEVEL_HIGH 7>;
811 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
812 AT91_XDMAC_DT_PERID(0))>,
814 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
815 AT91_XDMAC_DT_PERID(1))>;
816 dma-names = "tx", "rx";
817 #address-cells = <1>;
819 clocks = <&twi0_clk>;
823 pit: timer@f8048030 {
824 compatible = "atmel,at91sam9260-pit";
825 reg = <0xf8048030 0x10>;
826 interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>;
831 compatible = "atmel,at91sam9x5-sckc";
832 reg = <0xf8048050 0x4>;
834 slow_rc_osc: slow_rc_osc {
835 compatible = "atmel,at91sam9x5-clk-slow-rc-osc";
837 clock-frequency = <32768>;
838 clock-accuracy = <250000000>;
839 atmel,startup-time-usec = <75>;
843 compatible = "atmel,at91sam9x5-clk-slow-osc";
845 clocks = <&slow_xtal>;
846 atmel,startup-time-usec = <1200000>;
850 compatible = "atmel,at91sam9x5-clk-slow";
852 clocks = <&slow_rc_osc &slow_osc>;
857 compatible = "atmel,at91rm9200-rtc";
858 reg = <0xf80480b0 0x30>;
859 interrupts = <74 IRQ_TYPE_LEVEL_HIGH 7>;
864 compatible = "atmel,at91rm9200-spi";
865 reg = <0xfc000000 0x100>;
866 interrupts = <34 IRQ_TYPE_LEVEL_HIGH 7>;
868 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
869 AT91_XDMAC_DT_PERID(8))>,
871 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
872 AT91_XDMAC_DT_PERID(9))>;
873 dma-names = "tx", "rx";
874 clocks = <&spi1_clk>;
875 clock-names = "spi_clk";
876 atmel,fifo-size = <16>;
877 #address-cells = <1>;
882 uart3: serial@fc008000 {
883 compatible = "atmel,at91sam9260-usart";
884 reg = <0xfc008000 0x100>;
885 interrupts = <27 IRQ_TYPE_LEVEL_HIGH 7>;
886 clocks = <&uart3_clk>;
887 clock-names = "usart";
891 uart4: serial@fc00c000 {
892 compatible = "atmel,at91sam9260-usart";
893 reg = <0xfc00c000 0x100>;
894 interrupts = <28 IRQ_TYPE_LEVEL_HIGH 7>;
895 clocks = <&uart4_clk>;
896 clock-names = "usart";
900 aic: interrupt-controller@fc020000 {
901 #interrupt-cells = <3>;
902 compatible = "atmel,sama5d2-aic";
903 interrupt-controller;
904 reg = <0xfc020000 0x200>;
905 atmel,external-irqs = <49>;
909 compatible = "atmel,sama5d2-i2c";
910 reg = <0xfc028000 0x100>;
911 interrupts = <30 IRQ_TYPE_LEVEL_HIGH 7>;
913 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
914 AT91_XDMAC_DT_PERID(2))>,
916 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
917 AT91_XDMAC_DT_PERID(3))>;
918 dma-names = "tx", "rx";
919 #address-cells = <1>;
921 clocks = <&twi1_clk>;