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>;
266 sdmmc0: sdio-host@a0000000 {
267 compatible = "atmel,sama5d2-sdhci";
268 reg = <0xa0000000 0x300>;
269 interrupts = <31 IRQ_TYPE_LEVEL_HIGH 0>;
270 clocks = <&sdmmc0_hclk>, <&sdmmc0_gclk>, <&main>;
271 clock-names = "hclock", "multclk", "baseclk";
275 sdmmc1: sdio-host@b0000000 {
276 compatible = "atmel,sama5d2-sdhci";
277 reg = <0xb0000000 0x300>;
278 interrupts = <32 IRQ_TYPE_LEVEL_HIGH 0>;
279 clocks = <&sdmmc1_hclk>, <&sdmmc1_gclk>, <&main>;
280 clock-names = "hclock", "multclk", "baseclk";
285 compatible = "simple-bus";
286 #address-cells = <1>;
290 ramc0: ramc@f000c000 {
291 compatible = "atmel,sama5d3-ddramc";
292 reg = <0xf000c000 0x200>;
293 clocks = <&ddrck>, <&mpddr_clk>;
294 clock-names = "ddrck", "mpddr";
297 dma0: dma-controller@f0010000 {
298 compatible = "atmel,sama5d4-dma";
299 reg = <0xf0010000 0x1000>;
300 interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>;
302 clocks = <&dma0_clk>;
303 clock-names = "dma_clk";
307 compatible = "atmel,sama5d2-pmc", "syscon";
308 reg = <0xf0014000 0x160>;
309 interrupts = <74 IRQ_TYPE_LEVEL_HIGH 7>;
310 interrupt-controller;
311 #address-cells = <1>;
313 #interrupt-cells = <1>;
315 main_rc_osc: main_rc_osc {
316 compatible = "atmel,at91sam9x5-clk-main-rc-osc";
318 interrupt-parent = <&pmc>;
319 interrupts = <AT91_PMC_MOSCRCS>;
320 clock-frequency = <12000000>;
321 clock-accuracy = <100000000>;
325 compatible = "atmel,at91rm9200-clk-main-osc";
327 interrupt-parent = <&pmc>;
328 interrupts = <AT91_PMC_MOSCS>;
329 clocks = <&main_xtal>;
333 compatible = "atmel,at91sam9x5-clk-main";
335 interrupt-parent = <&pmc>;
336 interrupts = <AT91_PMC_MOSCSELS>;
337 clocks = <&main_rc_osc &main_osc>;
341 compatible = "atmel,sama5d3-clk-pll";
343 interrupt-parent = <&pmc>;
344 interrupts = <AT91_PMC_LOCKA>;
347 atmel,clk-input-range = <12000000 12000000>;
348 #atmel,pll-clk-output-range-cells = <4>;
349 atmel,pll-clk-output-ranges = <600000000 1200000000 0 0>;
353 compatible = "atmel,at91sam9x5-clk-plldiv";
359 compatible = "atmel,at91sam9x5-clk-utmi";
361 interrupt-parent = <&pmc>;
362 interrupts = <AT91_PMC_LOCKU>;
367 compatible = "atmel,at91sam9x5-clk-master";
369 interrupt-parent = <&pmc>;
370 interrupts = <AT91_PMC_MCKRDY>;
371 clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>;
372 atmel,clk-output-range = <124000000 166000000>;
373 atmel,clk-divisors = <1 2 4 3>;
378 compatible = "atmel,sama5d4-clk-h32mx";
383 compatible = "atmel,at91sam9x5-clk-usb";
385 clocks = <&plladiv>, <&utmi>;
389 compatible = "atmel,at91sam9x5-clk-programmable";
390 #address-cells = <1>;
392 interrupt-parent = <&pmc>;
393 clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>, <&mck>;
398 interrupts = <AT91_PMC_PCKRDY(0)>;
404 interrupts = <AT91_PMC_PCKRDY(1)>;
410 interrupts = <AT91_PMC_PCKRDY(2)>;
415 compatible = "atmel,at91rm9200-clk-system";
416 #address-cells = <1>;
469 compatible = "atmel,at91sam9x5-clk-peripheral";
470 #address-cells = <1>;
474 macb0_clk: macb0_clk {
477 atmel,clk-output-range = <0 83000000>;
483 atmel,clk-output-range = <0 83000000>;
486 matrix1_clk: matrix1_clk {
499 atmel,clk-output-range = <0 83000000>;
505 atmel,clk-output-range = <0 83000000>;
511 atmel,clk-output-range = <0 83000000>;
517 atmel,clk-output-range = <0 83000000>;
523 atmel,clk-output-range = <0 83000000>;
529 atmel,clk-output-range = <0 83000000>;
532 uart0_clk: uart0_clk {
535 atmel,clk-output-range = <0 83000000>;
538 uart1_clk: uart1_clk {
541 atmel,clk-output-range = <0 83000000>;
544 uart2_clk: uart2_clk {
547 atmel,clk-output-range = <0 83000000>;
550 uart3_clk: uart3_clk {
553 atmel,clk-output-range = <0 83000000>;
556 uart4_clk: uart4_clk {
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>;
595 atmel,clk-output-range = <0 83000000>;
601 atmel,clk-output-range = <0 83000000>;
607 atmel,clk-output-range = <0 83000000>;
610 uhphs_clk: uhphs_clk {
613 atmel,clk-output-range = <0 83000000>;
616 udphs_clk: udphs_clk {
619 atmel,clk-output-range = <0 83000000>;
625 atmel,clk-output-range = <0 83000000>;
631 atmel,clk-output-range = <0 83000000>;
637 atmel,clk-output-range = <0 83000000>;
643 atmel,clk-output-range = <0 83000000>;
649 atmel,clk-output-range = <0 83000000>;
652 classd_clk: classd_clk {
655 atmel,clk-output-range = <0 83000000>;
660 compatible = "atmel,at91sam9x5-clk-peripheral";
661 #address-cells = <1>;
690 mpddr_clk: mpddr_clk {
695 matrix0_clk: matrix0_clk {
700 sdmmc0_hclk: sdmmc0_hclk {
705 sdmmc1_hclk: sdmmc1_hclk {
720 qspi0_clk: qspi0_clk {
725 qspi1_clk: qspi1_clk {
732 compatible = "atmel,sama5d2-clk-generated";
733 #address-cells = <1>;
735 interrupt-parent = <&pmc>;
736 clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>, <&mck>;
738 sdmmc0_gclk: sdmmc0_gclk {
743 sdmmc1_gclk: sdmmc1_gclk {
748 tcb0_gclk: tcb0_gclk {
751 atmel,clk-output-range = <0 83000000>;
754 tcb1_gclk: tcb1_gclk {
757 atmel,clk-output-range = <0 83000000>;
763 atmel,clk-output-range = <0 83000000>;
766 i2s0_gclk: i2s0_gclk {
771 i2s1_gclk: i2s1_gclk {
779 compatible = "atmel,at91sam9g46-sha";
780 reg = <0xf0028000 0x100>;
781 interrupts = <12 IRQ_TYPE_LEVEL_HIGH 0>;
783 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
784 AT91_XDMAC_DT_PERID(30))>;
787 clock-names = "sha_clk";
792 compatible = "atmel,at91sam9g46-aes";
793 reg = <0xf002c000 0x100>;
794 interrupts = <9 IRQ_TYPE_LEVEL_HIGH 0>;
796 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
797 AT91_XDMAC_DT_PERID(26))>,
799 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
800 AT91_XDMAC_DT_PERID(27))>;
801 dma-names = "tx", "rx";
803 clock-names = "aes_clk";
808 compatible = "atmel,at91rm9200-spi";
809 reg = <0xf8000000 0x100>;
810 interrupts = <33 IRQ_TYPE_LEVEL_HIGH 7>;
812 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
813 AT91_XDMAC_DT_PERID(6))>,
815 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
816 AT91_XDMAC_DT_PERID(7))>;
817 dma-names = "tx", "rx";
818 clocks = <&spi0_clk>;
819 clock-names = "spi_clk";
820 atmel,fifo-size = <16>;
821 #address-cells = <1>;
826 macb0: ethernet@f8008000 {
827 compatible = "atmel,sama5d2-gem";
828 reg = <0xf8008000 0x1000>;
829 interrupts = <5 IRQ_TYPE_LEVEL_HIGH 3 /* Queue 0 */
830 66 IRQ_TYPE_LEVEL_HIGH 3 /* Queue 1 */
831 67 IRQ_TYPE_LEVEL_HIGH 3>; /* Queue 2 */
832 #address-cells = <1>;
834 clocks = <&macb0_clk>, <&macb0_clk>;
835 clock-names = "hclk", "pclk";
839 tcb0: timer@f800c000 {
840 compatible = "atmel,at91sam9x5-tcb";
841 reg = <0xf800c000 0x100>;
842 interrupts = <35 IRQ_TYPE_LEVEL_HIGH 0>;
843 clocks = <&tcb0_clk>, <&clk32k>;
844 clock-names = "t0_clk", "slow_clk";
847 tcb1: timer@f8010000 {
848 compatible = "atmel,at91sam9x5-tcb";
849 reg = <0xf8010000 0x100>;
850 interrupts = <36 IRQ_TYPE_LEVEL_HIGH 0>;
851 clocks = <&tcb1_clk>, <&clk32k>;
852 clock-names = "t0_clk", "slow_clk";
855 uart0: serial@f801c000 {
856 compatible = "atmel,at91sam9260-usart";
857 reg = <0xf801c000 0x100>;
858 interrupts = <24 IRQ_TYPE_LEVEL_HIGH 7>;
859 clocks = <&uart0_clk>;
860 clock-names = "usart";
864 uart1: serial@f8020000 {
865 compatible = "atmel,at91sam9260-usart";
866 reg = <0xf8020000 0x100>;
867 interrupts = <25 IRQ_TYPE_LEVEL_HIGH 7>;
868 clocks = <&uart1_clk>;
869 clock-names = "usart";
873 uart2: serial@f8024000 {
874 compatible = "atmel,at91sam9260-usart";
875 reg = <0xf8024000 0x100>;
876 interrupts = <26 IRQ_TYPE_LEVEL_HIGH 7>;
877 clocks = <&uart2_clk>;
878 clock-names = "usart";
883 compatible = "atmel,sama5d2-i2c";
884 reg = <0xf8028000 0x100>;
885 interrupts = <29 IRQ_TYPE_LEVEL_HIGH 7>;
887 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
888 AT91_XDMAC_DT_PERID(0))>,
890 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
891 AT91_XDMAC_DT_PERID(1))>;
892 dma-names = "tx", "rx";
893 #address-cells = <1>;
895 clocks = <&twi0_clk>;
899 flx0: flexcom@f8034000 {
900 compatible = "atmel,sama5d2-flexcom";
901 reg = <0xf8034000 0x200>;
902 clocks = <&flx0_clk>;
903 #address-cells = <1>;
905 ranges = <0x0 0xf8034000 0x800>;
909 flx1: flexcom@f8038000 {
910 compatible = "atmel,sama5d2-flexcom";
911 reg = <0xf8038000 0x200>;
912 clocks = <&flx1_clk>;
913 #address-cells = <1>;
915 ranges = <0x0 0xf8038000 0x800>;
920 compatible = "atmel,sama5d3-rstc";
921 reg = <0xf8048000 0x10>;
925 pit: timer@f8048030 {
926 compatible = "atmel,at91sam9260-pit";
927 reg = <0xf8048030 0x10>;
928 interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>;
933 compatible = "atmel,at91sam9x5-sckc";
934 reg = <0xf8048050 0x4>;
936 slow_rc_osc: slow_rc_osc {
937 compatible = "atmel,at91sam9x5-clk-slow-rc-osc";
939 clock-frequency = <32768>;
940 clock-accuracy = <250000000>;
941 atmel,startup-time-usec = <75>;
945 compatible = "atmel,at91sam9x5-clk-slow-osc";
947 clocks = <&slow_xtal>;
948 atmel,startup-time-usec = <1200000>;
952 compatible = "atmel,at91sam9x5-clk-slow";
954 clocks = <&slow_rc_osc &slow_osc>;
959 compatible = "atmel,at91rm9200-rtc";
960 reg = <0xf80480b0 0x30>;
961 interrupts = <74 IRQ_TYPE_LEVEL_HIGH 7>;
966 compatible = "atmel,at91rm9200-spi";
967 reg = <0xfc000000 0x100>;
968 interrupts = <34 IRQ_TYPE_LEVEL_HIGH 7>;
970 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
971 AT91_XDMAC_DT_PERID(8))>,
973 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
974 AT91_XDMAC_DT_PERID(9))>;
975 dma-names = "tx", "rx";
976 clocks = <&spi1_clk>;
977 clock-names = "spi_clk";
978 atmel,fifo-size = <16>;
979 #address-cells = <1>;
984 uart3: serial@fc008000 {
985 compatible = "atmel,at91sam9260-usart";
986 reg = <0xfc008000 0x100>;
987 interrupts = <27 IRQ_TYPE_LEVEL_HIGH 7>;
988 clocks = <&uart3_clk>;
989 clock-names = "usart";
993 uart4: serial@fc00c000 {
994 compatible = "atmel,at91sam9260-usart";
995 reg = <0xfc00c000 0x100>;
996 interrupts = <28 IRQ_TYPE_LEVEL_HIGH 7>;
997 clocks = <&uart4_clk>;
998 clock-names = "usart";
1002 flx2: flexcom@fc010000 {
1003 compatible = "atmel,sama5d2-flexcom";
1004 reg = <0xfc010000 0x200>;
1005 clocks = <&flx2_clk>;
1006 #address-cells = <1>;
1008 ranges = <0x0 0xfc010000 0x800>;
1009 status = "disabled";
1012 flx3: flexcom@fc014000 {
1013 compatible = "atmel,sama5d2-flexcom";
1014 reg = <0xfc014000 0x200>;
1015 clocks = <&flx3_clk>;
1016 #address-cells = <1>;
1018 ranges = <0x0 0xfc014000 0x800>;
1019 status = "disabled";
1022 flx4: flexcom@fc018000 {
1023 compatible = "atmel,sama5d2-flexcom";
1024 reg = <0xfc018000 0x200>;
1025 clocks = <&flx4_clk>;
1026 #address-cells = <1>;
1028 ranges = <0x0 0xfc018000 0x800>;
1029 status = "disabled";
1032 aic: interrupt-controller@fc020000 {
1033 #interrupt-cells = <3>;
1034 compatible = "atmel,sama5d2-aic";
1035 interrupt-controller;
1036 reg = <0xfc020000 0x200>;
1037 atmel,external-irqs = <49>;
1040 i2c1: i2c@fc028000 {
1041 compatible = "atmel,sama5d2-i2c";
1042 reg = <0xfc028000 0x100>;
1043 interrupts = <30 IRQ_TYPE_LEVEL_HIGH 7>;
1045 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
1046 AT91_XDMAC_DT_PERID(2))>,
1048 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
1049 AT91_XDMAC_DT_PERID(3))>;
1050 dma-names = "tx", "rx";
1051 #address-cells = <1>;
1053 clocks = <&twi1_clk>;
1054 status = "disabled";
1057 pioA: pinctrl@fc038000 {
1058 compatible = "atmel,sama5d2-pinctrl";
1059 reg = <0xfc038000 0x600>;
1060 interrupts = <18 IRQ_TYPE_LEVEL_HIGH 7>,
1061 <68 IRQ_TYPE_LEVEL_HIGH 7>,
1062 <69 IRQ_TYPE_LEVEL_HIGH 7>,
1063 <70 IRQ_TYPE_LEVEL_HIGH 7>;
1064 interrupt-controller;
1065 #interrupt-cells = <2>;
1068 clocks = <&pioA_clk>;
1072 compatible = "atmel,at91sam9g46-tdes";
1073 reg = <0xfc044000 0x100>;
1074 interrupts = <11 IRQ_TYPE_LEVEL_HIGH 0>;
1076 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
1077 AT91_XDMAC_DT_PERID(28))>,
1079 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
1080 AT91_XDMAC_DT_PERID(29))>;
1081 dma-names = "tx", "rx";
1082 clocks = <&tdes_clk>;
1083 clock-names = "tdes_clk";