]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/arm/boot/dts/at91sam9m10g45ek.dts
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
[mirror_ubuntu-bionic-kernel.git] / arch / arm / boot / dts / at91sam9m10g45ek.dts
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/;
10 #include "at91sam9g45.dtsi"
11 #include <dt-bindings/pwm/pwm.h>
12
13 / {
14 model = "Atmel AT91SAM9M10G45-EK";
15 compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
16
17 chosen {
18 bootargs = "mem=64M root=/dev/mtdblock1 rw rootfstype=jffs2";
19 stdout-path = "serial0:115200n8";
20 };
21
22 memory {
23 reg = <0x70000000 0x4000000>;
24 };
25
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 };
35
36 slow_xtal {
37 clock-frequency = <32768>;
38 };
39
40 main_xtal {
41 clock-frequency = <12000000>;
42 };
43 };
44
45 ahb {
46 apb {
47 dbgu: serial@ffffee00 {
48 status = "okay";
49 };
50
51 usart1: serial@fff90000 {
52 pinctrl-0 =
53 <&pinctrl_usart1
54 &pinctrl_usart1_rts
55 &pinctrl_usart1_cts>;
56 status = "okay";
57 };
58
59 macb0: ethernet@fffbc000 {
60 phy-mode = "rmii";
61 status = "okay";
62 };
63
64 i2c0: i2c@fff84000 {
65 status = "okay";
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 };
85 };
86
87 i2c1: i2c@fff88000 {
88 status = "okay";
89 };
90
91 watchdog@fffffd40 {
92 status = "okay";
93 };
94
95 mmc0: mmc@fff80000 {
96 pinctrl-0 = <
97 &pinctrl_board_mmc0
98 &pinctrl_mmc0_slot0_clk_cmd_dat0
99 &pinctrl_mmc0_slot0_dat1_3>;
100 status = "okay";
101 slot@0 {
102 reg = <0>;
103 bus-width = <4>;
104 cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>;
105 };
106 };
107
108 mmc1: mmc@fffd0000 {
109 pinctrl-0 = <
110 &pinctrl_board_mmc1
111 &pinctrl_mmc1_slot0_clk_cmd_dat0
112 &pinctrl_mmc1_slot0_dat1_3>;
113 status = "okay";
114 slot@0 {
115 reg = <0>;
116 bus-width = <4>;
117 cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>;
118 wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>;
119 };
120 };
121
122 pinctrl@fffff200 {
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 };
139 mmc0 {
140 pinctrl_board_mmc0: mmc0-board {
141 atmel,pins =
142 <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */
143 };
144 };
145
146 mmc1 {
147 pinctrl_board_mmc1: mmc1-board {
148 atmel,pins =
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 */
151 };
152 };
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 };
161 };
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 };
172
173 usb2: gadget@fff78000 {
174 atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>;
175 status = "okay";
176 };
177
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
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>;
201 };
202 };
203 };
204
205 pwm0: pwm@fffb8000 {
206 status = "okay";
207
208 pinctrl-names = "default";
209 pinctrl-0 = <&pinctrl_pwm_leds>;
210 };
211
212 rtc@fffffd20 {
213 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
214 status = "okay";
215 };
216
217 gpbr: syscon@fffffd60 {
218 status = "okay";
219 };
220
221 rtc@fffffdb0 {
222 status = "okay";
223 };
224 };
225
226 fb0: fb@0x00500000 {
227 display = <&display0>;
228 status = "okay";
229
230 display0: display {
231 bits-per-pixel = <32>;
232 atmel,lcdcon-backlight;
233 atmel,dmacon = <0x1>;
234 atmel,lcdcon2 = <0x80008002>;
235 atmel,guard-time = <9>;
236 atmel,lcd-wiring-mode = "RGB";
237
238 display-timings {
239 native-mode = <&timing0>;
240 timing0: timing0 {
241 clock-frequency = <9000000>;
242 hactive = <480>;
243 vactive = <272>;
244 hback-porch = <1>;
245 hfront-porch = <1>;
246 vback-porch = <40>;
247 vfront-porch = <1>;
248 hsync-len = <45>;
249 vsync-len = <1>;
250 };
251 };
252 };
253 };
254
255 nand0: nand@40000000 {
256 nand-bus-width = <8>;
257 nand-ecc-mode = "soft";
258 nand-on-flash-bbt;
259 status = "okay";
260
261 boot@0 {
262 label = "bootstrap/uboot/kernel";
263 reg = <0x0 0x400000>;
264 };
265
266 rootfs@400000 {
267 label = "rootfs";
268 reg = <0x400000 0x3C00000>;
269 };
270
271 data@4000000 {
272 label = "data";
273 reg = <0x4000000 0xC000000>;
274 };
275 };
276
277 usb0: ohci@00700000 {
278 status = "okay";
279 num-ports = <2>;
280 atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
281 &pioD 3 GPIO_ACTIVE_LOW>;
282 };
283
284 usb1: ehci@00800000 {
285 status = "okay";
286 };
287 };
288
289 leds {
290 compatible = "gpio-leds";
291
292 d8 {
293 label = "d8";
294 gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
295 linux,default-trigger = "heartbeat";
296 };
297 };
298
299 pwmleds {
300 compatible = "pwm-leds";
301
302 d6 {
303 label = "d6";
304 pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>;
305 max-brightness = <255>;
306 linux,default-trigger = "nand-disk";
307 };
308
309 d7 {
310 label = "d7";
311 pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
312 max-brightness = <255>;
313 linux,default-trigger = "mmc0";
314 };
315 };
316
317 gpio_keys {
318 compatible = "gpio-keys";
319
320 left_click {
321 label = "left_click";
322 gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
323 linux,code = <272>;
324 gpio-key,wakeup;
325 };
326
327 right_click {
328 label = "right_click";
329 gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
330 linux,code = <273>;
331 gpio-key,wakeup;
332 };
333
334 left {
335 label = "Joystick Left";
336 gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
337 linux,code = <105>;
338 };
339
340 right {
341 label = "Joystick Right";
342 gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
343 linux,code = <106>;
344 };
345
346 up {
347 label = "Joystick Up";
348 gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
349 linux,code = <103>;
350 };
351
352 down {
353 label = "Joystick Down";
354 gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
355 linux,code = <108>;
356 };
357
358 enter {
359 label = "Joystick Press";
360 gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
361 linux,code = <28>;
362 };
363 };
364 };