acfa207162ff581eaaf063c4d3154a6f658ea177
[~shefty/rdma-dev.git] / arch / arm / boot / dts / at91sam9g45.dtsi
1 /*
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;
25                 gpio0 = &pioA;
26                 gpio1 = &pioB;
27                 gpio2 = &pioC;
28                 gpio3 = &pioD;
29                 gpio4 = &pioE;
30                 tcb0 = &tcb0;
31                 tcb1 = &tcb1;
32                 i2c0 = &i2c0;
33                 i2c1 = &i2c1;
34                 ssc0 = &ssc0;
35                 ssc1 = &ssc1;
36         };
37         cpus {
38                 cpu@0 {
39                         compatible = "arm,arm926ejs";
40                 };
41         };
42
43         memory {
44                 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 {
60                                 #interrupt-cells = <3>;
61                                 compatible = "atmel,at91rm9200-aic";
62                                 interrupt-controller;
63                                 reg = <0xfffff000 0x200>;
64                                 atmel,external-irqs = <31>;
65                         };
66
67                         ramc0: ramc@ffffe400 {
68                                 compatible = "atmel,at91sam9g45-ddramc";
69                                 reg = <0xffffe400 0x200
70                                        0xffffe600 0x200>;
71                         };
72
73                         pmc: pmc@fffffc00 {
74                                 compatible = "atmel,at91rm9200-pmc";
75                                 reg = <0xfffffc00 0x100>;
76                         };
77
78                         rstc@fffffd00 {
79                                 compatible = "atmel,at91sam9g45-rstc";
80                                 reg = <0xfffffd00 0x10>;
81                         };
82
83                         pit: timer@fffffd30 {
84                                 compatible = "atmel,at91sam9260-pit";
85                                 reg = <0xfffffd30 0xf>;
86                                 interrupts = <1 4 7>;
87                         };
88
89
90                         shdwc@fffffd10 {
91                                 compatible = "atmel,at91sam9rl-shdwc";
92                                 reg = <0xfffffd10 0x10>;
93                         };
94
95                         tcb0: timer@fff7c000 {
96                                 compatible = "atmel,at91rm9200-tcb";
97                                 reg = <0xfff7c000 0x100>;
98                                 interrupts = <18 4 0>;
99                         };
100
101                         tcb1: timer@fffd4000 {
102                                 compatible = "atmel,at91rm9200-tcb";
103                                 reg = <0xfffd4000 0x100>;
104                                 interrupts = <18 4 0>;
105                         };
106
107                         dma: dma-controller@ffffec00 {
108                                 compatible = "atmel,at91sam9g45-dma";
109                                 reg = <0xffffec00 0x200>;
110                                 interrupts = <21 4 0>;
111                         };
112
113                         pioA: gpio@fffff200 {
114                                 compatible = "atmel,at91rm9200-gpio";
115                                 reg = <0xfffff200 0x100>;
116                                 interrupts = <2 4 1>;
117                                 #gpio-cells = <2>;
118                                 gpio-controller;
119                                 interrupt-controller;
120                                 #interrupt-cells = <2>;
121                         };
122
123                         pioB: gpio@fffff400 {
124                                 compatible = "atmel,at91rm9200-gpio";
125                                 reg = <0xfffff400 0x100>;
126                                 interrupts = <3 4 1>;
127                                 #gpio-cells = <2>;
128                                 gpio-controller;
129                                 interrupt-controller;
130                                 #interrupt-cells = <2>;
131                         };
132
133                         pioC: gpio@fffff600 {
134                                 compatible = "atmel,at91rm9200-gpio";
135                                 reg = <0xfffff600 0x100>;
136                                 interrupts = <4 4 1>;
137                                 #gpio-cells = <2>;
138                                 gpio-controller;
139                                 interrupt-controller;
140                                 #interrupt-cells = <2>;
141                         };
142
143                         pioD: gpio@fffff800 {
144                                 compatible = "atmel,at91rm9200-gpio";
145                                 reg = <0xfffff800 0x100>;
146                                 interrupts = <5 4 1>;
147                                 #gpio-cells = <2>;
148                                 gpio-controller;
149                                 interrupt-controller;
150                                 #interrupt-cells = <2>;
151                         };
152
153                         pioE: gpio@fffffa00 {
154                                 compatible = "atmel,at91rm9200-gpio";
155                                 reg = <0xfffffa00 0x100>;
156                                 interrupts = <5 4 1>;
157                                 #gpio-cells = <2>;
158                                 gpio-controller;
159                                 interrupt-controller;
160                                 #interrupt-cells = <2>;
161                         };
162
163                         dbgu: serial@ffffee00 {
164                                 compatible = "atmel,at91sam9260-usart";
165                                 reg = <0xffffee00 0x200>;
166                                 interrupts = <1 4 7>;
167                                 status = "disabled";
168                         };
169
170                         usart0: serial@fff8c000 {
171                                 compatible = "atmel,at91sam9260-usart";
172                                 reg = <0xfff8c000 0x200>;
173                                 interrupts = <7 4 5>;
174                                 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>;
182                                 interrupts = <8 4 5>;
183                                 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>;
191                                 interrupts = <9 4 5>;
192                                 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>;
200                                 interrupts = <10 4 5>;
201                                 atmel,use-dma-rx;
202                                 atmel,use-dma-tx;
203                                 status = "disabled";
204                         };
205
206                         macb0: ethernet@fffbc000 {
207                                 compatible = "cdns,at32ap7000-macb", "cdns,macb";
208                                 reg = <0xfffbc000 0x100>;
209                                 interrupts = <25 4 3>;
210                                 status = "disabled";
211                         };
212
213                         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
231                         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
245                         adc0: adc@fffb0000 {
246                                 compatible = "atmel,at91sam9260-adc";
247                                 reg = <0xfffb0000 0x100>;
248                                 interrupts = <20 4 0>;
249                                 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                         };
281                 };
282
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                 };
298
299                 usb0: ohci@00700000 {
300                         compatible = "atmel,at91rm9200-ohci", "usb-ohci";
301                         reg = <0x00700000 0x100000>;
302                         interrupts = <22 4 2>;
303                         status = "disabled";
304                 };
305
306                 usb1: ehci@00800000 {
307                         compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
308                         reg = <0x00800000 0x100000>;
309                         interrupts = <22 4 2>;
310                         status = "disabled";
311                 };
312         };
313
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         };
326 };