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