blob: 6ff27bba62969334f51ce5de2240fd1a2858ae47 [file] [log] [blame]
Joachim Eastwoodfe975cf2012-10-28 18:31:10 +00001/*
2 * at91rm9200.dtsi - Device Tree Include file for AT91RM9200 family SoC
3 *
4 * Copyright (C) 2011 Atmel,
5 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>,
6 * 2012 Joachim Eastwood <manabian@gmail.com>
7 *
8 * Based on at91sam9260.dtsi
9 *
10 * Licensed under GPLv2 or later.
11 */
12
13/include/ "skeleton.dtsi"
14
15/ {
16 model = "Atmel AT91RM9200 family SoC";
17 compatible = "atmel,at91rm9200";
18 interrupt-parent = <&aic>;
19
20 aliases {
21 serial0 = &dbgu;
22 serial1 = &usart0;
23 serial2 = &usart1;
24 serial3 = &usart2;
25 serial4 = &usart3;
26 gpio0 = &pioA;
27 gpio1 = &pioB;
28 gpio2 = &pioC;
29 gpio3 = &pioD;
30 tcb0 = &tcb0;
31 tcb1 = &tcb1;
Joachim Eastwood883a07f2012-12-04 19:10:58 +010032 ssc0 = &ssc0;
33 ssc1 = &ssc1;
34 ssc2 = &ssc2;
Joachim Eastwoodfe975cf2012-10-28 18:31:10 +000035 };
36 cpus {
37 cpu@0 {
38 compatible = "arm,arm920t";
39 };
40 };
41
42 memory {
43 reg = <0x20000000 0x04000000>;
44 };
45
46 ahb {
47 compatible = "simple-bus";
48 #address-cells = <1>;
49 #size-cells = <1>;
50 ranges;
51
52 apb {
53 compatible = "simple-bus";
54 #address-cells = <1>;
55 #size-cells = <1>;
56 ranges;
57
58 aic: interrupt-controller@fffff000 {
59 #interrupt-cells = <3>;
60 compatible = "atmel,at91rm9200-aic";
61 interrupt-controller;
62 reg = <0xfffff000 0x200>;
63 atmel,external-irqs = <25 26 27 28 29 30 31>;
64 };
65
66 ramc0: ramc@ffffff00 {
67 compatible = "atmel,at91rm9200-sdramc";
68 reg = <0xffffff00 0x100>;
69 };
70
71 pmc: pmc@fffffc00 {
72 compatible = "atmel,at91rm9200-pmc";
73 reg = <0xfffffc00 0x100>;
74 };
75
76 st: timer@fffffd00 {
77 compatible = "atmel,at91rm9200-st";
78 reg = <0xfffffd00 0x100>;
79 interrupts = <1 4 7>;
80 };
81
82 tcb0: timer@fffa0000 {
83 compatible = "atmel,at91rm9200-tcb";
84 reg = <0xfffa0000 0x100>;
85 interrupts = <17 4 0 18 4 0 19 4 0>;
86 };
87
88 tcb1: timer@fffa4000 {
89 compatible = "atmel,at91rm9200-tcb";
90 reg = <0xfffa4000 0x100>;
91 interrupts = <20 4 0 21 4 0 22 4 0>;
92 };
93
Joachim Eastwood4e4c9632012-12-04 19:10:57 +010094 mmc0: mmc@fffb4000 {
95 compatible = "atmel,hsmci";
96 reg = <0xfffb4000 0x4000>;
97 interrupts = <10 4 0>;
98 #address-cells = <1>;
99 #size-cells = <0>;
100 status = "disabled";
101 };
102
Joachim Eastwood883a07f2012-12-04 19:10:58 +0100103 ssc0: ssc@fffd0000 {
104 compatible = "atmel,at91rm9200-ssc";
105 reg = <0xfffd0000 0x4000>;
106 interrupts = <14 4 5>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
109 status = "disable";
110 };
111
112 ssc1: ssc@fffd4000 {
113 compatible = "atmel,at91rm9200-ssc";
114 reg = <0xfffd4000 0x4000>;
115 interrupts = <15 4 5>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>;
118 status = "disable";
119 };
120
121 ssc2: ssc@fffd8000 {
122 compatible = "atmel,at91rm9200-ssc";
123 reg = <0xfffd8000 0x4000>;
124 interrupts = <16 4 5>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&pinctrl_ssc2_tx &pinctrl_ssc2_rx>;
127 status = "disable";
128 };
129
Joachim Eastwoodfe975cf2012-10-28 18:31:10 +0000130 pinctrl@fffff400 {
131 #address-cells = <1>;
132 #size-cells = <1>;
133 compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
134 ranges = <0xfffff400 0xfffff400 0x800>;
135
136 atmel,mux-mask = <
137 /* A B */
138 0xffffffff 0xffffffff /* pioA */
139 0xffffffff 0x083fffff /* pioB */
140 0xffff3fff 0x00000000 /* pioC */
141 0x03ff87ff 0x0fffff80 /* pioD */
142 >;
143
144 /* shared pinctrl settings */
145 dbgu {
146 pinctrl_dbgu: dbgu-0 {
147 atmel,pins =
148 <0 30 0x1 0x0 /* PA30 periph A */
149 0 31 0x1 0x1>; /* PA31 periph with pullup */
150 };
151 };
152
153 uart0 {
154 pinctrl_uart0: uart0-0 {
155 atmel,pins =
156 <0 17 0x1 0x0 /* PA17 periph A */
157 0 18 0x1 0x0>; /* PA18 periph A */
158 };
159
160 pinctrl_uart0_rts: uart0_rts-0 {
161 atmel,pins =
162 <0 20 0x1 0x0>; /* PA20 periph A */
163 };
164
165 pinctrl_uart0_cts: uart0_cts-0 {
166 atmel,pins =
167 <0 21 0x1 0x0>; /* PA21 periph A */
168 };
169 };
170
171 uart1 {
172 pinctrl_uart1: uart1-0 {
173 atmel,pins =
174 <1 20 0x1 0x1 /* PB20 periph A with pullup */
175 1 21 0x1 0x0>; /* PB21 periph A */
176 };
177
178 pinctrl_uart1_rts: uart1_rts-0 {
179 atmel,pins =
180 <1 24 0x1 0x0>; /* PB24 periph A */
181 };
182
183 pinctrl_uart1_cts: uart1_cts-0 {
184 atmel,pins =
185 <1 26 0x1 0x0>; /* PB26 periph A */
186 };
187
188 pinctrl_uart1_dtr_dsr: uart1_dtr_dsr-0 {
189 atmel,pins =
190 <1 19 0x1 0x0 /* PB19 periph A */
191 1 25 0x1 0x0>; /* PB25 periph A */
192 };
193
194 pinctrl_uart1_dcd: uart1_dcd-0 {
195 atmel,pins =
196 <1 23 0x1 0x0>; /* PB23 periph A */
197 };
198
199 pinctrl_uart1_ri: uart1_ri-0 {
200 atmel,pins =
201 <1 18 0x1 0x0>; /* PB18 periph A */
202 };
203 };
204
205 uart2 {
206 pinctrl_uart2: uart2-0 {
207 atmel,pins =
208 <0 22 0x1 0x0 /* PA22 periph A */
209 0 23 0x1 0x1>; /* PA23 periph A with pullup */
210 };
211
212 pinctrl_uart2_rts: uart2_rts-0 {
213 atmel,pins =
214 <0 30 0x2 0x0>; /* PA30 periph B */
215 };
216
217 pinctrl_uart2_cts: uart2_cts-0 {
218 atmel,pins =
219 <0 31 0x2 0x0>; /* PA31 periph B */
220 };
221 };
222
223 uart3 {
224 pinctrl_uart3: uart3-0 {
225 atmel,pins =
226 <0 5 0x2 0x1 /* PA5 periph B with pullup */
227 0 6 0x2 0x0>; /* PA6 periph B */
228 };
229
230 pinctrl_uart3_rts: uart3_rts-0 {
231 atmel,pins =
232 <1 0 0x2 0x0>; /* PB0 periph B */
233 };
234
235 pinctrl_uart3_cts: uart3_cts-0 {
236 atmel,pins =
237 <1 1 0x2 0x0>; /* PB1 periph B */
238 };
239 };
240
241 nand {
242 pinctrl_nand: nand-0 {
243 atmel,pins =
244 <2 2 0x0 0x1 /* PC2 gpio RDY pin pull_up */
245 1 1 0x0 0x1>; /* PB1 gpio CD pin pull_up */
246 };
247 };
248
Joachim Eastwood4e4c9632012-12-04 19:10:57 +0100249 mmc0 {
250 pinctrl_mmc0_clk: mmc0_clk-0 {
251 atmel,pins =
252 <0 27 0x1 0x0>; /* PA27 periph A */
253 };
254
255 pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 {
256 atmel,pins =
257 <0 28 0x1 0x1 /* PA28 periph A with pullup */
258 0 29 0x1 0x1>; /* PA29 periph A with pullup */
259 };
260
261 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
262 atmel,pins =
263 <1 3 0x2 0x1 /* PB3 periph B with pullup */
264 1 4 0x2 0x1 /* PB4 periph B with pullup */
265 1 5 0x2 0x1>; /* PB5 periph B with pullup */
266 };
267
268 pinctrl_mmc0_slot1_cmd_dat0: mmc0_slot1_cmd_dat0-0 {
269 atmel,pins =
270 <0 8 0x2 0x1 /* PA8 periph B with pullup */
271 0 9 0x2 0x1>; /* PA9 periph B with pullup */
272 };
273
274 pinctrl_mmc0_slot1_dat1_3: mmc0_slot1_dat1_3-0 {
275 atmel,pins =
276 <0 10 0x2 0x1 /* PA10 periph B with pullup */
277 0 11 0x2 0x1 /* PA11 periph B with pullup */
278 0 12 0x2 0x1>; /* PA12 periph B with pullup */
279 };
280 };
281
Joachim Eastwood883a07f2012-12-04 19:10:58 +0100282 ssc0 {
283 pinctrl_ssc0_tx: ssc0_tx-0 {
284 atmel,pins =
285 <1 0 0x1 0x0 /* PB0 periph A */
286 1 1 0x1 0x0 /* PB1 periph A */
287 1 2 0x1 0x0>; /* PB2 periph A */
288 };
289
290 pinctrl_ssc0_rx: ssc0_rx-0 {
291 atmel,pins =
292 <1 3 0x1 0x0 /* PB3 periph A */
293 1 4 0x1 0x0 /* PB4 periph A */
294 1 5 0x1 0x0>; /* PB5 periph A */
295 };
296 };
297
298 ssc1 {
299 pinctrl_ssc1_tx: ssc1_tx-0 {
300 atmel,pins =
301 <1 6 0x1 0x0 /* PB6 periph A */
302 1 7 0x1 0x0 /* PB7 periph A */
303 1 8 0x1 0x0>; /* PB8 periph A */
304 };
305
306 pinctrl_ssc1_rx: ssc1_rx-0 {
307 atmel,pins =
308 <1 9 0x1 0x0 /* PB9 periph A */
309 1 10 0x1 0x0 /* PB10 periph A */
310 1 11 0x1 0x0>; /* PB11 periph A */
311 };
312 };
313
314 ssc2 {
315 pinctrl_ssc2_tx: ssc2_tx-0 {
316 atmel,pins =
317 <1 12 0x1 0x0 /* PB12 periph A */
318 1 13 0x1 0x0 /* PB13 periph A */
319 1 14 0x1 0x0>; /* PB14 periph A */
320 };
321
322 pinctrl_ssc2_rx: ssc2_rx-0 {
323 atmel,pins =
324 <1 15 0x1 0x0 /* PB15 periph A */
325 1 16 0x1 0x0 /* PB16 periph A */
326 1 17 0x1 0x0>; /* PB17 periph A */
327 };
328 };
329
Joachim Eastwoodfe975cf2012-10-28 18:31:10 +0000330 pioA: gpio@fffff400 {
331 compatible = "atmel,at91rm9200-gpio";
332 reg = <0xfffff400 0x200>;
333 interrupts = <2 4 1>;
334 #gpio-cells = <2>;
335 gpio-controller;
336 interrupt-controller;
337 #interrupt-cells = <2>;
338 };
339
340 pioB: gpio@fffff600 {
341 compatible = "atmel,at91rm9200-gpio";
342 reg = <0xfffff600 0x200>;
343 interrupts = <3 4 1>;
344 #gpio-cells = <2>;
345 gpio-controller;
346 interrupt-controller;
347 #interrupt-cells = <2>;
348 };
349
350 pioC: gpio@fffff800 {
351 compatible = "atmel,at91rm9200-gpio";
352 reg = <0xfffff800 0x200>;
353 interrupts = <4 4 1>;
354 #gpio-cells = <2>;
355 gpio-controller;
356 interrupt-controller;
357 #interrupt-cells = <2>;
358 };
359
360 pioD: gpio@fffffa00 {
361 compatible = "atmel,at91rm9200-gpio";
362 reg = <0xfffffa00 0x200>;
363 interrupts = <5 4 1>;
364 #gpio-cells = <2>;
365 gpio-controller;
366 interrupt-controller;
367 #interrupt-cells = <2>;
368 };
369 };
370
371 dbgu: serial@fffff200 {
372 compatible = "atmel,at91rm9200-usart";
373 reg = <0xfffff200 0x200>;
374 interrupts = <1 4 7>;
375 pinctrl-names = "default";
376 pinctrl-0 = <&pinctrl_dbgu>;
377 status = "disabled";
378 };
379
380 usart0: serial@fffc0000 {
381 compatible = "atmel,at91rm9200-usart";
382 reg = <0xfffc0000 0x200>;
383 interrupts = <6 4 5>;
384 atmel,use-dma-rx;
385 atmel,use-dma-tx;
386 pinctrl-names = "default";
387 pinctrl-0 = <&pinctrl_uart0>;
388 status = "disabled";
389 };
390
391 usart1: serial@fffc4000 {
392 compatible = "atmel,at91rm9200-usart";
393 reg = <0xfffc4000 0x200>;
394 interrupts = <7 4 5>;
395 atmel,use-dma-rx;
396 atmel,use-dma-tx;
397 pinctrl-names = "default";
398 pinctrl-0 = <&pinctrl_uart1>;
399 status = "disabled";
400 };
401
402 usart2: serial@fffc8000 {
403 compatible = "atmel,at91rm9200-usart";
404 reg = <0xfffc8000 0x200>;
405 interrupts = <8 4 5>;
406 atmel,use-dma-rx;
407 atmel,use-dma-tx;
408 pinctrl-names = "default";
409 pinctrl-0 = <&pinctrl_uart2>;
410 status = "disabled";
411 };
412
413 usart3: serial@fffcc000 {
414 compatible = "atmel,at91rm9200-usart";
415 reg = <0xfffcc000 0x200>;
416 interrupts = <23 4 5>;
417 atmel,use-dma-rx;
418 atmel,use-dma-tx;
419 pinctrl-names = "default";
420 pinctrl-0 = <&pinctrl_uart3>;
421 status = "disabled";
422 };
423
424 usb1: gadget@fffb0000 {
425 compatible = "atmel,at91rm9200-udc";
426 reg = <0xfffb0000 0x4000>;
427 interrupts = <11 4 2>;
428 status = "disabled";
429 };
430 };
431
432 nand0: nand@40000000 {
433 compatible = "atmel,at91rm9200-nand";
434 #address-cells = <1>;
435 #size-cells = <1>;
436 reg = <0x40000000 0x10000000>;
437 atmel,nand-addr-offset = <21>;
438 atmel,nand-cmd-offset = <22>;
439 pinctrl-names = "default";
440 pinctrl-0 = <&pinctrl_nand>;
441 nand-ecc-mode = "soft";
442 gpios = <&pioC 2 0
443 0
444 &pioB 1 0
445 >;
446 status = "disabled";
447 };
448
449 usb0: ohci@00300000 {
450 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
451 reg = <0x00300000 0x100000>;
452 interrupts = <23 4 2>;
453 status = "disabled";
454 };
455 };
456
457 i2c@0 {
458 compatible = "i2c-gpio";
Joachim Eastwood334c9e82012-12-04 18:10:56 +0000459 gpios = <&pioA 25 0 /* sda */
460 &pioA 26 0 /* scl */
Joachim Eastwoodfe975cf2012-10-28 18:31:10 +0000461 >;
462 i2c-gpio,sda-open-drain;
463 i2c-gpio,scl-open-drain;
464 i2c-gpio,delay-us = <2>; /* ~100 kHz */
465 #address-cells = <1>;
466 #size-cells = <0>;
467 status = "disabled";
468 };
469};