cf4b59fc8e08aa448454860ee9d8543c5e228248
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / at91sam9263.dtsi
1 /*
2  * at91sam9263.dtsi - Device Tree Include file for AT91SAM9263 family SoC
3  *
4  *  Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5  *
6  * Licensed under GPLv2 only.
7  */
8
9 /include/ "skeleton.dtsi"
10
11 / {
12         model = "Atmel AT91SAM9263 family SoC";
13         compatible = "atmel,at91sam9263";
14         interrupt-parent = <&aic>;
15
16         aliases {
17                 serial0 = &dbgu;
18                 serial1 = &usart0;
19                 serial2 = &usart1;
20                 serial3 = &usart2;
21                 gpio0 = &pioA;
22                 gpio1 = &pioB;
23                 gpio2 = &pioC;
24                 gpio3 = &pioD;
25                 gpio4 = &pioE;
26                 tcb0 = &tcb0;
27                 i2c0 = &i2c0;
28         };
29         cpus {
30                 cpu@0 {
31                         compatible = "arm,arm926ejs";
32                 };
33         };
34
35         memory {
36                 reg = <0x20000000 0x08000000>;
37         };
38
39         ahb {
40                 compatible = "simple-bus";
41                 #address-cells = <1>;
42                 #size-cells = <1>;
43                 ranges;
44
45                 apb {
46                         compatible = "simple-bus";
47                         #address-cells = <1>;
48                         #size-cells = <1>;
49                         ranges;
50
51                         aic: interrupt-controller@fffff000 {
52                                 #interrupt-cells = <3>;
53                                 compatible = "atmel,at91rm9200-aic";
54                                 interrupt-controller;
55                                 reg = <0xfffff000 0x200>;
56                                 atmel,external-irqs = <30 31>;
57                         };
58
59                         pmc: pmc@fffffc00 {
60                                 compatible = "atmel,at91rm9200-pmc";
61                                 reg = <0xfffffc00 0x100>;
62                         };
63
64                         ramc: ramc@ffffe200 {
65                                 compatible = "atmel,at91sam9260-sdramc";
66                                 reg = <0xffffe200 0x200
67                                        0xffffe800 0x200>;
68                         };
69
70                         pit: timer@fffffd30 {
71                                 compatible = "atmel,at91sam9260-pit";
72                                 reg = <0xfffffd30 0xf>;
73                                 interrupts = <1 4 7>;
74                         };
75
76                         tcb0: timer@fff7c000 {
77                                 compatible = "atmel,at91rm9200-tcb";
78                                 reg = <0xfff7c000 0x100>;
79                                 interrupts = <19 4 0>;
80                         };
81
82                         rstc@fffffd00 {
83                                 compatible = "atmel,at91sam9260-rstc";
84                                 reg = <0xfffffd00 0x10>;
85                         };
86
87                         shdwc@fffffd10 {
88                                 compatible = "atmel,at91sam9260-shdwc";
89                                 reg = <0xfffffd10 0x10>;
90                         };
91
92                         pinctrl@fffff200 {
93                                 #address-cells = <1>;
94                                 #size-cells = <1>;
95                                 compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
96                                 ranges = <0xfffff200 0xfffff200 0xa00>;
97
98                                 atmel,mux-mask = <
99                                       /*    A         B     */
100                                        0xfffffffb 0xffffe07f  /* pioA */
101                                        0x0007ffff 0x39072fff  /* pioB */
102                                        0xffffffff 0x3ffffff8  /* pioC */
103                                        0xfffffbff 0xffffffff  /* pioD */
104                                        0xffe00fff 0xfbfcff00  /* pioE */
105                                       >;
106
107                                 /* shared pinctrl settings */
108                                 dbgu {
109                                         pinctrl_dbgu: dbgu-0 {
110                                                 atmel,pins =
111                                                         <2 30 0x1 0x0   /* PC30 periph A */
112                                                          2 31 0x1 0x1>; /* PC31 periph with pullup */
113                                         };
114                                 };
115
116                                 usart0 {
117                                         pinctrl_usart0: usart0-0 {
118                                                 atmel,pins =
119                                                         <0 26 0x1 0x1   /* PA26 periph A with pullup */
120                                                          0 27 0x1 0x0>; /* PA27 periph A */
121                                         };
122
123                                         pinctrl_usart0_rts_cts: usart0_rts_cts-0 {
124                                                 atmel,pins =
125                                                         <0 28 0x1 0x0   /* PA28 periph A */
126                                                          0 29 0x1 0x0>; /* PA29 periph A */
127                                         };
128                                 };
129
130                                 usart1 {
131                                         pinctrl_usart1: usart1-0 {
132                                                 atmel,pins =
133                                                         <3 0 0x1 0x1    /* PD0 periph A with pullup */
134                                                          3 1 0x1 0x0>;  /* PD1 periph A */
135                                         };
136
137                                         pinctrl_usart1_rts_cts: usart1_rts_cts-0 {
138                                                 atmel,pins =
139                                                         <3 7 0x2 0x0    /* PD7 periph B */
140                                                          3 8 0x2 0x0>;  /* PD8 periph B */
141                                         };
142                                 };
143
144                                 usart2 {
145                                         pinctrl_usart2: usart2-0 {
146                                                 atmel,pins =
147                                                         <3 2 0x1 0x1    /* PD2 periph A with pullup */
148                                                          3 3 0x1 0x0>;  /* PD3 periph A */
149                                         };
150
151                                         pinctrl_usart2_rts_cts: usart2_rts_cts-0 {
152                                                 atmel,pins =
153                                                         <3 5 0x2 0x0    /* PD5 periph B */
154                                                          4 6 0x2 0x0>;  /* PD6 periph B */
155                                         };
156                                 };
157
158                                 nand {
159                                         pinctrl_nand: nand-0 {
160                                                 atmel,pins =
161                                                         <0 22 0x0 0x1   /* PA22 gpio RDY pin pull_up*/
162                                                          3 15 0x0 0x1>; /* PD15 gpio enable pin pull_up */
163                                         };
164                                 };
165
166                                 macb {
167                                         pinctrl_macb_rmii: macb_rmii-0 {
168                                                 atmel,pins =
169                                                         <2 25 0x2 0x0   /* PC25 periph B */
170                                                          4 21 0x1 0x0   /* PE21 periph A */
171                                                          4 23 0x1 0x0   /* PE23 periph A */
172                                                          4 24 0x1 0x0   /* PE24 periph A */
173                                                          4 25 0x1 0x0   /* PE25 periph A */
174                                                          4 26 0x1 0x0   /* PE26 periph A */
175                                                          4 27 0x1 0x0   /* PE27 periph A */
176                                                          4 28 0x1 0x0   /* PE28 periph A */
177                                                          4 29 0x1 0x0   /* PE29 periph A */
178                                                          4 30 0x1 0x0>; /* PE30 periph A */
179                                         };
180
181                                         pinctrl_macb_rmii_mii: macb_rmii_mii-0 {
182                                                 atmel,pins =
183                                                         <2 20 0x2 0x0   /* PC20 periph B */
184                                                          2 21 0x2 0x0   /* PC21 periph B */
185                                                          2 22 0x2 0x0   /* PC22 periph B */
186                                                          2 23 0x2 0x0   /* PC23 periph B */
187                                                          2 24 0x2 0x0   /* PC24 periph B */
188                                                          2 25 0x2 0x0   /* PC25 periph B */
189                                                          2 27 0x2 0x0   /* PC27 periph B */
190                                                          4 22 0x2 0x0>; /* PE22 periph B */
191                                         };
192                                 };
193
194                                 pioA: gpio@fffff200 {
195                                         compatible = "atmel,at91rm9200-gpio";
196                                         reg = <0xfffff200 0x200>;
197                                         interrupts = <2 4 1>;
198                                         #gpio-cells = <2>;
199                                         gpio-controller;
200                                         interrupt-controller;
201                                         #interrupt-cells = <2>;
202                                 };
203
204                                 pioB: gpio@fffff400 {
205                                         compatible = "atmel,at91rm9200-gpio";
206                                         reg = <0xfffff400 0x200>;
207                                         interrupts = <3 4 1>;
208                                         #gpio-cells = <2>;
209                                         gpio-controller;
210                                         interrupt-controller;
211                                         #interrupt-cells = <2>;
212                                 };
213
214                                 pioC: gpio@fffff600 {
215                                         compatible = "atmel,at91rm9200-gpio";
216                                         reg = <0xfffff600 0x200>;
217                                         interrupts = <4 4 1>;
218                                         #gpio-cells = <2>;
219                                         gpio-controller;
220                                         interrupt-controller;
221                                         #interrupt-cells = <2>;
222                                 };
223
224                                 pioD: gpio@fffff800 {
225                                         compatible = "atmel,at91rm9200-gpio";
226                                         reg = <0xfffff800 0x200>;
227                                         interrupts = <4 4 1>;
228                                         #gpio-cells = <2>;
229                                         gpio-controller;
230                                         interrupt-controller;
231                                         #interrupt-cells = <2>;
232                                 };
233
234                                 pioE: gpio@fffffa00 {
235                                         compatible = "atmel,at91rm9200-gpio";
236                                         reg = <0xfffffa00 0x200>;
237                                         interrupts = <4 4 1>;
238                                         #gpio-cells = <2>;
239                                         gpio-controller;
240                                         interrupt-controller;
241                                         #interrupt-cells = <2>;
242                                 };
243                         };
244
245                         dbgu: serial@ffffee00 {
246                                 compatible = "atmel,at91sam9260-usart";
247                                 reg = <0xffffee00 0x200>;
248                                 interrupts = <1 4 7>;
249                                 pinctrl-names = "default";
250                                 pinctrl-0 = <&pinctrl_dbgu>;
251                                 status = "disabled";
252                         };
253
254                         usart0: serial@fff8c000 {
255                                 compatible = "atmel,at91sam9260-usart";
256                                 reg = <0xfff8c000 0x200>;
257                                 interrupts = <7 4 5>;
258                                 atmel,use-dma-rx;
259                                 atmel,use-dma-tx;
260                                 pinctrl-names = "default";
261                                 pinctrl-0 = <&pinctrl_usart0>;
262                                 status = "disabled";
263                         };
264
265                         usart1: serial@fff90000 {
266                                 compatible = "atmel,at91sam9260-usart";
267                                 reg = <0xfff90000 0x200>;
268                                 interrupts = <8 4 5>;
269                                 atmel,use-dma-rx;
270                                 atmel,use-dma-tx;
271                                 pinctrl-names = "default";
272                                 pinctrl-0 = <&pinctrl_usart1>;
273                                 status = "disabled";
274                         };
275
276                         usart2: serial@fff94000 {
277                                 compatible = "atmel,at91sam9260-usart";
278                                 reg = <0xfff94000 0x200>;
279                                 interrupts = <9 4 5>;
280                                 atmel,use-dma-rx;
281                                 atmel,use-dma-tx;
282                                 pinctrl-names = "default";
283                                 pinctrl-0 = <&pinctrl_usart2>;
284                                 status = "disabled";
285                         };
286
287                         macb0: ethernet@fffbc000 {
288                                 compatible = "cdns,at32ap7000-macb", "cdns,macb";
289                                 reg = <0xfffbc000 0x100>;
290                                 interrupts = <21 4 3>;
291                                 pinctrl-names = "default";
292                                 pinctrl-0 = <&pinctrl_macb_rmii>;
293                                 status = "disabled";
294                         };
295
296                         usb1: gadget@fff78000 {
297                                 compatible = "atmel,at91rm9200-udc";
298                                 reg = <0xfff78000 0x4000>;
299                                 interrupts = <24 4 2>;
300                                 status = "disabled";
301                         };
302
303                         i2c0: i2c@fff88000 {
304                                 compatible = "atmel,at91sam9263-i2c";
305                                 reg = <0xfff88000 0x100>;
306                                 interrupts = <13 4 6>;
307                                 #address-cells = <1>;
308                                 #size-cells = <0>;
309                                 status = "disabled";
310                         };
311                 };
312
313                 nand0: nand@40000000 {
314                         compatible = "atmel,at91rm9200-nand";
315                         #address-cells = <1>;
316                         #size-cells = <1>;
317                         reg = <0x40000000 0x10000000
318                                0xffffe000 0x200
319                               >;
320                         atmel,nand-addr-offset = <21>;
321                         atmel,nand-cmd-offset = <22>;
322                         pinctrl-names = "default";
323                         pinctrl-0 = <&pinctrl_nand>;
324                         gpios = <&pioA 22 0
325                                  &pioD 15 0
326                                  0
327                                 >;
328                         status = "disabled";
329                 };
330
331                 usb0: ohci@00a00000 {
332                         compatible = "atmel,at91rm9200-ohci", "usb-ohci";
333                         reg = <0x00a00000 0x100000>;
334                         interrupts = <29 4 2>;
335                         status = "disabled";
336                 };
337         };
338
339         i2c@0 {
340                 compatible = "i2c-gpio";
341                 gpios = <&pioB 4 0 /* sda */
342                          &pioB 5 0 /* scl */
343                         >;
344                 i2c-gpio,sda-open-drain;
345                 i2c-gpio,scl-open-drain;
346                 i2c-gpio,delay-us = <2>;        /* ~100 kHz */
347                 #address-cells = <1>;
348                 #size-cells = <0>;
349                 status = "disabled";
350         };
351 };