1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * at91rm9200.dtsi - Device Tree Include file for AT91RM9200 family SoC
4 *
5 *  Copyright (C) 2011 Atmel,
6 *                2011 Nicolas Ferre <nicolas.ferre@atmel.com>,
7 *                2012 Joachim Eastwood <manabian@gmail.com>
8 *
9 * Based on at91sam9260.dtsi
10 */
11
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 AT91RM9200 family SoC";
21	compatible = "atmel,at91rm9200";
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		tcb0 = &tcb0;
35		tcb1 = &tcb1;
36		i2c0 = &i2c0;
37		ssc0 = &ssc0;
38		ssc1 = &ssc1;
39		ssc2 = &ssc2;
40	};
41	cpus {
42		#address-cells = <1>;
43		#size-cells = <0>;
44
45		cpu@0 {
46			compatible = "arm,arm920t";
47			device_type = "cpu";
48			reg = <0>;
49		};
50	};
51
52	memory@20000000 {
53		device_type = "memory";
54		reg = <0x20000000 0x04000000>;
55	};
56
57	clocks {
58		slow_xtal: slow_xtal {
59			compatible = "fixed-clock";
60			#clock-cells = <0>;
61			clock-frequency = <0>;
62		};
63
64		main_xtal: main_xtal {
65			compatible = "fixed-clock";
66			#clock-cells = <0>;
67			clock-frequency = <0>;
68		};
69	};
70
71	sram: sram@200000 {
72		compatible = "mmio-sram";
73		reg = <0x00200000 0x4000>;
74		#address-cells = <1>;
75		#size-cells = <1>;
76		ranges = <0 0x00200000 0x4000>;
77	};
78
79	ahb {
80		compatible = "simple-bus";
81		#address-cells = <1>;
82		#size-cells = <1>;
83		ranges;
84
85		apb {
86			compatible = "simple-bus";
87			#address-cells = <1>;
88			#size-cells = <1>;
89			ranges;
90
91			aic: interrupt-controller@fffff000 {
92				#interrupt-cells = <3>;
93				compatible = "atmel,at91rm9200-aic";
94				interrupt-controller;
95				reg = <0xfffff000 0x200>;
96				atmel,external-irqs = <25 26 27 28 29 30 31>;
97			};
98
99			ramc0: ramc@ffffff00 {
100				compatible = "atmel,at91rm9200-sdramc", "syscon";
101				reg = <0xffffff00 0x100>;
102			};
103
104			pmc: pmc@fffffc00 {
105				compatible = "atmel,at91rm9200-pmc", "syscon";
106				reg = <0xfffffc00 0x100>;
107				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
108				#clock-cells = <2>;
109				clocks = <&slow_xtal>, <&main_xtal>;
110				clock-names = "slow_xtal", "main_xtal";
111			};
112
113			st: timer@fffffd00 {
114				compatible = "atmel,at91rm9200-st", "syscon", "simple-mfd";
115				reg = <0xfffffd00 0x100>;
116				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
117				clocks = <&slow_xtal>;
118
119				watchdog {
120					compatible = "atmel,at91rm9200-wdt";
121				};
122			};
123
124			rtc: rtc@fffffe00 {
125				compatible = "atmel,at91rm9200-rtc";
126				reg = <0xfffffe00 0x40>;
127				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
128				clocks = <&slow_xtal>;
129				status = "disabled";
130			};
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 = <17 IRQ_TYPE_LEVEL_HIGH 0
138					      18 IRQ_TYPE_LEVEL_HIGH 0
139					      19 IRQ_TYPE_LEVEL_HIGH 0>;
140				clocks = <&pmc PMC_TYPE_PERIPHERAL 17>, <&pmc PMC_TYPE_PERIPHERAL 18>, <&pmc PMC_TYPE_PERIPHERAL 19>, <&slow_xtal>;
141				clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
142			};
143
144			tcb1: timer@fffa4000 {
145				compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
146				#address-cells = <1>;
147				#size-cells = <0>;
148				reg = <0xfffa4000 0x100>;
149				interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0
150					      21 IRQ_TYPE_LEVEL_HIGH 0
151					      22 IRQ_TYPE_LEVEL_HIGH 0>;
152				clocks = <&pmc PMC_TYPE_PERIPHERAL 20>, <&pmc PMC_TYPE_PERIPHERAL 21>, <&pmc PMC_TYPE_PERIPHERAL 22>, <&slow_xtal>;
153				clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
154			};
155
156			i2c0: i2c@fffb8000 {
157				compatible = "atmel,at91rm9200-i2c";
158				reg = <0xfffb8000 0x4000>;
159				interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>;
160				pinctrl-names = "default";
161				pinctrl-0 = <&pinctrl_twi>;
162				clocks = <&pmc PMC_TYPE_PERIPHERAL 12>;
163				#address-cells = <1>;
164				#size-cells = <0>;
165				status = "disabled";
166			};
167
168			mmc0: mmc@fffb4000 {
169				compatible = "atmel,hsmci";
170				reg = <0xfffb4000 0x4000>;
171				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 0>;
172				clocks = <&pmc PMC_TYPE_PERIPHERAL 10>;
173				clock-names = "mci_clk";
174				#address-cells = <1>;
175				#size-cells = <0>;
176				status = "disabled";
177			};
178
179			ssc0: ssc@fffd0000 {
180				compatible = "atmel,at91rm9200-ssc";
181				reg = <0xfffd0000 0x4000>;
182				interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>;
183				pinctrl-names = "default";
184				pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
185				clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
186				clock-names = "pclk";
187				status = "disabled";
188			};
189
190			ssc1: ssc@fffd4000 {
191				compatible = "atmel,at91rm9200-ssc";
192				reg = <0xfffd4000 0x4000>;
193				interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>;
194				pinctrl-names = "default";
195				pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>;
196				clocks = <&pmc PMC_TYPE_PERIPHERAL 15>;
197				clock-names = "pclk";
198				status = "disabled";
199			};
200
201			ssc2: ssc@fffd8000 {
202				compatible = "atmel,at91rm9200-ssc";
203				reg = <0xfffd8000 0x4000>;
204				interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>;
205				pinctrl-names = "default";
206				pinctrl-0 = <&pinctrl_ssc2_tx &pinctrl_ssc2_rx>;
207				clocks = <&pmc PMC_TYPE_PERIPHERAL 16>;
208				clock-names = "pclk";
209				status = "disabled";
210			};
211
212			macb0: ethernet@fffbc000 {
213				compatible = "cdns,at91rm9200-emac", "cdns,emac";
214				reg = <0xfffbc000 0x4000>;
215				interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3>;
216				phy-mode = "rmii";
217				pinctrl-names = "default";
218				pinctrl-0 = <&pinctrl_macb_rmii>;
219				clocks = <&pmc PMC_TYPE_PERIPHERAL 24>;
220				clock-names = "ether_clk";
221				status = "disabled";
222			};
223
224			pinctrl@fffff400 {
225				#address-cells = <1>;
226				#size-cells = <1>;
227				compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
228				ranges = <0xfffff400 0xfffff400 0x800>;
229
230				atmel,mux-mask = <
231					/*    A         B     */
232					 0xffffffff 0xffffffff  /* pioA */
233					 0xffffffff 0x083fffff  /* pioB */
234					 0xffff3fff 0x00000000  /* pioC */
235					 0x03ff87ff 0x0fffff80  /* pioD */
236					>;
237
238				/* shared pinctrl settings */
239				dbgu {
240					pinctrl_dbgu: dbgu-0 {
241						atmel,pins =
242							<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
243							 AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>;
244					};
245				};
246
247				uart0 {
248					pinctrl_uart0: uart0-0 {
249						atmel,pins =
250							<AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE
251							 AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
252					};
253
254					pinctrl_uart0_cts: uart0_cts-0 {
255						atmel,pins =
256							<AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA20 periph A */
257					};
258
259					pinctrl_uart0_rts: uart0_rts-0 {
260						atmel,pins =
261							<AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA21 periph A */
262					};
263				};
264
265				uart1 {
266					pinctrl_uart1: uart1-0 {
267						atmel,pins =
268							<AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_NONE
269							 AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
270					};
271
272					pinctrl_uart1_rts: uart1_rts-0 {
273						atmel,pins =
274							<AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB24 periph A */
275					};
276
277					pinctrl_uart1_cts: uart1_cts-0 {
278						atmel,pins =
279							<AT91_PIOB 26 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB26 periph A */
280					};
281
282					pinctrl_uart1_dtr_dsr: uart1_dtr_dsr-0 {
283						atmel,pins =
284							<AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB19 periph A */
285							 AT91_PIOB 25 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB25 periph A */
286					};
287
288					pinctrl_uart1_dcd: uart1_dcd-0 {
289						atmel,pins =
290							<AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB23 periph A */
291					};
292
293					pinctrl_uart1_ri: uart1_ri-0 {
294						atmel,pins =
295							<AT91_PIOB 18 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB18 periph A */
296					};
297				};
298
299				uart2 {
300					pinctrl_uart2: uart2-0 {
301						atmel,pins =
302							<AT91_PIOA 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
303							 AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_NONE>;
304					};
305
306					pinctrl_uart2_rts: uart2_rts-0 {
307						atmel,pins =
308							<AT91_PIOA 30 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PA30 periph B */
309					};
310
311					pinctrl_uart2_cts: uart2_cts-0 {
312						atmel,pins =
313							<AT91_PIOA 31 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PA31 periph B */
314					};
315				};
316
317				uart3 {
318					pinctrl_uart3: uart3-0 {
319						atmel,pins =
320							<AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_NONE
321							 AT91_PIOA 6 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
322					};
323
324					pinctrl_uart3_rts: uart3_rts-0 {
325						atmel,pins =
326							<AT91_PIOB 0 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PB0 periph B */
327					};
328
329					pinctrl_uart3_cts: uart3_cts-0 {
330						atmel,pins =
331							<AT91_PIOB 1 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PB1 periph B */
332					};
333				};
334
335				nand {
336					pinctrl_nand: nand-0 {
337						atmel,pins =
338							<AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP	/* PC2 gpio RDY pin pull_up */
339							 AT91_PIOB 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;	/* PB1 gpio CD pin pull_up */
340					};
341				};
342
343				macb {
344					pinctrl_macb_rmii: macb_rmii-0 {
345						atmel,pins =
346							<AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA7 periph A */
347							 AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA8 periph A */
348							 AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA9 periph A */
349							 AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA10 periph A */
350							 AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA11 periph A */
351							 AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA12 periph A */
352							 AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA13 periph A */
353							 AT91_PIOA 14 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA14 periph A */
354							 AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA15 periph A */
355							 AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA16 periph A */
356					};
357
358					pinctrl_macb_rmii_mii: macb_rmii_mii-0 {
359						atmel,pins =
360							<AT91_PIOB 12 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB12 periph B */
361							 AT91_PIOB 13 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB13 periph B */
362							 AT91_PIOB 14 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB14 periph B */
363							 AT91_PIOB 15 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB15 periph B */
364							 AT91_PIOB 16 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB16 periph B */
365							 AT91_PIOB 17 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB17 periph B */
366							 AT91_PIOB 18 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB18 periph B */
367							 AT91_PIOB 19 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PB19 periph B */
368					};
369				};
370
371				mmc0 {
372					pinctrl_mmc0_clk: mmc0_clk-0 {
373						atmel,pins =
374							<AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA27 periph A */
375					};
376
377					pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 {
378						atmel,pins =
379							<AT91_PIOA 28 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PA28 periph A with pullup */
380							 AT91_PIOA 29 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PA29 periph A with pullup */
381					};
382
383					pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
384						atmel,pins =
385							<AT91_PIOB 3 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* PB3 periph B with pullup */
386							 AT91_PIOB 4 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* PB4 periph B with pullup */
387							 AT91_PIOB 5 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;	/* PB5 periph B with pullup */
388					};
389
390					pinctrl_mmc0_slot1_cmd_dat0: mmc0_slot1_cmd_dat0-0 {
391						atmel,pins =
392							<AT91_PIOA 8 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* PA8 periph B with pullup */
393							 AT91_PIOA 9 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;	/* PA9 periph B with pullup */
394					};
395
396					pinctrl_mmc0_slot1_dat1_3: mmc0_slot1_dat1_3-0 {
397						atmel,pins =
398							<AT91_PIOA 10 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* PA10 periph B with pullup */
399							 AT91_PIOA 11 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* PA11 periph B with pullup */
400							 AT91_PIOA 12 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;	/* PA12 periph B with pullup */
401					};
402				};
403
404				ssc0 {
405					pinctrl_ssc0_tx: ssc0_tx-0 {
406						atmel,pins =
407							<AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB0 periph A */
408							 AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB1 periph A */
409							 AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB2 periph A */
410					};
411
412					pinctrl_ssc0_rx: ssc0_rx-0 {
413						atmel,pins =
414							<AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB3 periph A */
415							 AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB4 periph A */
416							 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB5 periph A */
417					};
418				};
419
420				ssc1 {
421					pinctrl_ssc1_tx: ssc1_tx-0 {
422						atmel,pins =
423							<AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB6 periph A */
424							 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB7 periph A */
425							 AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB8 periph A */
426					};
427
428					pinctrl_ssc1_rx: ssc1_rx-0 {
429						atmel,pins =
430							<AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB9 periph A */
431							 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB10 periph A */
432							 AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB11 periph A */
433					};
434				};
435
436				ssc2 {
437					pinctrl_ssc2_tx: ssc2_tx-0 {
438						atmel,pins =
439							<AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB12 periph A */
440							 AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB13 periph A */
441							 AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB14 periph A */
442					};
443
444					pinctrl_ssc2_rx: ssc2_rx-0 {
445						atmel,pins =
446							<AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB15 periph A */
447							 AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB16 periph A */
448							 AT91_PIOB 17 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB17 periph A */
449					};
450				};
451
452				twi {
453					pinctrl_twi: twi-0 {
454						atmel,pins =
455							<AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE	/* PA25 periph A with multi drive */
456							 AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE>;	/* PA26 periph A with multi drive */
457					};
458
459					pinctrl_twi_gpio: twi_gpio-0 {
460						atmel,pins =
461							<AT91_PIOA 25 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE	/* PA25 GPIO with multi drive */
462							 AT91_PIOA 26 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;	/* PA26 GPIO with multi drive */
463					};
464				};
465
466				tcb0 {
467					pinctrl_tcb0_tclk0: tcb0_tclk0-0 {
468						atmel,pins = <AT91_PIOA 13 AT91_PERIPH_B AT91_PINCTRL_NONE>;
469					};
470
471					pinctrl_tcb0_tclk1: tcb0_tclk1-0 {
472						atmel,pins = <AT91_PIOA 14 AT91_PERIPH_B AT91_PINCTRL_NONE>;
473					};
474
475					pinctrl_tcb0_tclk2: tcb0_tclk2-0 {
476						atmel,pins = <AT91_PIOA 15 AT91_PERIPH_B AT91_PINCTRL_NONE>;
477					};
478
479					pinctrl_tcb0_tioa0: tcb0_tioa0-0 {
480						atmel,pins = <AT91_PIOA 17 AT91_PERIPH_B AT91_PINCTRL_NONE>;
481					};
482
483					pinctrl_tcb0_tioa1: tcb0_tioa1-0 {
484						atmel,pins = <AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_NONE>;
485					};
486
487					pinctrl_tcb0_tioa2: tcb0_tioa2-0 {
488						atmel,pins = <AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE>;
489					};
490
491					pinctrl_tcb0_tiob0: tcb0_tiob0-0 {
492						atmel,pins = <AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_NONE>;
493					};
494
495					pinctrl_tcb0_tiob1: tcb0_tiob1-0 {
496						atmel,pins = <AT91_PIOA 20 AT91_PERIPH_B AT91_PINCTRL_NONE>;
497					};
498
499					pinctrl_tcb0_tiob2: tcb0_tiob2-0 {
500						atmel,pins = <AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE>;
501					};
502				};
503
504				tcb1 {
505					pinctrl_tcb1_tclk0: tcb1_tclk0-0 {
506						atmel,pins = <AT91_PIOA 27 AT91_PERIPH_B AT91_PINCTRL_NONE>;
507					};
508
509					pinctrl_tcb1_tclk1: tcb1_tclk1-0 {
510						atmel,pins = <AT91_PIOA 28 AT91_PERIPH_B AT91_PINCTRL_NONE>;
511					};
512
513					pinctrl_tcb1_tclk2: tcb1_tclk2-0 {
514						atmel,pins = <AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE>;
515					};
516
517					pinctrl_tcb1_tioa0: tcb1_tioa0-0 {
518						atmel,pins = <AT91_PIOB 6 AT91_PERIPH_B AT91_PINCTRL_NONE>;
519					};
520
521					pinctrl_tcb1_tioa1: tcb1_tioa1-0 {
522						atmel,pins = <AT91_PIOB 8 AT91_PERIPH_B AT91_PINCTRL_NONE>;
523					};
524
525					pinctrl_tcb1_tioa2: tcb1_tioa2-0 {
526						atmel,pins = <AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE>;
527					};
528
529					pinctrl_tcb1_tiob0: tcb1_tiob0-0 {
530						atmel,pins = <AT91_PIOB 7 AT91_PERIPH_B AT91_PINCTRL_NONE>;
531					};
532
533					pinctrl_tcb1_tiob1: tcb1_tiob1-0 {
534						atmel,pins = <AT91_PIOB 9 AT91_PERIPH_B AT91_PINCTRL_NONE>;
535					};
536
537					pinctrl_tcb1_tiob2: tcb1_tiob2-0 {
538						atmel,pins = <AT91_PIOB 11 AT91_PERIPH_B AT91_PINCTRL_NONE>;
539					};
540				};
541
542				spi0 {
543					pinctrl_spi0: spi0-0 {
544						atmel,pins =
545							<AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA0 periph A SPI0_MISO pin */
546							 AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA1 periph A SPI0_MOSI pin */
547							 AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA2 periph A SPI0_SPCK pin */
548					};
549				};
550
551				pioA: gpio@fffff400 {
552					compatible = "atmel,at91rm9200-gpio";
553					reg = <0xfffff400 0x200>;
554					interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
555					#gpio-cells = <2>;
556					gpio-controller;
557					interrupt-controller;
558					#interrupt-cells = <2>;
559					clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
560				};
561
562				pioB: gpio@fffff600 {
563					compatible = "atmel,at91rm9200-gpio";
564					reg = <0xfffff600 0x200>;
565					interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
566					#gpio-cells = <2>;
567					gpio-controller;
568					interrupt-controller;
569					#interrupt-cells = <2>;
570					clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
571				};
572
573				pioC: gpio@fffff800 {
574					compatible = "atmel,at91rm9200-gpio";
575					reg = <0xfffff800 0x200>;
576					interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>;
577					#gpio-cells = <2>;
578					gpio-controller;
579					interrupt-controller;
580					#interrupt-cells = <2>;
581					clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
582				};
583
584				pioD: gpio@fffffa00 {
585					compatible = "atmel,at91rm9200-gpio";
586					reg = <0xfffffa00 0x200>;
587					interrupts = <5 IRQ_TYPE_LEVEL_HIGH 1>;
588					#gpio-cells = <2>;
589					gpio-controller;
590					interrupt-controller;
591					#interrupt-cells = <2>;
592					clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
593				};
594			};
595
596			dbgu: serial@fffff200 {
597				compatible = "atmel,at91rm9200-dbgu", "atmel,at91rm9200-usart";
598				reg = <0xfffff200 0x200>;
599				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
600				pinctrl-names = "default";
601				pinctrl-0 = <&pinctrl_dbgu>;
602				clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
603				clock-names = "usart";
604				status = "disabled";
605			};
606
607			usart0: serial@fffc0000 {
608				compatible = "atmel,at91rm9200-usart";
609				reg = <0xfffc0000 0x200>;
610				interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>;
611				atmel,use-dma-rx;
612				atmel,use-dma-tx;
613				pinctrl-names = "default";
614				pinctrl-0 = <&pinctrl_uart0>;
615				clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
616				clock-names = "usart";
617				status = "disabled";
618			};
619
620			usart1: serial@fffc4000 {
621				compatible = "atmel,at91rm9200-usart";
622				reg = <0xfffc4000 0x200>;
623				interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>;
624				atmel,use-dma-rx;
625				atmel,use-dma-tx;
626				pinctrl-names = "default";
627				pinctrl-0 = <&pinctrl_uart1>;
628				clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
629				clock-names = "usart";
630				status = "disabled";
631			};
632
633			usart2: serial@fffc8000 {
634				compatible = "atmel,at91rm9200-usart";
635				reg = <0xfffc8000 0x200>;
636				interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>;
637				atmel,use-dma-rx;
638				atmel,use-dma-tx;
639				pinctrl-names = "default";
640				pinctrl-0 = <&pinctrl_uart2>;
641				clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
642				clock-names = "usart";
643				status = "disabled";
644			};
645
646			usart3: serial@fffcc000 {
647				compatible = "atmel,at91rm9200-usart";
648				reg = <0xfffcc000 0x200>;
649				interrupts = <23 IRQ_TYPE_LEVEL_HIGH 5>;
650				atmel,use-dma-rx;
651				atmel,use-dma-tx;
652				pinctrl-names = "default";
653				pinctrl-0 = <&pinctrl_uart3>;
654				clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
655				clock-names = "usart";
656				status = "disabled";
657			};
658
659			usb1: gadget@fffb0000 {
660				compatible = "atmel,at91rm9200-udc";
661				reg = <0xfffb0000 0x4000>;
662				interrupts = <11 IRQ_TYPE_LEVEL_HIGH 2>;
663				clocks = <&pmc PMC_TYPE_PERIPHERAL 11>, <&pmc PMC_TYPE_SYSTEM 2>;
664				clock-names = "pclk", "hclk";
665				status = "disabled";
666			};
667
668			spi0: spi@fffe0000 {
669				#address-cells = <1>;
670				#size-cells = <0>;
671				compatible = "atmel,at91rm9200-spi";
672				reg = <0xfffe0000 0x200>;
673				interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>;
674				pinctrl-names = "default";
675				pinctrl-0 = <&pinctrl_spi0>;
676				clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
677				clock-names = "spi_clk";
678				status = "disabled";
679			};
680		};
681
682		nand0: nand@40000000 {
683			compatible = "atmel,at91rm9200-nand";
684			#address-cells = <1>;
685			#size-cells = <1>;
686			reg = <0x40000000 0x10000000>;
687			atmel,nand-addr-offset = <21>;
688			atmel,nand-cmd-offset = <22>;
689			pinctrl-names = "default";
690			pinctrl-0 = <&pinctrl_nand>;
691			nand-ecc-mode = "soft";
692			gpios = <&pioC 2 GPIO_ACTIVE_HIGH
693				 0
694				 &pioB 1 GPIO_ACTIVE_HIGH
695				>;
696			status = "disabled";
697		};
698
699		usb0: ohci@300000 {
700			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
701			reg = <0x00300000 0x100000>;
702			interrupts = <23 IRQ_TYPE_LEVEL_HIGH 2>;
703			clocks = <&pmc PMC_TYPE_PERIPHERAL 23>, <&pmc PMC_TYPE_PERIPHERAL 23>, <&pmc PMC_TYPE_SYSTEM 4>;
704			clock-names = "ohci_clk", "hclk", "uhpck";
705			status = "disabled";
706		};
707	};
708
709	i2c-gpio-0 {
710		compatible = "i2c-gpio";
711		gpios = <&pioA 25 GPIO_ACTIVE_HIGH /* sda */
712			 &pioA 26 GPIO_ACTIVE_HIGH /* scl */
713			>;
714		i2c-gpio,sda-open-drain;
715		i2c-gpio,scl-open-drain;
716		i2c-gpio,delay-us = <2>;	/* ~100 kHz */
717		pinctrl-names = "default";
718		pinctrl-0 = <&pinctrl_twi_gpio>;
719		#address-cells = <1>;
720		#size-cells = <0>;
721		status = "disabled";
722	};
723};
724