blob: 73edf0217890913a88c08ce2f828be641c3096d7 [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;
32 };
33 cpus {
34 cpu@0 {
35 compatible = "arm,arm920t";
36 };
37 };
38
39 memory {
40 reg = <0x20000000 0x04000000>;
41 };
42
43 ahb {
44 compatible = "simple-bus";
45 #address-cells = <1>;
46 #size-cells = <1>;
47 ranges;
48
49 apb {
50 compatible = "simple-bus";
51 #address-cells = <1>;
52 #size-cells = <1>;
53 ranges;
54
55 aic: interrupt-controller@fffff000 {
56 #interrupt-cells = <3>;
57 compatible = "atmel,at91rm9200-aic";
58 interrupt-controller;
59 reg = <0xfffff000 0x200>;
60 atmel,external-irqs = <25 26 27 28 29 30 31>;
61 };
62
63 ramc0: ramc@ffffff00 {
64 compatible = "atmel,at91rm9200-sdramc";
65 reg = <0xffffff00 0x100>;
66 };
67
68 pmc: pmc@fffffc00 {
69 compatible = "atmel,at91rm9200-pmc";
70 reg = <0xfffffc00 0x100>;
71 };
72
73 st: timer@fffffd00 {
74 compatible = "atmel,at91rm9200-st";
75 reg = <0xfffffd00 0x100>;
76 interrupts = <1 4 7>;
77 };
78
79 tcb0: timer@fffa0000 {
80 compatible = "atmel,at91rm9200-tcb";
81 reg = <0xfffa0000 0x100>;
82 interrupts = <17 4 0 18 4 0 19 4 0>;
83 };
84
85 tcb1: timer@fffa4000 {
86 compatible = "atmel,at91rm9200-tcb";
87 reg = <0xfffa4000 0x100>;
88 interrupts = <20 4 0 21 4 0 22 4 0>;
89 };
90
Joachim Eastwood4e4c9632012-12-04 19:10:57 +010091 mmc0: mmc@fffb4000 {
92 compatible = "atmel,hsmci";
93 reg = <0xfffb4000 0x4000>;
94 interrupts = <10 4 0>;
95 #address-cells = <1>;
96 #size-cells = <0>;
97 status = "disabled";
98 };
99
Joachim Eastwoodfe975cf2012-10-28 18:31:10 +0000100 pinctrl@fffff400 {
101 #address-cells = <1>;
102 #size-cells = <1>;
103 compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
104 ranges = <0xfffff400 0xfffff400 0x800>;
105
106 atmel,mux-mask = <
107 /* A B */
108 0xffffffff 0xffffffff /* pioA */
109 0xffffffff 0x083fffff /* pioB */
110 0xffff3fff 0x00000000 /* pioC */
111 0x03ff87ff 0x0fffff80 /* pioD */
112 >;
113
114 /* shared pinctrl settings */
115 dbgu {
116 pinctrl_dbgu: dbgu-0 {
117 atmel,pins =
118 <0 30 0x1 0x0 /* PA30 periph A */
119 0 31 0x1 0x1>; /* PA31 periph with pullup */
120 };
121 };
122
123 uart0 {
124 pinctrl_uart0: uart0-0 {
125 atmel,pins =
126 <0 17 0x1 0x0 /* PA17 periph A */
127 0 18 0x1 0x0>; /* PA18 periph A */
128 };
129
130 pinctrl_uart0_rts: uart0_rts-0 {
131 atmel,pins =
132 <0 20 0x1 0x0>; /* PA20 periph A */
133 };
134
135 pinctrl_uart0_cts: uart0_cts-0 {
136 atmel,pins =
137 <0 21 0x1 0x0>; /* PA21 periph A */
138 };
139 };
140
141 uart1 {
142 pinctrl_uart1: uart1-0 {
143 atmel,pins =
144 <1 20 0x1 0x1 /* PB20 periph A with pullup */
145 1 21 0x1 0x0>; /* PB21 periph A */
146 };
147
148 pinctrl_uart1_rts: uart1_rts-0 {
149 atmel,pins =
150 <1 24 0x1 0x0>; /* PB24 periph A */
151 };
152
153 pinctrl_uart1_cts: uart1_cts-0 {
154 atmel,pins =
155 <1 26 0x1 0x0>; /* PB26 periph A */
156 };
157
158 pinctrl_uart1_dtr_dsr: uart1_dtr_dsr-0 {
159 atmel,pins =
160 <1 19 0x1 0x0 /* PB19 periph A */
161 1 25 0x1 0x0>; /* PB25 periph A */
162 };
163
164 pinctrl_uart1_dcd: uart1_dcd-0 {
165 atmel,pins =
166 <1 23 0x1 0x0>; /* PB23 periph A */
167 };
168
169 pinctrl_uart1_ri: uart1_ri-0 {
170 atmel,pins =
171 <1 18 0x1 0x0>; /* PB18 periph A */
172 };
173 };
174
175 uart2 {
176 pinctrl_uart2: uart2-0 {
177 atmel,pins =
178 <0 22 0x1 0x0 /* PA22 periph A */
179 0 23 0x1 0x1>; /* PA23 periph A with pullup */
180 };
181
182 pinctrl_uart2_rts: uart2_rts-0 {
183 atmel,pins =
184 <0 30 0x2 0x0>; /* PA30 periph B */
185 };
186
187 pinctrl_uart2_cts: uart2_cts-0 {
188 atmel,pins =
189 <0 31 0x2 0x0>; /* PA31 periph B */
190 };
191 };
192
193 uart3 {
194 pinctrl_uart3: uart3-0 {
195 atmel,pins =
196 <0 5 0x2 0x1 /* PA5 periph B with pullup */
197 0 6 0x2 0x0>; /* PA6 periph B */
198 };
199
200 pinctrl_uart3_rts: uart3_rts-0 {
201 atmel,pins =
202 <1 0 0x2 0x0>; /* PB0 periph B */
203 };
204
205 pinctrl_uart3_cts: uart3_cts-0 {
206 atmel,pins =
207 <1 1 0x2 0x0>; /* PB1 periph B */
208 };
209 };
210
211 nand {
212 pinctrl_nand: nand-0 {
213 atmel,pins =
214 <2 2 0x0 0x1 /* PC2 gpio RDY pin pull_up */
215 1 1 0x0 0x1>; /* PB1 gpio CD pin pull_up */
216 };
217 };
218
Joachim Eastwood4e4c9632012-12-04 19:10:57 +0100219 mmc0 {
220 pinctrl_mmc0_clk: mmc0_clk-0 {
221 atmel,pins =
222 <0 27 0x1 0x0>; /* PA27 periph A */
223 };
224
225 pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 {
226 atmel,pins =
227 <0 28 0x1 0x1 /* PA28 periph A with pullup */
228 0 29 0x1 0x1>; /* PA29 periph A with pullup */
229 };
230
231 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
232 atmel,pins =
233 <1 3 0x2 0x1 /* PB3 periph B with pullup */
234 1 4 0x2 0x1 /* PB4 periph B with pullup */
235 1 5 0x2 0x1>; /* PB5 periph B with pullup */
236 };
237
238 pinctrl_mmc0_slot1_cmd_dat0: mmc0_slot1_cmd_dat0-0 {
239 atmel,pins =
240 <0 8 0x2 0x1 /* PA8 periph B with pullup */
241 0 9 0x2 0x1>; /* PA9 periph B with pullup */
242 };
243
244 pinctrl_mmc0_slot1_dat1_3: mmc0_slot1_dat1_3-0 {
245 atmel,pins =
246 <0 10 0x2 0x1 /* PA10 periph B with pullup */
247 0 11 0x2 0x1 /* PA11 periph B with pullup */
248 0 12 0x2 0x1>; /* PA12 periph B with pullup */
249 };
250 };
251
Joachim Eastwoodfe975cf2012-10-28 18:31:10 +0000252 pioA: gpio@fffff400 {
253 compatible = "atmel,at91rm9200-gpio";
254 reg = <0xfffff400 0x200>;
255 interrupts = <2 4 1>;
256 #gpio-cells = <2>;
257 gpio-controller;
258 interrupt-controller;
259 #interrupt-cells = <2>;
260 };
261
262 pioB: gpio@fffff600 {
263 compatible = "atmel,at91rm9200-gpio";
264 reg = <0xfffff600 0x200>;
265 interrupts = <3 4 1>;
266 #gpio-cells = <2>;
267 gpio-controller;
268 interrupt-controller;
269 #interrupt-cells = <2>;
270 };
271
272 pioC: gpio@fffff800 {
273 compatible = "atmel,at91rm9200-gpio";
274 reg = <0xfffff800 0x200>;
275 interrupts = <4 4 1>;
276 #gpio-cells = <2>;
277 gpio-controller;
278 interrupt-controller;
279 #interrupt-cells = <2>;
280 };
281
282 pioD: gpio@fffffa00 {
283 compatible = "atmel,at91rm9200-gpio";
284 reg = <0xfffffa00 0x200>;
285 interrupts = <5 4 1>;
286 #gpio-cells = <2>;
287 gpio-controller;
288 interrupt-controller;
289 #interrupt-cells = <2>;
290 };
291 };
292
293 dbgu: serial@fffff200 {
294 compatible = "atmel,at91rm9200-usart";
295 reg = <0xfffff200 0x200>;
296 interrupts = <1 4 7>;
297 pinctrl-names = "default";
298 pinctrl-0 = <&pinctrl_dbgu>;
299 status = "disabled";
300 };
301
302 usart0: serial@fffc0000 {
303 compatible = "atmel,at91rm9200-usart";
304 reg = <0xfffc0000 0x200>;
305 interrupts = <6 4 5>;
306 atmel,use-dma-rx;
307 atmel,use-dma-tx;
308 pinctrl-names = "default";
309 pinctrl-0 = <&pinctrl_uart0>;
310 status = "disabled";
311 };
312
313 usart1: serial@fffc4000 {
314 compatible = "atmel,at91rm9200-usart";
315 reg = <0xfffc4000 0x200>;
316 interrupts = <7 4 5>;
317 atmel,use-dma-rx;
318 atmel,use-dma-tx;
319 pinctrl-names = "default";
320 pinctrl-0 = <&pinctrl_uart1>;
321 status = "disabled";
322 };
323
324 usart2: serial@fffc8000 {
325 compatible = "atmel,at91rm9200-usart";
326 reg = <0xfffc8000 0x200>;
327 interrupts = <8 4 5>;
328 atmel,use-dma-rx;
329 atmel,use-dma-tx;
330 pinctrl-names = "default";
331 pinctrl-0 = <&pinctrl_uart2>;
332 status = "disabled";
333 };
334
335 usart3: serial@fffcc000 {
336 compatible = "atmel,at91rm9200-usart";
337 reg = <0xfffcc000 0x200>;
338 interrupts = <23 4 5>;
339 atmel,use-dma-rx;
340 atmel,use-dma-tx;
341 pinctrl-names = "default";
342 pinctrl-0 = <&pinctrl_uart3>;
343 status = "disabled";
344 };
345
346 usb1: gadget@fffb0000 {
347 compatible = "atmel,at91rm9200-udc";
348 reg = <0xfffb0000 0x4000>;
349 interrupts = <11 4 2>;
350 status = "disabled";
351 };
352 };
353
354 nand0: nand@40000000 {
355 compatible = "atmel,at91rm9200-nand";
356 #address-cells = <1>;
357 #size-cells = <1>;
358 reg = <0x40000000 0x10000000>;
359 atmel,nand-addr-offset = <21>;
360 atmel,nand-cmd-offset = <22>;
361 pinctrl-names = "default";
362 pinctrl-0 = <&pinctrl_nand>;
363 nand-ecc-mode = "soft";
364 gpios = <&pioC 2 0
365 0
366 &pioB 1 0
367 >;
368 status = "disabled";
369 };
370
371 usb0: ohci@00300000 {
372 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
373 reg = <0x00300000 0x100000>;
374 interrupts = <23 4 2>;
375 status = "disabled";
376 };
377 };
378
379 i2c@0 {
380 compatible = "i2c-gpio";
Joachim Eastwood334c9e82012-12-04 18:10:56 +0000381 gpios = <&pioA 25 0 /* sda */
382 &pioA 26 0 /* scl */
Joachim Eastwoodfe975cf2012-10-28 18:31:10 +0000383 >;
384 i2c-gpio,sda-open-drain;
385 i2c-gpio,scl-open-drain;
386 i2c-gpio,delay-us = <2>; /* ~100 kHz */
387 #address-cells = <1>;
388 #size-cells = <0>;
389 status = "disabled";
390 };
391};