]> git.ipfire.org Git - people/arne_f/kernel.git/blame - arch/arm/boot/dts/spear1310-evb.dts
sun7i: dts: add bananapro.
[people/arne_f/kernel.git] / arch / arm / boot / dts / spear1310-evb.dts
CommitLineData
07658d9a
VK
1/*
2 * DTS file for SPEAr1310 Evaluation Baord
3 *
10d8935f 4 * Copyright 2012 Viresh Kumar <viresh.linux@gmail.com>
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
109 cf@b2800000 {
110 status = "okay";
111 };
112
113 dma@ea800000 {
114 status = "okay";
115 };
116
117 dma@eb000000 {
118 status = "okay";
119 };
120
121 fsmc: flash@b0000000 {
122 status = "okay";
482a8f3f
VK
123
124 partition@0 {
125 label = "xloader";
126 reg = <0x0 0x80000>;
127 };
128 partition@80000 {
129 label = "u-boot";
130 reg = <0x80000 0x140000>;
131 };
132 partition@1C0000 {
133 label = "environment";
134 reg = <0x1C0000 0x40000>;
135 };
136 partition@200000 {
137 label = "dtb";
138 reg = <0x200000 0x40000>;
139 };
140 partition@240000 {
141 label = "linux";
142 reg = <0x240000 0xC00000>;
143 };
144 partition@E40000 {
145 label = "rootfs";
146 reg = <0xE40000 0x0>;
147 };
07658d9a
VK
148 };
149
8113ba91
SH
150 gpio_keys {
151 compatible = "gpio-keys";
152 #address-cells = <1>;
153 #size-cells = <0>;
154
155 button@1 {
156 label = "wakeup";
157 linux,code = <0x100>;
158 gpios = <&gpio0 7 0x4>;
159 debounce-interval = <20>;
160 gpio-key,wakeup = <1>;
161 };
162 };
163
07658d9a 164 gmac0: eth@e2000000 {
4c7a078f 165 phy-mode = "gmii";
07658d9a
VK
166 status = "okay";
167 };
168
169 sdhci@b3000000 {
170 status = "okay";
171 };
172
173 smi: flash@ea000000 {
174 status = "okay";
175 clock-rate=<50000000>;
176
177 flash@e6000000 {
178 #address-cells = <1>;
179 #size-cells = <1>;
180 reg = <0xe6000000 0x800000>;
181 st,smi-fast-mode;
182
183 partition@0 {
184 label = "xloader";
185 reg = <0x0 0x10000>;
186 };
187 partition@10000 {
188 label = "u-boot";
482a8f3f
VK
189 reg = <0x10000 0x50000>;
190 };
191 partition@60000 {
192 label = "environment";
193 reg = <0x60000 0x10000>;
194 };
195 partition@70000 {
196 label = "dtb";
197 reg = <0x70000 0x10000>;
07658d9a 198 };
482a8f3f 199 partition@80000 {
07658d9a 200 label = "linux";
482a8f3f 201 reg = <0x80000 0x310000>;
07658d9a 202 };
482a8f3f 203 partition@390000 {
07658d9a 204 label = "rootfs";
482a8f3f 205 reg = <0x390000 0x0>;
07658d9a
VK
206 };
207 };
208 };
209
07658d9a
VK
210 ehci@e4800000 {
211 status = "okay";
212 };
213
214 ehci@e5800000 {
215 status = "okay";
216 };
217
218 ohci@e4000000 {
219 status = "okay";
220 };
221
222 ohci@e5000000 {
223 status = "okay";
224 };
225
226 apb {
227 adc@e0080000 {
228 status = "okay";
229 };
230
231 gpio0: gpio@e0600000 {
232 status = "okay";
233 };
234
235 gpio1: gpio@e0680000 {
236 status = "okay";
237 };
238
4ddb1c29
VK
239 gpio@d8400000 {
240 status = "okay";
241 };
242
07658d9a
VK
243 i2c0: i2c@e0280000 {
244 status = "okay";
245 };
246
07658d9a
VK
247 kbd@e0300000 {
248 linux,keymap = < 0x00000001
249 0x00010002
250 0x00020003
251 0x00030004
252 0x00040005
253 0x00050006
254 0x00060007
255 0x00070008
256 0x00080009
257 0x0100000a
258 0x0101000c
259 0x0102000d
260 0x0103000e
261 0x0104000f
262 0x01050010
263 0x01060011
264 0x01070012
265 0x01080013
266 0x02000014
267 0x02010015
268 0x02020016
269 0x02030017
270 0x02040018
271 0x02050019
272 0x0206001a
273 0x0207001b
274 0x0208001c
275 0x0300001d
276 0x0301001e
277 0x0302001f
278 0x03030020
279 0x03040021
280 0x03050022
281 0x03060023
282 0x03070024
283 0x03080025
284 0x04000026
285 0x04010027
286 0x04020028
287 0x04030029
288 0x0404002a
289 0x0405002b
290 0x0406002c
291 0x0407002d
292 0x0408002e
293 0x0500002f
294 0x05010030
295 0x05020031
296 0x05030032
297 0x05040033
298 0x05050034
299 0x05060035
300 0x05070036
301 0x05080037
302 0x06000038
303 0x06010039
304 0x0602003a
305 0x0603003b
306 0x0604003c
307 0x0605003d
308 0x0606003e
309 0x0607003f
310 0x06080040
311 0x07000041
312 0x07010042
313 0x07020043
314 0x07030044
315 0x07040045
316 0x07050046
317 0x07060047
318 0x07070048
319 0x07080049
320 0x0800004a
321 0x0801004b
322 0x0802004c
323 0x0803004d
324 0x0804004e
325 0x0805004f
326 0x08060050
327 0x08070051
328 0x08080052 >;
329 autorepeat;
330 st,mode = <0>;
f631b984 331 suspended_rate = <2000000>;
07658d9a
VK
332 status = "okay";
333 };
334
335 rtc@e0580000 {
336 status = "okay";
337 };
338
339 serial@e0000000 {
340 status = "okay";
7bceba83
VKS
341 pinctrl-names = "default";
342 pinctrl-0 = <>;
07658d9a
VK
343 };
344
f631b984
VKS
345 spi0: spi@e0100000 {
346 status = "okay";
8113ba91
SH
347 num-cs = <3>;
348 cs-gpios = <&gpio1 7 0>, <&spics 0>, <&spics 1>;
349
350 stmpe610@0 {
351 compatible = "st,stmpe610";
352 reg = <0>;
353 #address-cells = <1>;
354 #size-cells = <0>;
355 spi-max-frequency = <1000000>;
356 spi-cpha;
357 pl022,hierarchy = <0>;
358 pl022,interface = <0>;
359 pl022,slave-tx-disable;
360 pl022,com-mode = <0>;
361 pl022,rx-level-trig = <0>;
362 pl022,tx-level-trig = <0>;
363 pl022,ctrl-len = <0x7>;
364 pl022,wait-state = <0>;
365 pl022,duplex = <0>;
366 interrupts = <6 0x4>;
367 interrupt-parent = <&gpio1>;
368 irq-trigger = <0x2>;
369
370 stmpe_touchscreen {
371 compatible = "st,stmpe-ts";
372 ts,sample-time = <4>;
373 ts,mod-12b = <1>;
374 ts,ref-sel = <0>;
375 ts,adc-freq = <1>;
376 ts,ave-ctrl = <1>;
377 ts,touch-det-delay = <2>;
378 ts,settling = <2>;
379 ts,fraction-z = <7>;
380 ts,i-drive = <1>;
381 };
382 };
383
384 m25p80@1 {
385 compatible = "st,m25p80";
386 reg = <1>;
387 spi-max-frequency = <12000000>;
388 spi-cpol;
389 spi-cpha;
390 pl022,hierarchy = <0>;
391 pl022,interface = <0>;
392 pl022,slave-tx-disable;
393 pl022,com-mode = <0x2>;
394 pl022,rx-level-trig = <0>;
395 pl022,tx-level-trig = <0>;
396 pl022,ctrl-len = <0x11>;
397 pl022,wait-state = <0>;
398 pl022,duplex = <0>;
399 };
400
401 spidev@2 {
402 compatible = "spidev";
403 reg = <2>;
404 spi-max-frequency = <25000000>;
405 spi-cpha;
406 pl022,hierarchy = <0>;
407 pl022,interface = <0>;
408 pl022,slave-tx-disable;
409 pl022,com-mode = <0x2>;
410 pl022,rx-level-trig = <0>;
411 pl022,tx-level-trig = <0>;
412 pl022,ctrl-len = <0x11>;
413 pl022,wait-state = <0>;
414 pl022,duplex = <0>;
415 };
f631b984
VKS
416 };
417
07658d9a
VK
418 wdt@ec800620 {
419 status = "okay";
420 };
421 };
422 };
423};