ARM: dts: at91: at91sam9rl: fix ADC triggers
[linux-2.6-microblaze.git] / arch / arm / boot / dts / at91sam9rl.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * at91sam9rl.dtsi - Device Tree Include file for AT91SAM9RL family SoC
4  *
5  *  Copyright (C) 2014 Microchip
6  *  Alexandre Belloni <alexandre.belloni@free-electrons.com>
7  */
8
9 #include <dt-bindings/pinctrl/at91.h>
10 #include <dt-bindings/clock/at91.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/pwm/pwm.h>
14
15 / {
16         #address-cells = <1>;
17         #size-cells = <1>;
18         model = "Atmel AT91SAM9RL family SoC";
19         compatible = "atmel,at91sam9rl", "atmel,at91sam9";
20         interrupt-parent = <&aic>;
21
22         aliases {
23                 serial0 = &dbgu;
24                 serial1 = &usart0;
25                 serial2 = &usart1;
26                 serial3 = &usart2;
27                 serial4 = &usart3;
28                 gpio0 = &pioA;
29                 gpio1 = &pioB;
30                 gpio2 = &pioC;
31                 gpio3 = &pioD;
32                 tcb0 = &tcb0;
33                 i2c0 = &i2c0;
34                 i2c1 = &i2c1;
35                 ssc0 = &ssc0;
36                 ssc1 = &ssc1;
37                 pwm0 = &pwm0;
38         };
39
40         cpus {
41                 #address-cells = <1>;
42                 #size-cells = <0>;
43
44                 cpu@0 {
45                         compatible = "arm,arm926ej-s";
46                         device_type = "cpu";
47                         reg = <0>;
48                 };
49         };
50
51         memory@20000000 {
52                 device_type = "memory";
53                 reg = <0x20000000 0x04000000>;
54         };
55
56         clocks {
57                 slow_xtal: slow_xtal {
58                         compatible = "fixed-clock";
59                         #clock-cells = <0>;
60                         clock-frequency = <0>;
61                 };
62
63                 main_xtal: main_xtal {
64                         compatible = "fixed-clock";
65                         #clock-cells = <0>;
66                         clock-frequency = <0>;
67                 };
68
69                 adc_op_clk: adc_op_clk{
70                         compatible = "fixed-clock";
71                         #clock-cells = <0>;
72                         clock-frequency = <1000000>;
73                 };
74         };
75
76         sram: sram@300000 {
77                 compatible = "mmio-sram";
78                 reg = <0x00300000 0x10000>;
79                 #address-cells = <1>;
80                 #size-cells = <1>;
81                 ranges = <0 0x00300000 0x10000>;
82         };
83
84         ahb {
85                 compatible = "simple-bus";
86                 #address-cells = <1>;
87                 #size-cells = <1>;
88                 ranges;
89
90                 fb0: fb@500000 {
91                         compatible = "atmel,at91sam9rl-lcdc";
92                         reg = <0x00500000 0x1000>;
93                         interrupts = <23 IRQ_TYPE_LEVEL_HIGH 3>;
94                         pinctrl-names = "default";
95                         pinctrl-0 = <&pinctrl_fb>;
96                         clocks = <&pmc PMC_TYPE_PERIPHERAL 23>, <&pmc PMC_TYPE_PERIPHERAL 23>;
97                         clock-names = "hclk", "lcdc_clk";
98                         status = "disabled";
99                 };
100
101                 ebi: ebi@10000000 {
102                         compatible = "atmel,at91sam9rl-ebi";
103                         #address-cells = <2>;
104                         #size-cells = <1>;
105                         atmel,smc = <&smc>;
106                         atmel,matrix = <&matrix>;
107                         reg = <0x10000000 0x80000000>;
108                         ranges = <0x0 0x0 0x10000000 0x10000000
109                                   0x1 0x0 0x20000000 0x10000000
110                                   0x2 0x0 0x30000000 0x10000000
111                                   0x3 0x0 0x40000000 0x10000000
112                                   0x4 0x0 0x50000000 0x10000000
113                                   0x5 0x0 0x60000000 0x10000000>;
114                         clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
115                         status = "disabled";
116
117                         nand_controller: nand-controller {
118                                 compatible = "atmel,at91sam9g45-nand-controller";
119                                 #address-cells = <2>;
120                                 #size-cells = <1>;
121                                 ranges;
122                                 status = "disabled";
123                         };
124                 };
125
126                 apb {
127                         compatible = "simple-bus";
128                         #address-cells = <1>;
129                         #size-cells = <1>;
130                         ranges;
131
132                         tcb0: timer@fffa0000 {
133                                 compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
134                                 #address-cells = <1>;
135                                 #size-cells = <0>;
136                                 reg = <0xfffa0000 0x100>;
137                                 interrupts = <16 IRQ_TYPE_LEVEL_HIGH 0>,
138                                              <17 IRQ_TYPE_LEVEL_HIGH 0>,
139                                              <18 IRQ_TYPE_LEVEL_HIGH 0>;
140                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 16>, <&pmc PMC_TYPE_PERIPHERAL 17>, <&pmc PMC_TYPE_PERIPHERAL 18>, <&clk32k>;
141                                 clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
142                         };
143
144                         mmc0: mmc@fffa4000 {
145                                 compatible = "atmel,hsmci";
146                                 reg = <0xfffa4000 0x600>;
147                                 interrupts = <10 IRQ_TYPE_LEVEL_HIGH 0>;
148                                 #address-cells = <1>;
149                                 #size-cells = <0>;
150                                 pinctrl-names = "default";
151                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 10>;
152                                 clock-names = "mci_clk";
153                                 status = "disabled";
154                         };
155
156                         i2c0: i2c@fffa8000 {
157                                 compatible = "atmel,at91sam9260-i2c";
158                                 reg = <0xfffa8000 0x100>;
159                                 interrupts = <11 IRQ_TYPE_LEVEL_HIGH 6>;
160                                 #address-cells = <1>;
161                                 #size-cells = <0>;
162                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
163                                 status = "disabled";
164                         };
165
166                         i2c1: i2c@fffac000 {
167                                 compatible = "atmel,at91sam9260-i2c";
168                                 reg = <0xfffac000 0x100>;
169                                 interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>;
170                                 #address-cells = <1>;
171                                 #size-cells = <0>;
172                                 status = "disabled";
173                         };
174
175                         usart0: serial@fffb0000 {
176                                 compatible = "atmel,at91sam9260-usart";
177                                 reg = <0xfffb0000 0x200>;
178                                 interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>;
179                                 atmel,use-dma-rx;
180                                 atmel,use-dma-tx;
181                                 pinctrl-names = "default";
182                                 pinctrl-0 = <&pinctrl_usart0>;
183                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
184                                 clock-names = "usart";
185                                 status = "disabled";
186                         };
187
188                         usart1: serial@fffb4000 {
189                                 compatible = "atmel,at91sam9260-usart";
190                                 reg = <0xfffb4000 0x200>;
191                                 interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>;
192                                 atmel,use-dma-rx;
193                                 atmel,use-dma-tx;
194                                 pinctrl-names = "default";
195                                 pinctrl-0 = <&pinctrl_usart1>;
196                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
197                                 clock-names = "usart";
198                                 status = "disabled";
199                         };
200
201                         usart2: serial@fffb8000 {
202                                 compatible = "atmel,at91sam9260-usart";
203                                 reg = <0xfffb8000 0x200>;
204                                 interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>;
205                                 atmel,use-dma-rx;
206                                 atmel,use-dma-tx;
207                                 pinctrl-names = "default";
208                                 pinctrl-0 = <&pinctrl_usart2>;
209                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
210                                 clock-names = "usart";
211                                 status = "disabled";
212                         };
213
214                         usart3: serial@fffbc000 {
215                                 compatible = "atmel,at91sam9260-usart";
216                                 reg = <0xfffbc000 0x200>;
217                                 interrupts = <9 IRQ_TYPE_LEVEL_HIGH 5>;
218                                 atmel,use-dma-rx;
219                                 atmel,use-dma-tx;
220                                 pinctrl-names = "default";
221                                 pinctrl-0 = <&pinctrl_usart3>;
222                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
223                                 clock-names = "usart";
224                                 status = "disabled";
225                         };
226
227                         ssc0: ssc@fffc0000 {
228                                 compatible = "atmel,at91sam9rl-ssc";
229                                 reg = <0xfffc0000 0x4000>;
230                                 interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>;
231                                 pinctrl-names = "default";
232                                 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
233                                 status = "disabled";
234                         };
235
236                         ssc1: ssc@fffc4000 {
237                                 compatible = "atmel,at91sam9rl-ssc";
238                                 reg = <0xfffc4000 0x4000>;
239                                 interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>;
240                                 pinctrl-names = "default";
241                                 pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>;
242                                 status = "disabled";
243                         };
244
245                         pwm0: pwm@fffc8000 {
246                                 compatible = "atmel,at91sam9rl-pwm";
247                                 reg = <0xfffc8000 0x300>;
248                                 interrupts = <19 IRQ_TYPE_LEVEL_HIGH 4>;
249                                 #pwm-cells = <3>;
250                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 19>;
251                                 clock-names = "pwm_clk";
252                                 status = "disabled";
253                         };
254
255                         spi0: spi@fffcc000 {
256                                 #address-cells = <1>;
257                                 #size-cells = <0>;
258                                 compatible = "atmel,at91rm9200-spi";
259                                 reg = <0xfffcc000 0x200>;
260                                 interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>;
261                                 pinctrl-names = "default";
262                                 pinctrl-0 = <&pinctrl_spi0>;
263                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
264                                 clock-names = "spi_clk";
265                                 status = "disabled";
266                         };
267
268                         adc0: adc@fffd0000 {
269                                 #address-cells = <1>;
270                                 #size-cells = <0>;
271                                 compatible = "atmel,at91sam9rl-adc";
272                                 reg = <0xfffd0000 0x100>;
273                                 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
274                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 20>, <&adc_op_clk>;
275                                 clock-names = "adc_clk", "adc_op_clk";
276                                 atmel,adc-use-external-triggers;
277                                 atmel,adc-channels-used = <0x3f>;
278                                 atmel,adc-vref = <3300>;
279                                 atmel,adc-startup-time = <40>;
280                                 atmel,adc-res = <8 10>;
281                                 atmel,adc-res-names = "lowres", "highres";
282                                 atmel,adc-use-res = "highres";
283
284                                 trigger0 {
285                                         trigger-name = "external-rising";
286                                         trigger-value = <0x1>;
287                                         trigger-external;
288                                 };
289
290                                 trigger1 {
291                                         trigger-name = "external-falling";
292                                         trigger-value = <0x2>;
293                                         trigger-external;
294                                 };
295
296                                 trigger2 {
297                                         trigger-name = "external-any";
298                                         trigger-value = <0x3>;
299                                         trigger-external;
300                                 };
301
302                                 trigger3 {
303                                         trigger-name = "continuous";
304                                         trigger-value = <0x6>;
305                                 };
306                         };
307
308                         usb0: gadget@fffd4000 {
309                                 compatible = "atmel,at91sam9rl-udc";
310                                 reg = <0x00600000 0x100000>,
311                                       <0xfffd4000 0x4000>;
312                                 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
313                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
314                                 clock-names = "pclk", "hclk";
315                                 status = "disabled";
316                         };
317
318                         dma0: dma-controller@ffffe600 {
319                                 compatible = "atmel,at91sam9rl-dma";
320                                 reg = <0xffffe600 0x200>;
321                                 interrupts = <21 IRQ_TYPE_LEVEL_HIGH 0>;
322                                 #dma-cells = <2>;
323                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 21>;
324                                 clock-names = "dma_clk";
325                         };
326
327                         ramc0: ramc@ffffea00 {
328                                 compatible = "atmel,at91sam9260-sdramc";
329                                 reg = <0xffffea00 0x200>;
330                         };
331
332                         smc: smc@ffffec00 {
333                                 compatible = "atmel,at91sam9260-smc", "syscon";
334                                 reg = <0xffffec00 0x200>;
335                         };
336
337                         matrix: matrix@ffffee00 {
338                                 compatible = "atmel,at91sam9rl-matrix", "syscon";
339                                 reg = <0xffffee00 0x200>;
340                         };
341
342                         aic: interrupt-controller@fffff000 {
343                                 #interrupt-cells = <3>;
344                                 compatible = "atmel,at91rm9200-aic";
345                                 interrupt-controller;
346                                 reg = <0xfffff000 0x200>;
347                                 atmel,external-irqs = <31>;
348                         };
349
350                         dbgu: serial@fffff200 {
351                                 compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
352                                 reg = <0xfffff200 0x200>;
353                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
354                                 pinctrl-names = "default";
355                                 pinctrl-0 = <&pinctrl_dbgu>;
356                                 clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
357                                 clock-names = "usart";
358                                 status = "disabled";
359                         };
360
361                         pinctrl@fffff400 {
362                                 #address-cells = <1>;
363                                 #size-cells = <1>;
364                                 compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
365                                 ranges = <0xfffff400 0xfffff400 0x800>;
366
367                                 atmel,mux-mask =
368                                         /*    A         B     */
369                                         <0xffffffff 0xe05c6738>,  /* pioA */
370                                         <0xffffffff 0x0000c780>,  /* pioB */
371                                         <0xffffffff 0xe3ffff0e>,  /* pioC */
372                                         <0x003fffff 0x0001ff3c>;  /* pioD */
373
374                                 /* shared pinctrl settings */
375                                 adc0 {
376                                         pinctrl_adc0_ts: adc0_ts-0 {
377                                                 atmel,pins =
378                                                         <AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE>,
379                                                         <AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_NONE>,
380                                                         <AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_NONE>,
381                                                         <AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_NONE>;
382                                         };
383
384                                         pinctrl_adc0_ad0: adc0_ad0-0 {
385                                                 atmel,pins = <AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE>;
386                                         };
387
388                                         pinctrl_adc0_ad1: adc0_ad1-0 {
389                                                 atmel,pins = <AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_NONE>;
390                                         };
391
392                                         pinctrl_adc0_ad2: adc0_ad2-0 {
393                                                 atmel,pins = <AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_NONE>;
394                                         };
395
396                                         pinctrl_adc0_ad3: adc0_ad3-0 {
397                                                 atmel,pins = <AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_NONE>;
398                                         };
399
400                                         pinctrl_adc0_ad4: adc0_ad4-0 {
401                                                 atmel,pins = <AT91_PIOD 6 AT91_PERIPH_A AT91_PINCTRL_NONE>;
402                                         };
403
404                                         pinctrl_adc0_ad5: adc0_ad5-0 {
405                                                 atmel,pins = <AT91_PIOD 7 AT91_PERIPH_A AT91_PINCTRL_NONE>;
406                                         };
407
408                                         pinctrl_adc0_adtrg: adc0_adtrg-0 {
409                                                 atmel,pins = <AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE>;
410                                         };
411                                 };
412
413                                 dbgu {
414                                         pinctrl_dbgu: dbgu-0 {
415                                                 atmel,pins =
416                                                         <AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
417                                                         <AT91_PIOA 22 AT91_PERIPH_A AT91_PINCTRL_NONE>;
418                                         };
419                                 };
420
421                                 ebi {
422                                         pinctrl_ebi_addr_nand: ebi-addr-0 {
423                                                 atmel,pins =
424                                                         <AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE>,
425                                                         <AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE>;
426                                         };
427                                 };
428
429                                 fb {
430                                         pinctrl_fb: fb-0 {
431                                                 atmel,pins =
432                                                         <AT91_PIOC 1 AT91_PERIPH_B AT91_PINCTRL_NONE>,
433                                                         <AT91_PIOC 3 AT91_PERIPH_A AT91_PINCTRL_NONE>,
434                                                         <AT91_PIOC 5 AT91_PERIPH_A AT91_PINCTRL_NONE>,
435                                                         <AT91_PIOC 6 AT91_PERIPH_A AT91_PINCTRL_NONE>,
436                                                         <AT91_PIOC 7 AT91_PERIPH_A AT91_PINCTRL_NONE>,
437                                                         <AT91_PIOC 9 AT91_PERIPH_B AT91_PINCTRL_NONE>,
438                                                         <AT91_PIOC 10 AT91_PERIPH_B AT91_PINCTRL_NONE>,
439                                                         <AT91_PIOC 11 AT91_PERIPH_B AT91_PINCTRL_NONE>,
440                                                         <AT91_PIOC 12 AT91_PERIPH_B AT91_PINCTRL_NONE>,
441                                                         <AT91_PIOC 13 AT91_PERIPH_B AT91_PINCTRL_NONE>,
442                                                         <AT91_PIOC 15 AT91_PERIPH_B AT91_PINCTRL_NONE>,
443                                                         <AT91_PIOC 16 AT91_PERIPH_B AT91_PINCTRL_NONE>,
444                                                         <AT91_PIOC 17 AT91_PERIPH_B AT91_PINCTRL_NONE>,
445                                                         <AT91_PIOC 18 AT91_PERIPH_B AT91_PINCTRL_NONE>,
446                                                         <AT91_PIOC 19 AT91_PERIPH_B AT91_PINCTRL_NONE>,
447                                                         <AT91_PIOC 20 AT91_PERIPH_B AT91_PINCTRL_NONE>,
448                                                         <AT91_PIOC 21 AT91_PERIPH_B AT91_PINCTRL_NONE>,
449                                                         <AT91_PIOC 22 AT91_PERIPH_B AT91_PINCTRL_NONE>,
450                                                         <AT91_PIOC 23 AT91_PERIPH_B AT91_PINCTRL_NONE>,
451                                                         <AT91_PIOC 24 AT91_PERIPH_B AT91_PINCTRL_NONE>,
452                                                         <AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE>;
453                                         };
454                                 };
455
456                                 i2c_gpio0 {
457                                         pinctrl_i2c_gpio0: i2c_gpio0-0 {
458                                                 atmel,pins =
459                                                         <AT91_PIOA 23 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>,
460                                                         <AT91_PIOA 24 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;
461                                         };
462                                 };
463
464                                 i2c_gpio1 {
465                                         pinctrl_i2c_gpio1: i2c_gpio1-0 {
466                                                 atmel,pins =
467                                                         <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>,
468                                                         <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;
469                                         };
470                                 };
471
472                                 mmc0 {
473                                         pinctrl_mmc0_clk: mmc0_clk-0 {
474                                                 atmel,pins =
475                                                         <AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;
476                                         };
477
478                                         pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 {
479                                                 atmel,pins =
480                                                         <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
481                                                         <AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
482                                         };
483
484                                         pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
485                                                 atmel,pins =
486                                                         <AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
487                                                         <AT91_PIOA 4 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
488                                                         <AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
489                                         };
490                                 };
491
492                                 nand {
493                                         pinctrl_nand_rb: nand-rb-0 {
494                                                 atmel,pins =
495                                                         <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
496                                         };
497
498                                         pinctrl_nand_cs: nand-cs-0 {
499                                                 atmel,pins =
500                                                         <AT91_PIOB 6 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
501                                         };
502
503                                         pinctrl_nand_oe_we: nand-oe-we-0 {
504                                                 atmel,pins =
505                                                         <AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE>,
506                                                         <AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE>;
507                                         };
508                                 };
509
510                                 pwm0 {
511                                         pinctrl_pwm0_pwm0_0: pwm0_pwm0-0 {
512                                                 atmel,pins = <AT91_PIOB 8 AT91_PERIPH_B AT91_PINCTRL_NONE>;
513                                         };
514
515                                         pinctrl_pwm0_pwm0_1: pwm0_pwm0-1 {
516                                                 atmel,pins = <AT91_PIOC 2 AT91_PERIPH_B AT91_PINCTRL_NONE>;
517                                         };
518
519                                         pinctrl_pwm0_pwm0_2: pwm0_pwm0-2 {
520                                                 atmel,pins = <AT91_PIOD 14 AT91_PERIPH_B AT91_PINCTRL_NONE>;
521                                         };
522
523                                         pinctrl_pwm0_pwm1_0: pwm0_pwm1-0 {
524                                                 atmel,pins = <AT91_PIOB 9 AT91_PERIPH_B AT91_PINCTRL_NONE>;
525                                         };
526
527                                         pinctrl_pwm0_pwm1_1: pwm0_pwm1-1 {
528                                                 atmel,pins = <AT91_PIOC 3 AT91_PERIPH_B AT91_PINCTRL_NONE>;
529                                         };
530
531                                         pinctrl_pwm0_pwm1_2: pwm0_pwm1-2 {
532                                                 atmel,pins = <AT91_PIOD 15 AT91_PERIPH_B AT91_PINCTRL_NONE>;
533                                         };
534
535                                         pinctrl_pwm0_pwm2_0: pwm0_pwm2-0 {
536                                                 atmel,pins = <AT91_PIOD 5 AT91_PERIPH_B AT91_PINCTRL_NONE>;
537                                         };
538
539                                         pinctrl_pwm0_pwm2_1: pwm0_pwm2-1 {
540                                                 atmel,pins = <AT91_PIOD 12 AT91_PERIPH_A AT91_PINCTRL_NONE>;
541                                         };
542
543                                         pinctrl_pwm0_pwm2_2: pwm0_pwm2-2 {
544                                                 atmel,pins = <AT91_PIOD 16 AT91_PERIPH_B AT91_PINCTRL_NONE>;
545                                         };
546
547                                         pinctrl_pwm0_pwm3_0: pwm0_pwm3-0 {
548                                                 atmel,pins = <AT91_PIOD 8 AT91_PERIPH_B AT91_PINCTRL_NONE>;
549                                         };
550
551                                         pinctrl_pwm0_pwm3_1: pwm0_pwm3-1 {
552                                                 atmel,pins = <AT91_PIOD 18 AT91_PERIPH_A AT91_PINCTRL_NONE>;
553                                         };
554                                 };
555
556                                 spi0 {
557                                         pinctrl_spi0: spi0-0 {
558                                                 atmel,pins =
559                                                         <AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_NONE>,
560                                                         <AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_NONE>,
561                                                         <AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_NONE>;
562                                         };
563                                 };
564
565                                 ssc0 {
566                                         pinctrl_ssc0_tx: ssc0_tx-0 {
567                                                 atmel,pins =
568                                                         <AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_NONE>,
569                                                         <AT91_PIOC 0 AT91_PERIPH_A AT91_PINCTRL_NONE>,
570                                                         <AT91_PIOC 1 AT91_PERIPH_A AT91_PINCTRL_NONE>;
571                                         };
572
573                                         pinctrl_ssc0_rx: ssc0_rx-0 {
574                                                 atmel,pins =
575                                                         <AT91_PIOA 10 AT91_PERIPH_B AT91_PINCTRL_NONE>,
576                                                         <AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_NONE>,
577                                                         <AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE>;
578                                         };
579                                 };
580
581                                 ssc1 {
582                                         pinctrl_ssc1_tx: ssc1_tx-0 {
583                                                 atmel,pins =
584                                                         <AT91_PIOA 13 AT91_PERIPH_B AT91_PINCTRL_NONE>,
585                                                         <AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE>,
586                                                         <AT91_PIOA 30 AT91_PERIPH_B AT91_PINCTRL_NONE>;
587                                         };
588
589                                         pinctrl_ssc1_rx: ssc1_rx-0 {
590                                                 atmel,pins =
591                                                         <AT91_PIOA 8 AT91_PERIPH_B AT91_PINCTRL_NONE>,
592                                                         <AT91_PIOA 9 AT91_PERIPH_B AT91_PINCTRL_NONE>,
593                                                         <AT91_PIOA 14 AT91_PERIPH_B AT91_PINCTRL_NONE>;
594                                         };
595                                 };
596
597                                 tcb0 {
598                                         pinctrl_tcb0_tclk0: tcb0_tclk0-0 {
599                                                 atmel,pins = <AT91_PIOA 3 AT91_PERIPH_B AT91_PINCTRL_NONE>;
600                                         };
601
602                                         pinctrl_tcb0_tclk1: tcb0_tclk1-0 {
603                                                 atmel,pins = <AT91_PIOC 31 AT91_PERIPH_B AT91_PINCTRL_NONE>;
604                                         };
605
606                                         pinctrl_tcb0_tclk2: tcb0_tclk2-0 {
607                                                 atmel,pins = <AT91_PIOD 21 AT91_PERIPH_A AT91_PINCTRL_NONE>;
608                                         };
609
610                                         pinctrl_tcb0_tioa0: tcb0_tioa0-0 {
611                                                 atmel,pins = <AT91_PIOA 4 AT91_PERIPH_B AT91_PINCTRL_NONE>;
612                                         };
613
614                                         pinctrl_tcb0_tioa1: tcb0_tioa1-0 {
615                                                 atmel,pins = <AT91_PIOC 29 AT91_PERIPH_B AT91_PINCTRL_NONE>;
616                                         };
617
618                                         pinctrl_tcb0_tioa2: tcb0_tioa2-0 {
619                                                 atmel,pins = <AT91_PIOD 10 AT91_PERIPH_B AT91_PINCTRL_NONE>;
620                                         };
621
622                                         pinctrl_tcb0_tiob0: tcb0_tiob0-0 {
623                                                 atmel,pins = <AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_NONE>;
624                                         };
625
626                                         pinctrl_tcb0_tiob1: tcb0_tiob1-0 {
627                                                 atmel,pins = <AT91_PIOC 30 AT91_PERIPH_B AT91_PINCTRL_NONE>;
628                                         };
629
630                                         pinctrl_tcb0_tiob2: tcb0_tiob2-0 {
631                                                 atmel,pins = <AT91_PIOD 11 AT91_PERIPH_B AT91_PINCTRL_NONE>;
632                                         };
633                                 };
634
635                                 usart0 {
636                                         pinctrl_usart0: usart0-0 {
637                                                 atmel,pins =
638                                                         <AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
639                                                         <AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
640                                         };
641
642                                         pinctrl_usart0_rts: usart0_rts-0 {
643                                                 atmel,pins =
644                                                         <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_NONE>;
645                                         };
646
647                                         pinctrl_usart0_cts: usart0_cts-0 {
648                                                 atmel,pins =
649                                                         <AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
650                                         };
651
652                                         pinctrl_usart0_dtr_dsr: usart0_dtr_dsr-0 {
653                                                 atmel,pins =
654                                                         <AT91_PIOD 14 AT91_PERIPH_A AT91_PINCTRL_NONE>,
655                                                         <AT91_PIOD 15 AT91_PERIPH_A AT91_PINCTRL_NONE>;
656                                         };
657
658                                         pinctrl_usart0_dcd: usart0_dcd-0 {
659                                                 atmel,pins =
660                                                         <AT91_PIOD 16 AT91_PERIPH_A AT91_PINCTRL_NONE>;
661                                         };
662
663                                         pinctrl_usart0_ri: usart0_ri-0 {
664                                                 atmel,pins =
665                                                         <AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE>;
666                                         };
667
668                                         pinctrl_usart0_sck: usart0_sck-0 {
669                                                 atmel,pins =
670                                                         <AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_NONE>;
671                                         };
672                                 };
673
674                                 usart1 {
675                                         pinctrl_usart1: usart1-0 {
676                                                 atmel,pins =
677                                                         <AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
678                                                         <AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
679                                         };
680
681                                         pinctrl_usart1_rts: usart1_rts-0 {
682                                                 atmel,pins =
683                                                         <AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_NONE>;
684                                         };
685
686                                         pinctrl_usart1_cts: usart1_cts-0 {
687                                                 atmel,pins =
688                                                         <AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_NONE>;
689                                         };
690
691                                         pinctrl_usart1_sck: usart1_sck-0 {
692                                                 atmel,pins =
693                                                         <AT91_PIOD 2 AT91_PERIPH_B AT91_PINCTRL_NONE>;
694                                         };
695                                 };
696
697                                 usart2 {
698                                         pinctrl_usart2: usart2-0 {
699                                                 atmel,pins =
700                                                         <AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
701                                                         <AT91_PIOA 14 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
702                                         };
703
704                                         pinctrl_usart2_rts: usart2_rts-0 {
705                                                 atmel,pins =
706                                                         <AT91_PIOA 29 AT91_PERIPH_A AT91_PINCTRL_NONE>;
707                                         };
708
709                                         pinctrl_usart2_cts: usart2_cts-0 {
710                                                 atmel,pins =
711                                                         <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE>;
712                                         };
713
714                                         pinctrl_usart2_sck: usart2_sck-0 {
715                                                 atmel,pins =
716                                                         <AT91_PIOD 9 AT91_PERIPH_A AT91_PINCTRL_NONE>;
717                                         };
718                                 };
719
720                                 usart3 {
721                                         pinctrl_usart3: usart3-0 {
722                                                 atmel,pins =
723                                                         <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
724                                                         <AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
725                                         };
726
727                                         pinctrl_usart3_rts: usart3_rts-0 {
728                                                 atmel,pins =
729                                                         <AT91_PIOD 4 AT91_PERIPH_B AT91_PINCTRL_NONE>;
730                                         };
731
732                                         pinctrl_usart3_cts: usart3_cts-0 {
733                                                 atmel,pins =
734                                                         <AT91_PIOD 3 AT91_PERIPH_B AT91_PINCTRL_NONE>;
735                                         };
736
737                                         pinctrl_usart3_sck: usart3_sck-0 {
738                                                 atmel,pins =
739                                                         <AT91_PIOA 20 AT91_PERIPH_B AT91_PINCTRL_NONE>;
740                                         };
741                                 };
742
743                                 pioA: gpio@fffff400 {
744                                         compatible = "atmel,at91rm9200-gpio";
745                                         reg = <0xfffff400 0x200>;
746                                         interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
747                                         #gpio-cells = <2>;
748                                         gpio-controller;
749                                         interrupt-controller;
750                                         #interrupt-cells = <2>;
751                                         clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
752                                 };
753
754                                 pioB: gpio@fffff600 {
755                                         compatible = "atmel,at91rm9200-gpio";
756                                         reg = <0xfffff600 0x200>;
757                                         interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
758                                         #gpio-cells = <2>;
759                                         gpio-controller;
760                                         interrupt-controller;
761                                         #interrupt-cells = <2>;
762                                         clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
763                                 };
764
765                                 pioC: gpio@fffff800 {
766                                         compatible = "atmel,at91rm9200-gpio";
767                                         reg = <0xfffff800 0x200>;
768                                         interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>;
769                                         #gpio-cells = <2>;
770                                         gpio-controller;
771                                         interrupt-controller;
772                                         #interrupt-cells = <2>;
773                                         clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
774                                 };
775
776                                 pioD: gpio@fffffa00 {
777                                         compatible = "atmel,at91rm9200-gpio";
778                                         reg = <0xfffffa00 0x200>;
779                                         interrupts = <5 IRQ_TYPE_LEVEL_HIGH 1>;
780                                         #gpio-cells = <2>;
781                                         gpio-controller;
782                                         interrupt-controller;
783                                         #interrupt-cells = <2>;
784                                         clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
785                                 };
786                         };
787
788                         pmc: pmc@fffffc00 {
789                                 compatible = "atmel,at91sam9rl-pmc", "syscon";
790                                 reg = <0xfffffc00 0x100>;
791                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
792                                 #clock-cells = <2>;
793                                 clocks = <&clk32k>, <&main_xtal>;
794                                 clock-names = "slow_clk", "main_xtal";
795                         };
796
797                         rstc@fffffd00 {
798                                 compatible = "atmel,at91sam9260-rstc";
799                                 reg = <0xfffffd00 0x10>;
800                                 clocks = <&clk32k>;
801                         };
802
803                         shdwc@fffffd10 {
804                                 compatible = "atmel,at91sam9260-shdwc";
805                                 reg = <0xfffffd10 0x10>;
806                                 clocks = <&clk32k>;
807                         };
808
809                         pit: timer@fffffd30 {
810                                 compatible = "atmel,at91sam9260-pit";
811                                 reg = <0xfffffd30 0xf>;
812                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
813                                 clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
814                         };
815
816                         watchdog@fffffd40 {
817                                 compatible = "atmel,at91sam9260-wdt";
818                                 reg = <0xfffffd40 0x10>;
819                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
820                                 clocks = <&clk32k>;
821                                 status = "disabled";
822                         };
823
824                         clk32k: sckc@fffffd50 {
825                                 compatible = "atmel,at91sam9x5-sckc";
826                                 reg = <0xfffffd50 0x4>;
827                                 clocks = <&slow_xtal>;
828                                 #clock-cells = <0>;
829                         };
830
831                         rtc@fffffd20 {
832                                 compatible = "atmel,at91sam9260-rtt";
833                                 reg = <0xfffffd20 0x10>;
834                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
835                                 clocks = <&clk32k>;
836                                 status = "disabled";
837                         };
838
839                         gpbr: syscon@fffffd60 {
840                                 compatible = "atmel,at91sam9260-gpbr", "syscon";
841                                 reg = <0xfffffd60 0x10>;
842                                 status = "disabled";
843                         };
844
845                         rtc@fffffe00 {
846                                 compatible = "atmel,at91rm9200-rtc";
847                                 reg = <0xfffffe00 0x40>;
848                                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
849                                 clocks = <&clk32k>;
850                                 status = "disabled";
851                         };
852
853                 };
854         };
855
856         i2c-gpio-0 {
857                 compatible = "i2c-gpio";
858                 gpios = <&pioA 23 GPIO_ACTIVE_HIGH>, /* sda */
859                         <&pioA 24 GPIO_ACTIVE_HIGH>; /* scl */
860                 i2c-gpio,sda-open-drain;
861                 i2c-gpio,scl-open-drain;
862                 i2c-gpio,delay-us = <2>;        /* ~100 kHz */
863                 #address-cells = <1>;
864                 #size-cells = <0>;
865                 pinctrl-names = "default";
866                 pinctrl-0 = <&pinctrl_i2c_gpio0>;
867                 status = "disabled";
868         };
869
870         i2c-gpio-1 {
871                 compatible = "i2c-gpio";
872                 gpios = <&pioD 10 GPIO_ACTIVE_HIGH>, /* sda */
873                         <&pioD 11 GPIO_ACTIVE_HIGH>; /* scl */
874                 i2c-gpio,sda-open-drain;
875                 i2c-gpio,scl-open-drain;
876                 i2c-gpio,delay-us = <2>;        /* ~100 kHz */
877                 #address-cells = <1>;
878                 #size-cells = <0>;
879                 pinctrl-names = "default";
880                 pinctrl-0 = <&pinctrl_i2c_gpio1>;
881                 status = "disabled";
882         };
883 };