xref: /openbmc/u-boot/arch/arm/dts/sama5d3.dtsi (revision d9b23e26)
1/*
2 * sama5d3.dtsi - Device Tree Include file for SAMA5D3 family SoC
3 *                applies to SAMA5D31, SAMA5D33, SAMA5D34, SAMA5D35, SAMA5D36 SoC
4 *
5 *  Copyright (C) 2013 Atmel,
6 *                2013 Ludovic Desroches <ludovic.desroches@atmel.com>
7 *
8 * Licensed under GPLv2 or later.
9 */
10
11#include "skeleton.dtsi"
12#include <dt-bindings/dma/at91.h>
13#include <dt-bindings/pinctrl/at91.h>
14#include <dt-bindings/interrupt-controller/irq.h>
15#include <dt-bindings/gpio/gpio.h>
16#include <dt-bindings/clock/at91.h>
17
18/ {
19	model = "Atmel SAMA5D3 family SoC";
20	compatible = "atmel,sama5d3", "atmel,sama5";
21	interrupt-parent = <&aic>;
22
23	aliases {
24		serial0 = &dbgu;
25		serial1 = &usart0;
26		serial2 = &usart1;
27		serial3 = &usart2;
28		serial4 = &usart3;
29		serial5 = &uart0;
30		gpio0 = &pioA;
31		gpio1 = &pioB;
32		gpio2 = &pioC;
33		gpio3 = &pioD;
34		gpio4 = &pioE;
35		tcb0 = &tcb0;
36		i2c0 = &i2c0;
37		i2c1 = &i2c1;
38		i2c2 = &i2c2;
39		ssc0 = &ssc0;
40		ssc1 = &ssc1;
41		pwm0 = &pwm0;
42	};
43	cpus {
44		#address-cells = <1>;
45		#size-cells = <0>;
46		cpu@0 {
47			device_type = "cpu";
48			compatible = "arm,cortex-a5";
49			reg = <0x0>;
50		};
51	};
52
53	pmu {
54		compatible = "arm,cortex-a5-pmu";
55		interrupts = <46 IRQ_TYPE_LEVEL_HIGH 0>;
56	};
57
58	memory {
59		reg = <0x20000000 0x8000000>;
60	};
61
62	clocks {
63		slow_xtal: slow_xtal {
64			compatible = "fixed-clock";
65			#clock-cells = <0>;
66			clock-frequency = <0>;
67		};
68
69		main_xtal: main_xtal {
70			compatible = "fixed-clock";
71			#clock-cells = <0>;
72			clock-frequency = <0>;
73		};
74
75		adc_op_clk: adc_op_clk{
76			compatible = "fixed-clock";
77			#clock-cells = <0>;
78			clock-frequency = <1000000>;
79		};
80	};
81
82	sram: sram@00300000 {
83		compatible = "mmio-sram";
84		reg = <0x00300000 0x20000>;
85	};
86
87	ahb {
88		compatible = "simple-bus";
89		#address-cells = <1>;
90		#size-cells = <1>;
91		ranges;
92		u-boot,dm-pre-reloc;
93
94		apb {
95			compatible = "simple-bus";
96			#address-cells = <1>;
97			#size-cells = <1>;
98			ranges;
99			u-boot,dm-pre-reloc;
100
101			mmc0: mmc@f0000000 {
102				compatible = "atmel,hsmci";
103				reg = <0xf0000000 0x600>;
104				interrupts = <21 IRQ_TYPE_LEVEL_HIGH 0>;
105				dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(0)>;
106				dma-names = "rxtx";
107				pinctrl-names = "default";
108				pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7>;
109				status = "disabled";
110				#address-cells = <1>;
111				#size-cells = <0>;
112				clocks = <&mci0_clk>;
113				clock-names = "mci_clk";
114			};
115
116			spi0: spi@f0004000 {
117				#address-cells = <1>;
118				#size-cells = <0>;
119				compatible = "atmel,at91rm9200-spi";
120				reg = <0xf0004000 0x100>;
121				interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3>;
122				dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(1)>,
123				       <&dma0 2 AT91_DMA_CFG_PER_ID(2)>;
124				dma-names = "tx", "rx";
125				pinctrl-names = "default";
126				pinctrl-0 = <&pinctrl_spi0>;
127				clocks = <&spi0_clk>;
128				clock-names = "spi_clk";
129				status = "disabled";
130			};
131
132			ssc0: ssc@f0008000 {
133				compatible = "atmel,at91sam9g45-ssc";
134				reg = <0xf0008000 0x4000>;
135				interrupts = <38 IRQ_TYPE_LEVEL_HIGH 4>;
136				dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(13)>,
137				       <&dma0 2 AT91_DMA_CFG_PER_ID(14)>;
138				dma-names = "tx", "rx";
139				pinctrl-names = "default";
140				pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
141				clocks = <&ssc0_clk>;
142				clock-names = "pclk";
143				status = "disabled";
144			};
145
146			tcb0: timer@f0010000 {
147				compatible = "atmel,at91sam9x5-tcb";
148				reg = <0xf0010000 0x100>;
149				interrupts = <26 IRQ_TYPE_LEVEL_HIGH 0>;
150				clocks = <&tcb0_clk>, <&clk32k>;
151				clock-names = "t0_clk", "slow_clk";
152			};
153
154			i2c0: i2c@f0014000 {
155				compatible = "atmel,at91sam9x5-i2c";
156				reg = <0xf0014000 0x4000>;
157				interrupts = <18 IRQ_TYPE_LEVEL_HIGH 6>;
158				dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(7)>,
159				       <&dma0 2 AT91_DMA_CFG_PER_ID(8)>;
160				dma-names = "tx", "rx";
161				pinctrl-names = "default";
162				pinctrl-0 = <&pinctrl_i2c0>;
163				#address-cells = <1>;
164				#size-cells = <0>;
165				clocks = <&twi0_clk>;
166				status = "disabled";
167			};
168
169			i2c1: i2c@f0018000 {
170				compatible = "atmel,at91sam9x5-i2c";
171				reg = <0xf0018000 0x4000>;
172				interrupts = <19 IRQ_TYPE_LEVEL_HIGH 6>;
173				dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(9)>,
174				       <&dma0 2 AT91_DMA_CFG_PER_ID(10)>;
175				dma-names = "tx", "rx";
176				pinctrl-names = "default";
177				pinctrl-0 = <&pinctrl_i2c1>;
178				#address-cells = <1>;
179				#size-cells = <0>;
180				clocks = <&twi1_clk>;
181				status = "disabled";
182			};
183
184			usart0: serial@f001c000 {
185				compatible = "atmel,at91sam9260-usart";
186				reg = <0xf001c000 0x100>;
187				interrupts = <12 IRQ_TYPE_LEVEL_HIGH 5>;
188				dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(3)>,
189				       <&dma0 2 (AT91_DMA_CFG_PER_ID(4) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
190				dma-names = "tx", "rx";
191				pinctrl-names = "default";
192				pinctrl-0 = <&pinctrl_usart0>;
193				clocks = <&usart0_clk>;
194				clock-names = "usart";
195				status = "disabled";
196			};
197
198			usart1: serial@f0020000 {
199				compatible = "atmel,at91sam9260-usart";
200				reg = <0xf0020000 0x100>;
201				interrupts = <13 IRQ_TYPE_LEVEL_HIGH 5>;
202				dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(5)>,
203				       <&dma0 2 (AT91_DMA_CFG_PER_ID(6) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
204				dma-names = "tx", "rx";
205				pinctrl-names = "default";
206				pinctrl-0 = <&pinctrl_usart1>;
207				clocks = <&usart1_clk>;
208				clock-names = "usart";
209				status = "disabled";
210			};
211
212			uart0: serial@f0024000 {
213				compatible = "atmel,at91sam9260-usart";
214				reg = <0xf0024000 0x100>;
215				interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>;
216				pinctrl-names = "default";
217				pinctrl-0 = <&pinctrl_uart0>;
218				clocks = <&uart0_clk>;
219				clock-names = "usart";
220				status = "disabled";
221			};
222
223			pwm0: pwm@f002c000 {
224				compatible = "atmel,sama5d3-pwm";
225				reg = <0xf002c000 0x300>;
226				interrupts = <28 IRQ_TYPE_LEVEL_HIGH 4>;
227				#pwm-cells = <3>;
228				clocks = <&pwm_clk>;
229				status = "disabled";
230			};
231
232			isi: isi@f0034000 {
233				compatible = "atmel,at91sam9g45-isi";
234				reg = <0xf0034000 0x4000>;
235				interrupts = <37 IRQ_TYPE_LEVEL_HIGH 5>;
236				pinctrl-names = "default";
237				pinctrl-0 = <&pinctrl_isi_data_0_7>;
238				clocks = <&isi_clk>;
239				clock-names = "isi_clk";
240				status = "disabled";
241				port {
242					#address-cells = <1>;
243					#size-cells = <0>;
244				};
245			};
246
247			sfr: sfr@f0038000 {
248				compatible = "atmel,sama5d3-sfr", "syscon";
249				reg = <0xf0038000 0x60>;
250			};
251
252			mmc1: mmc@f8000000 {
253				compatible = "atmel,hsmci";
254				reg = <0xf8000000 0x600>;
255				interrupts = <22 IRQ_TYPE_LEVEL_HIGH 0>;
256				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(0)>;
257				dma-names = "rxtx";
258				pinctrl-names = "default";
259				pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>;
260				status = "disabled";
261				#address-cells = <1>;
262				#size-cells = <0>;
263				clocks = <&mci1_clk>;
264				clock-names = "mci_clk";
265			};
266
267			spi1: spi@f8008000 {
268				#address-cells = <1>;
269				#size-cells = <0>;
270				compatible = "atmel,at91rm9200-spi";
271				reg = <0xf8008000 0x100>;
272				interrupts = <25 IRQ_TYPE_LEVEL_HIGH 3>;
273				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(15)>,
274				       <&dma1 2 AT91_DMA_CFG_PER_ID(16)>;
275				dma-names = "tx", "rx";
276				pinctrl-names = "default";
277				pinctrl-0 = <&pinctrl_spi1>;
278				clocks = <&spi1_clk>;
279				clock-names = "spi_clk";
280				status = "disabled";
281			};
282
283			ssc1: ssc@f800c000 {
284				compatible = "atmel,at91sam9g45-ssc";
285				reg = <0xf800c000 0x4000>;
286				interrupts = <39 IRQ_TYPE_LEVEL_HIGH 4>;
287				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(3)>,
288				       <&dma1 2 AT91_DMA_CFG_PER_ID(4)>;
289				dma-names = "tx", "rx";
290				pinctrl-names = "default";
291				pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>;
292				clocks = <&ssc1_clk>;
293				clock-names = "pclk";
294				status = "disabled";
295			};
296
297			adc0: adc@f8018000 {
298				#address-cells = <1>;
299				#size-cells = <0>;
300				compatible = "atmel,at91sam9x5-adc";
301				reg = <0xf8018000 0x100>;
302				interrupts = <29 IRQ_TYPE_LEVEL_HIGH 5>;
303				pinctrl-names = "default";
304				pinctrl-0 = <
305					&pinctrl_adc0_adtrg
306					&pinctrl_adc0_ad0
307					&pinctrl_adc0_ad1
308					&pinctrl_adc0_ad2
309					&pinctrl_adc0_ad3
310					&pinctrl_adc0_ad4
311					&pinctrl_adc0_ad5
312					&pinctrl_adc0_ad6
313					&pinctrl_adc0_ad7
314					&pinctrl_adc0_ad8
315					&pinctrl_adc0_ad9
316					&pinctrl_adc0_ad10
317					&pinctrl_adc0_ad11
318					>;
319				clocks = <&adc_clk>,
320					 <&adc_op_clk>;
321				clock-names = "adc_clk", "adc_op_clk";
322				atmel,adc-channels-used = <0xfff>;
323				atmel,adc-startup-time = <40>;
324				atmel,adc-use-external-triggers;
325				atmel,adc-vref = <3000>;
326				atmel,adc-res = <10 12>;
327				atmel,adc-sample-hold-time = <11>;
328				atmel,adc-res-names = "lowres", "highres";
329				status = "disabled";
330
331				trigger@0 {
332					reg = <0>;
333					trigger-name = "external-rising";
334					trigger-value = <0x1>;
335					trigger-external;
336				};
337				trigger@1 {
338					reg = <1>;
339					trigger-name = "external-falling";
340					trigger-value = <0x2>;
341					trigger-external;
342				};
343				trigger@2 {
344					reg = <2>;
345					trigger-name = "external-any";
346					trigger-value = <0x3>;
347					trigger-external;
348				};
349				trigger@3 {
350					reg = <3>;
351					trigger-name = "continuous";
352					trigger-value = <0x6>;
353				};
354			};
355
356			i2c2: i2c@f801c000 {
357				compatible = "atmel,at91sam9x5-i2c";
358				reg = <0xf801c000 0x4000>;
359				interrupts = <20 IRQ_TYPE_LEVEL_HIGH 6>;
360				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(11)>,
361				       <&dma1 2 AT91_DMA_CFG_PER_ID(12)>;
362				dma-names = "tx", "rx";
363				pinctrl-names = "default";
364				pinctrl-0 = <&pinctrl_i2c2>;
365				#address-cells = <1>;
366				#size-cells = <0>;
367				clocks = <&twi2_clk>;
368				status = "disabled";
369			};
370
371			usart2: serial@f8020000 {
372				compatible = "atmel,at91sam9260-usart";
373				reg = <0xf8020000 0x100>;
374				interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>;
375				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(7)>,
376				       <&dma1 2 (AT91_DMA_CFG_PER_ID(8) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
377				dma-names = "tx", "rx";
378				pinctrl-names = "default";
379				pinctrl-0 = <&pinctrl_usart2>;
380				clocks = <&usart2_clk>;
381				clock-names = "usart";
382				status = "disabled";
383			};
384
385			usart3: serial@f8024000 {
386				compatible = "atmel,at91sam9260-usart";
387				reg = <0xf8024000 0x100>;
388				interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>;
389				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(9)>,
390				       <&dma1 2 (AT91_DMA_CFG_PER_ID(10) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
391				dma-names = "tx", "rx";
392				pinctrl-names = "default";
393				pinctrl-0 = <&pinctrl_usart3>;
394				clocks = <&usart3_clk>;
395				clock-names = "usart";
396				status = "disabled";
397			};
398
399			sha@f8034000 {
400				compatible = "atmel,at91sam9g46-sha";
401				reg = <0xf8034000 0x100>;
402				interrupts = <42 IRQ_TYPE_LEVEL_HIGH 0>;
403				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(17)>;
404				dma-names = "tx";
405				clocks = <&sha_clk>;
406				clock-names = "sha_clk";
407			};
408
409			aes@f8038000 {
410				compatible = "atmel,at91sam9g46-aes";
411				reg = <0xf8038000 0x100>;
412				interrupts = <43 IRQ_TYPE_LEVEL_HIGH 0>;
413				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(18)>,
414				       <&dma1 2 AT91_DMA_CFG_PER_ID(19)>;
415				dma-names = "tx", "rx";
416				clocks = <&aes_clk>;
417				clock-names = "aes_clk";
418			};
419
420			tdes@f803c000 {
421				compatible = "atmel,at91sam9g46-tdes";
422				reg = <0xf803c000 0x100>;
423				interrupts = <44 IRQ_TYPE_LEVEL_HIGH 0>;
424				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(20)>,
425				       <&dma1 2 AT91_DMA_CFG_PER_ID(21)>;
426				dma-names = "tx", "rx";
427				clocks = <&tdes_clk>;
428				clock-names = "tdes_clk";
429			};
430
431			trng@f8040000 {
432				compatible = "atmel,at91sam9g45-trng";
433				reg = <0xf8040000 0x100>;
434				interrupts = <45 IRQ_TYPE_LEVEL_HIGH 0>;
435				clocks = <&trng_clk>;
436			};
437
438			dma0: dma-controller@ffffe600 {
439				compatible = "atmel,at91sam9g45-dma";
440				reg = <0xffffe600 0x200>;
441				interrupts = <30 IRQ_TYPE_LEVEL_HIGH 0>;
442				#dma-cells = <2>;
443				clocks = <&dma0_clk>;
444				clock-names = "dma_clk";
445			};
446
447			dma1: dma-controller@ffffe800 {
448				compatible = "atmel,at91sam9g45-dma";
449				reg = <0xffffe800 0x200>;
450				interrupts = <31 IRQ_TYPE_LEVEL_HIGH 0>;
451				#dma-cells = <2>;
452				clocks = <&dma1_clk>;
453				clock-names = "dma_clk";
454			};
455
456			ramc0: ramc@ffffea00 {
457				compatible = "atmel,sama5d3-ddramc";
458				reg = <0xffffea00 0x200>;
459				clocks = <&ddrck>, <&mpddr_clk>;
460				clock-names = "ddrck", "mpddr";
461			};
462
463			dbgu: serial@ffffee00 {
464				compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
465				reg = <0xffffee00 0x200>;
466				interrupts = <2 IRQ_TYPE_LEVEL_HIGH 7>;
467				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(13)>,
468				       <&dma1 2 (AT91_DMA_CFG_PER_ID(14) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
469				dma-names = "tx", "rx";
470				pinctrl-names = "default";
471				pinctrl-0 = <&pinctrl_dbgu>;
472				clocks = <&dbgu_clk>;
473				clock-names = "usart";
474				status = "disabled";
475			};
476
477			aic: interrupt-controller@fffff000 {
478				#interrupt-cells = <3>;
479				compatible = "atmel,sama5d3-aic";
480				interrupt-controller;
481				reg = <0xfffff000 0x200>;
482				atmel,external-irqs = <47>;
483			};
484
485			pinctrl@fffff200 {
486				u-boot,dm-pre-reloc;
487				#address-cells = <1>;
488				#size-cells = <1>;
489				compatible = "atmel,sama5d3-pinctrl", "atmel,at91sam9x5-pinctrl", "simple-bus";
490				ranges = <0xfffff200 0xfffff200 0xa00>;
491				atmel,mux-mask = <
492					/*   A          B          C  */
493					0xffffffff 0xc0fc0000 0xc0ff0000	/* pioA */
494					0xffffffff 0x0ff8ffff 0x00000000	/* pioB */
495					0xffffffff 0xbc00f1ff 0x7c00fc00	/* pioC */
496					0xffffffff 0xc001c0e0 0x0001c1e0	/* pioD */
497					0xffffffff 0xbf9f8000 0x18000000	/* pioE */
498					>;
499				reg = <0xfffff200 0x100		/* pioA */
500				       0xfffff400 0x100		/* pioB */
501				       0xfffff600 0x100		/* pioC */
502				       0xfffff800 0x100		/* pioD */
503				       0xfffffa00 0x100		/* pioE */
504				       >;
505
506				/* shared pinctrl settings */
507				adc0 {
508					pinctrl_adc0_adtrg: adc0_adtrg {
509						atmel,pins =
510							<AT91_PIOD 19 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD19 periph A ADTRG */
511					};
512					pinctrl_adc0_ad0: adc0_ad0 {
513						atmel,pins =
514							<AT91_PIOD 20 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD20 periph A AD0 */
515					};
516					pinctrl_adc0_ad1: adc0_ad1 {
517						atmel,pins =
518							<AT91_PIOD 21 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD21 periph A AD1 */
519					};
520					pinctrl_adc0_ad2: adc0_ad2 {
521						atmel,pins =
522							<AT91_PIOD 22 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD22 periph A AD2 */
523					};
524					pinctrl_adc0_ad3: adc0_ad3 {
525						atmel,pins =
526							<AT91_PIOD 23 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD23 periph A AD3 */
527					};
528					pinctrl_adc0_ad4: adc0_ad4 {
529						atmel,pins =
530							<AT91_PIOD 24 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD24 periph A AD4 */
531					};
532					pinctrl_adc0_ad5: adc0_ad5 {
533						atmel,pins =
534							<AT91_PIOD 25 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD25 periph A AD5 */
535					};
536					pinctrl_adc0_ad6: adc0_ad6 {
537						atmel,pins =
538							<AT91_PIOD 26 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD26 periph A AD6 */
539					};
540					pinctrl_adc0_ad7: adc0_ad7 {
541						atmel,pins =
542							<AT91_PIOD 27 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD27 periph A AD7 */
543					};
544					pinctrl_adc0_ad8: adc0_ad8 {
545						atmel,pins =
546							<AT91_PIOD 28 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD28 periph A AD8 */
547					};
548					pinctrl_adc0_ad9: adc0_ad9 {
549						atmel,pins =
550							<AT91_PIOD 29 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD29 periph A AD9 */
551					};
552					pinctrl_adc0_ad10: adc0_ad10 {
553						atmel,pins =
554							<AT91_PIOD 30 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD30 periph A AD10, conflicts with PCK0 */
555					};
556					pinctrl_adc0_ad11: adc0_ad11 {
557						atmel,pins =
558							<AT91_PIOD 31 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD31 periph A AD11, conflicts with PCK1 */
559					};
560				};
561
562				dbgu {
563					u-boot,dm-pre-reloc;
564					pinctrl_dbgu: dbgu-0 {
565						u-boot,dm-pre-reloc;
566						atmel,pins =
567							<AT91_PIOB 30 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB30 periph A */
568							 AT91_PIOB 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PB31 periph A with pullup */
569					};
570				};
571
572				i2c0 {
573					pinctrl_i2c0: i2c0-0 {
574						atmel,pins =
575							<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA30 periph A TWD0 pin, conflicts with URXD1, ISI_VSYNC */
576							 AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA31 periph A TWCK0 pin, conflicts with UTXD1, ISI_HSYNC */
577					};
578				};
579
580				i2c1 {
581					pinctrl_i2c1: i2c1-0 {
582						atmel,pins =
583							<AT91_PIOC 26 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC26 periph B TWD1 pin, conflicts with SPI1_NPCS1, ISI_D11 */
584							 AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PC27 periph B TWCK1 pin, conflicts with SPI1_NPCS2, ISI_D10 */
585					};
586				};
587
588				i2c2 {
589					pinctrl_i2c2: i2c2-0 {
590						atmel,pins =
591							<AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_NONE	/* TWD2 pin, conflicts with LCDDAT18, ISI_D2 */
592							 AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* TWCK2 pin, conflicts with LCDDAT19, ISI_D3 */
593					};
594				};
595
596				isi {
597					pinctrl_isi_data_0_7: isi-0-data-0-7 {
598						atmel,pins =
599							<AT91_PIOA 16 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PA16 periph C ISI_D0, conflicts with LCDDAT16 */
600							 AT91_PIOA 17 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PA17 periph C ISI_D1, conflicts with LCDDAT17 */
601							 AT91_PIOA 18 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PA18 periph C ISI_D2, conflicts with LCDDAT18, TWD2 */
602							 AT91_PIOA 19 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PA19 periph C ISI_D3, conflicts with LCDDAT19, TWCK2 */
603							 AT91_PIOA 20 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PA20 periph C ISI_D4, conflicts with LCDDAT20, PWMH0 */
604							 AT91_PIOA 21 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PA21 periph C ISI_D5, conflicts with LCDDAT21, PWML0 */
605							 AT91_PIOA 22 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PA22 periph C ISI_D6, conflicts with LCDDAT22, PWMH1 */
606							 AT91_PIOA 23 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PA23 periph C ISI_D7, conflicts with LCDDAT23, PWML1 */
607							 AT91_PIOC 30 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PC30 periph C ISI_PCK, conflicts with UTXD0 */
608							 AT91_PIOA 31 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PA31 periph C ISI_HSYNC, conflicts with TWCK0, UTXD1 */
609							 AT91_PIOA 30 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* PA30 periph C ISI_VSYNC, conflicts with TWD0, URXD1 */
610					};
611
612					pinctrl_isi_data_8_9: isi-0-data-8-9 {
613						atmel,pins =
614							<AT91_PIOC 29 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PC29 periph C ISI_PD8, conflicts with URXD0, PWMFI2 */
615							 AT91_PIOC 28 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* PC28 periph C ISI_PD9, conflicts with SPI1_NPCS3, PWMFI0 */
616					};
617
618					pinctrl_isi_data_10_11: isi-0-data-10-11 {
619						atmel,pins =
620							<AT91_PIOC 27 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PC27 periph C ISI_PD10, conflicts with SPI1_NPCS2, TWCK1 */
621							 AT91_PIOC 26 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* PC26 periph C ISI_PD11, conflicts with SPI1_NPCS1, TWD1 */
622					};
623				};
624
625				mmc0 {
626					u-boot,dm-pre-reloc;
627					pinctrl_mmc0_clk_cmd_dat0: mmc0_clk_cmd_dat0 {
628						u-boot,dm-pre-reloc;
629						atmel,pins =
630							<AT91_PIOD 9 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PD9 periph A MCI0_CK */
631							 AT91_PIOD 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD0 periph A MCI0_CDA with pullup */
632							 AT91_PIOD 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PD1 periph A MCI0_DA0 with pullup */
633					};
634					pinctrl_mmc0_dat1_3: mmc0_dat1_3 {
635						u-boot,dm-pre-reloc;
636						atmel,pins =
637							<AT91_PIOD 2 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD2 periph A MCI0_DA1 with pullup */
638							 AT91_PIOD 3 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD3 periph A MCI0_DA2 with pullup */
639							 AT91_PIOD 4 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PD4 periph A MCI0_DA3 with pullup */
640					};
641					pinctrl_mmc0_dat4_7: mmc0_dat4_7 {
642						u-boot,dm-pre-reloc;
643						atmel,pins =
644							<AT91_PIOD 5 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD5 periph A MCI0_DA4 with pullup, conflicts with TIOA0, PWMH2 */
645							 AT91_PIOD 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD6 periph A MCI0_DA5 with pullup, conflicts with TIOB0, PWML2 */
646							 AT91_PIOD 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PD7 periph A MCI0_DA6 with pullup, conlicts with TCLK0, PWMH3 */
647							 AT91_PIOD 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PD8 periph A MCI0_DA7 with pullup, conflicts with PWML3 */
648					};
649				};
650
651				mmc1 {
652					u-boot,dm-pre-reloc;
653					pinctrl_mmc1_clk_cmd_dat0: mmc1_clk_cmd_dat0 {
654						u-boot,dm-pre-reloc;
655						atmel,pins =
656							<AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB24 periph A MCI1_CK, conflicts with GRX5 */
657							 AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PB19 periph A MCI1_CDA with pullup, conflicts with GTX4 */
658							 AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PB20 periph A MCI1_DA0 with pullup, conflicts with GTX5 */
659					};
660					pinctrl_mmc1_dat1_3: mmc1_dat1_3 {
661						u-boot,dm-pre-reloc;
662						atmel,pins =
663							<AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PB21 periph A MCI1_DA1 with pullup, conflicts with GTX6 */
664							 AT91_PIOB 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PB22 periph A MCI1_DA2 with pullup, conflicts with GTX7 */
665							 AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PB23 periph A MCI1_DA3 with pullup, conflicts with GRX4 */
666					};
667				};
668
669				nand0 {
670					pinctrl_nand0_ale_cle: nand0_ale_cle-0 {
671						atmel,pins =
672							<AT91_PIOE 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PE21 periph A with pullup */
673							 AT91_PIOE 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PE22 periph A with pullup */
674					};
675				};
676
677				pwm0 {
678					pinctrl_pwm0_pwmh0_0: pwm0_pwmh0-0 {
679						atmel,pins =
680							<AT91_PIOA 20 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with ISI_D4 and LCDDAT20 */
681					};
682					pinctrl_pwm0_pwmh0_1: pwm0_pwmh0-1 {
683						atmel,pins =
684							<AT91_PIOB 0 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with GTX0 */
685					};
686					pinctrl_pwm0_pwml0_0: pwm0_pwml0-0 {
687						atmel,pins =
688							<AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with ISI_D5 and LCDDAT21 */
689					};
690					pinctrl_pwm0_pwml0_1: pwm0_pwml0-1 {
691						atmel,pins =
692							<AT91_PIOB 1 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with GTX1 */
693					};
694
695					pinctrl_pwm0_pwmh1_0: pwm0_pwmh1-0 {
696						atmel,pins =
697							<AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with ISI_D6 and LCDDAT22 */
698					};
699					pinctrl_pwm0_pwmh1_1: pwm0_pwmh1-1 {
700						atmel,pins =
701							<AT91_PIOB 4 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with GRX0 */
702					};
703					pinctrl_pwm0_pwmh1_2: pwm0_pwmh1-2 {
704						atmel,pins =
705							<AT91_PIOB 27 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* conflicts with G125CKO and RTS1 */
706					};
707					pinctrl_pwm0_pwml1_0: pwm0_pwml1-0 {
708						atmel,pins =
709							<AT91_PIOA 23 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with ISI_D7 and LCDDAT23 */
710					};
711					pinctrl_pwm0_pwml1_1: pwm0_pwml1-1 {
712						atmel,pins =
713							<AT91_PIOB 5 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with GRX1 */
714					};
715					pinctrl_pwm0_pwml1_2: pwm0_pwml1-2 {
716						atmel,pins =
717							<AT91_PIOE 31 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with IRQ */
718					};
719
720					pinctrl_pwm0_pwmh2_0: pwm0_pwmh2-0 {
721						atmel,pins =
722							<AT91_PIOB 8 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with GTXCK */
723					};
724					pinctrl_pwm0_pwmh2_1: pwm0_pwmh2-1 {
725						atmel,pins =
726							<AT91_PIOD 5 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* conflicts with MCI0_DA4 and TIOA0 */
727					};
728					pinctrl_pwm0_pwml2_0: pwm0_pwml2-0 {
729						atmel,pins =
730							<AT91_PIOB 9 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with GTXEN */
731					};
732					pinctrl_pwm0_pwml2_1: pwm0_pwml2-1 {
733						atmel,pins =
734							<AT91_PIOD 6 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* conflicts with MCI0_DA5 and TIOB0 */
735					};
736
737					pinctrl_pwm0_pwmh3_0: pwm0_pwmh3-0 {
738						atmel,pins =
739							<AT91_PIOB 12 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with GRXDV */
740					};
741					pinctrl_pwm0_pwmh3_1: pwm0_pwmh3-1 {
742						atmel,pins =
743							<AT91_PIOD 7 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* conflicts with MCI0_DA6 and TCLK0 */
744					};
745					pinctrl_pwm0_pwml3_0: pwm0_pwml3-0 {
746						atmel,pins =
747							<AT91_PIOB 13 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with GRXER */
748					};
749					pinctrl_pwm0_pwml3_1: pwm0_pwml3-1 {
750						atmel,pins =
751							<AT91_PIOD 8 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* conflicts with MCI0_DA7 */
752					};
753				};
754
755				spi0 {
756					u-boot,dm-pre-reloc;
757					pinctrl_spi0: spi0-0 {
758						u-boot,dm-pre-reloc;
759						atmel,pins =
760							<AT91_PIOD 10 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PD10 periph A SPI0_MISO pin */
761							 AT91_PIOD 11 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PD11 periph A SPI0_MOSI pin */
762							 AT91_PIOD 12 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD12 periph A SPI0_SPCK pin */
763					};
764				};
765
766				spi1 {
767					u-boot,dm-pre-reloc;
768					pinctrl_spi1: spi1-0 {
769						u-boot,dm-pre-reloc;
770						atmel,pins =
771							<AT91_PIOC 22 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PC22 periph A SPI1_MISO pin */
772							 AT91_PIOC 23 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PC23 periph A SPI1_MOSI pin */
773							 AT91_PIOC 24 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PC24 periph A SPI1_SPCK pin */
774					};
775				};
776
777				ssc0 {
778					pinctrl_ssc0_tx: ssc0_tx {
779						atmel,pins =
780							<AT91_PIOC 16 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PC16 periph A TK0 */
781							 AT91_PIOC 17 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PC17 periph A TF0 */
782							 AT91_PIOC 18 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PC18 periph A TD0 */
783					};
784
785					pinctrl_ssc0_rx: ssc0_rx {
786						atmel,pins =
787							<AT91_PIOC 19 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PC19 periph A RK0 */
788							 AT91_PIOC 20 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PC20 periph A RF0 */
789							 AT91_PIOC 21 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PC21 periph A RD0 */
790					};
791				};
792
793				ssc1 {
794					pinctrl_ssc1_tx: ssc1_tx {
795						atmel,pins =
796							<AT91_PIOB 2 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB2 periph B TK1, conflicts with GTX2 */
797							 AT91_PIOB 3 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB3 periph B TF1, conflicts with GTX3 */
798							 AT91_PIOB 6 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PB6 periph B TD1, conflicts with TD1 */
799					};
800
801					pinctrl_ssc1_rx: ssc1_rx {
802						atmel,pins =
803							<AT91_PIOB 7 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB7 periph B RK1, conflicts with EREFCK */
804							 AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB10 periph B RF1, conflicts with GTXER */
805							 AT91_PIOB 11 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PB11 periph B RD1, conflicts with GRXCK */
806					};
807				};
808
809				uart0 {
810					pinctrl_uart0: uart0-0 {
811						atmel,pins =
812							<AT91_PIOC 29 AT91_PERIPH_A AT91_PINCTRL_NONE	/* conflicts with PWMFI2, ISI_D8 */
813							 AT91_PIOC 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* conflicts with ISI_PCK */
814					};
815				};
816
817				uart1 {
818					pinctrl_uart1: uart1-0 {
819						atmel,pins =
820							<AT91_PIOA 30 AT91_PERIPH_B AT91_PINCTRL_NONE	/* conflicts with TWD0, ISI_VSYNC */
821							 AT91_PIOA 31 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;	/* conflicts with TWCK0, ISI_HSYNC */
822					};
823				};
824
825				usart0 {
826					pinctrl_usart0: usart0-0 {
827						atmel,pins =
828							<AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PD17 periph A */
829							 AT91_PIOD 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PD18 periph A with pullup */
830					};
831
832					pinctrl_usart0_rts_cts: usart0_rts_cts-0 {
833						atmel,pins =
834							<AT91_PIOD 15 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PD15 periph A, conflicts with SPI0_NPCS2, CANTX0 */
835							 AT91_PIOD 16 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PD16 periph A, conflicts with SPI0_NPCS3, PWMFI3 */
836					};
837				};
838
839				usart1 {
840					pinctrl_usart1: usart1-0 {
841						atmel,pins =
842							<AT91_PIOB 28 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB28 periph A */
843							 AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PB29 periph A with pullup */
844					};
845
846					pinctrl_usart1_rts_cts: usart1_rts_cts-0 {
847						atmel,pins =
848							<AT91_PIOB 26 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB26 periph A, conflicts with GRX7 */
849							 AT91_PIOB 27 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB27 periph A, conflicts with G125CKO */
850					};
851				};
852
853				usart2 {
854					pinctrl_usart2: usart2-0 {
855						atmel,pins =
856							<AT91_PIOE 25 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PE25 periph B, conflicts with A25 */
857							 AT91_PIOE 26 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;	/* PE26 periph B with pullup, conflicts NCS0 */
858					};
859
860					pinctrl_usart2_rts_cts: usart2_rts_cts-0 {
861						atmel,pins =
862							<AT91_PIOE 23 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PE23 periph B, conflicts with A23 */
863							 AT91_PIOE 24 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PE24 periph B, conflicts with A24 */
864					};
865				};
866
867				usart3 {
868					pinctrl_usart3: usart3-0 {
869						atmel,pins =
870							<AT91_PIOE 18 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PE18 periph B, conflicts with A18 */
871							 AT91_PIOE 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;	/* PE19 periph B with pullup, conflicts with A19 */
872					};
873
874					pinctrl_usart3_rts_cts: usart3_rts_cts-0 {
875						atmel,pins =
876							<AT91_PIOE 16 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PE16 periph B, conflicts with A16 */
877							 AT91_PIOE 17 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PE17 periph B, conflicts with A17 */
878					};
879				};
880			};
881
882			pioA: gpio@fffff200 {
883				compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
884				reg = <0xfffff200 0x100>;
885				interrupts = <6 IRQ_TYPE_LEVEL_HIGH 1>;
886				#gpio-cells = <2>;
887				gpio-controller;
888				interrupt-controller;
889				#interrupt-cells = <2>;
890				clocks = <&pioA_clk>;
891				u-boot,dm-pre-reloc;
892			};
893
894			pioB: gpio@fffff400 {
895				compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
896				reg = <0xfffff400 0x100>;
897				interrupts = <7 IRQ_TYPE_LEVEL_HIGH 1>;
898				#gpio-cells = <2>;
899				gpio-controller;
900				interrupt-controller;
901				#interrupt-cells = <2>;
902				clocks = <&pioB_clk>;
903				u-boot,dm-pre-reloc;
904			};
905
906			pioC: gpio@fffff600 {
907				compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
908				reg = <0xfffff600 0x100>;
909				interrupts = <8 IRQ_TYPE_LEVEL_HIGH 1>;
910				#gpio-cells = <2>;
911				gpio-controller;
912				interrupt-controller;
913				#interrupt-cells = <2>;
914				clocks = <&pioC_clk>;
915				u-boot,dm-pre-reloc;
916			};
917
918			pioD: gpio@fffff800 {
919				compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
920				reg = <0xfffff800 0x100>;
921				interrupts = <9 IRQ_TYPE_LEVEL_HIGH 1>;
922				#gpio-cells = <2>;
923				gpio-controller;
924				interrupt-controller;
925				#interrupt-cells = <2>;
926				clocks = <&pioD_clk>;
927				u-boot,dm-pre-reloc;
928			};
929
930			pioE: gpio@fffffa00 {
931				compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
932				reg = <0xfffffa00 0x100>;
933				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 1>;
934				#gpio-cells = <2>;
935				gpio-controller;
936				interrupt-controller;
937				#interrupt-cells = <2>;
938				clocks = <&pioE_clk>;
939				u-boot,dm-pre-reloc;
940			};
941
942			pmc: pmc@fffffc00 {
943				compatible = "atmel,sama5d3-pmc", "syscon";
944				reg = <0xfffffc00 0x120>;
945				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
946				interrupt-controller;
947				#address-cells = <1>;
948				#size-cells = <0>;
949				#interrupt-cells = <1>;
950				u-boot,dm-pre-reloc;
951
952				main_rc_osc: main_rc_osc {
953					compatible = "atmel,at91sam9x5-clk-main-rc-osc";
954					#clock-cells = <0>;
955					interrupt-parent = <&pmc>;
956					interrupts = <AT91_PMC_MOSCRCS>;
957					clock-frequency = <12000000>;
958					clock-accuracy = <50000000>;
959				};
960
961				main_osc: main_osc {
962					compatible = "atmel,at91rm9200-clk-main-osc";
963					#clock-cells = <0>;
964					interrupt-parent = <&pmc>;
965					interrupts = <AT91_PMC_MOSCS>;
966					clocks = <&main_xtal>;
967				};
968
969				main: mainck {
970					compatible = "atmel,at91sam9x5-clk-main";
971					#clock-cells = <0>;
972					interrupt-parent = <&pmc>;
973					interrupts = <AT91_PMC_MOSCSELS>;
974					clocks = <&main_rc_osc &main_osc>;
975				};
976
977				plla: pllack@0 {
978					compatible = "atmel,sama5d3-clk-pll";
979					#clock-cells = <0>;
980					interrupt-parent = <&pmc>;
981					interrupts = <AT91_PMC_LOCKA>;
982					clocks = <&main>;
983					reg = <0>;
984					atmel,clk-input-range = <8000000 50000000>;
985					#atmel,pll-clk-output-range-cells = <4>;
986					atmel,pll-clk-output-ranges = <400000000 1000000000 0 0>;
987				};
988
989				plladiv: plladivck {
990					compatible = "atmel,at91sam9x5-clk-plldiv";
991					#clock-cells = <0>;
992					clocks = <&plla>;
993				};
994
995				utmi: utmick {
996					compatible = "atmel,at91sam9x5-clk-utmi";
997					#clock-cells = <0>;
998					interrupt-parent = <&pmc>;
999					interrupts = <AT91_PMC_LOCKU>;
1000					clocks = <&main>;
1001				};
1002
1003				mck: masterck {
1004					compatible = "atmel,at91sam9x5-clk-master";
1005					#clock-cells = <0>;
1006					interrupt-parent = <&pmc>;
1007					interrupts = <AT91_PMC_MCKRDY>;
1008					clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>;
1009					atmel,clk-output-range = <0 166000000>;
1010					atmel,clk-divisors = <1 2 4 3>;
1011					u-boot,dm-pre-reloc;
1012				};
1013
1014				usb: usbck {
1015					compatible = "atmel,at91sam9x5-clk-usb";
1016					#clock-cells = <0>;
1017					clocks = <&plladiv>, <&utmi>;
1018				};
1019
1020				prog: progck {
1021					compatible = "atmel,at91sam9x5-clk-programmable";
1022					#address-cells = <1>;
1023					#size-cells = <0>;
1024					interrupt-parent = <&pmc>;
1025					clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>, <&mck>;
1026
1027					prog0: progck@0 {
1028						#clock-cells = <0>;
1029						reg = <0>;
1030						interrupts = <AT91_PMC_PCKRDY(0)>;
1031					};
1032
1033					prog1: progck@1 {
1034						#clock-cells = <0>;
1035						reg = <1>;
1036						interrupts = <AT91_PMC_PCKRDY(1)>;
1037					};
1038
1039					prog2: progck@2 {
1040						#clock-cells = <0>;
1041						reg = <2>;
1042						interrupts = <AT91_PMC_PCKRDY(2)>;
1043					};
1044				};
1045
1046				smd: smdclk {
1047					compatible = "atmel,at91sam9x5-clk-smd";
1048					#clock-cells = <0>;
1049					clocks = <&plladiv>, <&utmi>;
1050				};
1051
1052				systemck {
1053					compatible = "atmel,at91rm9200-clk-system";
1054					#address-cells = <1>;
1055					#size-cells = <0>;
1056
1057					ddrck: ddrck@2 {
1058						#clock-cells = <0>;
1059						reg = <2>;
1060						clocks = <&mck>;
1061					};
1062
1063					smdck: smdck@4 {
1064						#clock-cells = <0>;
1065						reg = <4>;
1066						clocks = <&smd>;
1067					};
1068
1069					uhpck: uhpck@6 {
1070						#clock-cells = <0>;
1071						reg = <6>;
1072						clocks = <&usb>;
1073					};
1074
1075					udpck: udpck@7 {
1076						#clock-cells = <0>;
1077						reg = <7>;
1078						clocks = <&usb>;
1079					};
1080
1081					pck0: pck@8 {
1082						#clock-cells = <0>;
1083						reg = <8>;
1084						clocks = <&prog0>;
1085					};
1086
1087					pck1: pck@9 {
1088						#clock-cells = <0>;
1089						reg = <9>;
1090						clocks = <&prog1>;
1091					};
1092
1093					pck2: pck@10 {
1094						#clock-cells = <0>;
1095						reg = <10>;
1096						clocks = <&prog2>;
1097					};
1098				};
1099
1100				periphck {
1101					compatible = "atmel,at91sam9x5-clk-peripheral";
1102					#address-cells = <1>;
1103					#size-cells = <0>;
1104					clocks = <&mck>;
1105					u-boot,dm-pre-reloc;
1106
1107					dbgu_clk: dbgu_clk@2 {
1108						u-boot,dm-pre-reloc;
1109						#clock-cells = <0>;
1110						reg = <2>;
1111					};
1112
1113					hsmc_clk: hsmc_clk@5 {
1114						#clock-cells = <0>;
1115						reg = <5>;
1116					};
1117
1118					pioA_clk: pioA_clk@6 {
1119						u-boot,dm-pre-reloc;
1120						#clock-cells = <0>;
1121						reg = <6>;
1122					};
1123
1124					pioB_clk: pioB_clk@7 {
1125						u-boot,dm-pre-reloc;
1126						#clock-cells = <0>;
1127						reg = <7>;
1128					};
1129
1130					pioC_clk: pioC_clk@8 {
1131						u-boot,dm-pre-reloc;
1132						#clock-cells = <0>;
1133						reg = <8>;
1134					};
1135
1136					pioD_clk: pioD_clk@9 {
1137						u-boot,dm-pre-reloc;
1138						#clock-cells = <0>;
1139						reg = <9>;
1140					};
1141
1142					pioE_clk: pioE_clk@10 {
1143						u-boot,dm-pre-reloc;
1144						#clock-cells = <0>;
1145						reg = <10>;
1146					};
1147
1148					usart0_clk: usart0_clk@12 {
1149						#clock-cells = <0>;
1150						reg = <12>;
1151						atmel,clk-output-range = <0 66000000>;
1152					};
1153
1154					usart1_clk: usart1_clk@13 {
1155						#clock-cells = <0>;
1156						reg = <13>;
1157						atmel,clk-output-range = <0 66000000>;
1158					};
1159
1160					usart2_clk: usart2_clk@14 {
1161						#clock-cells = <0>;
1162						reg = <14>;
1163						atmel,clk-output-range = <0 66000000>;
1164					};
1165
1166					usart3_clk: usart3_clk@15 {
1167						#clock-cells = <0>;
1168						reg = <15>;
1169						atmel,clk-output-range = <0 66000000>;
1170					};
1171
1172					uart0_clk: uart0_clk@16 {
1173						#clock-cells = <0>;
1174						reg = <16>;
1175						atmel,clk-output-range = <0 66000000>;
1176					};
1177
1178					twi0_clk: twi0_clk@18 {
1179						reg = <18>;
1180						#clock-cells = <0>;
1181						atmel,clk-output-range = <0 16625000>;
1182					};
1183
1184					twi1_clk: twi1_clk@19 {
1185						#clock-cells = <0>;
1186						reg = <19>;
1187						atmel,clk-output-range = <0 16625000>;
1188					};
1189
1190					twi2_clk: twi2_clk@20 {
1191						#clock-cells = <0>;
1192						reg = <20>;
1193						atmel,clk-output-range = <0 16625000>;
1194					};
1195
1196					mci0_clk: mci0_clk@21 {
1197						u-boot,dm-pre-reloc;
1198						#clock-cells = <0>;
1199						reg = <21>;
1200					};
1201
1202					mci1_clk: mci1_clk@22 {
1203						u-boot,dm-pre-reloc;
1204						#clock-cells = <0>;
1205						reg = <22>;
1206					};
1207
1208					spi0_clk: spi0_clk@24 {
1209						u-boot,dm-pre-reloc;
1210						#clock-cells = <0>;
1211						reg = <24>;
1212						atmel,clk-output-range = <0 133000000>;
1213					};
1214
1215					spi1_clk: spi1_clk@25 {
1216						u-boot,dm-pre-reloc;
1217						#clock-cells = <0>;
1218						reg = <25>;
1219						atmel,clk-output-range = <0 133000000>;
1220					};
1221
1222					tcb0_clk: tcb0_clk@26 {
1223						#clock-cells = <0>;
1224						reg = <26>;
1225						atmel,clk-output-range = <0 133000000>;
1226					};
1227
1228					pwm_clk: pwm_clk@28 {
1229						#clock-cells = <0>;
1230						reg = <28>;
1231					};
1232
1233					adc_clk: adc_clk@29 {
1234						#clock-cells = <0>;
1235						reg = <29>;
1236						atmel,clk-output-range = <0 66000000>;
1237					};
1238
1239					dma0_clk: dma0_clk@30 {
1240						#clock-cells = <0>;
1241						reg = <30>;
1242					};
1243
1244					dma1_clk: dma1_clk@31 {
1245						#clock-cells = <0>;
1246						reg = <31>;
1247					};
1248
1249					uhphs_clk: uhphs_clk@32 {
1250						#clock-cells = <0>;
1251						reg = <32>;
1252					};
1253
1254					udphs_clk: udphs_clk@33 {
1255						#clock-cells = <0>;
1256						reg = <33>;
1257					};
1258
1259					isi_clk: isi_clk@37 {
1260						#clock-cells = <0>;
1261						reg = <37>;
1262					};
1263
1264					ssc0_clk: ssc0_clk@38 {
1265						#clock-cells = <0>;
1266						reg = <38>;
1267						atmel,clk-output-range = <0 66000000>;
1268					};
1269
1270					ssc1_clk: ssc1_clk@39 {
1271						#clock-cells = <0>;
1272						reg = <39>;
1273						atmel,clk-output-range = <0 66000000>;
1274					};
1275
1276					sha_clk: sha_clk@42 {
1277						#clock-cells = <0>;
1278						reg = <42>;
1279					};
1280
1281					aes_clk: aes_clk@43 {
1282						#clock-cells = <0>;
1283						reg = <43>;
1284					};
1285
1286					tdes_clk: tdes_clk@44 {
1287						#clock-cells = <0>;
1288						reg = <44>;
1289					};
1290
1291					trng_clk: trng_clk@45 {
1292						#clock-cells = <0>;
1293						reg = <45>;
1294					};
1295
1296					fuse_clk: fuse_clk@48 {
1297						#clock-cells = <0>;
1298						reg = <48>;
1299					};
1300
1301					mpddr_clk: mpddr_clk@49 {
1302						#clock-cells = <0>;
1303						reg = <49>;
1304					};
1305				};
1306			};
1307
1308			rstc@fffffe00 {
1309				compatible = "atmel,sama5d3-rstc", "atmel,at91sam9g45-rstc";
1310				reg = <0xfffffe00 0x10>;
1311				clocks = <&clk32k>;
1312			};
1313
1314			shutdown-controller@fffffe10 {
1315				compatible = "atmel,at91sam9x5-shdwc";
1316				reg = <0xfffffe10 0x10>;
1317				clocks = <&clk32k>;
1318			};
1319
1320			pit: timer@fffffe30 {
1321				compatible = "atmel,at91sam9260-pit";
1322				reg = <0xfffffe30 0xf>;
1323				interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>;
1324				clocks = <&mck>;
1325			};
1326
1327			watchdog@fffffe40 {
1328				compatible = "atmel,at91sam9260-wdt";
1329				reg = <0xfffffe40 0x10>;
1330				interrupts = <4 IRQ_TYPE_LEVEL_HIGH 7>;
1331				clocks = <&clk32k>;
1332				atmel,watchdog-type = "hardware";
1333				atmel,reset-type = "all";
1334				atmel,dbg-halt;
1335				status = "disabled";
1336			};
1337
1338			sckc@fffffe50 {
1339				compatible = "atmel,at91sam9x5-sckc";
1340				reg = <0xfffffe50 0x4>;
1341
1342				slow_rc_osc: slow_rc_osc {
1343					compatible = "atmel,at91sam9x5-clk-slow-rc-osc";
1344					#clock-cells = <0>;
1345					clock-frequency = <32768>;
1346					clock-accuracy = <50000000>;
1347					atmel,startup-time-usec = <75>;
1348				};
1349
1350				slow_osc: slow_osc {
1351					compatible = "atmel,at91sam9x5-clk-slow-osc";
1352					#clock-cells = <0>;
1353					clocks = <&slow_xtal>;
1354					atmel,startup-time-usec = <1200000>;
1355				};
1356
1357				clk32k: slowck {
1358					compatible = "atmel,at91sam9x5-clk-slow";
1359					#clock-cells = <0>;
1360					clocks = <&slow_rc_osc &slow_osc>;
1361				};
1362			};
1363
1364			rtc@fffffeb0 {
1365				compatible = "atmel,at91rm9200-rtc";
1366				reg = <0xfffffeb0 0x30>;
1367				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
1368				clocks = <&clk32k>;
1369			};
1370		};
1371
1372		usb0: gadget@00500000 {
1373			#address-cells = <1>;
1374			#size-cells = <0>;
1375			compatible = "atmel,sama5d3-udc";
1376			reg = <0x00500000 0x100000
1377			       0xf8030000 0x4000>;
1378			interrupts = <33 IRQ_TYPE_LEVEL_HIGH 2>;
1379			clocks = <&udphs_clk>, <&utmi>;
1380			clock-names = "pclk", "hclk";
1381			status = "disabled";
1382
1383			ep0: endpoint@0 {
1384				reg = <0>;
1385				atmel,fifo-size = <64>;
1386				atmel,nb-banks = <1>;
1387			};
1388
1389			ep1: endpoint@1 {
1390				reg = <1>;
1391				atmel,fifo-size = <1024>;
1392				atmel,nb-banks = <3>;
1393				atmel,can-dma;
1394				atmel,can-isoc;
1395			};
1396
1397			ep2: endpoint@2 {
1398				reg = <2>;
1399				atmel,fifo-size = <1024>;
1400				atmel,nb-banks = <3>;
1401				atmel,can-dma;
1402				atmel,can-isoc;
1403			};
1404
1405			ep3: endpoint@3 {
1406				reg = <3>;
1407				atmel,fifo-size = <1024>;
1408				atmel,nb-banks = <2>;
1409				atmel,can-dma;
1410			};
1411
1412			ep4: endpoint@4 {
1413				reg = <4>;
1414				atmel,fifo-size = <1024>;
1415				atmel,nb-banks = <2>;
1416				atmel,can-dma;
1417			};
1418
1419			ep5: endpoint@5 {
1420				reg = <5>;
1421				atmel,fifo-size = <1024>;
1422				atmel,nb-banks = <2>;
1423				atmel,can-dma;
1424			};
1425
1426			ep6: endpoint@6 {
1427				reg = <6>;
1428				atmel,fifo-size = <1024>;
1429				atmel,nb-banks = <2>;
1430				atmel,can-dma;
1431			};
1432
1433			ep7i: endpoint@7 {
1434				reg = <7>;
1435				atmel,fifo-size = <1024>;
1436				atmel,nb-banks = <2>;
1437				atmel,can-dma;
1438			};
1439
1440			ep8: endpoint@8 {
1441				reg = <8>;
1442				atmel,fifo-size = <1024>;
1443				atmel,nb-banks = <2>;
1444			};
1445
1446			ep9: endpoint@9 {
1447				reg = <9>;
1448				atmel,fifo-size = <1024>;
1449				atmel,nb-banks = <2>;
1450			};
1451
1452			ep10: endpoint@10 {
1453				reg = <10>;
1454				atmel,fifo-size = <1024>;
1455				atmel,nb-banks = <2>;
1456			};
1457
1458			ep11: endpoint@11 {
1459				reg = <11>;
1460				atmel,fifo-size = <1024>;
1461				atmel,nb-banks = <2>;
1462			};
1463
1464			ep12: endpoint@12 {
1465				reg = <12>;
1466				atmel,fifo-size = <1024>;
1467				atmel,nb-banks = <2>;
1468			};
1469
1470			ep13: endpoint@13 {
1471				reg = <13>;
1472				atmel,fifo-size = <1024>;
1473				atmel,nb-banks = <2>;
1474			};
1475
1476			ep14: endpoint@14 {
1477				reg = <14>;
1478				atmel,fifo-size = <1024>;
1479				atmel,nb-banks = <2>;
1480			};
1481
1482			ep15: endpoint@15 {
1483				reg = <15>;
1484				atmel,fifo-size = <1024>;
1485				atmel,nb-banks = <2>;
1486			};
1487		};
1488
1489		usb1: ohci@00600000 {
1490			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
1491			reg = <0x00600000 0x100000>;
1492			interrupts = <32 IRQ_TYPE_LEVEL_HIGH 2>;
1493			clocks = <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
1494			clock-names = "ohci_clk", "hclk", "uhpck";
1495			status = "disabled";
1496		};
1497
1498		usb2: ehci@00700000 {
1499			compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
1500			reg = <0x00700000 0x100000>;
1501			interrupts = <32 IRQ_TYPE_LEVEL_HIGH 2>;
1502			clocks = <&utmi>, <&uhphs_clk>;
1503			clock-names = "usb_clk", "ehci_clk";
1504			status = "disabled";
1505		};
1506
1507		nand0: nand@60000000 {
1508			compatible = "atmel,at91rm9200-nand";
1509			#address-cells = <1>;
1510			#size-cells = <1>;
1511			ranges;
1512			reg = <	0x60000000 0x01000000	/* EBI CS3 */
1513				0xffffc070 0x00000490	/* SMC PMECC regs */
1514				0xffffc500 0x00000100	/* SMC PMECC Error Location regs */
1515				0x00110000 0x00018000	/* ROM code */
1516				>;
1517			interrupts = <5 IRQ_TYPE_LEVEL_HIGH 6>;
1518			atmel,nand-addr-offset = <21>;
1519			atmel,nand-cmd-offset = <22>;
1520			atmel,nand-has-dma;
1521			pinctrl-names = "default";
1522			pinctrl-0 = <&pinctrl_nand0_ale_cle>;
1523			atmel,pmecc-lookup-table-offset = <0x0 0x8000>;
1524			status = "disabled";
1525
1526			nfc@70000000 {
1527				compatible = "atmel,sama5d3-nfc";
1528				#address-cells = <1>;
1529				#size-cells = <1>;
1530				reg = <
1531					0x70000000 0x08000000	/* NFC Command Registers */
1532					0xffffc000 0x00000070	/* NFC HSMC regs */
1533					0x00200000 0x00100000	/* NFC SRAM banks */
1534					>;
1535				clocks = <&hsmc_clk>;
1536			};
1537		};
1538	};
1539};
1540