Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / at91sam9263ek.dts
1 /*
2  * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference board
3  *
4  *  Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5  *
6  * Licensed under GPLv2 only
7  */
8 /dts-v1/;
9 #include "at91sam9263.dtsi"
10
11 / {
12         model = "Atmel at91sam9263ek";
13         compatible = "atmel,at91sam9263ek", "atmel,at91sam9263", "atmel,at91sam9";
14
15         chosen {
16                 bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
17         };
18
19         memory {
20                 reg = <0x20000000 0x4000000>;
21         };
22
23         clocks {
24                 #address-cells = <1>;
25                 #size-cells = <1>;
26                 ranges;
27
28                 main_clock: clock@0 {
29                         compatible = "atmel,osc", "fixed-clock";
30                         clock-frequency = <16367660>;
31                 };
32         };
33
34         ahb {
35                 apb {
36                         dbgu: serial@ffffee00 {
37                                 status = "okay";
38                         };
39
40                         usart0: serial@fff8c000 {
41                                 pinctrl-0 = <
42                                         &pinctrl_usart0
43                                         &pinctrl_usart0_rts
44                                         &pinctrl_usart0_cts>;
45                                 status = "okay";
46                         };
47
48                         macb0: ethernet@fffbc000 {
49                                 phy-mode = "rmii";
50                                 status = "okay";
51                         };
52
53                         usb1: gadget@fff78000 {
54                                 atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>;
55                                 status = "okay";
56                         };
57
58                         mmc0: mmc@fff80000 {
59                                 pinctrl-0 = <
60                                         &pinctrl_board_mmc0
61                                         &pinctrl_mmc0_clk
62                                         &pinctrl_mmc0_slot0_cmd_dat0
63                                         &pinctrl_mmc0_slot0_dat1_3>;
64                                 status = "okay";
65                                 slot@0 {
66                                         reg = <0>;
67                                         bus-width = <4>;
68                                         cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>;
69                                         wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>;
70                                 };
71                         };
72
73                         pinctrl@fffff200 {
74                                 mmc0 {
75                                         pinctrl_board_mmc0: mmc0-board {
76                                                 atmel,pins =
77                                                         <AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH    /* PE18 gpio CD pin pull up and deglitch */
78                                                          AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;   /* PE19 gpio WP pin pull up */
79                                         };
80                                 };
81                         };
82
83                         spi0: spi@fffa4000 {
84                                 status = "okay";
85                                 cs-gpios = <&pioA 5 0>, <0>, <0>, <0>;
86                                 mtd_dataflash@0 {
87                                         compatible = "atmel,at45", "atmel,dataflash";
88                                         spi-max-frequency = <50000000>;
89                                         reg = <0>;
90                                 };
91                         };
92
93                         watchdog@fffffd40 {
94                                 status = "okay";
95                         };
96                 };
97
98                 nand0: nand@40000000 {
99                         nand-bus-width = <8>;
100                         nand-ecc-mode = "soft";
101                         nand-on-flash-bbt = <1>;
102                         status = "okay";
103
104                         at91bootstrap@0 {
105                                 label = "at91bootstrap";
106                                 reg = <0x0 0x20000>;
107                         };
108
109                         barebox@20000 {
110                                 label = "barebox";
111                                 reg = <0x20000 0x40000>;
112                         };
113
114                         bareboxenv@60000 {
115                                 label = "bareboxenv";
116                                 reg = <0x60000 0x20000>;
117                         };
118
119                         bareboxenv2@80000 {
120                                 label = "bareboxenv2";
121                                 reg = <0x80000 0x20000>;
122                         };
123
124                         oftree@80000 {
125                                 label = "oftree";
126                                 reg = <0xa0000 0x20000>;
127                         };
128
129                         kernel@a0000 {
130                                 label = "kernel";
131                                 reg = <0xc0000 0x400000>;
132                         };
133
134                         rootfs@4a0000 {
135                                 label = "rootfs";
136                                 reg = <0x4c0000 0x7800000>;
137                         };
138
139                         data@7ca0000 {
140                                 label = "data";
141                                 reg = <0x7cc0000 0x8340000>;
142                         };
143                 };
144
145                 usb0: ohci@00a00000 {
146                         num-ports = <2>;
147                         status = "okay";
148                         atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH
149                                            &pioA 21 GPIO_ACTIVE_HIGH
150                                           >;
151                 };
152         };
153
154         leds {
155                 compatible = "gpio-leds";
156
157                 d3 {
158                         label = "d3";
159                         gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
160                         linux,default-trigger = "heartbeat";
161                 };
162
163                 d2 {
164                         label = "d2";
165                         gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
166                         linux,default-trigger = "nand-disk";
167                 };
168         };
169
170         gpio_keys {
171                 compatible = "gpio-keys";
172
173                 left_click {
174                         label = "left_click";
175                         gpios = <&pioC 5 GPIO_ACTIVE_LOW>;
176                         linux,code = <272>;
177                         gpio-key,wakeup;
178                 };
179
180                 right_click {
181                         label = "right_click";
182                         gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
183                         linux,code = <273>;
184                         gpio-key,wakeup;
185                 };
186         };
187
188         i2c@0 {
189                 status = "okay";
190
191                 24c512@50 {
192                         compatible = "24c512";
193                         reg = <0x50>;
194                         pagesize = <128>;
195                 };
196         };
197 };