Merge branch 'nohz/printk-v8' into irq/core
[sfrench/cifs-2.6.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
12 / {
13         model = "Atmel AT91SAM9M10G45-EK";
14         compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
15
16         chosen {
17                 bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
18         };
19
20         memory {
21                 reg = <0x70000000 0x4000000>;
22         };
23
24         clocks {
25                 #address-cells = <1>;
26                 #size-cells = <1>;
27                 ranges;
28
29                 main_clock: clock@0 {
30                         compatible = "atmel,osc", "fixed-clock";
31                         clock-frequency = <12000000>;
32                 };
33         };
34
35         ahb {
36                 apb {
37                         dbgu: serial@ffffee00 {
38                                 status = "okay";
39                         };
40
41                         usart1: serial@fff90000 {
42                                 pinctrl-0 =
43                                         <&pinctrl_usart1
44                                          &pinctrl_usart1_rts
45                                          &pinctrl_usart1_cts>;
46                                 status = "okay";
47                         };
48
49                         macb0: ethernet@fffbc000 {
50                                 phy-mode = "rmii";
51                                 status = "okay";
52                         };
53
54                         i2c0: i2c@fff84000 {
55                                 status = "okay";
56                         };
57
58                         i2c1: i2c@fff88000 {
59                                 status = "okay";
60                         };
61
62                         mmc0: mmc@fff80000 {
63                                 pinctrl-0 = <
64                                         &pinctrl_board_mmc0
65                                         &pinctrl_mmc0_slot0_clk_cmd_dat0
66                                         &pinctrl_mmc0_slot0_dat1_3>;
67                                 status = "okay";
68                                 slot@0 {
69                                         reg = <0>;
70                                         bus-width = <4>;
71                                         cd-gpios = <&pioD 10 0>;
72                                 };
73                         };
74
75                         mmc1: mmc@fffd0000 {
76                                 pinctrl-0 = <
77                                         &pinctrl_board_mmc1
78                                         &pinctrl_mmc1_slot0_clk_cmd_dat0
79                                         &pinctrl_mmc1_slot0_dat1_3>;
80                                 status = "okay";
81                                 slot@0 {
82                                         reg = <0>;
83                                         bus-width = <4>;
84                                         cd-gpios = <&pioD 11 0>;
85                                         wp-gpios = <&pioD 29 0>;
86                                 };
87                         };
88
89                         pinctrl@fffff200 {
90                                 mmc0 {
91                                         pinctrl_board_mmc0: mmc0-board {
92                                                 atmel,pins =
93                                                         <3 10 0x0 0x5>; /* PD10 gpio CD pin pull up and deglitch */
94                                         };
95                                 };
96
97                                 mmc1 {
98                                         pinctrl_board_mmc1: mmc1-board {
99                                                 atmel,pins =
100                                                         <3 11 0x0 0x5   /* PD11 gpio CD pin pull up and deglitch */
101                                                          3 29 0x0 0x1>; /* PD29 gpio WP pin pull up */
102                                         };
103                                 };
104                         };
105                 };
106
107                 nand0: nand@40000000 {
108                         nand-bus-width = <8>;
109                         nand-ecc-mode = "soft";
110                         nand-on-flash-bbt;
111                         status = "okay";
112
113                         boot@0 {
114                                 label = "bootstrap/uboot/kernel";
115                                 reg = <0x0 0x400000>;
116                         };
117
118                         rootfs@400000 {
119                                 label = "rootfs";
120                                 reg = <0x400000 0x3C00000>;
121                         };
122
123                         data@4000000 {
124                                 label = "data";
125                                 reg = <0x4000000 0xC000000>;
126                         };
127                 };
128
129                 usb0: ohci@00700000 {
130                         status = "okay";
131                         num-ports = <2>;
132                         atmel,vbus-gpio = <&pioD 1 1
133                                            &pioD 3 1>;
134                 };
135
136                 usb1: ehci@00800000 {
137                         status = "okay";
138                 };
139         };
140
141         leds {
142                 compatible = "gpio-leds";
143
144                 d8 {
145                         label = "d8";
146                         gpios = <&pioD 30 0>;
147                         linux,default-trigger = "heartbeat";
148                 };
149
150                 d6 {
151                         label = "d6";
152                         gpios = <&pioD 0 1>;
153                         linux,default-trigger = "nand-disk";
154                 };
155
156                 d7 {
157                         label = "d7";
158                         gpios = <&pioD 31 1>;
159                         linux,default-trigger = "mmc0";
160                 };
161         };
162
163         gpio_keys {
164                 compatible = "gpio-keys";
165                 #address-cells = <1>;
166                 #size-cells = <0>;
167
168                 left_click {
169                         label = "left_click";
170                         gpios = <&pioB 6 1>;
171                         linux,code = <272>;
172                         gpio-key,wakeup;
173                 };
174
175                 right_click {
176                         label = "right_click";
177                         gpios = <&pioB 7 1>;
178                         linux,code = <273>;
179                         gpio-key,wakeup;
180                 };
181
182                 left {
183                         label = "Joystick Left";
184                         gpios = <&pioB 14 1>;
185                         linux,code = <105>;
186                 };
187
188                 right {
189                         label = "Joystick Right";
190                         gpios = <&pioB 15 1>;
191                         linux,code = <106>;
192                 };
193
194                 up {
195                         label = "Joystick Up";
196                         gpios = <&pioB 16 1>;
197                         linux,code = <103>;
198                 };
199
200                 down {
201                         label = "Joystick Down";
202                         gpios = <&pioB 17 1>;
203                         linux,code = <108>;
204                 };
205
206                 enter {
207                         label = "Joystick Press";
208                         gpios = <&pioB 18 1>;
209                         linux,code = <28>;
210                 };
211         };
212 };