blob: 8b5276499aaf663e87b34e21dd8a646d21d30234 [file] [log] [blame]
Hong Xucce783c2012-04-17 14:26:29 +08001/*
2 * at91sam9n12.dtsi - Device Tree include file for AT91SAM9N12 SoC
3 *
4 * Copyright (C) 2012 Atmel,
5 * 2012 Hong Xu <hong.xu@atmel.com>
6 *
7 * Licensed under GPLv2 or later.
8 */
9
10/include/ "skeleton.dtsi"
11
12/ {
13 model = "Atmel AT91SAM9N12 SoC";
14 compatible = "atmel,at91sam9n12";
15 interrupt-parent = <&aic>;
16
17 aliases {
18 serial0 = &dbgu;
19 serial1 = &usart0;
20 serial2 = &usart1;
21 serial3 = &usart2;
22 serial4 = &usart3;
23 gpio0 = &pioA;
24 gpio1 = &pioB;
25 gpio2 = &pioC;
26 gpio3 = &pioD;
27 tcb0 = &tcb0;
28 tcb1 = &tcb1;
Ludovic Desroches05dcd362012-09-12 08:42:16 +020029 i2c0 = &i2c0;
30 i2c1 = &i2c1;
Hong Xucce783c2012-04-17 14:26:29 +080031 };
32 cpus {
33 cpu@0 {
34 compatible = "arm,arm926ejs";
35 };
36 };
37
38 memory {
39 reg = <0x20000000 0x10000000>;
40 };
41
42 ahb {
43 compatible = "simple-bus";
44 #address-cells = <1>;
45 #size-cells = <1>;
46 ranges;
47
48 apb {
49 compatible = "simple-bus";
50 #address-cells = <1>;
51 #size-cells = <1>;
52 ranges;
53
54 aic: interrupt-controller@fffff000 {
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020055 #interrupt-cells = <3>;
Hong Xucce783c2012-04-17 14:26:29 +080056 compatible = "atmel,at91rm9200-aic";
57 interrupt-controller;
58 reg = <0xfffff000 0x200>;
59 };
60
61 ramc0: ramc@ffffe800 {
62 compatible = "atmel,at91sam9g45-ddramc";
63 reg = <0xffffe800 0x200>;
64 };
65
66 pmc: pmc@fffffc00 {
67 compatible = "atmel,at91rm9200-pmc";
68 reg = <0xfffffc00 0x100>;
69 };
70
71 rstc@fffffe00 {
72 compatible = "atmel,at91sam9g45-rstc";
73 reg = <0xfffffe00 0x10>;
74 };
75
76 pit: timer@fffffe30 {
77 compatible = "atmel,at91sam9260-pit";
78 reg = <0xfffffe30 0xf>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020079 interrupts = <1 4 7>;
Hong Xucce783c2012-04-17 14:26:29 +080080 };
81
82 shdwc@fffffe10 {
83 compatible = "atmel,at91sam9x5-shdwc";
84 reg = <0xfffffe10 0x10>;
85 };
86
87 tcb0: timer@f8008000 {
88 compatible = "atmel,at91sam9x5-tcb";
89 reg = <0xf8008000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020090 interrupts = <17 4 0>;
Hong Xucce783c2012-04-17 14:26:29 +080091 };
92
93 tcb1: timer@f800c000 {
94 compatible = "atmel,at91sam9x5-tcb";
95 reg = <0xf800c000 0x100>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020096 interrupts = <17 4 0>;
Hong Xucce783c2012-04-17 14:26:29 +080097 };
98
99 dma: dma-controller@ffffec00 {
100 compatible = "atmel,at91sam9g45-dma";
101 reg = <0xffffec00 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200102 interrupts = <20 4 0>;
Hong Xucce783c2012-04-17 14:26:29 +0800103 };
104
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800105 pinctrl@fffff400 {
106 #address-cells = <1>;
107 #size-cells = <1>;
Jean-Christophe PLAGNIOL-VILLARD5314ec82012-07-05 16:56:09 +0800108 compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800109 ranges = <0xfffff400 0xfffff400 0x800>;
Hong Xucce783c2012-04-17 14:26:29 +0800110
Jean-Christophe PLAGNIOL-VILLARD5314ec82012-07-05 16:56:09 +0800111 atmel,mux-mask = <
112 /* A B C */
113 0xffffffff 0xffe07983 0x00000000 /* pioA */
114 0x00040000 0x00047e0f 0x00000000 /* pioB */
115 0xfdffffff 0x07c00000 0xb83fffff /* pioC */
116 0x003fffff 0x003f8000 0x00000000 /* pioD */
117 >;
118
119 /* shared pinctrl settings */
120
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800121 pioA: gpio@fffff400 {
122 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
123 reg = <0xfffff400 0x200>;
124 interrupts = <2 4 1>;
125 #gpio-cells = <2>;
126 gpio-controller;
127 interrupt-controller;
128 #interrupt-cells = <2>;
129 };
Hong Xucce783c2012-04-17 14:26:29 +0800130
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800131 pioB: gpio@fffff600 {
132 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
133 reg = <0xfffff600 0x200>;
134 interrupts = <2 4 1>;
135 #gpio-cells = <2>;
136 gpio-controller;
137 interrupt-controller;
138 #interrupt-cells = <2>;
139 };
Hong Xucce783c2012-04-17 14:26:29 +0800140
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800141 pioC: gpio@fffff800 {
142 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
143 reg = <0xfffff800 0x200>;
144 interrupts = <3 4 1>;
145 #gpio-cells = <2>;
146 gpio-controller;
147 interrupt-controller;
148 #interrupt-cells = <2>;
149 };
150
151 pioD: gpio@fffffa00 {
152 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
153 reg = <0xfffffa00 0x200>;
154 interrupts = <3 4 1>;
155 #gpio-cells = <2>;
156 gpio-controller;
157 interrupt-controller;
158 #interrupt-cells = <2>;
159 };
Hong Xucce783c2012-04-17 14:26:29 +0800160 };
161
162 dbgu: serial@fffff200 {
163 compatible = "atmel,at91sam9260-usart";
164 reg = <0xfffff200 0x200>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200165 interrupts = <1 4 7>;
Hong Xucce783c2012-04-17 14:26:29 +0800166 status = "disabled";
167 };
168
169 usart0: serial@f801c000 {
170 compatible = "atmel,at91sam9260-usart";
171 reg = <0xf801c000 0x4000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200172 interrupts = <5 4 5>;
Hong Xucce783c2012-04-17 14:26:29 +0800173 atmel,use-dma-rx;
174 atmel,use-dma-tx;
175 status = "disabled";
176 };
177
178 usart1: serial@f8020000 {
179 compatible = "atmel,at91sam9260-usart";
180 reg = <0xf8020000 0x4000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200181 interrupts = <6 4 5>;
Hong Xucce783c2012-04-17 14:26:29 +0800182 atmel,use-dma-rx;
183 atmel,use-dma-tx;
184 status = "disabled";
185 };
186
187 usart2: serial@f8024000 {
188 compatible = "atmel,at91sam9260-usart";
189 reg = <0xf8024000 0x4000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200190 interrupts = <7 4 5>;
Hong Xucce783c2012-04-17 14:26:29 +0800191 atmel,use-dma-rx;
192 atmel,use-dma-tx;
193 status = "disabled";
194 };
195
196 usart3: serial@f8028000 {
197 compatible = "atmel,at91sam9260-usart";
198 reg = <0xf8028000 0x4000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200199 interrupts = <8 4 5>;
Hong Xucce783c2012-04-17 14:26:29 +0800200 atmel,use-dma-rx;
201 atmel,use-dma-tx;
202 status = "disabled";
203 };
Ludovic Desroches05dcd362012-09-12 08:42:16 +0200204
205 i2c0: i2c@f8010000 {
206 compatible = "atmel,at91sam9x5-i2c";
207 reg = <0xf8010000 0x100>;
208 interrupts = <9 4 6>;
209 #address-cells = <1>;
210 #size-cells = <0>;
211 status = "disabled";
212 };
213
214 i2c1: i2c@f8014000 {
215 compatible = "atmel,at91sam9x5-i2c";
216 reg = <0xf8014000 0x100>;
217 interrupts = <10 4 6>;
218 #address-cells = <1>;
219 #size-cells = <0>;
220 status = "disabled";
221 };
Hong Xucce783c2012-04-17 14:26:29 +0800222 };
223
224 nand0: nand@40000000 {
225 compatible = "atmel,at91rm9200-nand";
226 #address-cells = <1>;
227 #size-cells = <1>;
228 reg = < 0x40000000 0x10000000
229 0xffffe000 0x00000600
230 0xffffe600 0x00000200
231 0x00100000 0x00100000
232 >;
233 atmel,nand-addr-offset = <21>;
234 atmel,nand-cmd-offset = <22>;
235 gpios = <&pioD 5 0
236 &pioD 4 0
237 0
238 >;
239 status = "disabled";
240 };
241
242 usb0: ohci@00500000 {
243 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
244 reg = <0x00500000 0x00100000>;
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +0200245 interrupts = <22 4 2>;
Hong Xucce783c2012-04-17 14:26:29 +0800246 status = "disabled";
247 };
248 };
249
250 i2c@0 {
251 compatible = "i2c-gpio";
252 gpios = <&pioA 30 0 /* sda */
253 &pioA 31 0 /* scl */
254 >;
255 i2c-gpio,sda-open-drain;
256 i2c-gpio,scl-open-drain;
257 i2c-gpio,delay-us = <2>; /* ~100 kHz */
258 #address-cells = <1>;
259 #size-cells = <0>;
260 status = "disabled";
261 };
262};