ARM: dts: armada388-clearfog: enable spi flash
[linux-2.6-block.git] / arch / arm / boot / dts / at91sam9m10g45ek.dts
CommitLineData
49fe2ba3
NF
1/*
2 * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
3 *
4 * Copyright (C) 2011 Atmel,
5 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
6 *
7 * Licensed under GPLv2 or later.
8 */
9/dts-v1/;
6db64d29 10#include "at91sam9g45.dtsi"
66844c74 11#include <dt-bindings/pwm/pwm.h>
49fe2ba3
NF
12
13/ {
14 model = "Atmel AT91SAM9M10G45-EK";
15 compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
16
17 chosen {
aa070464
AB
18 bootargs = "mem=64M root=/dev/mtdblock1 rw rootfstype=jffs2";
19 stdout-path = "serial0:115200n8";
49fe2ba3
NF
20 };
21
dcce6ce8 22 memory {
49fe2ba3
NF
23 reg = <0x70000000 0x4000000>;
24 };
25
eb5e76ff 26 clocks {
4c67a131
AB
27 slow_xtal {
28 clock-frequency = <32768>;
29 };
30
31 main_xtal {
32 clock-frequency = <12000000>;
33 };
eb5e76ff
JCPV
34 };
35
49fe2ba3
NF
36 ahb {
37 apb {
38 dbgu: serial@ffffee00 {
39 status = "okay";
40 };
41
fb0f84fa
AB
42 tcb0: timer@fff7c000 {
43 timer@0 {
44 compatible = "atmel,tcb-timer";
45 reg = <0>, <1>;
46 };
47
48 timer@2 {
49 compatible = "atmel,tcb-timer";
50 reg = <2>;
51 };
52 };
53
49fe2ba3 54 usart1: serial@fff90000 {
c58c0c5a
JCPV
55 pinctrl-0 =
56 <&pinctrl_usart1
57 &pinctrl_usart1_rts
58 &pinctrl_usart1_cts>;
49fe2ba3
NF
59 status = "okay";
60 };
0d4f99d8
NF
61
62 macb0: ethernet@fffbc000 {
63 phy-mode = "rmii";
64 status = "okay";
65 };
fbc18715
LD
66
67 i2c0: i2c@fff84000 {
68 status = "okay";
917cdc5f
JW
69 ov2640: camera@30 {
70 compatible = "ovti,ov2640";
71 reg = <0x30>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&pinctrl_pck1_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
74 resetb-gpios = <&pioD 12 GPIO_ACTIVE_LOW>;
75 pwdn-gpios = <&pioD 13 GPIO_ACTIVE_HIGH>;
76 clocks = <&pck1>;
77 clock-names = "xvclk";
78 assigned-clocks = <&pck1>;
79 assigned-clock-rates = <25000000>;
80
81 port {
82 ov2640_0: endpoint {
83 remote-endpoint = <&isi_0>;
84 bus-width = <8>;
85 };
86 };
87 };
fbc18715
LD
88 };
89
90 i2c1: i2c@fff88000 {
91 status = "okay";
92 };
4134a455 93
c77bcef4
WY
94 watchdog@fffffd40 {
95 status = "okay";
96 };
97
4134a455 98 mmc0: mmc@fff80000 {
199e2ede
JCPV
99 pinctrl-0 = <
100 &pinctrl_board_mmc0
101 &pinctrl_mmc0_slot0_clk_cmd_dat0
102 &pinctrl_mmc0_slot0_dat1_3>;
4134a455
LD
103 status = "okay";
104 slot@0 {
105 reg = <0>;
106 bus-width = <4>;
92f8629b 107 cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>;
4134a455
LD
108 };
109 };
110
111 mmc1: mmc@fffd0000 {
199e2ede
JCPV
112 pinctrl-0 = <
113 &pinctrl_board_mmc1
114 &pinctrl_mmc1_slot0_clk_cmd_dat0
115 &pinctrl_mmc1_slot0_dat1_3>;
4134a455
LD
116 status = "okay";
117 slot@0 {
118 reg = <0>;
119 bus-width = <4>;
92f8629b
JCPV
120 cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>;
121 wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>;
4134a455
LD
122 };
123 };
199e2ede
JCPV
124
125 pinctrl@fffff200 {
917cdc5f
JW
126 camera_sensor {
127 pinctrl_pck1_as_isi_mck: pck1_as_isi_mck-0 {
128 atmel,pins =
129 <AT91_PIOB 31 AT91_PERIPH_B AT91_PINCTRL_NONE>;
130 };
131
132 pinctrl_sensor_reset: sensor_reset-0 {
133 atmel,pins =
134 <AT91_PIOD 12 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
135 };
136
137 pinctrl_sensor_power: sensor_power-0 {
138 atmel,pins =
139 <AT91_PIOD 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
140 };
141 };
199e2ede
JCPV
142 mmc0 {
143 pinctrl_board_mmc0: mmc0-board {
144 atmel,pins =
c9d0f317 145 <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */
199e2ede
JCPV
146 };
147 };
148
149 mmc1 {
150 pinctrl_board_mmc1: mmc1-board {
151 atmel,pins =
c9d0f317
JCPV
152 <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */
153 AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */
199e2ede
JCPV
154 };
155 };
eed97298
BS
156
157 pwm0 {
158 pinctrl_pwm_leds: pwm-led {
159 atmel,pins =
160 <AT91_PIOD 0 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PD0 periph B */
161 AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PD31 periph B */
162 };
163 };
199e2ede 164 };
b6811e9a
RG
165
166 spi0: spi@fffa4000{
167 status = "okay";
168 cs-gpios = <&pioB 3 0>, <0>, <0>, <0>;
169 mtd_dataflash@0 {
170 compatible = "atmel,at45", "atmel,dataflash";
171 spi-max-frequency = <13000000>;
172 reg = <0>;
173 };
174 };
24ce10e1
JCPV
175
176 usb2: gadget@fff78000 {
177 atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>;
178 status = "okay";
179 };
eed97298 180
2b17939d
DR
181 ac97: sound@fffac000 {
182 status = "okay";
183 };
184
e10a57e3
AB
185 adc0: adc@fffb0000 {
186 pinctrl-names = "default";
187 pinctrl-0 = <
188 &pinctrl_adc0_ad0
189 &pinctrl_adc0_ad1
190 &pinctrl_adc0_ad2
191 &pinctrl_adc0_ad3
192 &pinctrl_adc0_ad4
193 &pinctrl_adc0_ad5
194 &pinctrl_adc0_ad6
195 &pinctrl_adc0_ad7>;
196 atmel,adc-ts-wires = <4>;
197 status = "okay";
198 };
199
917cdc5f
JW
200 isi@fffb4000 {
201 pinctrl-names = "default";
202 pinctrl-0 = <&pinctrl_isi_data_0_7>;
203 status = "okay";
204 port {
205 isi_0: endpoint {
206 remote-endpoint = <&ov2640_0>;
207 bus-width = <8>;
bc81beb8
JW
208 vsync-active = <1>;
209 hsync-active = <1>;
917cdc5f
JW
210 };
211 };
212 };
213
eed97298
BS
214 pwm0: pwm@fffb8000 {
215 status = "okay";
216
217 pinctrl-names = "default";
218 pinctrl-0 = <&pinctrl_pwm_leds>;
219 };
4dd7933a 220
199ec7ab
BB
221 rtc@fffffd20 {
222 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
223 status = "okay";
224 };
225
226 gpbr: syscon@fffffd60 {
227 status = "okay";
228 };
229
4dd7933a
EL
230 rtc@fffffdb0 {
231 status = "okay";
232 };
49fe2ba3 233 };
d6a01661 234
ed4ced0c 235 fb0: fb@500000 {
f4390a79
JCPV
236 display = <&display0>;
237 status = "okay";
238
239 display0: display {
240 bits-per-pixel = <32>;
241 atmel,lcdcon-backlight;
242 atmel,dmacon = <0x1>;
243 atmel,lcdcon2 = <0x80008002>;
244 atmel,guard-time = <9>;
245 atmel,lcd-wiring-mode = "RGB";
246
247 display-timings {
248 native-mode = <&timing0>;
249 timing0: timing0 {
250 clock-frequency = <9000000>;
251 hactive = <480>;
252 vactive = <272>;
253 hback-porch = <1>;
254 hfront-porch = <1>;
255 vback-porch = <40>;
256 vfront-porch = <1>;
257 hsync-len = <45>;
258 vsync-len = <1>;
259 };
260 };
261 };
262 };
263
1004a297 264 ebi: ebi@10000000 {
d6a01661
JCPV
265 status = "okay";
266
1004a297
BB
267 nand_controller: nand-controller {
268 status = "okay";
269 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
270 pinctrl-names = "default";
d6a01661 271
1004a297
BB
272 nand@3 {
273 reg = <0x3 0x0 0x800000>;
274 rb-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>;
275 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
276 nand-bus-width = <8>;
277 nand-ecc-mode = "soft";
278 nand-on-flash-bbt;
279 label = "atmel_nand";
280
281 partitions {
282 compatible = "fixed-partitions";
283 #address-cells = <1>;
284 #size-cells = <1>;
285
286 boot@0 {
287 label = "bootstrap/uboot/kernel";
288 reg = <0x0 0x400000>;
289 };
d6a01661 290
1004a297
BB
291 rootfs@400000 {
292 label = "rootfs";
293 reg = <0x400000 0x3C00000>;
294 };
295
296 data@4000000 {
297 label = "data";
298 reg = <0x4000000 0xC000000>;
299 };
300 };
301 };
d6a01661 302 };
6a062459 303 };
d6a01661 304
8dccafaa 305 usb0: ohci@700000 {
6a062459
JCPV
306 status = "okay";
307 num-ports = <2>;
92f8629b
JCPV
308 atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
309 &pioD 3 GPIO_ACTIVE_LOW>;
d6a01661 310 };
62c5553a 311
8dccafaa 312 usb1: ehci@800000 {
62c5553a
JCPV
313 status = "okay";
314 };
49fe2ba3 315 };
f2ee7acd
JCPV
316
317 leds {
318 compatible = "gpio-leds";
319
320 d8 {
321 label = "d8";
92f8629b 322 gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
f2ee7acd
JCPV
323 linux,default-trigger = "heartbeat";
324 };
eed97298
BS
325 };
326
327 pwmleds {
328 compatible = "pwm-leds";
f2ee7acd
JCPV
329
330 d6 {
331 label = "d6";
66844c74 332 pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>;
eed97298 333 max-brightness = <255>;
f2ee7acd
JCPV
334 linux,default-trigger = "nand-disk";
335 };
336
337 d7 {
338 label = "d7";
66844c74 339 pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
eed97298 340 max-brightness = <255>;
f2ee7acd
JCPV
341 linux,default-trigger = "mmc0";
342 };
343 };
8a087b0c
JCPV
344
345 gpio_keys {
346 compatible = "gpio-keys";
8a087b0c
JCPV
347
348 left_click {
349 label = "left_click";
92f8629b 350 gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
8a087b0c 351 linux,code = <272>;
67ae8b9b 352 wakeup-source;
8a087b0c
JCPV
353 };
354
355 right_click {
356 label = "right_click";
92f8629b 357 gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
8a087b0c 358 linux,code = <273>;
67ae8b9b 359 wakeup-source;
8a087b0c
JCPV
360 };
361
362 left {
363 label = "Joystick Left";
92f8629b 364 gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
8a087b0c
JCPV
365 linux,code = <105>;
366 };
367
368 right {
369 label = "Joystick Right";
92f8629b 370 gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
8a087b0c
JCPV
371 linux,code = <106>;
372 };
373
374 up {
375 label = "Joystick Up";
92f8629b 376 gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
8a087b0c
JCPV
377 linux,code = <103>;
378 };
379
380 down {
381 label = "Joystick Down";
92f8629b 382 gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
8a087b0c
JCPV
383 linux,code = <108>;
384 };
385
386 enter {
387 label = "Joystick Press";
92f8629b 388 gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
8a087b0c
JCPV
389 linux,code = <28>;
390 };
391 };
49fe2ba3 392};