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