blob: 34d4d5c8c58d0f26012a59e5c64fa9d7b4b9e63a [file] [log] [blame]
Nicolas Ferre467f1cf2012-01-26 11:59:20 +01001/*
2 * at91sam9x5.dtsi - Device Tree Include file for AT91SAM9x5 family SoC
3 * applies to AT91SAM9G15, AT91SAM9G25, AT91SAM9G35,
4 * AT91SAM9X25, AT91SAM9X35 SoC
5 *
6 * Copyright (C) 2012 Atmel,
7 * 2012 Nicolas Ferre <nicolas.ferre@atmel.com>
8 *
9 * Licensed under GPLv2 or later.
10 */
11
12/include/ "skeleton.dtsi"
13
14/ {
15 model = "Atmel AT91SAM9x5 family SoC";
16 compatible = "atmel,at91sam9x5";
17 interrupt-parent = <&aic>;
18
19 aliases {
20 serial0 = &dbgu;
21 serial1 = &usart0;
22 serial2 = &usart1;
23 serial3 = &usart2;
24 gpio0 = &pioA;
25 gpio1 = &pioB;
26 gpio2 = &pioC;
27 gpio3 = &pioD;
28 tcb0 = &tcb0;
29 tcb1 = &tcb1;
Ludovic Desroches05dcd362012-09-12 08:42:16 +020030 i2c0 = &i2c0;
31 i2c1 = &i2c1;
32 i2c2 = &i2c2;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +010033 };
34 cpus {
35 cpu@0 {
36 compatible = "arm,arm926ejs";
37 };
38 };
39
Ludovic Desrochesdcce6ce2012-04-02 20:44:20 +020040 memory {
Nicolas Ferre467f1cf2012-01-26 11:59:20 +010041 reg = <0x20000000 0x10000000>;
42 };
43
44 ahb {
45 compatible = "simple-bus";
46 #address-cells = <1>;
47 #size-cells = <1>;
48 ranges;
49
50 apb {
51 compatible = "simple-bus";
52 #address-cells = <1>;
53 #size-cells = <1>;
54 ranges;
55
56 aic: interrupt-controller@fffff000 {
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020057 #interrupt-cells = <3>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +010058 compatible = "atmel,at91rm9200-aic";
59 interrupt-controller;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +010060 reg = <0xfffff000 0x200>;
Jean-Christophe PLAGNIOL-VILLARDc6573942012-04-09 19:36:36 +080061 atmel,external-irqs = <31>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +010062 };
63
Jean-Christophe PLAGNIOL-VILLARDa7776ec2012-03-02 20:54:37 +080064 ramc0: ramc@ffffe800 {
65 compatible = "atmel,at91sam9g45-ddramc";
66 reg = <0xffffe800 0x200>;
67 };
68
Jean-Christophe PLAGNIOL-VILLARDeb5e76f2012-03-02 20:44:23 +080069 pmc: pmc@fffffc00 {
70 compatible = "atmel,at91rm9200-pmc";
71 reg = <0xfffffc00 0x100>;
72 };
73
Jean-Christophe PLAGNIOL-VILLARDc8082d32012-03-03 03:16:27 +080074 rstc@fffffe00 {
75 compatible = "atmel,at91sam9g45-rstc";
76 reg = <0xfffffe00 0x10>;
77 };
78
Jean-Christophe PLAGNIOL-VILLARD82015c42012-03-02 21:01:00 +080079 shdwc@fffffe10 {
80 compatible = "atmel,at91sam9x5-shdwc";
81 reg = <0xfffffe10 0x10>;
82 };
83
Nicolas Ferre467f1cf2012-01-26 11:59:20 +010084 pit: timer@fffffe30 {
85 compatible = "atmel,at91sam9260-pit";
86 reg = <0xfffffe30 0xf>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020087 interrupts = <1 4 7>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +010088 };
89
90 tcb0: timer@f8008000 {
91 compatible = "atmel,at91sam9x5-tcb";
92 reg = <0xf8008000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020093 interrupts = <17 4 0>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +010094 };
95
96 tcb1: timer@f800c000 {
97 compatible = "atmel,at91sam9x5-tcb";
98 reg = <0xf800c000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020099 interrupts = <17 4 0>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100100 };
101
102 dma0: dma-controller@ffffec00 {
103 compatible = "atmel,at91sam9g45-dma";
104 reg = <0xffffec00 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200105 interrupts = <20 4 0>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100106 };
107
108 dma1: dma-controller@ffffee00 {
109 compatible = "atmel,at91sam9g45-dma";
110 reg = <0xffffee00 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200111 interrupts = <21 4 0>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100112 };
113
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800114 pinctrl@fffff200 {
115 #address-cells = <1>;
116 #size-cells = <1>;
Jean-Christophe PLAGNIOL-VILLARD5314ec82012-07-05 16:56:09 +0800117 compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800118 ranges = <0xfffff400 0xfffff400 0x800>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100119
Jean-Christophe PLAGNIOL-VILLARD5314ec82012-07-05 16:56:09 +0800120 atmel,mux-mask = <
121 /* A B C */
122 0xffffffff 0xffe0399f 0xc000001c /* pioA */
123 0xffffffff 0xffc003ff 0xffc003ff /* pioB */
124 0xffffffff 0xffc003ff 0xffc003ff /* pioC */
125 0xffffffff 0xffc003ff 0xffc003ff /* pioD */
126 >;
127
128 /* shared pinctrl settings */
129
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800130 pioA: gpio@fffff400 {
131 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
132 reg = <0xfffff400 0x200>;
133 interrupts = <2 4 1>;
134 #gpio-cells = <2>;
135 gpio-controller;
136 interrupt-controller;
137 #interrupt-cells = <2>;
138 };
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100139
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800140 pioB: gpio@fffff600 {
141 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
142 reg = <0xfffff600 0x200>;
143 interrupts = <2 4 1>;
144 #gpio-cells = <2>;
145 gpio-controller;
Jean-Christophe PLAGNIOL-VILLARDfc33ff42012-07-14 15:26:08 +0800146 #gpio-lines = <19>;
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800147 interrupt-controller;
148 #interrupt-cells = <2>;
149 };
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100150
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800151 pioC: gpio@fffff800 {
152 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
153 reg = <0xfffff800 0x200>;
154 interrupts = <3 4 1>;
155 #gpio-cells = <2>;
156 gpio-controller;
157 interrupt-controller;
158 #interrupt-cells = <2>;
159 };
160
161 pioD: gpio@fffffa00 {
162 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
163 reg = <0xfffffa00 0x200>;
164 interrupts = <3 4 1>;
165 #gpio-cells = <2>;
166 gpio-controller;
Jean-Christophe PLAGNIOL-VILLARDfc33ff42012-07-14 15:26:08 +0800167 #gpio-lines = <22>;
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800168 interrupt-controller;
169 #interrupt-cells = <2>;
170 };
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100171 };
172
173 dbgu: serial@fffff200 {
174 compatible = "atmel,at91sam9260-usart";
175 reg = <0xfffff200 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200176 interrupts = <1 4 7>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100177 status = "disabled";
178 };
179
180 usart0: serial@f801c000 {
181 compatible = "atmel,at91sam9260-usart";
182 reg = <0xf801c000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200183 interrupts = <5 4 5>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100184 atmel,use-dma-rx;
185 atmel,use-dma-tx;
186 status = "disabled";
187 };
188
189 usart1: serial@f8020000 {
190 compatible = "atmel,at91sam9260-usart";
191 reg = <0xf8020000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200192 interrupts = <6 4 5>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100193 atmel,use-dma-rx;
194 atmel,use-dma-tx;
195 status = "disabled";
196 };
197
198 usart2: serial@f8024000 {
199 compatible = "atmel,at91sam9260-usart";
200 reg = <0xf8024000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200201 interrupts = <7 4 5>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100202 atmel,use-dma-rx;
203 atmel,use-dma-tx;
204 status = "disabled";
205 };
206
207 macb0: ethernet@f802c000 {
208 compatible = "cdns,at32ap7000-macb", "cdns,macb";
209 reg = <0xf802c000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200210 interrupts = <24 4 3>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100211 status = "disabled";
212 };
213
214 macb1: ethernet@f8030000 {
215 compatible = "cdns,at32ap7000-macb", "cdns,macb";
216 reg = <0xf8030000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200217 interrupts = <27 4 3>;
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100218 status = "disabled";
219 };
Maxime Ripardd029f372012-05-11 15:35:39 +0200220
Ludovic Desroches05dcd362012-09-12 08:42:16 +0200221 i2c0: i2c@f8010000 {
222 compatible = "atmel,at91sam9x5-i2c";
223 reg = <0xf8010000 0x100>;
224 interrupts = <9 4 6>;
225 #address-cells = <1>;
226 #size-cells = <0>;
227 status = "disabled";
228 };
229
230 i2c1: i2c@f8014000 {
231 compatible = "atmel,at91sam9x5-i2c";
232 reg = <0xf8014000 0x100>;
233 interrupts = <10 4 6>;
234 #address-cells = <1>;
235 #size-cells = <0>;
236 status = "disabled";
237 };
238
239 i2c2: i2c@f8018000 {
240 compatible = "atmel,at91sam9x5-i2c";
241 reg = <0xf8018000 0x100>;
242 interrupts = <11 4 6>;
243 #address-cells = <1>;
244 #size-cells = <0>;
245 status = "disabled";
246 };
247
Maxime Ripardd029f372012-05-11 15:35:39 +0200248 adc0: adc@f804c000 {
249 compatible = "atmel,at91sam9260-adc";
250 reg = <0xf804c000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200251 interrupts = <19 4 0>;
Maxime Ripardd029f372012-05-11 15:35:39 +0200252 atmel,adc-use-external;
253 atmel,adc-channels-used = <0xffff>;
254 atmel,adc-vref = <3300>;
255 atmel,adc-num-channels = <12>;
256 atmel,adc-startup-time = <40>;
257 atmel,adc-channel-base = <0x50>;
258 atmel,adc-drdy-mask = <0x1000000>;
259 atmel,adc-status-register = <0x30>;
260 atmel,adc-trigger-register = <0xc0>;
261
262 trigger@0 {
263 trigger-name = "external-rising";
264 trigger-value = <0x1>;
265 trigger-external;
266 };
267
268 trigger@1 {
269 trigger-name = "external-falling";
270 trigger-value = <0x2>;
271 trigger-external;
272 };
273
274 trigger@2 {
275 trigger-name = "external-any";
276 trigger-value = <0x3>;
277 trigger-external;
278 };
279
280 trigger@3 {
281 trigger-name = "continuous";
282 trigger-value = <0x6>;
283 };
284 };
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100285 };
Jean-Christophe PLAGNIOL-VILLARD86a89f42012-02-21 21:38:18 +0800286
287 nand0: nand@40000000 {
288 compatible = "atmel,at91rm9200-nand";
289 #address-cells = <1>;
290 #size-cells = <1>;
291 reg = <0x40000000 0x10000000
292 >;
293 atmel,nand-addr-offset = <21>;
294 atmel,nand-cmd-offset = <22>;
Nicolas Ferre43528082012-03-22 14:47:40 +0100295 gpios = <&pioD 5 0
296 &pioD 4 0
Jean-Christophe PLAGNIOL-VILLARD86a89f42012-02-21 21:38:18 +0800297 0
298 >;
299 status = "disabled";
300 };
Jean-Christophe PLAGNIOL-VILLARD6a062452011-11-21 06:55:18 +0800301
302 usb0: ohci@00600000 {
303 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
304 reg = <0x00600000 0x100000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200305 interrupts = <22 4 2>;
Jean-Christophe PLAGNIOL-VILLARD6a062452011-11-21 06:55:18 +0800306 status = "disabled";
307 };
Jean-Christophe PLAGNIOL-VILLARD62c55532011-11-22 12:11:13 +0800308
309 usb1: ehci@00700000 {
310 compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
311 reg = <0x00700000 0x100000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200312 interrupts = <22 4 2>;
Jean-Christophe PLAGNIOL-VILLARD62c55532011-11-22 12:11:13 +0800313 status = "disabled";
314 };
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100315 };
Jean-Christophe PLAGNIOL-VILLARD10f71c22012-02-23 22:50:32 +0800316
317 i2c@0 {
318 compatible = "i2c-gpio";
319 gpios = <&pioA 30 0 /* sda */
320 &pioA 31 0 /* scl */
321 >;
322 i2c-gpio,sda-open-drain;
323 i2c-gpio,scl-open-drain;
324 i2c-gpio,delay-us = <2>; /* ~100 kHz */
325 #address-cells = <1>;
326 #size-cells = <0>;
327 status = "disabled";
328 };
329
330 i2c@1 {
331 compatible = "i2c-gpio";
332 gpios = <&pioC 0 0 /* sda */
333 &pioC 1 0 /* scl */
334 >;
335 i2c-gpio,sda-open-drain;
336 i2c-gpio,scl-open-drain;
337 i2c-gpio,delay-us = <2>; /* ~100 kHz */
338 #address-cells = <1>;
339 #size-cells = <0>;
340 status = "disabled";
341 };
342
343 i2c@2 {
344 compatible = "i2c-gpio";
345 gpios = <&pioB 4 0 /* sda */
346 &pioB 5 0 /* scl */
347 >;
348 i2c-gpio,sda-open-drain;
349 i2c-gpio,scl-open-drain;
350 i2c-gpio,delay-us = <2>; /* ~100 kHz */
351 #address-cells = <1>;
352 #size-cells = <0>;
353 status = "disabled";
354 };
Nicolas Ferre467f1cf2012-01-26 11:59:20 +0100355};