]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/at91sam9m10g45ek.dts
Merge remote-tracking branch 'mvebu/for-next'
[karo-tx-linux.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                                                 vsync-active = <1>;
202                                                 hsync-active = <1>;
203                                         };
204                                 };
205                         };
206
207                         pwm0: pwm@fffb8000 {
208                                 status = "okay";
209
210                                 pinctrl-names = "default";
211                                 pinctrl-0 = <&pinctrl_pwm_leds>;
212                         };
213
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
223                         rtc@fffffdb0 {
224                                 status = "okay";
225                         };
226                 };
227
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
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                         };
277                 };
278
279                 usb0: ohci@00700000 {
280                         status = "okay";
281                         num-ports = <2>;
282                         atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
283                                            &pioD 3 GPIO_ACTIVE_LOW>;
284                 };
285
286                 usb1: ehci@00800000 {
287                         status = "okay";
288                 };
289         };
290
291         leds {
292                 compatible = "gpio-leds";
293
294                 d8 {
295                         label = "d8";
296                         gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
297                         linux,default-trigger = "heartbeat";
298                 };
299         };
300
301         pwmleds {
302                 compatible = "pwm-leds";
303
304                 d6 {
305                         label = "d6";
306                         pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>;
307                         max-brightness = <255>;
308                         linux,default-trigger = "nand-disk";
309                 };
310
311                 d7 {
312                         label = "d7";
313                         pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
314                         max-brightness = <255>;
315                         linux,default-trigger = "mmc0";
316                 };
317         };
318
319         gpio_keys {
320                 compatible = "gpio-keys";
321
322                 left_click {
323                         label = "left_click";
324                         gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
325                         linux,code = <272>;
326                         gpio-key,wakeup;
327                 };
328
329                 right_click {
330                         label = "right_click";
331                         gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
332                         linux,code = <273>;
333                         gpio-key,wakeup;
334                 };
335
336                 left {
337                         label = "Joystick Left";
338                         gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
339                         linux,code = <105>;
340                 };
341
342                 right {
343                         label = "Joystick Right";
344                         gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
345                         linux,code = <106>;
346                 };
347
348                 up {
349                         label = "Joystick Up";
350                         gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
351                         linux,code = <103>;
352                 };
353
354                 down {
355                         label = "Joystick Down";
356                         gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
357                         linux,code = <108>;
358                 };
359
360                 enter {
361                         label = "Joystick Press";
362                         gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
363                         linux,code = <28>;
364                 };
365         };
366 };