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