]>
Commit | Line | Data |
---|---|---|
49fe2ba3 NF |
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/; | |
6db64d29 | 10 | #include "at91sam9g45.dtsi" |
66844c74 | 11 | #include <dt-bindings/pwm/pwm.h> |
49fe2ba3 NF |
12 | |
13 | / { | |
14 | model = "Atmel AT91SAM9M10G45-EK"; | |
15 | compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9"; | |
16 | ||
17 | chosen { | |
d6a01661 | 18 | bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2"; |
49fe2ba3 NF |
19 | }; |
20 | ||
dcce6ce8 | 21 | memory { |
49fe2ba3 NF |
22 | reg = <0x70000000 0x4000000>; |
23 | }; | |
24 | ||
eb5e76ff JCPV |
25 | clocks { |
26 | #address-cells = <1>; | |
27 | #size-cells = <1>; | |
28 | ranges; | |
29 | ||
30 | main_clock: clock@0 { | |
31 | compatible = "atmel,osc", "fixed-clock"; | |
32 | clock-frequency = <12000000>; | |
33 | }; | |
34 | }; | |
35 | ||
49fe2ba3 NF |
36 | ahb { |
37 | apb { | |
38 | dbgu: serial@ffffee00 { | |
39 | status = "okay"; | |
40 | }; | |
41 | ||
42 | usart1: serial@fff90000 { | |
c58c0c5a JCPV |
43 | pinctrl-0 = |
44 | <&pinctrl_usart1 | |
45 | &pinctrl_usart1_rts | |
46 | &pinctrl_usart1_cts>; | |
49fe2ba3 NF |
47 | status = "okay"; |
48 | }; | |
0d4f99d8 NF |
49 | |
50 | macb0: ethernet@fffbc000 { | |
51 | phy-mode = "rmii"; | |
52 | status = "okay"; | |
53 | }; | |
fbc18715 LD |
54 | |
55 | i2c0: i2c@fff84000 { | |
56 | status = "okay"; | |
57 | }; | |
58 | ||
59 | i2c1: i2c@fff88000 { | |
60 | status = "okay"; | |
61 | }; | |
4134a455 | 62 | |
c77bcef4 WY |
63 | watchdog@fffffd40 { |
64 | status = "okay"; | |
65 | }; | |
66 | ||
4134a455 | 67 | mmc0: mmc@fff80000 { |
199e2ede JCPV |
68 | pinctrl-0 = < |
69 | &pinctrl_board_mmc0 | |
70 | &pinctrl_mmc0_slot0_clk_cmd_dat0 | |
71 | &pinctrl_mmc0_slot0_dat1_3>; | |
4134a455 LD |
72 | status = "okay"; |
73 | slot@0 { | |
74 | reg = <0>; | |
75 | bus-width = <4>; | |
92f8629b | 76 | cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>; |
4134a455 LD |
77 | }; |
78 | }; | |
79 | ||
80 | mmc1: mmc@fffd0000 { | |
199e2ede JCPV |
81 | pinctrl-0 = < |
82 | &pinctrl_board_mmc1 | |
83 | &pinctrl_mmc1_slot0_clk_cmd_dat0 | |
84 | &pinctrl_mmc1_slot0_dat1_3>; | |
4134a455 LD |
85 | status = "okay"; |
86 | slot@0 { | |
87 | reg = <0>; | |
88 | bus-width = <4>; | |
92f8629b JCPV |
89 | cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>; |
90 | wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>; | |
4134a455 LD |
91 | }; |
92 | }; | |
199e2ede JCPV |
93 | |
94 | pinctrl@fffff200 { | |
95 | mmc0 { | |
96 | pinctrl_board_mmc0: mmc0-board { | |
97 | atmel,pins = | |
c9d0f317 | 98 | <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */ |
199e2ede JCPV |
99 | }; |
100 | }; | |
101 | ||
102 | mmc1 { | |
103 | pinctrl_board_mmc1: mmc1-board { | |
104 | atmel,pins = | |
c9d0f317 JCPV |
105 | <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */ |
106 | AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */ | |
199e2ede JCPV |
107 | }; |
108 | }; | |
eed97298 BS |
109 | |
110 | pwm0 { | |
111 | pinctrl_pwm_leds: pwm-led { | |
112 | atmel,pins = | |
113 | <AT91_PIOD 0 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PD0 periph B */ | |
114 | AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PD31 periph B */ | |
115 | }; | |
116 | }; | |
199e2ede | 117 | }; |
b6811e9a RG |
118 | |
119 | spi0: spi@fffa4000{ | |
120 | status = "okay"; | |
121 | cs-gpios = <&pioB 3 0>, <0>, <0>, <0>; | |
122 | mtd_dataflash@0 { | |
123 | compatible = "atmel,at45", "atmel,dataflash"; | |
124 | spi-max-frequency = <13000000>; | |
125 | reg = <0>; | |
126 | }; | |
127 | }; | |
24ce10e1 JCPV |
128 | |
129 | usb2: gadget@fff78000 { | |
130 | atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>; | |
131 | status = "okay"; | |
132 | }; | |
eed97298 | 133 | |
e10a57e3 AB |
134 | adc0: adc@fffb0000 { |
135 | pinctrl-names = "default"; | |
136 | pinctrl-0 = < | |
137 | &pinctrl_adc0_ad0 | |
138 | &pinctrl_adc0_ad1 | |
139 | &pinctrl_adc0_ad2 | |
140 | &pinctrl_adc0_ad3 | |
141 | &pinctrl_adc0_ad4 | |
142 | &pinctrl_adc0_ad5 | |
143 | &pinctrl_adc0_ad6 | |
144 | &pinctrl_adc0_ad7>; | |
145 | atmel,adc-ts-wires = <4>; | |
146 | status = "okay"; | |
147 | }; | |
148 | ||
eed97298 BS |
149 | pwm0: pwm@fffb8000 { |
150 | status = "okay"; | |
151 | ||
152 | pinctrl-names = "default"; | |
153 | pinctrl-0 = <&pinctrl_pwm_leds>; | |
154 | }; | |
49fe2ba3 | 155 | }; |
d6a01661 | 156 | |
f4390a79 JCPV |
157 | fb0: fb@0x00500000 { |
158 | display = <&display0>; | |
159 | status = "okay"; | |
160 | ||
161 | display0: display { | |
162 | bits-per-pixel = <32>; | |
163 | atmel,lcdcon-backlight; | |
164 | atmel,dmacon = <0x1>; | |
165 | atmel,lcdcon2 = <0x80008002>; | |
166 | atmel,guard-time = <9>; | |
167 | atmel,lcd-wiring-mode = "RGB"; | |
168 | ||
169 | display-timings { | |
170 | native-mode = <&timing0>; | |
171 | timing0: timing0 { | |
172 | clock-frequency = <9000000>; | |
173 | hactive = <480>; | |
174 | vactive = <272>; | |
175 | hback-porch = <1>; | |
176 | hfront-porch = <1>; | |
177 | vback-porch = <40>; | |
178 | vfront-porch = <1>; | |
179 | hsync-len = <45>; | |
180 | vsync-len = <1>; | |
181 | }; | |
182 | }; | |
183 | }; | |
184 | }; | |
185 | ||
d6a01661 JCPV |
186 | nand0: nand@40000000 { |
187 | nand-bus-width = <8>; | |
188 | nand-ecc-mode = "soft"; | |
189 | nand-on-flash-bbt; | |
190 | status = "okay"; | |
191 | ||
192 | boot@0 { | |
193 | label = "bootstrap/uboot/kernel"; | |
194 | reg = <0x0 0x400000>; | |
195 | }; | |
196 | ||
197 | rootfs@400000 { | |
198 | label = "rootfs"; | |
199 | reg = <0x400000 0x3C00000>; | |
200 | }; | |
201 | ||
202 | data@4000000 { | |
203 | label = "data"; | |
204 | reg = <0x4000000 0xC000000>; | |
205 | }; | |
6a062459 | 206 | }; |
d6a01661 | 207 | |
6a062459 JCPV |
208 | usb0: ohci@00700000 { |
209 | status = "okay"; | |
210 | num-ports = <2>; | |
92f8629b JCPV |
211 | atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW |
212 | &pioD 3 GPIO_ACTIVE_LOW>; | |
d6a01661 | 213 | }; |
62c5553a JCPV |
214 | |
215 | usb1: ehci@00800000 { | |
216 | status = "okay"; | |
217 | }; | |
49fe2ba3 | 218 | }; |
f2ee7acd JCPV |
219 | |
220 | leds { | |
221 | compatible = "gpio-leds"; | |
222 | ||
223 | d8 { | |
224 | label = "d8"; | |
92f8629b | 225 | gpios = <&pioD 30 GPIO_ACTIVE_HIGH>; |
f2ee7acd JCPV |
226 | linux,default-trigger = "heartbeat"; |
227 | }; | |
eed97298 BS |
228 | }; |
229 | ||
230 | pwmleds { | |
231 | compatible = "pwm-leds"; | |
f2ee7acd JCPV |
232 | |
233 | d6 { | |
234 | label = "d6"; | |
66844c74 | 235 | pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>; |
eed97298 | 236 | max-brightness = <255>; |
f2ee7acd JCPV |
237 | linux,default-trigger = "nand-disk"; |
238 | }; | |
239 | ||
240 | d7 { | |
241 | label = "d7"; | |
66844c74 | 242 | pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>; |
eed97298 | 243 | max-brightness = <255>; |
f2ee7acd JCPV |
244 | linux,default-trigger = "mmc0"; |
245 | }; | |
246 | }; | |
8a087b0c JCPV |
247 | |
248 | gpio_keys { | |
249 | compatible = "gpio-keys"; | |
8a087b0c JCPV |
250 | |
251 | left_click { | |
252 | label = "left_click"; | |
92f8629b | 253 | gpios = <&pioB 6 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
254 | linux,code = <272>; |
255 | gpio-key,wakeup; | |
256 | }; | |
257 | ||
258 | right_click { | |
259 | label = "right_click"; | |
92f8629b | 260 | gpios = <&pioB 7 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
261 | linux,code = <273>; |
262 | gpio-key,wakeup; | |
263 | }; | |
264 | ||
265 | left { | |
266 | label = "Joystick Left"; | |
92f8629b | 267 | gpios = <&pioB 14 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
268 | linux,code = <105>; |
269 | }; | |
270 | ||
271 | right { | |
272 | label = "Joystick Right"; | |
92f8629b | 273 | gpios = <&pioB 15 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
274 | linux,code = <106>; |
275 | }; | |
276 | ||
277 | up { | |
278 | label = "Joystick Up"; | |
92f8629b | 279 | gpios = <&pioB 16 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
280 | linux,code = <103>; |
281 | }; | |
282 | ||
283 | down { | |
284 | label = "Joystick Down"; | |
92f8629b | 285 | gpios = <&pioB 17 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
286 | linux,code = <108>; |
287 | }; | |
288 | ||
289 | enter { | |
290 | label = "Joystick Press"; | |
92f8629b | 291 | gpios = <&pioB 18 GPIO_ACTIVE_LOW>; |
8a087b0c JCPV |
292 | linux,code = <28>; |
293 | }; | |
294 | }; | |
49fe2ba3 | 295 | }; |