usb: dwc3: meson-g12a: fix USB2 PHY initialization on G12A and A1 SoCs
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / at91sam9g45.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * at91sam9g45.dtsi - Device Tree Include file for AT91SAM9G45 family SoC
4  *                    applies to AT91SAM9G45, AT91SAM9M10,
5  *                    AT91SAM9G46, AT91SAM9M11 SoC
6  *
7  *  Copyright (C) 2011 Atmel,
8  *                2011 Nicolas Ferre <nicolas.ferre@atmel.com>
9  */
10
11 #include <dt-bindings/dma/at91.h>
12 #include <dt-bindings/pinctrl/at91.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/clock/at91.h>
16
17 / {
18         #address-cells = <1>;
19         #size-cells = <1>;
20         model = "Atmel AT91SAM9G45 family SoC";
21         compatible = "atmel,at91sam9g45";
22         interrupt-parent = <&aic>;
23
24         aliases {
25                 serial0 = &dbgu;
26                 serial1 = &usart0;
27                 serial2 = &usart1;
28                 serial3 = &usart2;
29                 serial4 = &usart3;
30                 gpio0 = &pioA;
31                 gpio1 = &pioB;
32                 gpio2 = &pioC;
33                 gpio3 = &pioD;
34                 gpio4 = &pioE;
35                 tcb0 = &tcb0;
36                 tcb1 = &tcb1;
37                 i2c0 = &i2c0;
38                 i2c1 = &i2c1;
39                 ssc0 = &ssc0;
40                 ssc1 = &ssc1;
41                 pwm0 = &pwm0;
42         };
43         cpus {
44                 #address-cells = <0>;
45                 #size-cells = <0>;
46
47                 cpu {
48                         compatible = "arm,arm926ej-s";
49                         device_type = "cpu";
50                 };
51         };
52
53         memory {
54                 device_type = "memory";
55                 reg = <0x70000000 0x10000000>;
56         };
57
58         clocks {
59                 slow_xtal: slow_xtal {
60                         compatible = "fixed-clock";
61                         #clock-cells = <0>;
62                         clock-frequency = <0>;
63                 };
64
65                 main_xtal: main_xtal {
66                         compatible = "fixed-clock";
67                         #clock-cells = <0>;
68                         clock-frequency = <0>;
69                 };
70
71                 adc_op_clk: adc_op_clk{
72                         compatible = "fixed-clock";
73                         #clock-cells = <0>;
74                         clock-frequency = <300000>;
75                 };
76         };
77
78         sram: sram@300000 {
79                 compatible = "mmio-sram";
80                 reg = <0x00300000 0x10000>;
81         };
82
83         ahb {
84                 compatible = "simple-bus";
85                 #address-cells = <1>;
86                 #size-cells = <1>;
87                 ranges;
88
89                 apb {
90                         compatible = "simple-bus";
91                         #address-cells = <1>;
92                         #size-cells = <1>;
93                         ranges;
94
95                         aic: interrupt-controller@fffff000 {
96                                 #interrupt-cells = <3>;
97                                 compatible = "atmel,at91rm9200-aic";
98                                 interrupt-controller;
99                                 reg = <0xfffff000 0x200>;
100                                 atmel,external-irqs = <31>;
101                         };
102
103                         ramc0: ramc@ffffe400 {
104                                 compatible = "atmel,at91sam9g45-ddramc";
105                                 reg = <0xffffe400 0x200>;
106                                 clocks = <&ddrck>;
107                                 clock-names = "ddrck";
108                         };
109
110                         ramc1: ramc@ffffe600 {
111                                 compatible = "atmel,at91sam9g45-ddramc";
112                                 reg = <0xffffe600 0x200>;
113                                 clocks = <&ddrck>;
114                                 clock-names = "ddrck";
115                         };
116
117                         smc: smc@ffffe800 {
118                                 compatible = "atmel,at91sam9260-smc", "syscon";
119                                 reg = <0xffffe800 0x200>;
120                         };
121
122                         matrix: matrix@ffffea00 {
123                                 compatible = "atmel,at91sam9g45-matrix", "syscon";
124                                 reg = <0xffffea00 0x200>;
125                         };
126
127                         pmc: pmc@fffffc00 {
128                                 compatible = "atmel,at91sam9g45-pmc", "syscon";
129                                 reg = <0xfffffc00 0x100>;
130                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
131                                 interrupt-controller;
132                                 #address-cells = <1>;
133                                 #size-cells = <0>;
134                                 #interrupt-cells = <1>;
135
136                                 main_osc: main_osc {
137                                         compatible = "atmel,at91rm9200-clk-main-osc";
138                                         #clock-cells = <0>;
139                                         interrupts-extended = <&pmc AT91_PMC_MOSCS>;
140                                         clocks = <&main_xtal>;
141                                 };
142
143                                 main: mainck {
144                                         compatible = "atmel,at91rm9200-clk-main";
145                                         #clock-cells = <0>;
146                                         clocks = <&main_osc>;
147                                 };
148
149                                 plla: pllack {
150                                         compatible = "atmel,at91rm9200-clk-pll";
151                                         #clock-cells = <0>;
152                                         interrupts-extended = <&pmc AT91_PMC_LOCKA>;
153                                         clocks = <&main>;
154                                         reg = <0>;
155                                         atmel,clk-input-range = <2000000 32000000>;
156                                         #atmel,pll-clk-output-range-cells = <4>;
157                                         atmel,pll-clk-output-ranges = <745000000 800000000 0 0
158                                                                        695000000 750000000 1 0
159                                                                        645000000 700000000 2 0
160                                                                        595000000 650000000 3 0
161                                                                        545000000 600000000 0 1
162                                                                        495000000 555000000 1 1
163                                                                        445000000 500000000 2 1
164                                                                        400000000 450000000 3 1>;
165                                 };
166
167                                 plladiv: plladivck {
168                                         compatible = "atmel,at91sam9x5-clk-plldiv";
169                                         #clock-cells = <0>;
170                                         clocks = <&plla>;
171                                 };
172
173                                 utmi: utmick {
174                                         compatible = "atmel,at91sam9x5-clk-utmi";
175                                         #clock-cells = <0>;
176                                         interrupts-extended = <&pmc AT91_PMC_LOCKU>;
177                                         clocks = <&main>;
178                                 };
179
180                                 mck: masterck {
181                                         compatible = "atmel,at91rm9200-clk-master";
182                                         #clock-cells = <0>;
183                                         interrupts-extended = <&pmc AT91_PMC_MCKRDY>;
184                                         clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>;
185                                         atmel,clk-output-range = <0 133333333>;
186                                         atmel,clk-divisors = <1 2 4 3>;
187                                 };
188
189                                 usb: usbck {
190                                         compatible = "atmel,at91sam9x5-clk-usb";
191                                         #clock-cells = <0>;
192                                         clocks = <&plladiv>, <&utmi>;
193                                 };
194
195                                 prog: progck {
196                                         compatible = "atmel,at91sam9g45-clk-programmable";
197                                         #address-cells = <1>;
198                                         #size-cells = <0>;
199                                         interrupt-parent = <&pmc>;
200                                         clocks = <&clk32k>, <&main>, <&plladiv>, <&utmi>, <&mck>;
201
202                                         prog0: prog0 {
203                                                 #clock-cells = <0>;
204                                                 reg = <0>;
205                                                 interrupts = <AT91_PMC_PCKRDY(0)>;
206                                         };
207
208                                         prog1: prog1 {
209                                                 #clock-cells = <0>;
210                                                 reg = <1>;
211                                                 interrupts = <AT91_PMC_PCKRDY(1)>;
212                                         };
213                                 };
214
215                                 systemck {
216                                         compatible = "atmel,at91rm9200-clk-system";
217                                         #address-cells = <1>;
218                                         #size-cells = <0>;
219
220                                         ddrck: ddrck {
221                                                 #clock-cells = <0>;
222                                                 reg = <2>;
223                                                 clocks = <&mck>;
224                                         };
225
226                                         uhpck: uhpck {
227                                                 #clock-cells = <0>;
228                                                 reg = <6>;
229                                                 clocks = <&usb>;
230                                         };
231
232                                         pck0: pck0 {
233                                                 #clock-cells = <0>;
234                                                 reg = <8>;
235                                                 clocks = <&prog0>;
236                                         };
237
238                                         pck1: pck1 {
239                                                 #clock-cells = <0>;
240                                                 reg = <9>;
241                                                 clocks = <&prog1>;
242                                         };
243                                 };
244
245                                 periphck {
246                                         compatible = "atmel,at91rm9200-clk-peripheral";
247                                         #address-cells = <1>;
248                                         #size-cells = <0>;
249                                         clocks = <&mck>;
250
251                                         pioA_clk: pioA_clk {
252                                                 #clock-cells = <0>;
253                                                 reg = <2>;
254                                         };
255
256                                         pioB_clk: pioB_clk {
257                                                 #clock-cells = <0>;
258                                                 reg = <3>;
259                                         };
260
261                                         pioC_clk: pioC_clk {
262                                                 #clock-cells = <0>;
263                                                 reg = <4>;
264                                         };
265
266                                         pioDE_clk: pioDE_clk {
267                                                 #clock-cells = <0>;
268                                                 reg = <5>;
269                                         };
270
271                                         trng_clk: trng_clk {
272                                                 #clock-cells = <0>;
273                                                 reg = <6>;
274                                         };
275
276                                         usart0_clk: usart0_clk {
277                                                 #clock-cells = <0>;
278                                                 reg = <7>;
279                                         };
280
281                                         usart1_clk: usart1_clk {
282                                                 #clock-cells = <0>;
283                                                 reg = <8>;
284                                         };
285
286                                         usart2_clk: usart2_clk {
287                                                 #clock-cells = <0>;
288                                                 reg = <9>;
289                                         };
290
291                                         usart3_clk: usart3_clk {
292                                                 #clock-cells = <0>;
293                                                 reg = <10>;
294                                         };
295
296                                         mci0_clk: mci0_clk {
297                                                 #clock-cells = <0>;
298                                                 reg = <11>;
299                                         };
300
301                                         twi0_clk: twi0_clk {
302                                                 #clock-cells = <0>;
303                                                 reg = <12>;
304                                         };
305
306                                         twi1_clk: twi1_clk {
307                                                 #clock-cells = <0>;
308                                                 reg = <13>;
309                                         };
310
311                                         spi0_clk: spi0_clk {
312                                                 #clock-cells = <0>;
313                                                 reg = <14>;
314                                         };
315
316                                         spi1_clk: spi1_clk {
317                                                 #clock-cells = <0>;
318                                                 reg = <15>;
319                                         };
320
321                                         ssc0_clk: ssc0_clk {
322                                                 #clock-cells = <0>;
323                                                 reg = <16>;
324                                         };
325
326                                         ssc1_clk: ssc1_clk {
327                                                 #clock-cells = <0>;
328                                                 reg = <17>;
329                                         };
330
331                                         tcb0_clk: tcb0_clk {
332                                                 #clock-cells = <0>;
333                                                 reg = <18>;
334                                         };
335
336                                         pwm_clk: pwm_clk {
337                                                 #clock-cells = <0>;
338                                                 reg = <19>;
339                                         };
340
341                                         adc_clk: adc_clk {
342                                                 #clock-cells = <0>;
343                                                 reg = <20>;
344                                         };
345
346                                         dma0_clk: dma0_clk {
347                                                 #clock-cells = <0>;
348                                                 reg = <21>;
349                                         };
350
351                                         uhphs_clk: uhphs_clk {
352                                                 #clock-cells = <0>;
353                                                 reg = <22>;
354                                         };
355
356                                         lcd_clk: lcd_clk {
357                                                 #clock-cells = <0>;
358                                                 reg = <23>;
359                                         };
360
361                                         ac97_clk: ac97_clk {
362                                                 #clock-cells = <0>;
363                                                 reg = <24>;
364                                         };
365
366                                         macb0_clk: macb0_clk {
367                                                 #clock-cells = <0>;
368                                                 reg = <25>;
369                                         };
370
371                                         isi_clk: isi_clk {
372                                                 #clock-cells = <0>;
373                                                 reg = <26>;
374                                         };
375
376                                         udphs_clk: udphs_clk {
377                                                 #clock-cells = <0>;
378                                                 reg = <27>;
379                                         };
380
381                                         aestdessha_clk: aestdessha_clk {
382                                                 #clock-cells = <0>;
383                                                 reg = <28>;
384                                         };
385
386                                         mci1_clk: mci1_clk {
387                                                 #clock-cells = <0>;
388                                                 reg = <29>;
389                                         };
390
391                                         vdec_clk: vdec_clk {
392                                                 #clock-cells = <0>;
393                                                 reg = <30>;
394                                         };
395                                 };
396                         };
397
398                         rstc@fffffd00 {
399                                 compatible = "atmel,at91sam9g45-rstc";
400                                 reg = <0xfffffd00 0x10>;
401                                 clocks = <&clk32k>;
402                         };
403
404                         pit: timer@fffffd30 {
405                                 compatible = "atmel,at91sam9260-pit";
406                                 reg = <0xfffffd30 0xf>;
407                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
408                                 clocks = <&mck>;
409                         };
410
411
412                         shdwc@fffffd10 {
413                                 compatible = "atmel,at91sam9rl-shdwc";
414                                 reg = <0xfffffd10 0x10>;
415                                 clocks = <&clk32k>;
416                         };
417
418                         tcb0: timer@fff7c000 {
419                                 compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
420                                 #address-cells = <1>;
421                                 #size-cells = <0>;
422                                 reg = <0xfff7c000 0x100>;
423                                 interrupts = <18 IRQ_TYPE_LEVEL_HIGH 0>;
424                                 clocks = <&tcb0_clk>, <&tcb0_clk>, <&tcb0_clk>, <&clk32k>;
425                                 clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
426                         };
427
428                         tcb1: timer@fffd4000 {
429                                 compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
430                                 #address-cells = <1>;
431                                 #size-cells = <0>;
432                                 reg = <0xfffd4000 0x100>;
433                                 interrupts = <18 IRQ_TYPE_LEVEL_HIGH 0>;
434                                 clocks = <&tcb0_clk>, <&tcb0_clk>, <&tcb0_clk>, <&clk32k>;
435                                 clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
436                         };
437
438                         dma: dma-controller@ffffec00 {
439                                 compatible = "atmel,at91sam9g45-dma";
440                                 reg = <0xffffec00 0x200>;
441                                 interrupts = <21 IRQ_TYPE_LEVEL_HIGH 0>;
442                                 #dma-cells = <2>;
443                                 clocks = <&dma0_clk>;
444                                 clock-names = "dma_clk";
445                         };
446
447                         pinctrl@fffff200 {
448                                 #address-cells = <1>;
449                                 #size-cells = <1>;
450                                 compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
451                                 ranges = <0xfffff200 0xfffff200 0xa00>;
452
453                                 atmel,mux-mask = <
454                                       /*    A         B     */
455                                        0xffffffff 0xffc003ff  /* pioA */
456                                        0xffffffff 0x800f8f00  /* pioB */
457                                        0xffffffff 0x00000e00  /* pioC */
458                                        0xffffffff 0xff0c1381  /* pioD */
459                                        0xffffffff 0x81ffff81  /* pioE */
460                                       >;
461
462                                 /* shared pinctrl settings */
463                                 ac97 {
464                                         pinctrl_ac97: ac97-0 {
465                                                 atmel,pins =
466                                                         <AT91_PIOD 6 AT91_PERIPH_A AT91_PINCTRL_NONE    /* AC97RX */
467                                                          AT91_PIOD 7 AT91_PERIPH_A AT91_PINCTRL_NONE    /* AC97TX */
468                                                          AT91_PIOD 8 AT91_PERIPH_A AT91_PINCTRL_NONE    /* AC97FS */
469                                                          AT91_PIOD 9 AT91_PERIPH_A AT91_PINCTRL_NONE>;  /* AC97CK */
470                                         };
471                                 };
472
473                                 adc0 {
474                                         pinctrl_adc0_adtrg: adc0_adtrg {
475                                                 atmel,pins = <AT91_PIOD 28 AT91_PERIPH_A AT91_PINCTRL_NONE>;
476                                         };
477                                         pinctrl_adc0_ad0: adc0_ad0 {
478                                                 atmel,pins = <AT91_PIOD 20 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
479                                         };
480                                         pinctrl_adc0_ad1: adc0_ad1 {
481                                                 atmel,pins = <AT91_PIOD 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
482                                         };
483                                         pinctrl_adc0_ad2: adc0_ad2 {
484                                                 atmel,pins = <AT91_PIOD 22 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
485                                         };
486                                         pinctrl_adc0_ad3: adc0_ad3 {
487                                                 atmel,pins = <AT91_PIOD 23 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
488                                         };
489                                         pinctrl_adc0_ad4: adc0_ad4 {
490                                                 atmel,pins = <AT91_PIOD 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
491                                         };
492                                         pinctrl_adc0_ad5: adc0_ad5 {
493                                                 atmel,pins = <AT91_PIOD 25 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
494                                         };
495                                         pinctrl_adc0_ad6: adc0_ad6 {
496                                                 atmel,pins = <AT91_PIOD 26 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
497                                         };
498                                         pinctrl_adc0_ad7: adc0_ad7 {
499                                                 atmel,pins = <AT91_PIOD 27 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
500                                         };
501                                 };
502
503                                 dbgu {
504                                         pinctrl_dbgu: dbgu-0 {
505                                                 atmel,pins =
506                                                         <AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
507                                                          AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE>;
508                                         };
509                                 };
510
511                                 i2c0 {
512                                         pinctrl_i2c0: i2c0-0 {
513                                                 atmel,pins =
514                                                         <AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA21 periph A TWCK0 */
515                                                          AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA20 periph A TWD0 */
516                                         };
517                                 };
518
519                                 i2c1 {
520                                         pinctrl_i2c1: i2c1-0 {
521                                                 atmel,pins =
522                                                         <AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PB11 periph A TWCK1 */
523                                                          AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A TWD1 */
524                                         };
525                                 };
526
527                                 isi {
528                                         pinctrl_isi_data_0_7: isi-0-data-0-7 {
529                                                 atmel,pins =
530                                                         <AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_NONE /* D0 */
531                                                         AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_NONE /* D1 */
532                                                         AT91_PIOB 22 AT91_PERIPH_A AT91_PINCTRL_NONE /* D2 */
533                                                         AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_NONE /* D3 */
534                                                         AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_NONE /* D4 */
535                                                         AT91_PIOB 25 AT91_PERIPH_A AT91_PINCTRL_NONE /* D5 */
536                                                         AT91_PIOB 26 AT91_PERIPH_A AT91_PINCTRL_NONE /* D6 */
537                                                         AT91_PIOB 27 AT91_PERIPH_A AT91_PINCTRL_NONE /* D7 */
538                                                         AT91_PIOB 28 AT91_PERIPH_A AT91_PINCTRL_NONE /* PCK */
539                                                         AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_NONE /* VSYNC */
540                                                         AT91_PIOB 30 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* HSYNC */
541                                         };
542
543                                         pinctrl_isi_data_8_9: isi-0-data-8-9 {
544                                                 atmel,pins =
545                                                         <AT91_PIOB 8 AT91_PERIPH_B AT91_PINCTRL_NONE /* D8 */
546                                                         AT91_PIOB 9 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* D9 */
547                                         };
548
549                                         pinctrl_isi_data_10_11: isi-0-data-10-11 {
550                                                 atmel,pins =
551                                                         <AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE /* D10 */
552                                                         AT91_PIOB 11 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* D11 */
553                                         };
554                                 };
555
556                                 usart0 {
557                                         pinctrl_usart0: usart0-0 {
558                                                 atmel,pins =
559                                                         <AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
560                                                          AT91_PIOB 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
561                                         };
562
563                                         pinctrl_usart0_rts: usart0_rts-0 {
564                                                 atmel,pins =
565                                                         <AT91_PIOB 17 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB17 periph B */
566                                         };
567
568                                         pinctrl_usart0_cts: usart0_cts-0 {
569                                                 atmel,pins =
570                                                         <AT91_PIOB 15 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB15 periph B */
571                                         };
572                                 };
573
574                                 usart1 {
575                                         pinctrl_usart1: usart1-0 {
576                                                 atmel,pins =
577                                                         <AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
578                                                          AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
579                                         };
580
581                                         pinctrl_usart1_rts: usart1_rts-0 {
582                                                 atmel,pins =
583                                                         <AT91_PIOD 16 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD16 periph A */
584                                         };
585
586                                         pinctrl_usart1_cts: usart1_cts-0 {
587                                                 atmel,pins =
588                                                         <AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD17 periph A */
589                                         };
590                                 };
591
592                                 usart2 {
593                                         pinctrl_usart2: usart2-0 {
594                                                 atmel,pins =
595                                                         <AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
596                                                          AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
597                                         };
598
599                                         pinctrl_usart2_rts: usart2_rts-0 {
600                                                 atmel,pins =
601                                                         <AT91_PIOC 9 AT91_PERIPH_B AT91_PINCTRL_NONE>;  /* PC9 periph B */
602                                         };
603
604                                         pinctrl_usart2_cts: usart2_cts-0 {
605                                                 atmel,pins =
606                                                         <AT91_PIOC 11 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC11 periph B */
607                                         };
608                                 };
609
610                                 usart3 {
611                                         pinctrl_usart3: usart3-0 {
612                                                 atmel,pins =
613                                                         <AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
614                                                          AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
615                                         };
616
617                                         pinctrl_usart3_rts: usart3_rts-0 {
618                                                 atmel,pins =
619                                                         <AT91_PIOA 23 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA23 periph B */
620                                         };
621
622                                         pinctrl_usart3_cts: usart3_cts-0 {
623                                                 atmel,pins =
624                                                         <AT91_PIOA 24 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA24 periph B */
625                                         };
626                                 };
627
628                                 nand {
629                                         pinctrl_nand_rb: nand-rb-0 {
630                                                 atmel,pins =
631                                                         <AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
632                                         };
633
634                                         pinctrl_nand_cs: nand-cs-0 {
635                                                 atmel,pins =
636                                                          <AT91_PIOC 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
637                                         };
638                                 };
639
640                                 macb {
641                                         pinctrl_macb_rmii: macb_rmii-0 {
642                                                 atmel,pins =
643                                                         <AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA10 periph A */
644                                                          AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA11 periph A */
645                                                          AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA12 periph A */
646                                                          AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA13 periph A */
647                                                          AT91_PIOA 14 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA14 periph A */
648                                                          AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA15 periph A */
649                                                          AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA16 periph A */
650                                                          AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA17 periph A */
651                                                          AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA18 periph A */
652                                                          AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA19 periph A */
653                                         };
654
655                                         pinctrl_macb_rmii_mii: macb_rmii_mii-0 {
656                                                 atmel,pins =
657                                                         <AT91_PIOA 6 AT91_PERIPH_B AT91_PINCTRL_NONE    /* PA6 periph B */
658                                                          AT91_PIOA 7 AT91_PERIPH_B AT91_PINCTRL_NONE    /* PA7 periph B */
659                                                          AT91_PIOA 8 AT91_PERIPH_B AT91_PINCTRL_NONE    /* PA8 periph B */
660                                                          AT91_PIOA 9 AT91_PERIPH_B AT91_PINCTRL_NONE    /* PA9 periph B */
661                                                          AT91_PIOA 27 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PA27 periph B */
662                                                          AT91_PIOA 28 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PA28 periph B */
663                                                          AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PA29 periph B */
664                                                          AT91_PIOA 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA30 periph B */
665                                         };
666                                 };
667
668                                 mmc0 {
669                                         pinctrl_mmc0_slot0_clk_cmd_dat0: mmc0_slot0_clk_cmd_dat0-0 {
670                                                 atmel,pins =
671                                                         <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PA0 periph A */
672                                                          AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA1 periph A with pullup */
673                                                          AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;       /* PA2 periph A with pullup */
674                                         };
675
676                                         pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
677                                                 atmel,pins =
678                                                         <AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA3 periph A with pullup */
679                                                          AT91_PIOA 4 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA4 periph A with pullup */
680                                                          AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;       /* PA5 periph A with pullup */
681                                         };
682
683                                         pinctrl_mmc0_slot0_dat4_7: mmc0_slot0_dat4_7-0 {
684                                                 atmel,pins =
685                                                         <AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA6 periph A with pullup */
686                                                          AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA7 periph A with pullup */
687                                                          AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA8 periph A with pullup */
688                                                          AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;       /* PA9 periph A with pullup */
689                                         };
690                                 };
691
692                                 mmc1 {
693                                         pinctrl_mmc1_slot0_clk_cmd_dat0: mmc1_slot0_clk_cmd_dat0-0 {
694                                                 atmel,pins =
695                                                         <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PA31 periph A */
696                                                          AT91_PIOA 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP        /* PA22 periph A with pullup */
697                                                          AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;      /* PA23 periph A with pullup */
698                                         };
699
700                                         pinctrl_mmc1_slot0_dat1_3: mmc1_slot0_dat1_3-0 {
701                                                 atmel,pins =
702                                                         <AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP        /* PA24 periph A with pullup */
703                                                          AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_PULL_UP        /* PA25 periph A with pullup */
704                                                          AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;      /* PA26 periph A with pullup */
705                                         };
706
707                                         pinctrl_mmc1_slot0_dat4_7: mmc1_slot0_dat4_7-0 {
708                                                 atmel,pins =
709                                                         <AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_PULL_UP        /* PA27 periph A with pullup */
710                                                          AT91_PIOA 28 AT91_PERIPH_A AT91_PINCTRL_PULL_UP        /* PA28 periph A with pullup */
711                                                          AT91_PIOA 29 AT91_PERIPH_A AT91_PINCTRL_PULL_UP        /* PA29 periph A with pullup */
712                                                          AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;      /* PA30 periph A with pullup */
713                                         };
714                                 };
715
716                                 ssc0 {
717                                         pinctrl_ssc0_tx: ssc0_tx-0 {
718                                                 atmel,pins =
719                                                         <AT91_PIOD 0 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PD0 periph A */
720                                                          AT91_PIOD 1 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PD1 periph A */
721                                                          AT91_PIOD 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;  /* PD2 periph A */
722                                         };
723
724                                         pinctrl_ssc0_rx: ssc0_rx-0 {
725                                                 atmel,pins =
726                                                         <AT91_PIOD 3 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PD3 periph A */
727                                                          AT91_PIOD 4 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PD4 periph A */
728                                                          AT91_PIOD 5 AT91_PERIPH_A AT91_PINCTRL_NONE>;  /* PD5 periph A */
729                                         };
730                                 };
731
732                                 ssc1 {
733                                         pinctrl_ssc1_tx: ssc1_tx-0 {
734                                                 atmel,pins =
735                                                         <AT91_PIOD 10 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PD10 periph A */
736                                                          AT91_PIOD 11 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PD11 periph A */
737                                                          AT91_PIOD 12 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD12 periph A */
738                                         };
739
740                                         pinctrl_ssc1_rx: ssc1_rx-0 {
741                                                 atmel,pins =
742                                                         <AT91_PIOD 13 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PD13 periph A */
743                                                          AT91_PIOD 14 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PD14 periph A */
744                                                          AT91_PIOD 15 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD15 periph A */
745                                         };
746                                 };
747
748                                 spi0 {
749                                         pinctrl_spi0: spi0-0 {
750                                                 atmel,pins =
751                                                         <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PB0 periph A SPI0_MISO pin */
752                                                          AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PB1 periph A SPI0_MOSI pin */
753                                                          AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;  /* PB2 periph A SPI0_SPCK pin */
754                                         };
755                                 };
756
757                                 spi1 {
758                                         pinctrl_spi1: spi1-0 {
759                                                 atmel,pins =
760                                                         <AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PB14 periph A SPI1_MISO pin */
761                                                          AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PB15 periph A SPI1_MOSI pin */
762                                                          AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB16 periph A SPI1_SPCK pin */
763                                         };
764                                 };
765
766                                 tcb0 {
767                                         pinctrl_tcb0_tclk0: tcb0_tclk0-0 {
768                                                 atmel,pins = <AT91_PIOD 23 AT91_PERIPH_A AT91_PINCTRL_NONE>;
769                                         };
770
771                                         pinctrl_tcb0_tclk1: tcb0_tclk1-0 {
772                                                 atmel,pins = <AT91_PIOD 29 AT91_PERIPH_A AT91_PINCTRL_NONE>;
773                                         };
774
775                                         pinctrl_tcb0_tclk2: tcb0_tclk2-0 {
776                                                 atmel,pins = <AT91_PIOC 10 AT91_PERIPH_B AT91_PINCTRL_NONE>;
777                                         };
778
779                                         pinctrl_tcb0_tioa0: tcb0_tioa0-0 {
780                                                 atmel,pins = <AT91_PIOD 20 AT91_PERIPH_A AT91_PINCTRL_NONE>;
781                                         };
782
783                                         pinctrl_tcb0_tioa1: tcb0_tioa1-0 {
784                                                 atmel,pins = <AT91_PIOD 21 AT91_PERIPH_A AT91_PINCTRL_NONE>;
785                                         };
786
787                                         pinctrl_tcb0_tioa2: tcb0_tioa2-0 {
788                                                 atmel,pins = <AT91_PIOD 22 AT91_PERIPH_A AT91_PINCTRL_NONE>;
789                                         };
790
791                                         pinctrl_tcb0_tiob0: tcb0_tiob0-0 {
792                                                 atmel,pins = <AT91_PIOD 30 AT91_PERIPH_A AT91_PINCTRL_NONE>;
793                                         };
794
795                                         pinctrl_tcb0_tiob1: tcb0_tiob1-0 {
796                                                 atmel,pins = <AT91_PIOD 31 AT91_PERIPH_A AT91_PINCTRL_NONE>;
797                                         };
798
799                                         pinctrl_tcb0_tiob2: tcb0_tiob2-0 {
800                                                 atmel,pins = <AT91_PIOA 26 AT91_PERIPH_B AT91_PINCTRL_NONE>;
801                                         };
802                                 };
803
804                                 tcb1 {
805                                         pinctrl_tcb1_tclk0: tcb1_tclk0-0 {
806                                                 atmel,pins = <AT91_PIOA 0 AT91_PERIPH_B AT91_PINCTRL_NONE>;
807                                         };
808
809                                         pinctrl_tcb1_tclk1: tcb1_tclk1-0 {
810                                                 atmel,pins = <AT91_PIOA 3 AT91_PERIPH_B AT91_PINCTRL_NONE>;
811                                         };
812
813                                         pinctrl_tcb1_tclk2: tcb1_tclk2-0 {
814                                                 atmel,pins = <AT91_PIOD 9 AT91_PERIPH_B AT91_PINCTRL_NONE>;
815                                         };
816
817                                         pinctrl_tcb1_tioa0: tcb1_tioa0-0 {
818                                                 atmel,pins = <AT91_PIOA 1 AT91_PERIPH_B AT91_PINCTRL_NONE>;
819                                         };
820
821                                         pinctrl_tcb1_tioa1: tcb1_tioa1-0 {
822                                                 atmel,pins = <AT91_PIOA 4 AT91_PERIPH_B AT91_PINCTRL_NONE>;
823                                         };
824
825                                         pinctrl_tcb1_tioa2: tcb1_tioa2-0 {
826                                                 atmel,pins = <AT91_PIOD 7 AT91_PERIPH_B AT91_PINCTRL_NONE>;
827                                         };
828
829                                         pinctrl_tcb1_tiob0: tcb1_tiob0-0 {
830                                                 atmel,pins = <AT91_PIOA 2 AT91_PERIPH_B AT91_PINCTRL_NONE>;
831                                         };
832
833                                         pinctrl_tcb1_tiob1: tcb1_tiob1-0 {
834                                                 atmel,pins = <AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_NONE>;
835                                         };
836
837                                         pinctrl_tcb1_tiob2: tcb1_tiob2-0 {
838                                                 atmel,pins = <AT91_PIOD 8 AT91_PERIPH_B AT91_PINCTRL_NONE>;
839                                         };
840                                 };
841
842                                 fb {
843                                         pinctrl_fb: fb-0 {
844                                                 atmel,pins =
845                                                         <AT91_PIOE 0 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PE0 periph A */
846                                                          AT91_PIOE 2 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PE2 periph A */
847                                                          AT91_PIOE 3 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PE3 periph A */
848                                                          AT91_PIOE 4 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PE4 periph A */
849                                                          AT91_PIOE 5 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PE5 periph A */
850                                                          AT91_PIOE 6 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PE6 periph A */
851                                                          AT91_PIOE 7 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PE7 periph A */
852                                                          AT91_PIOE 8 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PE8 periph A */
853                                                          AT91_PIOE 9 AT91_PERIPH_A AT91_PINCTRL_NONE    /* PE9 periph A */
854                                                          AT91_PIOE 10 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE10 periph A */
855                                                          AT91_PIOE 11 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE11 periph A */
856                                                          AT91_PIOE 12 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE12 periph A */
857                                                          AT91_PIOE 13 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE13 periph A */
858                                                          AT91_PIOE 14 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE14 periph A */
859                                                          AT91_PIOE 15 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE15 periph A */
860                                                          AT91_PIOE 16 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE16 periph A */
861                                                          AT91_PIOE 17 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE17 periph A */
862                                                          AT91_PIOE 18 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE18 periph A */
863                                                          AT91_PIOE 19 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE19 periph A */
864                                                          AT91_PIOE 20 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE20 periph A */
865                                                          AT91_PIOE 21 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE21 periph A */
866                                                          AT91_PIOE 22 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE22 periph A */
867                                                          AT91_PIOE 23 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE23 periph A */
868                                                          AT91_PIOE 24 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE24 periph A */
869                                                          AT91_PIOE 25 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE25 periph A */
870                                                          AT91_PIOE 26 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE26 periph A */
871                                                          AT91_PIOE 27 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE27 periph A */
872                                                          AT91_PIOE 28 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE28 periph A */
873                                                          AT91_PIOE 29 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PE29 periph A */
874                                                          AT91_PIOE 30 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PE30 periph A */
875                                         };
876                                 };
877
878                                 pioA: gpio@fffff200 {
879                                         compatible = "atmel,at91rm9200-gpio";
880                                         reg = <0xfffff200 0x200>;
881                                         interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
882                                         #gpio-cells = <2>;
883                                         gpio-controller;
884                                         interrupt-controller;
885                                         #interrupt-cells = <2>;
886                                         clocks = <&pioA_clk>;
887                                 };
888
889                                 pioB: gpio@fffff400 {
890                                         compatible = "atmel,at91rm9200-gpio";
891                                         reg = <0xfffff400 0x200>;
892                                         interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
893                                         #gpio-cells = <2>;
894                                         gpio-controller;
895                                         interrupt-controller;
896                                         #interrupt-cells = <2>;
897                                         clocks = <&pioB_clk>;
898                                 };
899
900                                 pioC: gpio@fffff600 {
901                                         compatible = "atmel,at91rm9200-gpio";
902                                         reg = <0xfffff600 0x200>;
903                                         interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>;
904                                         #gpio-cells = <2>;
905                                         gpio-controller;
906                                         interrupt-controller;
907                                         #interrupt-cells = <2>;
908                                         clocks = <&pioC_clk>;
909                                 };
910
911                                 pioD: gpio@fffff800 {
912                                         compatible = "atmel,at91rm9200-gpio";
913                                         reg = <0xfffff800 0x200>;
914                                         interrupts = <5 IRQ_TYPE_LEVEL_HIGH 1>;
915                                         #gpio-cells = <2>;
916                                         gpio-controller;
917                                         interrupt-controller;
918                                         #interrupt-cells = <2>;
919                                         clocks = <&pioDE_clk>;
920                                 };
921
922                                 pioE: gpio@fffffa00 {
923                                         compatible = "atmel,at91rm9200-gpio";
924                                         reg = <0xfffffa00 0x200>;
925                                         interrupts = <5 IRQ_TYPE_LEVEL_HIGH 1>;
926                                         #gpio-cells = <2>;
927                                         gpio-controller;
928                                         interrupt-controller;
929                                         #interrupt-cells = <2>;
930                                         clocks = <&pioDE_clk>;
931                                 };
932                         };
933
934                         dbgu: serial@ffffee00 {
935                                 compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
936                                 reg = <0xffffee00 0x200>;
937                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
938                                 pinctrl-names = "default";
939                                 pinctrl-0 = <&pinctrl_dbgu>;
940                                 clocks = <&mck>;
941                                 clock-names = "usart";
942                                 status = "disabled";
943                         };
944
945                         usart0: serial@fff8c000 {
946                                 compatible = "atmel,at91sam9260-usart";
947                                 reg = <0xfff8c000 0x200>;
948                                 interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>;
949                                 atmel,use-dma-rx;
950                                 atmel,use-dma-tx;
951                                 pinctrl-names = "default";
952                                 pinctrl-0 = <&pinctrl_usart0>;
953                                 clocks = <&usart0_clk>;
954                                 clock-names = "usart";
955                                 status = "disabled";
956                         };
957
958                         usart1: serial@fff90000 {
959                                 compatible = "atmel,at91sam9260-usart";
960                                 reg = <0xfff90000 0x200>;
961                                 interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>;
962                                 atmel,use-dma-rx;
963                                 atmel,use-dma-tx;
964                                 pinctrl-names = "default";
965                                 pinctrl-0 = <&pinctrl_usart1>;
966                                 clocks = <&usart1_clk>;
967                                 clock-names = "usart";
968                                 status = "disabled";
969                         };
970
971                         usart2: serial@fff94000 {
972                                 compatible = "atmel,at91sam9260-usart";
973                                 reg = <0xfff94000 0x200>;
974                                 interrupts = <9 IRQ_TYPE_LEVEL_HIGH 5>;
975                                 atmel,use-dma-rx;
976                                 atmel,use-dma-tx;
977                                 pinctrl-names = "default";
978                                 pinctrl-0 = <&pinctrl_usart2>;
979                                 clocks = <&usart2_clk>;
980                                 clock-names = "usart";
981                                 status = "disabled";
982                         };
983
984                         usart3: serial@fff98000 {
985                                 compatible = "atmel,at91sam9260-usart";
986                                 reg = <0xfff98000 0x200>;
987                                 interrupts = <10 IRQ_TYPE_LEVEL_HIGH 5>;
988                                 atmel,use-dma-rx;
989                                 atmel,use-dma-tx;
990                                 pinctrl-names = "default";
991                                 pinctrl-0 = <&pinctrl_usart3>;
992                                 clocks = <&usart3_clk>;
993                                 clock-names = "usart";
994                                 status = "disabled";
995                         };
996
997                         macb0: ethernet@fffbc000 {
998                                 compatible = "cdns,at91sam9260-macb", "cdns,macb";
999                                 reg = <0xfffbc000 0x100>;
1000                                 interrupts = <25 IRQ_TYPE_LEVEL_HIGH 3>;
1001                                 pinctrl-names = "default";
1002                                 pinctrl-0 = <&pinctrl_macb_rmii>;
1003                                 clocks = <&macb0_clk>, <&macb0_clk>;
1004                                 clock-names = "hclk", "pclk";
1005                                 status = "disabled";
1006                         };
1007
1008                         trng@fffcc000 {
1009                                 compatible = "atmel,at91sam9g45-trng";
1010                                 reg = <0xfffcc000 0x100>;
1011                                 interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>;
1012                                 clocks = <&trng_clk>;
1013                         };
1014
1015                         i2c0: i2c@fff84000 {
1016                                 compatible = "atmel,at91sam9g10-i2c";
1017                                 reg = <0xfff84000 0x100>;
1018                                 interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>;
1019                                 pinctrl-names = "default";
1020                                 pinctrl-0 = <&pinctrl_i2c0>;
1021                                 #address-cells = <1>;
1022                                 #size-cells = <0>;
1023                                 clocks = <&twi0_clk>;
1024                                 status = "disabled";
1025                         };
1026
1027                         i2c1: i2c@fff88000 {
1028                                 compatible = "atmel,at91sam9g10-i2c";
1029                                 reg = <0xfff88000 0x100>;
1030                                 interrupts = <13 IRQ_TYPE_LEVEL_HIGH 6>;
1031                                 pinctrl-names = "default";
1032                                 pinctrl-0 = <&pinctrl_i2c1>;
1033                                 #address-cells = <1>;
1034                                 #size-cells = <0>;
1035                                 clocks = <&twi1_clk>;
1036                                 status = "disabled";
1037                         };
1038
1039                         ssc0: ssc@fff9c000 {
1040                                 compatible = "atmel,at91sam9g45-ssc";
1041                                 reg = <0xfff9c000 0x4000>;
1042                                 interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>;
1043                                 pinctrl-names = "default";
1044                                 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
1045                                 clocks = <&ssc0_clk>;
1046                                 clock-names = "pclk";
1047                                 status = "disabled";
1048                         };
1049
1050                         ssc1: ssc@fffa0000 {
1051                                 compatible = "atmel,at91sam9g45-ssc";
1052                                 reg = <0xfffa0000 0x4000>;
1053                                 interrupts = <17 IRQ_TYPE_LEVEL_HIGH 5>;
1054                                 pinctrl-names = "default";
1055                                 pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>;
1056                                 clocks = <&ssc1_clk>;
1057                                 clock-names = "pclk";
1058                                 status = "disabled";
1059                         };
1060
1061                         ac97: sound@fffac000 {
1062                                 compatible = "atmel,at91sam9263-ac97c";
1063                                 reg = <0xfffac000 0x4000>;
1064                                 interrupts = <24 IRQ_TYPE_LEVEL_HIGH 4>;
1065                                 pinctrl-names = "default";
1066                                 pinctrl-0 = <&pinctrl_ac97>;
1067                                 clocks = <&ac97_clk>;
1068                                 clock-names = "ac97_clk";
1069                                 status = "disabled";
1070                         };
1071
1072                         adc0: adc@fffb0000 {
1073                                 #address-cells = <1>;
1074                                 #size-cells = <0>;
1075                                 compatible = "atmel,at91sam9g45-adc";
1076                                 reg = <0xfffb0000 0x100>;
1077                                 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
1078                                 clocks = <&adc_clk>, <&adc_op_clk>;
1079                                 clock-names = "adc_clk", "adc_op_clk";
1080                                 atmel,adc-channels-used = <0xff>;
1081                                 atmel,adc-vref = <3300>;
1082                                 atmel,adc-startup-time = <40>;
1083                                 atmel,adc-res = <8 10>;
1084                                 atmel,adc-res-names = "lowres", "highres";
1085                                 atmel,adc-use-res = "highres";
1086
1087                                 trigger0 {
1088                                         trigger-name = "external-rising";
1089                                         trigger-value = <0x1>;
1090                                         trigger-external;
1091                                 };
1092                                 trigger1 {
1093                                         trigger-name = "external-falling";
1094                                         trigger-value = <0x2>;
1095                                         trigger-external;
1096                                 };
1097
1098                                 trigger2 {
1099                                         trigger-name = "external-any";
1100                                         trigger-value = <0x3>;
1101                                         trigger-external;
1102                                 };
1103
1104                                 trigger3 {
1105                                         trigger-name = "continuous";
1106                                         trigger-value = <0x6>;
1107                                 };
1108                         };
1109
1110                         isi@fffb4000 {
1111                                 compatible = "atmel,at91sam9g45-isi";
1112                                 reg = <0xfffb4000 0x4000>;
1113                                 interrupts = <26 IRQ_TYPE_LEVEL_HIGH 5>;
1114                                 clocks = <&isi_clk>;
1115                                 clock-names = "isi_clk";
1116                                 status = "disabled";
1117                                 port {
1118                                         #address-cells = <1>;
1119                                         #size-cells = <0>;
1120                                 };
1121                         };
1122
1123                         pwm0: pwm@fffb8000 {
1124                                 compatible = "atmel,at91sam9rl-pwm";
1125                                 reg = <0xfffb8000 0x300>;
1126                                 interrupts = <19 IRQ_TYPE_LEVEL_HIGH 4>;
1127                                 #pwm-cells = <3>;
1128                                 clocks = <&pwm_clk>;
1129                                 status = "disabled";
1130                         };
1131
1132                         mmc0: mmc@fff80000 {
1133                                 compatible = "atmel,hsmci";
1134                                 reg = <0xfff80000 0x600>;
1135                                 interrupts = <11 IRQ_TYPE_LEVEL_HIGH 0>;
1136                                 pinctrl-names = "default";
1137                                 dmas = <&dma 1 AT91_DMA_CFG_PER_ID(0)>;
1138                                 dma-names = "rxtx";
1139                                 #address-cells = <1>;
1140                                 #size-cells = <0>;
1141                                 clocks = <&mci0_clk>;
1142                                 clock-names = "mci_clk";
1143                                 status = "disabled";
1144                         };
1145
1146                         mmc1: mmc@fffd0000 {
1147                                 compatible = "atmel,hsmci";
1148                                 reg = <0xfffd0000 0x600>;
1149                                 interrupts = <29 IRQ_TYPE_LEVEL_HIGH 0>;
1150                                 pinctrl-names = "default";
1151                                 dmas = <&dma 1 AT91_DMA_CFG_PER_ID(13)>;
1152                                 dma-names = "rxtx";
1153                                 #address-cells = <1>;
1154                                 #size-cells = <0>;
1155                                 clocks = <&mci1_clk>;
1156                                 clock-names = "mci_clk";
1157                                 status = "disabled";
1158                         };
1159
1160                         watchdog@fffffd40 {
1161                                 compatible = "atmel,at91sam9260-wdt";
1162                                 reg = <0xfffffd40 0x10>;
1163                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
1164                                 clocks = <&clk32k>;
1165                                 atmel,watchdog-type = "hardware";
1166                                 atmel,reset-type = "all";
1167                                 atmel,dbg-halt;
1168                                 status = "disabled";
1169                         };
1170
1171                         spi0: spi@fffa4000 {
1172                                 #address-cells = <1>;
1173                                 #size-cells = <0>;
1174                                 compatible = "atmel,at91rm9200-spi";
1175                                 reg = <0xfffa4000 0x200>;
1176                                 interrupts = <14 4 3>;
1177                                 pinctrl-names = "default";
1178                                 pinctrl-0 = <&pinctrl_spi0>;
1179                                 clocks = <&spi0_clk>;
1180                                 clock-names = "spi_clk";
1181                                 status = "disabled";
1182                         };
1183
1184                         spi1: spi@fffa8000 {
1185                                 #address-cells = <1>;
1186                                 #size-cells = <0>;
1187                                 compatible = "atmel,at91rm9200-spi";
1188                                 reg = <0xfffa8000 0x200>;
1189                                 interrupts = <15 4 3>;
1190                                 pinctrl-names = "default";
1191                                 pinctrl-0 = <&pinctrl_spi1>;
1192                                 clocks = <&spi1_clk>;
1193                                 clock-names = "spi_clk";
1194                                 status = "disabled";
1195                         };
1196
1197                         usb2: gadget@fff78000 {
1198                                 compatible = "atmel,at91sam9g45-udc";
1199                                 reg = <0x00600000 0x80000
1200                                        0xfff78000 0x400>;
1201                                 interrupts = <27 IRQ_TYPE_LEVEL_HIGH 0>;
1202                                 clocks = <&udphs_clk>, <&utmi>;
1203                                 clock-names = "pclk", "hclk";
1204                                 status = "disabled";
1205                         };
1206
1207                         clk32k: sckc@fffffd50 {
1208                                 compatible = "atmel,at91sam9x5-sckc";
1209                                 reg = <0xfffffd50 0x4>;
1210                                 clocks = <&slow_xtal>;
1211                                 #clock-cells = <0>;
1212                         };
1213
1214                         rtc@fffffd20 {
1215                                 compatible = "atmel,at91sam9260-rtt";
1216                                 reg = <0xfffffd20 0x10>;
1217                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
1218                                 clocks = <&clk32k>;
1219                                 status = "disabled";
1220                         };
1221
1222                         rtc@fffffdb0 {
1223                                 compatible = "atmel,at91rm9200-rtc";
1224                                 reg = <0xfffffdb0 0x30>;
1225                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
1226                                 clocks = <&clk32k>;
1227                                 status = "disabled";
1228                         };
1229
1230                         gpbr: syscon@fffffd60 {
1231                                 compatible = "atmel,at91sam9260-gpbr", "syscon";
1232                                 reg = <0xfffffd60 0x10>;
1233                                 status = "disabled";
1234                         };
1235                 };
1236
1237                 fb0: fb@500000 {
1238                         compatible = "atmel,at91sam9g45-lcdc";
1239                         reg = <0x00500000 0x1000>;
1240                         interrupts = <23 IRQ_TYPE_LEVEL_HIGH 3>;
1241                         pinctrl-names = "default";
1242                         pinctrl-0 = <&pinctrl_fb>;
1243                         clocks = <&lcd_clk>, <&lcd_clk>;
1244                         clock-names = "hclk", "lcdc_clk";
1245                         status = "disabled";
1246                 };
1247
1248                 usb0: ohci@700000 {
1249                         compatible = "atmel,at91rm9200-ohci", "usb-ohci";
1250                         reg = <0x00700000 0x100000>;
1251                         interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
1252                         clocks = <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
1253                         clock-names = "ohci_clk", "hclk", "uhpck";
1254                         status = "disabled";
1255                 };
1256
1257                 usb1: ehci@800000 {
1258                         compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
1259                         reg = <0x00800000 0x100000>;
1260                         interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
1261                         clocks = <&utmi>, <&uhphs_clk>;
1262                         clock-names = "usb_clk", "ehci_clk";
1263                         status = "disabled";
1264                 };
1265
1266                 ebi: ebi@10000000 {
1267                         compatible = "atmel,at91sam9g45-ebi";
1268                         #address-cells = <2>;
1269                         #size-cells = <1>;
1270                         atmel,smc = <&smc>;
1271                         atmel,matrix = <&matrix>;
1272                         reg = <0x10000000 0x80000000>;
1273                         ranges = <0x0 0x0 0x10000000 0x10000000
1274                                   0x1 0x0 0x20000000 0x10000000
1275                                   0x2 0x0 0x30000000 0x10000000
1276                                   0x3 0x0 0x40000000 0x10000000
1277                                   0x4 0x0 0x50000000 0x10000000
1278                                   0x5 0x0 0x60000000 0x10000000>;
1279                         clocks = <&mck>;
1280                         status = "disabled";
1281
1282                         nand_controller: nand-controller {
1283                                 compatible = "atmel,at91sam9g45-nand-controller";
1284                                 #address-cells = <2>;
1285                                 #size-cells = <1>;
1286                                 ranges;
1287                                 status = "disabled";
1288                         };
1289                 };
1290         };
1291
1292         i2c-gpio-0 {
1293                 compatible = "i2c-gpio";
1294                 gpios = <&pioA 20 GPIO_ACTIVE_HIGH /* sda */
1295                          &pioA 21 GPIO_ACTIVE_HIGH /* scl */
1296                         >;
1297                 i2c-gpio,sda-open-drain;
1298                 i2c-gpio,scl-open-drain;
1299                 i2c-gpio,delay-us = <5>;        /* ~100 kHz */
1300                 #address-cells = <1>;
1301                 #size-cells = <0>;
1302                 status = "disabled";
1303         };
1304 };