Merge tag 's3c24xx-dt-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux...
[deliverable/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
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 watchdog@fffffd40 {
63 status = "okay";
64 };
65
66 mmc0: mmc@fff80000 {
67 pinctrl-0 = <
68 &pinctrl_board_mmc0
69 &pinctrl_mmc0_slot0_clk_cmd_dat0
70 &pinctrl_mmc0_slot0_dat1_3>;
71 status = "okay";
72 slot@0 {
73 reg = <0>;
74 bus-width = <4>;
75 cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>;
76 };
77 };
78
79 mmc1: mmc@fffd0000 {
80 pinctrl-0 = <
81 &pinctrl_board_mmc1
82 &pinctrl_mmc1_slot0_clk_cmd_dat0
83 &pinctrl_mmc1_slot0_dat1_3>;
84 status = "okay";
85 slot@0 {
86 reg = <0>;
87 bus-width = <4>;
88 cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>;
89 wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>;
90 };
91 };
92
93 pinctrl@fffff200 {
94 mmc0 {
95 pinctrl_board_mmc0: mmc0-board {
96 atmel,pins =
97 <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */
98 };
99 };
100
101 mmc1 {
102 pinctrl_board_mmc1: mmc1-board {
103 atmel,pins =
104 <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */
105 AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */
106 };
107 };
108 };
109
110 spi0: spi@fffa4000{
111 status = "okay";
112 cs-gpios = <&pioB 3 0>, <0>, <0>, <0>;
113 mtd_dataflash@0 {
114 compatible = "atmel,at45", "atmel,dataflash";
115 spi-max-frequency = <13000000>;
116 reg = <0>;
117 };
118 };
119 };
120
121 nand0: nand@40000000 {
122 nand-bus-width = <8>;
123 nand-ecc-mode = "soft";
124 nand-on-flash-bbt;
125 status = "okay";
126
127 boot@0 {
128 label = "bootstrap/uboot/kernel";
129 reg = <0x0 0x400000>;
130 };
131
132 rootfs@400000 {
133 label = "rootfs";
134 reg = <0x400000 0x3C00000>;
135 };
136
137 data@4000000 {
138 label = "data";
139 reg = <0x4000000 0xC000000>;
140 };
141 };
142
143 usb0: ohci@00700000 {
144 status = "okay";
145 num-ports = <2>;
146 atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
147 &pioD 3 GPIO_ACTIVE_LOW>;
148 };
149
150 usb1: ehci@00800000 {
151 status = "okay";
152 };
153 };
154
155 leds {
156 compatible = "gpio-leds";
157
158 d8 {
159 label = "d8";
160 gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
161 linux,default-trigger = "heartbeat";
162 };
163
164 d6 {
165 label = "d6";
166 gpios = <&pioD 0 GPIO_ACTIVE_LOW>;
167 linux,default-trigger = "nand-disk";
168 };
169
170 d7 {
171 label = "d7";
172 gpios = <&pioD 31 GPIO_ACTIVE_LOW>;
173 linux,default-trigger = "mmc0";
174 };
175 };
176
177 gpio_keys {
178 compatible = "gpio-keys";
179
180 left_click {
181 label = "left_click";
182 gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
183 linux,code = <272>;
184 gpio-key,wakeup;
185 };
186
187 right_click {
188 label = "right_click";
189 gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
190 linux,code = <273>;
191 gpio-key,wakeup;
192 };
193
194 left {
195 label = "Joystick Left";
196 gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
197 linux,code = <105>;
198 };
199
200 right {
201 label = "Joystick Right";
202 gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
203 linux,code = <106>;
204 };
205
206 up {
207 label = "Joystick Up";
208 gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
209 linux,code = <103>;
210 };
211
212 down {
213 label = "Joystick Down";
214 gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
215 linux,code = <108>;
216 };
217
218 enter {
219 label = "Joystick Press";
220 gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
221 linux,code = <28>;
222 };
223 };
224 };
This page took 0.036848 seconds and 6 git commands to generate.