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