Merge tag 'dt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[GitHub/mt8127/android_kernel_alcatel_ttab.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 spi0: spi@fffa4000{
107 status = "okay";
108 cs-gpios = <&pioB 3 0>, <0>, <0>, <0>;
109 mtd_dataflash@0 {
110 compatible = "atmel,at45", "atmel,dataflash";
111 spi-max-frequency = <13000000>;
112 reg = <0>;
113 };
114 };
115 };
116
117 nand0: nand@40000000 {
118 nand-bus-width = <8>;
119 nand-ecc-mode = "soft";
120 nand-on-flash-bbt;
121 status = "okay";
122
123 boot@0 {
124 label = "bootstrap/uboot/kernel";
125 reg = <0x0 0x400000>;
126 };
127
128 rootfs@400000 {
129 label = "rootfs";
130 reg = <0x400000 0x3C00000>;
131 };
132
133 data@4000000 {
134 label = "data";
135 reg = <0x4000000 0xC000000>;
136 };
137 };
138
139 usb0: ohci@00700000 {
140 status = "okay";
141 num-ports = <2>;
142 atmel,vbus-gpio = <&pioD 1 1
143 &pioD 3 1>;
144 };
145
146 usb1: ehci@00800000 {
147 status = "okay";
148 };
149 };
150
151 leds {
152 compatible = "gpio-leds";
153
154 d8 {
155 label = "d8";
156 gpios = <&pioD 30 0>;
157 linux,default-trigger = "heartbeat";
158 };
159
160 d6 {
161 label = "d6";
162 gpios = <&pioD 0 1>;
163 linux,default-trigger = "nand-disk";
164 };
165
166 d7 {
167 label = "d7";
168 gpios = <&pioD 31 1>;
169 linux,default-trigger = "mmc0";
170 };
171 };
172
173 gpio_keys {
174 compatible = "gpio-keys";
175
176 left_click {
177 label = "left_click";
178 gpios = <&pioB 6 1>;
179 linux,code = <272>;
180 gpio-key,wakeup;
181 };
182
183 right_click {
184 label = "right_click";
185 gpios = <&pioB 7 1>;
186 linux,code = <273>;
187 gpio-key,wakeup;
188 };
189
190 left {
191 label = "Joystick Left";
192 gpios = <&pioB 14 1>;
193 linux,code = <105>;
194 };
195
196 right {
197 label = "Joystick Right";
198 gpios = <&pioB 15 1>;
199 linux,code = <106>;
200 };
201
202 up {
203 label = "Joystick Up";
204 gpios = <&pioB 16 1>;
205 linux,code = <103>;
206 };
207
208 down {
209 label = "Joystick Down";
210 gpios = <&pioB 17 1>;
211 linux,code = <108>;
212 };
213
214 enter {
215 label = "Joystick Press";
216 gpios = <&pioB 18 1>;
217 linux,code = <28>;
218 };
219 };
220 };