Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / boot / dts / at91sam9n12.dtsi
1 /*
2 * at91sam9n12.dtsi - Device Tree include file for AT91SAM9N12 SoC
3 *
4 * Copyright (C) 2012 Atmel,
5 * 2012 Hong Xu <hong.xu@atmel.com>
6 *
7 * Licensed under GPLv2 or later.
8 */
9
10 /include/ "skeleton.dtsi"
11
12 / {
13 model = "Atmel AT91SAM9N12 SoC";
14 compatible = "atmel,at91sam9n12";
15 interrupt-parent = <&aic>;
16
17 aliases {
18 serial0 = &dbgu;
19 serial1 = &usart0;
20 serial2 = &usart1;
21 serial3 = &usart2;
22 serial4 = &usart3;
23 gpio0 = &pioA;
24 gpio1 = &pioB;
25 gpio2 = &pioC;
26 gpio3 = &pioD;
27 tcb0 = &tcb0;
28 tcb1 = &tcb1;
29 i2c0 = &i2c0;
30 i2c1 = &i2c1;
31 ssc0 = &ssc0;
32 };
33 cpus {
34 cpu@0 {
35 compatible = "arm,arm926ejs";
36 };
37 };
38
39 memory {
40 reg = <0x20000000 0x10000000>;
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 };
61
62 ramc0: ramc@ffffe800 {
63 compatible = "atmel,at91sam9g45-ddramc";
64 reg = <0xffffe800 0x200>;
65 };
66
67 pmc: pmc@fffffc00 {
68 compatible = "atmel,at91rm9200-pmc";
69 reg = <0xfffffc00 0x100>;
70 };
71
72 rstc@fffffe00 {
73 compatible = "atmel,at91sam9g45-rstc";
74 reg = <0xfffffe00 0x10>;
75 };
76
77 pit: timer@fffffe30 {
78 compatible = "atmel,at91sam9260-pit";
79 reg = <0xfffffe30 0xf>;
80 interrupts = <1 4 7>;
81 };
82
83 shdwc@fffffe10 {
84 compatible = "atmel,at91sam9x5-shdwc";
85 reg = <0xfffffe10 0x10>;
86 };
87
88 mmc0: mmc@f0008000 {
89 compatible = "atmel,hsmci";
90 reg = <0xf0008000 0x600>;
91 interrupts = <12 4 0>;
92 #address-cells = <1>;
93 #size-cells = <0>;
94 status = "disabled";
95 };
96
97 tcb0: timer@f8008000 {
98 compatible = "atmel,at91sam9x5-tcb";
99 reg = <0xf8008000 0x100>;
100 interrupts = <17 4 0>;
101 };
102
103 tcb1: timer@f800c000 {
104 compatible = "atmel,at91sam9x5-tcb";
105 reg = <0xf800c000 0x100>;
106 interrupts = <17 4 0>;
107 };
108
109 dma: dma-controller@ffffec00 {
110 compatible = "atmel,at91sam9g45-dma";
111 reg = <0xffffec00 0x200>;
112 interrupts = <20 4 0>;
113 };
114
115 pinctrl@fffff400 {
116 #address-cells = <1>;
117 #size-cells = <1>;
118 compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
119 ranges = <0xfffff400 0xfffff400 0x800>;
120
121 atmel,mux-mask = <
122 /* A B C */
123 0xffffffff 0xffe07983 0x00000000 /* pioA */
124 0x00040000 0x00047e0f 0x00000000 /* pioB */
125 0xfdffffff 0x07c00000 0xb83fffff /* pioC */
126 0x003fffff 0x003f8000 0x00000000 /* pioD */
127 >;
128
129 /* shared pinctrl settings */
130 dbgu {
131 pinctrl_dbgu: dbgu-0 {
132 atmel,pins =
133 <0 9 0x1 0x0 /* PA9 periph A */
134 0 10 0x1 0x1>; /* PA10 periph with pullup */
135 };
136 };
137
138 usart0 {
139 pinctrl_usart0: usart0-0 {
140 atmel,pins =
141 <0 1 0x1 0x1 /* PA1 periph A with pullup */
142 0 0 0x1 0x0>; /* PA0 periph A */
143 };
144
145 pinctrl_usart0_rts: usart0_rts-0 {
146 atmel,pins =
147 <0 2 0x1 0x0>; /* PA2 periph A */
148 };
149
150 pinctrl_usart0_cts: usart0_cts-0 {
151 atmel,pins =
152 <0 3 0x1 0x0>; /* PA3 periph A */
153 };
154 };
155
156 usart1 {
157 pinctrl_usart1: usart1-0 {
158 atmel,pins =
159 <0 6 0x1 0x1 /* PA6 periph A with pullup */
160 0 5 0x1 0x0>; /* PA5 periph A */
161 };
162 };
163
164 usart2 {
165 pinctrl_usart2: usart2-0 {
166 atmel,pins =
167 <0 8 0x1 0x1 /* PA8 periph A with pullup */
168 0 7 0x1 0x0>; /* PA7 periph A */
169 };
170
171 pinctrl_usart2_rts: usart2_rts-0 {
172 atmel,pins =
173 <1 0 0x2 0x0>; /* PB0 periph B */
174 };
175
176 pinctrl_usart2_cts: usart2_cts-0 {
177 atmel,pins =
178 <1 1 0x2 0x0>; /* PB1 periph B */
179 };
180 };
181
182 usart3 {
183 pinctrl_usart3: usart3-0 {
184 atmel,pins =
185 <2 23 0x2 0x1 /* PC23 periph B with pullup */
186 2 22 0x2 0x0>; /* PC22 periph B */
187 };
188
189 pinctrl_usart3_rts: usart3_rts-0 {
190 atmel,pins =
191 <2 24 0x2 0x0>; /* PC24 periph B */
192 };
193
194 pinctrl_usart3_cts: usart3_cts-0 {
195 atmel,pins =
196 <2 25 0x2 0x0>; /* PC25 periph B */
197 };
198 };
199
200 uart0 {
201 pinctrl_uart0: uart0-0 {
202 atmel,pins =
203 <2 9 0x3 0x1 /* PC9 periph C with pullup */
204 2 8 0x3 0x0>; /* PC8 periph C */
205 };
206 };
207
208 uart1 {
209 pinctrl_uart1: uart1-0 {
210 atmel,pins =
211 <2 16 0x3 0x1 /* PC17 periph C with pullup */
212 2 17 0x3 0x0>; /* PC16 periph C */
213 };
214 };
215
216 nand {
217 pinctrl_nand: nand-0 {
218 atmel,pins =
219 <3 5 0x0 0x1 /* PD5 gpio RDY pin pull_up*/
220 3 4 0x0 0x1>; /* PD4 gpio enable pin pull_up */
221 };
222 };
223
224 mmc0 {
225 pinctrl_mmc0_slot0_clk_cmd_dat0: mmc0_slot0_clk_cmd_dat0-0 {
226 atmel,pins =
227 <0 17 0x1 0x0 /* PA17 periph A */
228 0 16 0x1 0x1 /* PA16 periph A with pullup */
229 0 15 0x1 0x1>; /* PA15 periph A with pullup */
230 };
231
232 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
233 atmel,pins =
234 <0 18 0x1 0x1 /* PA18 periph A with pullup */
235 0 19 0x1 0x1 /* PA19 periph A with pullup */
236 0 20 0x1 0x1>; /* PA20 periph A with pullup */
237 };
238
239 pinctrl_mmc0_slot0_dat4_7: mmc0_slot0_dat4_7-0 {
240 atmel,pins =
241 <0 11 0x2 0x1 /* PA11 periph B with pullup */
242 0 12 0x2 0x1 /* PA12 periph B with pullup */
243 0 13 0x2 0x1 /* PA13 periph B with pullup */
244 0 14 0x2 0x1>; /* PA14 periph B with pullup */
245 };
246 };
247
248 ssc0 {
249 pinctrl_ssc0_tx: ssc0_tx-0 {
250 atmel,pins =
251 <0 24 0x2 0x0 /* PA24 periph B */
252 0 25 0x2 0x0 /* PA25 periph B */
253 0 26 0x2 0x0>; /* PA26 periph B */
254 };
255
256 pinctrl_ssc0_rx: ssc0_rx-0 {
257 atmel,pins =
258 <0 27 0x2 0x0 /* PA27 periph B */
259 0 28 0x2 0x0 /* PA28 periph B */
260 0 29 0x2 0x0>; /* PA29 periph B */
261 };
262 };
263
264 spi0 {
265 pinctrl_spi0: spi0-0 {
266 atmel,pins =
267 <0 11 0x1 0x0 /* PA11 periph A SPI0_MISO pin */
268 0 12 0x1 0x0 /* PA12 periph A SPI0_MOSI pin */
269 0 13 0x1 0x0>; /* PA13 periph A SPI0_SPCK pin */
270 };
271 };
272
273 spi1 {
274 pinctrl_spi1: spi1-0 {
275 atmel,pins =
276 <0 21 0x2 0x0 /* PA21 periph B SPI1_MISO pin */
277 0 22 0x2 0x0 /* PA22 periph B SPI1_MOSI pin */
278 0 23 0x2 0x0>; /* PA23 periph B SPI1_SPCK pin */
279 };
280 };
281
282 pioA: gpio@fffff400 {
283 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
284 reg = <0xfffff400 0x200>;
285 interrupts = <2 4 1>;
286 #gpio-cells = <2>;
287 gpio-controller;
288 interrupt-controller;
289 #interrupt-cells = <2>;
290 };
291
292 pioB: gpio@fffff600 {
293 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
294 reg = <0xfffff600 0x200>;
295 interrupts = <2 4 1>;
296 #gpio-cells = <2>;
297 gpio-controller;
298 interrupt-controller;
299 #interrupt-cells = <2>;
300 };
301
302 pioC: gpio@fffff800 {
303 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
304 reg = <0xfffff800 0x200>;
305 interrupts = <3 4 1>;
306 #gpio-cells = <2>;
307 gpio-controller;
308 interrupt-controller;
309 #interrupt-cells = <2>;
310 };
311
312 pioD: gpio@fffffa00 {
313 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
314 reg = <0xfffffa00 0x200>;
315 interrupts = <3 4 1>;
316 #gpio-cells = <2>;
317 gpio-controller;
318 interrupt-controller;
319 #interrupt-cells = <2>;
320 };
321 };
322
323 dbgu: serial@fffff200 {
324 compatible = "atmel,at91sam9260-usart";
325 reg = <0xfffff200 0x200>;
326 interrupts = <1 4 7>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&pinctrl_dbgu>;
329 status = "disabled";
330 };
331
332 ssc0: ssc@f0010000 {
333 compatible = "atmel,at91sam9g45-ssc";
334 reg = <0xf0010000 0x4000>;
335 interrupts = <28 4 5>;
336 pinctrl-names = "default";
337 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
338 status = "disabled";
339 };
340
341 usart0: serial@f801c000 {
342 compatible = "atmel,at91sam9260-usart";
343 reg = <0xf801c000 0x4000>;
344 interrupts = <5 4 5>;
345 pinctrl-names = "default";
346 pinctrl-0 = <&pinctrl_usart0>;
347 status = "disabled";
348 };
349
350 usart1: serial@f8020000 {
351 compatible = "atmel,at91sam9260-usart";
352 reg = <0xf8020000 0x4000>;
353 interrupts = <6 4 5>;
354 pinctrl-names = "default";
355 pinctrl-0 = <&pinctrl_usart1>;
356 status = "disabled";
357 };
358
359 usart2: serial@f8024000 {
360 compatible = "atmel,at91sam9260-usart";
361 reg = <0xf8024000 0x4000>;
362 interrupts = <7 4 5>;
363 pinctrl-names = "default";
364 pinctrl-0 = <&pinctrl_usart2>;
365 status = "disabled";
366 };
367
368 usart3: serial@f8028000 {
369 compatible = "atmel,at91sam9260-usart";
370 reg = <0xf8028000 0x4000>;
371 interrupts = <8 4 5>;
372 pinctrl-names = "default";
373 pinctrl-0 = <&pinctrl_usart3>;
374 status = "disabled";
375 };
376
377 i2c0: i2c@f8010000 {
378 compatible = "atmel,at91sam9x5-i2c";
379 reg = <0xf8010000 0x100>;
380 interrupts = <9 4 6>;
381 #address-cells = <1>;
382 #size-cells = <0>;
383 status = "disabled";
384 };
385
386 i2c1: i2c@f8014000 {
387 compatible = "atmel,at91sam9x5-i2c";
388 reg = <0xf8014000 0x100>;
389 interrupts = <10 4 6>;
390 #address-cells = <1>;
391 #size-cells = <0>;
392 status = "disabled";
393 };
394
395 spi0: spi@f0000000 {
396 #address-cells = <1>;
397 #size-cells = <0>;
398 compatible = "atmel,at91rm9200-spi";
399 reg = <0xf0000000 0x100>;
400 interrupts = <13 4 3>;
401 pinctrl-names = "default";
402 pinctrl-0 = <&pinctrl_spi0>;
403 status = "disabled";
404 };
405
406 spi1: spi@f0004000 {
407 #address-cells = <1>;
408 #size-cells = <0>;
409 compatible = "atmel,at91rm9200-spi";
410 reg = <0xf0004000 0x100>;
411 interrupts = <14 4 3>;
412 pinctrl-names = "default";
413 pinctrl-0 = <&pinctrl_spi1>;
414 status = "disabled";
415 };
416 };
417
418 nand0: nand@40000000 {
419 compatible = "atmel,at91rm9200-nand";
420 #address-cells = <1>;
421 #size-cells = <1>;
422 reg = < 0x40000000 0x10000000
423 0xffffe000 0x00000600
424 0xffffe600 0x00000200
425 0x00108000 0x00018000
426 >;
427 atmel,pmecc-lookup-table-offset = <0x0 0x8000>;
428 atmel,nand-addr-offset = <21>;
429 atmel,nand-cmd-offset = <22>;
430 pinctrl-names = "default";
431 pinctrl-0 = <&pinctrl_nand>;
432 gpios = <&pioD 5 0
433 &pioD 4 0
434 0
435 >;
436 status = "disabled";
437 };
438
439 usb0: ohci@00500000 {
440 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
441 reg = <0x00500000 0x00100000>;
442 interrupts = <22 4 2>;
443 status = "disabled";
444 };
445 };
446
447 i2c@0 {
448 compatible = "i2c-gpio";
449 gpios = <&pioA 30 0 /* sda */
450 &pioA 31 0 /* scl */
451 >;
452 i2c-gpio,sda-open-drain;
453 i2c-gpio,scl-open-drain;
454 i2c-gpio,delay-us = <2>; /* ~100 kHz */
455 #address-cells = <1>;
456 #size-cells = <0>;
457 status = "disabled";
458 };
459 };