blob: 0b72ae3d8250994861e0602a689246040e669325 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +08001/*
2 * at91sam9260.dtsi - Device Tree Include file for AT91SAM9260 family SoC
3 *
4 * Copyright (C) 2011 Atmel,
5 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>,
6 * 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
7 *
8 * Licensed under GPLv2 or later.
9 */
10
11/include/ "skeleton.dtsi"
12
13/ {
14 model = "Atmel AT91SAM9260 family SoC";
15 compatible = "atmel,at91sam9260";
16 interrupt-parent = <&aic>;
17
18 aliases {
19 serial0 = &dbgu;
20 serial1 = &usart0;
21 serial2 = &usart1;
22 serial3 = &usart2;
23 serial4 = &usart3;
24 serial5 = &usart4;
25 serial6 = &usart5;
26 gpio0 = &pioA;
27 gpio1 = &pioB;
28 gpio2 = &pioC;
29 tcb0 = &tcb0;
30 tcb1 = &tcb1;
Ludovic Desroches05dcd362012-09-12 08:42:16 +020031 i2c0 = &i2c0;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +080032 };
33 cpus {
34 cpu@0 {
35 compatible = "arm,arm926ejs";
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 {
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020056 #interrupt-cells = <3>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +080057 compatible = "atmel,at91rm9200-aic";
58 interrupt-controller;
59 reg = <0xfffff000 0x200>;
Jean-Christophe PLAGNIOL-VILLARDc6573942012-04-09 19:36:36 +080060 atmel,external-irqs = <29 30 31>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +080061 };
62
63 ramc0: ramc@ffffea00 {
64 compatible = "atmel,at91sam9260-sdramc";
65 reg = <0xffffea00 0x200>;
66 };
67
68 pmc: pmc@fffffc00 {
69 compatible = "atmel,at91rm9200-pmc";
70 reg = <0xfffffc00 0x100>;
71 };
72
73 rstc@fffffd00 {
74 compatible = "atmel,at91sam9260-rstc";
75 reg = <0xfffffd00 0x10>;
76 };
77
78 shdwc@fffffd10 {
79 compatible = "atmel,at91sam9260-shdwc";
80 reg = <0xfffffd10 0x10>;
81 };
82
83 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-VILLARD5b6089c2012-04-09 19:26:33 +080087 };
88
89 tcb0: timer@fffa0000 {
90 compatible = "atmel,at91rm9200-tcb";
91 reg = <0xfffa0000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020092 interrupts = <17 4 0 18 4 0 19 4 0>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +080093 };
94
95 tcb1: timer@fffdc000 {
96 compatible = "atmel,at91rm9200-tcb";
97 reg = <0xfffdc000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020098 interrupts = <26 4 0 27 4 0 28 4 0>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +080099 };
100
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800101 pinctrl@fffff400 {
102 #address-cells = <1>;
103 #size-cells = <1>;
104 compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
105 ranges = <0xfffff400 0xfffff400 0x600>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800106
Jean-Christophe PLAGNIOL-VILLARD5314ec82012-07-05 16:56:09 +0800107 atmel,mux-mask = <
108 /* A B */
109 0xffffffff 0xffc00c3b /* pioA */
110 0xffffffff 0x7fff3ccf /* pioB */
111 0xffffffff 0x007fffff /* pioC */
112 >;
113
114 /* shared pinctrl settings */
115
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800116 pioA: gpio@fffff400 {
117 compatible = "atmel,at91rm9200-gpio";
118 reg = <0xfffff400 0x200>;
119 interrupts = <2 4 1>;
120 #gpio-cells = <2>;
121 gpio-controller;
122 interrupt-controller;
123 #interrupt-cells = <2>;
124 };
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800125
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800126 pioB: gpio@fffff600 {
127 compatible = "atmel,at91rm9200-gpio";
128 reg = <0xfffff600 0x200>;
129 interrupts = <3 4 1>;
130 #gpio-cells = <2>;
131 gpio-controller;
132 interrupt-controller;
133 #interrupt-cells = <2>;
134 };
135
136 pioC: gpio@fffff800 {
137 compatible = "atmel,at91rm9200-gpio";
138 reg = <0xfffff800 0x200>;
139 interrupts = <4 4 1>;
140 #gpio-cells = <2>;
141 gpio-controller;
142 interrupt-controller;
143 #interrupt-cells = <2>;
144 };
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800145 };
146
147 dbgu: serial@fffff200 {
148 compatible = "atmel,at91sam9260-usart";
149 reg = <0xfffff200 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200150 interrupts = <1 4 7>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800151 status = "disabled";
152 };
153
154 usart0: serial@fffb0000 {
155 compatible = "atmel,at91sam9260-usart";
156 reg = <0xfffb0000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200157 interrupts = <6 4 5>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800158 atmel,use-dma-rx;
159 atmel,use-dma-tx;
160 status = "disabled";
161 };
162
163 usart1: serial@fffb4000 {
164 compatible = "atmel,at91sam9260-usart";
165 reg = <0xfffb4000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200166 interrupts = <7 4 5>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800167 atmel,use-dma-rx;
168 atmel,use-dma-tx;
169 status = "disabled";
170 };
171
172 usart2: serial@fffb8000 {
173 compatible = "atmel,at91sam9260-usart";
174 reg = <0xfffb8000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200175 interrupts = <8 4 5>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800176 atmel,use-dma-rx;
177 atmel,use-dma-tx;
178 status = "disabled";
179 };
180
181 usart3: serial@fffd0000 {
182 compatible = "atmel,at91sam9260-usart";
183 reg = <0xfffd0000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200184 interrupts = <23 4 5>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800185 atmel,use-dma-rx;
186 atmel,use-dma-tx;
187 status = "disabled";
188 };
189
190 usart4: serial@fffd4000 {
191 compatible = "atmel,at91sam9260-usart";
192 reg = <0xfffd4000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200193 interrupts = <24 4 5>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800194 atmel,use-dma-rx;
195 atmel,use-dma-tx;
196 status = "disabled";
197 };
198
199 usart5: serial@fffd8000 {
200 compatible = "atmel,at91sam9260-usart";
201 reg = <0xfffd8000 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200202 interrupts = <25 4 5>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800203 atmel,use-dma-rx;
204 atmel,use-dma-tx;
205 status = "disabled";
206 };
207
208 macb0: ethernet@fffc4000 {
209 compatible = "cdns,at32ap7000-macb", "cdns,macb";
210 reg = <0xfffc4000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200211 interrupts = <21 4 3>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800212 status = "disabled";
213 };
214
215 usb1: gadget@fffa4000 {
216 compatible = "atmel,at91rm9200-udc";
217 reg = <0xfffa4000 0x4000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200218 interrupts = <10 4 2>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800219 status = "disabled";
220 };
Nicolas Ferre73d68d92012-05-16 17:37:06 +0200221
Ludovic Desroches05dcd362012-09-12 08:42:16 +0200222 i2c0: i2c@fffac000 {
223 compatible = "atmel,at91sam9260-i2c";
224 reg = <0xfffac000 0x100>;
225 interrupts = <11 4 6>;
226 #address-cells = <1>;
227 #size-cells = <0>;
228 status = "disabled";
229 };
230
Nicolas Ferre73d68d92012-05-16 17:37:06 +0200231 adc0: adc@fffe0000 {
232 compatible = "atmel,at91sam9260-adc";
233 reg = <0xfffe0000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200234 interrupts = <5 4 0>;
Nicolas Ferre73d68d92012-05-16 17:37:06 +0200235 atmel,adc-use-external-triggers;
236 atmel,adc-channels-used = <0xf>;
237 atmel,adc-vref = <3300>;
238 atmel,adc-num-channels = <4>;
239 atmel,adc-startup-time = <15>;
240 atmel,adc-channel-base = <0x30>;
241 atmel,adc-drdy-mask = <0x10000>;
242 atmel,adc-status-register = <0x1c>;
243 atmel,adc-trigger-register = <0x04>;
244
245 trigger@0 {
246 trigger-name = "timer-counter-0";
247 trigger-value = <0x1>;
248 };
249 trigger@1 {
250 trigger-name = "timer-counter-1";
251 trigger-value = <0x3>;
252 };
253
254 trigger@2 {
255 trigger-name = "timer-counter-2";
256 trigger-value = <0x5>;
257 };
258
259 trigger@3 {
260 trigger-name = "external";
261 trigger-value = <0x13>;
262 trigger-external;
263 };
264 };
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800265 };
266
267 nand0: nand@40000000 {
268 compatible = "atmel,at91rm9200-nand";
269 #address-cells = <1>;
270 #size-cells = <1>;
271 reg = <0x40000000 0x10000000
272 0xffffe800 0x200
273 >;
274 atmel,nand-addr-offset = <21>;
275 atmel,nand-cmd-offset = <22>;
276 gpios = <&pioC 13 0
277 &pioC 14 0
278 0
279 >;
280 status = "disabled";
281 };
282
283 usb0: ohci@00500000 {
284 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
285 reg = <0x00500000 0x100000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200286 interrupts = <20 4 2>;
Jean-Christophe PLAGNIOL-VILLARD5b6089c2012-04-09 19:26:33 +0800287 status = "disabled";
288 };
289 };
290
291 i2c@0 {
292 compatible = "i2c-gpio";
293 gpios = <&pioA 23 0 /* sda */
294 &pioA 24 0 /* scl */
295 >;
296 i2c-gpio,sda-open-drain;
297 i2c-gpio,scl-open-drain;
298 i2c-gpio,delay-us = <2>; /* ~100 kHz */
299 #address-cells = <1>;
300 #size-cells = <0>;
301 status = "disabled";
302 };
303};