Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelv...
[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 usb2: gadget@fff78000 {
121 atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>;
122 status = "okay";
123 };
124 };
125
126 nand0: nand@40000000 {
127 nand-bus-width = <8>;
128 nand-ecc-mode = "soft";
129 nand-on-flash-bbt;
130 status = "okay";
131
132 boot@0 {
133 label = "bootstrap/uboot/kernel";
134 reg = <0x0 0x400000>;
135 };
136
137 rootfs@400000 {
138 label = "rootfs";
139 reg = <0x400000 0x3C00000>;
140 };
141
142 data@4000000 {
143 label = "data";
144 reg = <0x4000000 0xC000000>;
145 };
146 };
147
148 usb0: ohci@00700000 {
149 status = "okay";
150 num-ports = <2>;
151 atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
152 &pioD 3 GPIO_ACTIVE_LOW>;
153 };
154
155 usb1: ehci@00800000 {
156 status = "okay";
157 };
158 };
159
160 leds {
161 compatible = "gpio-leds";
162
163 d8 {
164 label = "d8";
165 gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
166 linux,default-trigger = "heartbeat";
167 };
168
169 d6 {
170 label = "d6";
171 gpios = <&pioD 0 GPIO_ACTIVE_LOW>;
172 linux,default-trigger = "nand-disk";
173 };
174
175 d7 {
176 label = "d7";
177 gpios = <&pioD 31 GPIO_ACTIVE_LOW>;
178 linux,default-trigger = "mmc0";
179 };
180 };
181
182 gpio_keys {
183 compatible = "gpio-keys";
184
185 left_click {
186 label = "left_click";
187 gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
188 linux,code = <272>;
189 gpio-key,wakeup;
190 };
191
192 right_click {
193 label = "right_click";
194 gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
195 linux,code = <273>;
196 gpio-key,wakeup;
197 };
198
199 left {
200 label = "Joystick Left";
201 gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
202 linux,code = <105>;
203 };
204
205 right {
206 label = "Joystick Right";
207 gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
208 linux,code = <106>;
209 };
210
211 up {
212 label = "Joystick Up";
213 gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
214 linux,code = <103>;
215 };
216
217 down {
218 label = "Joystick Down";
219 gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
220 linux,code = <108>;
221 };
222
223 enter {
224 label = "Joystick Press";
225 gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
226 linux,code = <28>;
227 };
228 };
229 };
This page took 0.042156 seconds and 5 git commands to generate.