Commit | Line | Data |
---|---|---|
07658d9a VK |
1 | /* |
2 | * DTS file for SPEAr1310 Evaluation Baord | |
3 | * | |
da89947b | 4 | * Copyright 2012 Viresh Kumar <vireshk@kernel.org> |
07658d9a VK |
5 | * |
6 | * The code contained herein is licensed under the GNU General Public | |
7 | * License. You may obtain a copy of the GNU General Public License | |
8 | * Version 2 or later at the following locations: | |
9 | * | |
10 | * http://www.opensource.org/licenses/gpl-license.html | |
11 | * http://www.gnu.org/copyleft/gpl.html | |
12 | */ | |
13 | ||
14 | /dts-v1/; | |
15 | /include/ "spear1310.dtsi" | |
16 | ||
17 | / { | |
18 | model = "ST SPEAr1310 Evaluation Board"; | |
19 | compatible = "st,spear1310-evb", "st,spear1310"; | |
20 | #address-cells = <1>; | |
21 | #size-cells = <1>; | |
22 | ||
23 | memory { | |
24 | reg = <0 0x40000000>; | |
25 | }; | |
26 | ||
27 | ahb { | |
28 | pinmux@e0700000 { | |
29 | pinctrl-names = "default"; | |
30 | pinctrl-0 = <&state_default>; | |
31 | ||
32 | state_default: pinmux { | |
7db083e0 | 33 | i2c0 { |
07658d9a VK |
34 | st,pins = "i2c0_grp"; |
35 | st,function = "i2c0"; | |
36 | }; | |
7db083e0 VKS |
37 | i2s0 { |
38 | st,pins = "i2s0_grp"; | |
39 | st,function = "i2s0"; | |
40 | }; | |
07658d9a VK |
41 | i2s1 { |
42 | st,pins = "i2s1_grp"; | |
43 | st,function = "i2s1"; | |
44 | }; | |
45 | gpio { | |
46 | st,pins = "arm_gpio_grp"; | |
47 | st,function = "arm_gpio"; | |
48 | }; | |
7db083e0 VKS |
49 | clcd { |
50 | st,pins = "clcd_grp" , "clcd_high_res"; | |
51 | st,function = "clcd"; | |
52 | }; | |
07658d9a VK |
53 | eth { |
54 | st,pins = "gmii_grp"; | |
55 | st,function = "gmii"; | |
56 | }; | |
57 | ssp0 { | |
58 | st,pins = "ssp0_grp"; | |
59 | st,function = "ssp0"; | |
60 | }; | |
61 | kbd { | |
62 | st,pins = "keyboard_6x6_grp"; | |
63 | st,function = "keyboard"; | |
64 | }; | |
65 | sdhci { | |
66 | st,pins = "sdhci_grp"; | |
67 | st,function = "sdhci"; | |
68 | }; | |
69 | smi-pmx { | |
70 | st,pins = "smi_2_chips_grp"; | |
71 | st,function = "smi"; | |
72 | }; | |
73 | uart0 { | |
74 | st,pins = "uart0_grp"; | |
75 | st,function = "uart0"; | |
76 | }; | |
77 | rs485 { | |
78 | st,pins = "rs485_0_1_tdm_0_1_grp"; | |
79 | st,function = "rs485_0_1_tdm_0_1"; | |
80 | }; | |
81 | i2c1_2 { | |
82 | st,pins = "i2c_1_2_grp"; | |
83 | st,function = "i2c_1_2"; | |
84 | }; | |
07658d9a VK |
85 | smii { |
86 | st,pins = "smii_0_1_2_grp"; | |
87 | st,function = "smii_0_1_2"; | |
88 | }; | |
89 | nand { | |
90 | st,pins = "nand_8bit_grp", | |
91 | "nand_16bit_grp"; | |
92 | st,function = "nand"; | |
93 | }; | |
7db083e0 VKS |
94 | sata { |
95 | st,pins = "sata0_grp"; | |
96 | st,function = "sata"; | |
97 | }; | |
98 | pcie { | |
99 | st,pins = "pcie1_grp", "pcie2_grp"; | |
100 | st,function = "pci_express"; | |
101 | }; | |
07658d9a VK |
102 | }; |
103 | }; | |
104 | ||
105 | ahci@b1000000 { | |
106 | status = "okay"; | |
107 | }; | |
108 | ||
549f3ae1 PA |
109 | miphy@eb800000 { |
110 | status = "okay"; | |
111 | }; | |
112 | ||
07658d9a VK |
113 | cf@b2800000 { |
114 | status = "okay"; | |
115 | }; | |
116 | ||
117 | dma@ea800000 { | |
118 | status = "okay"; | |
119 | }; | |
120 | ||
121 | dma@eb000000 { | |
122 | status = "okay"; | |
123 | }; | |
124 | ||
125 | fsmc: flash@b0000000 { | |
126 | status = "okay"; | |
482a8f3f VK |
127 | |
128 | partition@0 { | |
129 | label = "xloader"; | |
130 | reg = <0x0 0x80000>; | |
131 | }; | |
132 | partition@80000 { | |
133 | label = "u-boot"; | |
134 | reg = <0x80000 0x140000>; | |
135 | }; | |
136 | partition@1C0000 { | |
137 | label = "environment"; | |
138 | reg = <0x1C0000 0x40000>; | |
139 | }; | |
140 | partition@200000 { | |
141 | label = "dtb"; | |
142 | reg = <0x200000 0x40000>; | |
143 | }; | |
144 | partition@240000 { | |
145 | label = "linux"; | |
146 | reg = <0x240000 0xC00000>; | |
147 | }; | |
148 | partition@E40000 { | |
149 | label = "rootfs"; | |
150 | reg = <0xE40000 0x0>; | |
151 | }; | |
07658d9a VK |
152 | }; |
153 | ||
8113ba91 SH |
154 | gpio_keys { |
155 | compatible = "gpio-keys"; | |
156 | #address-cells = <1>; | |
157 | #size-cells = <0>; | |
158 | ||
159 | button@1 { | |
160 | label = "wakeup"; | |
161 | linux,code = <0x100>; | |
162 | gpios = <&gpio0 7 0x4>; | |
163 | debounce-interval = <20>; | |
a6b17868 | 164 | wakeup-source; |
8113ba91 SH |
165 | }; |
166 | }; | |
167 | ||
07658d9a | 168 | gmac0: eth@e2000000 { |
4c7a078f | 169 | phy-mode = "gmii"; |
07658d9a VK |
170 | status = "okay"; |
171 | }; | |
172 | ||
173 | sdhci@b3000000 { | |
174 | status = "okay"; | |
175 | }; | |
176 | ||
177 | smi: flash@ea000000 { | |
178 | status = "okay"; | |
179 | clock-rate=<50000000>; | |
180 | ||
181 | flash@e6000000 { | |
182 | #address-cells = <1>; | |
183 | #size-cells = <1>; | |
184 | reg = <0xe6000000 0x800000>; | |
185 | st,smi-fast-mode; | |
186 | ||
187 | partition@0 { | |
188 | label = "xloader"; | |
189 | reg = <0x0 0x10000>; | |
190 | }; | |
191 | partition@10000 { | |
192 | label = "u-boot"; | |
482a8f3f VK |
193 | reg = <0x10000 0x50000>; |
194 | }; | |
195 | partition@60000 { | |
196 | label = "environment"; | |
197 | reg = <0x60000 0x10000>; | |
198 | }; | |
199 | partition@70000 { | |
200 | label = "dtb"; | |
201 | reg = <0x70000 0x10000>; | |
07658d9a | 202 | }; |
482a8f3f | 203 | partition@80000 { |
07658d9a | 204 | label = "linux"; |
482a8f3f | 205 | reg = <0x80000 0x310000>; |
07658d9a | 206 | }; |
482a8f3f | 207 | partition@390000 { |
07658d9a | 208 | label = "rootfs"; |
482a8f3f | 209 | reg = <0x390000 0x0>; |
07658d9a VK |
210 | }; |
211 | }; | |
212 | }; | |
213 | ||
07658d9a VK |
214 | ehci@e4800000 { |
215 | status = "okay"; | |
216 | }; | |
217 | ||
218 | ehci@e5800000 { | |
219 | status = "okay"; | |
220 | }; | |
221 | ||
222 | ohci@e4000000 { | |
223 | status = "okay"; | |
224 | }; | |
225 | ||
226 | ohci@e5000000 { | |
227 | status = "okay"; | |
228 | }; | |
229 | ||
230 | apb { | |
231 | adc@e0080000 { | |
232 | status = "okay"; | |
233 | }; | |
234 | ||
235 | gpio0: gpio@e0600000 { | |
236 | status = "okay"; | |
237 | }; | |
238 | ||
239 | gpio1: gpio@e0680000 { | |
240 | status = "okay"; | |
241 | }; | |
242 | ||
4ddb1c29 VK |
243 | gpio@d8400000 { |
244 | status = "okay"; | |
245 | }; | |
246 | ||
07658d9a VK |
247 | i2c0: i2c@e0280000 { |
248 | status = "okay"; | |
249 | }; | |
250 | ||
07658d9a VK |
251 | kbd@e0300000 { |
252 | linux,keymap = < 0x00000001 | |
253 | 0x00010002 | |
254 | 0x00020003 | |
255 | 0x00030004 | |
256 | 0x00040005 | |
257 | 0x00050006 | |
258 | 0x00060007 | |
259 | 0x00070008 | |
260 | 0x00080009 | |
261 | 0x0100000a | |
262 | 0x0101000c | |
263 | 0x0102000d | |
264 | 0x0103000e | |
265 | 0x0104000f | |
266 | 0x01050010 | |
267 | 0x01060011 | |
268 | 0x01070012 | |
269 | 0x01080013 | |
270 | 0x02000014 | |
271 | 0x02010015 | |
272 | 0x02020016 | |
273 | 0x02030017 | |
274 | 0x02040018 | |
275 | 0x02050019 | |
276 | 0x0206001a | |
277 | 0x0207001b | |
278 | 0x0208001c | |
279 | 0x0300001d | |
280 | 0x0301001e | |
281 | 0x0302001f | |
282 | 0x03030020 | |
283 | 0x03040021 | |
284 | 0x03050022 | |
285 | 0x03060023 | |
286 | 0x03070024 | |
287 | 0x03080025 | |
288 | 0x04000026 | |
289 | 0x04010027 | |
290 | 0x04020028 | |
291 | 0x04030029 | |
292 | 0x0404002a | |
293 | 0x0405002b | |
294 | 0x0406002c | |
295 | 0x0407002d | |
296 | 0x0408002e | |
297 | 0x0500002f | |
298 | 0x05010030 | |
299 | 0x05020031 | |
300 | 0x05030032 | |
301 | 0x05040033 | |
302 | 0x05050034 | |
303 | 0x05060035 | |
304 | 0x05070036 | |
305 | 0x05080037 | |
306 | 0x06000038 | |
307 | 0x06010039 | |
308 | 0x0602003a | |
309 | 0x0603003b | |
310 | 0x0604003c | |
311 | 0x0605003d | |
312 | 0x0606003e | |
313 | 0x0607003f | |
314 | 0x06080040 | |
315 | 0x07000041 | |
316 | 0x07010042 | |
317 | 0x07020043 | |
318 | 0x07030044 | |
319 | 0x07040045 | |
320 | 0x07050046 | |
321 | 0x07060047 | |
322 | 0x07070048 | |
323 | 0x07080049 | |
324 | 0x0800004a | |
325 | 0x0801004b | |
326 | 0x0802004c | |
327 | 0x0803004d | |
328 | 0x0804004e | |
329 | 0x0805004f | |
330 | 0x08060050 | |
331 | 0x08070051 | |
332 | 0x08080052 >; | |
333 | autorepeat; | |
334 | st,mode = <0>; | |
f631b984 | 335 | suspended_rate = <2000000>; |
07658d9a VK |
336 | status = "okay"; |
337 | }; | |
338 | ||
339 | rtc@e0580000 { | |
340 | status = "okay"; | |
341 | }; | |
342 | ||
343 | serial@e0000000 { | |
344 | status = "okay"; | |
7bceba83 VKS |
345 | pinctrl-names = "default"; |
346 | pinctrl-0 = <>; | |
07658d9a VK |
347 | }; |
348 | ||
f631b984 VKS |
349 | spi0: spi@e0100000 { |
350 | status = "okay"; | |
8113ba91 SH |
351 | num-cs = <3>; |
352 | cs-gpios = <&gpio1 7 0>, <&spics 0>, <&spics 1>; | |
353 | ||
354 | stmpe610@0 { | |
355 | compatible = "st,stmpe610"; | |
356 | reg = <0>; | |
357 | #address-cells = <1>; | |
358 | #size-cells = <0>; | |
359 | spi-max-frequency = <1000000>; | |
360 | spi-cpha; | |
361 | pl022,hierarchy = <0>; | |
362 | pl022,interface = <0>; | |
363 | pl022,slave-tx-disable; | |
364 | pl022,com-mode = <0>; | |
365 | pl022,rx-level-trig = <0>; | |
366 | pl022,tx-level-trig = <0>; | |
367 | pl022,ctrl-len = <0x7>; | |
368 | pl022,wait-state = <0>; | |
369 | pl022,duplex = <0>; | |
370 | interrupts = <6 0x4>; | |
371 | interrupt-parent = <&gpio1>; | |
372 | irq-trigger = <0x2>; | |
373 | ||
374 | stmpe_touchscreen { | |
375 | compatible = "st,stmpe-ts"; | |
376 | ts,sample-time = <4>; | |
377 | ts,mod-12b = <1>; | |
378 | ts,ref-sel = <0>; | |
379 | ts,adc-freq = <1>; | |
380 | ts,ave-ctrl = <1>; | |
381 | ts,touch-det-delay = <2>; | |
382 | ts,settling = <2>; | |
383 | ts,fraction-z = <7>; | |
384 | ts,i-drive = <1>; | |
385 | }; | |
386 | }; | |
387 | ||
388 | m25p80@1 { | |
389 | compatible = "st,m25p80"; | |
390 | reg = <1>; | |
391 | spi-max-frequency = <12000000>; | |
392 | spi-cpol; | |
393 | spi-cpha; | |
394 | pl022,hierarchy = <0>; | |
395 | pl022,interface = <0>; | |
396 | pl022,slave-tx-disable; | |
397 | pl022,com-mode = <0x2>; | |
398 | pl022,rx-level-trig = <0>; | |
399 | pl022,tx-level-trig = <0>; | |
400 | pl022,ctrl-len = <0x11>; | |
401 | pl022,wait-state = <0>; | |
402 | pl022,duplex = <0>; | |
403 | }; | |
404 | ||
405 | spidev@2 { | |
406 | compatible = "spidev"; | |
407 | reg = <2>; | |
408 | spi-max-frequency = <25000000>; | |
409 | spi-cpha; | |
410 | pl022,hierarchy = <0>; | |
411 | pl022,interface = <0>; | |
412 | pl022,slave-tx-disable; | |
413 | pl022,com-mode = <0x2>; | |
414 | pl022,rx-level-trig = <0>; | |
415 | pl022,tx-level-trig = <0>; | |
416 | pl022,ctrl-len = <0x11>; | |
417 | pl022,wait-state = <0>; | |
418 | pl022,duplex = <0>; | |
419 | }; | |
f631b984 VKS |
420 | }; |
421 | ||
07658d9a VK |
422 | wdt@ec800620 { |
423 | status = "okay"; | |
424 | }; | |
425 | }; | |
426 | }; | |
427 | }; |