blob: acfa207162ff581eaaf063c4d3154a6f658ea177 [file] [log] [blame]
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +02001/*
2 * at91sam9g45.dtsi - Device Tree Include file for AT91SAM9G45 family SoC
3 * applies to AT91SAM9G45, AT91SAM9M10,
4 * AT91SAM9G46, AT91SAM9M11 SoC
5 *
6 * Copyright (C) 2011 Atmel,
7 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
8 *
9 * Licensed under GPLv2 or later.
10 */
11
12/include/ "skeleton.dtsi"
13
14/ {
15 model = "Atmel AT91SAM9G45 family SoC";
16 compatible = "atmel,at91sam9g45";
17 interrupt-parent = <&aic>;
18
19 aliases {
20 serial0 = &dbgu;
21 serial1 = &usart0;
22 serial2 = &usart1;
23 serial3 = &usart2;
24 serial4 = &usart3;
Nicolas Ferre21f81872012-02-11 15:41:40 +010025 gpio0 = &pioA;
26 gpio1 = &pioB;
27 gpio2 = &pioC;
28 gpio3 = &pioD;
29 gpio4 = &pioE;
Nicolas Ferre3a61a5d2012-01-19 10:13:40 +010030 tcb0 = &tcb0;
31 tcb1 = &tcb1;
Ludovic Desroches05dcd362012-09-12 08:42:16 +020032 i2c0 = &i2c0;
33 i2c1 = &i2c1;
Bo Shen099343c2012-11-07 11:41:41 +080034 ssc0 = &ssc0;
35 ssc1 = &ssc1;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020036 };
37 cpus {
38 cpu@0 {
39 compatible = "arm,arm926ejs";
40 };
41 };
42
Ludovic Desrochesdcce6ce2012-04-02 20:44:20 +020043 memory {
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020044 reg = <0x70000000 0x10000000>;
45 };
46
47 ahb {
48 compatible = "simple-bus";
49 #address-cells = <1>;
50 #size-cells = <1>;
51 ranges;
52
53 apb {
54 compatible = "simple-bus";
55 #address-cells = <1>;
56 #size-cells = <1>;
57 ranges;
58
59 aic: interrupt-controller@fffff000 {
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020060 #interrupt-cells = <3>;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020061 compatible = "atmel,at91rm9200-aic";
62 interrupt-controller;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020063 reg = <0xfffff000 0x200>;
Jean-Christophe PLAGNIOL-VILLARDc6573942012-04-09 19:36:36 +080064 atmel,external-irqs = <31>;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +020065 };
66
Jean-Christophe PLAGNIOL-VILLARDa7776ec2012-03-02 20:54:37 +080067 ramc0: ramc@ffffe400 {
68 compatible = "atmel,at91sam9g45-ddramc";
69 reg = <0xffffe400 0x200
70 0xffffe600 0x200>;
71 };
72
Jean-Christophe PLAGNIOL-VILLARDeb5e76f2012-03-02 20:44:23 +080073 pmc: pmc@fffffc00 {
74 compatible = "atmel,at91rm9200-pmc";
75 reg = <0xfffffc00 0x100>;
76 };
77
Jean-Christophe PLAGNIOL-VILLARDc8082d32012-03-03 03:16:27 +080078 rstc@fffffd00 {
79 compatible = "atmel,at91sam9g45-rstc";
80 reg = <0xfffffd00 0x10>;
81 };
82
Jean-Christophe PLAGNIOL-VILLARD23fa6482012-02-27 11:19:34 +010083 pit: timer@fffffd30 {
84 compatible = "atmel,at91sam9260-pit";
85 reg = <0xfffffd30 0xf>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020086 interrupts = <1 4 7>;
Jean-Christophe PLAGNIOL-VILLARD23fa6482012-02-27 11:19:34 +010087 };
88
Nicolas Ferre3a61a5d2012-01-19 10:13:40 +010089
Jean-Christophe PLAGNIOL-VILLARD82015c42012-03-02 21:01:00 +080090 shdwc@fffffd10 {
91 compatible = "atmel,at91sam9rl-shdwc";
92 reg = <0xfffffd10 0x10>;
93 };
94
Nicolas Ferre3a61a5d2012-01-19 10:13:40 +010095 tcb0: timer@fff7c000 {
96 compatible = "atmel,at91rm9200-tcb";
97 reg = <0xfff7c000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020098 interrupts = <18 4 0>;
Nicolas Ferre3a61a5d2012-01-19 10:13:40 +010099 };
100
101 tcb1: timer@fffd4000 {
102 compatible = "atmel,at91rm9200-tcb";
103 reg = <0xfffd4000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200104 interrupts = <18 4 0>;
Nicolas Ferre3a61a5d2012-01-19 10:13:40 +0100105 };
106
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200107 dma: dma-controller@ffffec00 {
108 compatible = "atmel,at91sam9g45-dma";
109 reg = <0xffffec00 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200110 interrupts = <21 4 0>;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200111 };
112
Nicolas Ferre21f81872012-02-11 15:41:40 +0100113 pioA: gpio@fffff200 {
114 compatible = "atmel,at91rm9200-gpio";
115 reg = <0xfffff200 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200116 interrupts = <2 4 1>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100117 #gpio-cells = <2>;
118 gpio-controller;
119 interrupt-controller;
Jean-Christophe PLAGNIOL-VILLARD51ac51a2012-09-13 12:40:26 +0200120 #interrupt-cells = <2>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100121 };
122
123 pioB: gpio@fffff400 {
124 compatible = "atmel,at91rm9200-gpio";
125 reg = <0xfffff400 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200126 interrupts = <3 4 1>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100127 #gpio-cells = <2>;
128 gpio-controller;
129 interrupt-controller;
Jean-Christophe PLAGNIOL-VILLARD51ac51a2012-09-13 12:40:26 +0200130 #interrupt-cells = <2>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100131 };
132
133 pioC: gpio@fffff600 {
134 compatible = "atmel,at91rm9200-gpio";
135 reg = <0xfffff600 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200136 interrupts = <4 4 1>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100137 #gpio-cells = <2>;
138 gpio-controller;
139 interrupt-controller;
Jean-Christophe PLAGNIOL-VILLARD51ac51a2012-09-13 12:40:26 +0200140 #interrupt-cells = <2>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100141 };
142
143 pioD: gpio@fffff800 {
144 compatible = "atmel,at91rm9200-gpio";
145 reg = <0xfffff800 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200146 interrupts = <5 4 1>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100147 #gpio-cells = <2>;
148 gpio-controller;
149 interrupt-controller;
Jean-Christophe PLAGNIOL-VILLARD51ac51a2012-09-13 12:40:26 +0200150 #interrupt-cells = <2>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100151 };
152
153 pioE: gpio@fffffa00 {
154 compatible = "atmel,at91rm9200-gpio";
155 reg = <0xfffffa00 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200156 interrupts = <5 4 1>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100157 #gpio-cells = <2>;
158 gpio-controller;
159 interrupt-controller;
Jean-Christophe PLAGNIOL-VILLARD51ac51a2012-09-13 12:40:26 +0200160 #interrupt-cells = <2>;
Nicolas Ferre21f81872012-02-11 15:41:40 +0100161 };
162
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200163 dbgu: serial@ffffee00 {
164 compatible = "atmel,at91sam9260-usart";
165 reg = <0xffffee00 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200166 interrupts = <1 4 7>;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200167 status = "disabled";
168 };
169
170 usart0: serial@fff8c000 {
171 compatible = "atmel,at91sam9260-usart";
172 reg = <0xfff8c000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200173 interrupts = <7 4 5>;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200174 atmel,use-dma-rx;
175 atmel,use-dma-tx;
176 status = "disabled";
177 };
178
179 usart1: serial@fff90000 {
180 compatible = "atmel,at91sam9260-usart";
181 reg = <0xfff90000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200182 interrupts = <8 4 5>;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200183 atmel,use-dma-rx;
184 atmel,use-dma-tx;
185 status = "disabled";
186 };
187
188 usart2: serial@fff94000 {
189 compatible = "atmel,at91sam9260-usart";
190 reg = <0xfff94000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200191 interrupts = <9 4 5>;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200192 atmel,use-dma-rx;
193 atmel,use-dma-tx;
194 status = "disabled";
195 };
196
197 usart3: serial@fff98000 {
198 compatible = "atmel,at91sam9260-usart";
199 reg = <0xfff98000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200200 interrupts = <10 4 5>;
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200201 atmel,use-dma-rx;
202 atmel,use-dma-tx;
203 status = "disabled";
204 };
Nicolas Ferre0d4f99d2011-12-05 18:03:05 +0100205
206 macb0: ethernet@fffbc000 {
207 compatible = "cdns,at32ap7000-macb", "cdns,macb";
208 reg = <0xfffbc000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200209 interrupts = <25 4 3>;
Nicolas Ferre0d4f99d2011-12-05 18:03:05 +0100210 status = "disabled";
211 };
Maxime Ripard93b298b2012-05-11 15:35:38 +0200212
Ludovic Desroches05dcd362012-09-12 08:42:16 +0200213 i2c0: i2c@fff84000 {
214 compatible = "atmel,at91sam9g10-i2c";
215 reg = <0xfff84000 0x100>;
216 interrupts = <12 4 6>;
217 #address-cells = <1>;
218 #size-cells = <0>;
219 status = "disabled";
220 };
221
222 i2c1: i2c@fff88000 {
223 compatible = "atmel,at91sam9g10-i2c";
224 reg = <0xfff88000 0x100>;
225 interrupts = <13 4 6>;
226 #address-cells = <1>;
227 #size-cells = <0>;
228 status = "disabled";
229 };
230
Bo Shen099343c2012-11-07 11:41:41 +0800231 ssc0: ssc@fff9c000 {
232 compatible = "atmel,at91sam9g45-ssc";
233 reg = <0xfff9c000 0x4000>;
234 interrupts = <16 4 5>;
235 status = "disable";
236 };
237
238 ssc1: ssc@fffa0000 {
239 compatible = "atmel,at91sam9g45-ssc";
240 reg = <0xfffa0000 0x4000>;
241 interrupts = <17 4 5>;
242 status = "disable";
243 };
244
Maxime Ripard93b298b2012-05-11 15:35:38 +0200245 adc0: adc@fffb0000 {
246 compatible = "atmel,at91sam9260-adc";
247 reg = <0xfffb0000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200248 interrupts = <20 4 0>;
Maxime Ripard93b298b2012-05-11 15:35:38 +0200249 atmel,adc-use-external-triggers;
250 atmel,adc-channels-used = <0xff>;
251 atmel,adc-vref = <3300>;
252 atmel,adc-num-channels = <8>;
253 atmel,adc-startup-time = <40>;
254 atmel,adc-channel-base = <0x30>;
255 atmel,adc-drdy-mask = <0x10000>;
256 atmel,adc-status-register = <0x1c>;
257 atmel,adc-trigger-register = <0x08>;
258
259 trigger@0 {
260 trigger-name = "external-rising";
261 trigger-value = <0x1>;
262 trigger-external;
263 };
264 trigger@1 {
265 trigger-name = "external-falling";
266 trigger-value = <0x2>;
267 trigger-external;
268 };
269
270 trigger@2 {
271 trigger-name = "external-any";
272 trigger-value = <0x3>;
273 trigger-external;
274 };
275
276 trigger@3 {
277 trigger-name = "continuous";
278 trigger-value = <0x6>;
279 };
280 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200281 };
Jean-Christophe PLAGNIOL-VILLARDd6a01662012-01-26 02:11:06 +0800282
283 nand0: nand@40000000 {
284 compatible = "atmel,at91rm9200-nand";
285 #address-cells = <1>;
286 #size-cells = <1>;
287 reg = <0x40000000 0x10000000
288 0xffffe200 0x200
289 >;
290 atmel,nand-addr-offset = <21>;
291 atmel,nand-cmd-offset = <22>;
292 gpios = <&pioC 8 0
293 &pioC 14 0
294 0
295 >;
296 status = "disabled";
297 };
Jean-Christophe PLAGNIOL-VILLARD6a062452011-11-21 06:55:18 +0800298
299 usb0: ohci@00700000 {
300 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
301 reg = <0x00700000 0x100000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200302 interrupts = <22 4 2>;
Jean-Christophe PLAGNIOL-VILLARD6a062452011-11-21 06:55:18 +0800303 status = "disabled";
304 };
Jean-Christophe PLAGNIOL-VILLARD62c55532011-11-22 12:11:13 +0800305
306 usb1: ehci@00800000 {
307 compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
308 reg = <0x00800000 0x100000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200309 interrupts = <22 4 2>;
Jean-Christophe PLAGNIOL-VILLARD62c55532011-11-22 12:11:13 +0800310 status = "disabled";
311 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200312 };
Jean-Christophe PLAGNIOL-VILLARD8f24bda2012-02-05 18:32:37 +0800313
314 i2c@0 {
315 compatible = "i2c-gpio";
316 gpios = <&pioA 20 0 /* sda */
317 &pioA 21 0 /* scl */
318 >;
319 i2c-gpio,sda-open-drain;
320 i2c-gpio,scl-open-drain;
321 i2c-gpio,delay-us = <5>; /* ~100 kHz */
322 #address-cells = <1>;
323 #size-cells = <0>;
324 status = "disabled";
325 };
Nicolas Ferre49fe2ba2011-10-10 18:29:24 +0200326};