blob: aa8f931a0e9be2d10cbb486b07a2abe74c49e283 [file] [log] [blame]
Paul Gortmaker81fad212008-04-15 18:41:31 -04001/*
2 * SBC8641D Device Tree Source
3 *
4 * Copyright 2008 Wind River Systems Inc.
5 *
6 * Paul Gortmaker (see MAINTAINERS for contact information)
7 *
8 * Based largely on the mpc8641_hpcn.dts by Freescale Semiconductor Inc.
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the
12 * Free Software Foundation; either version 2 of the License, or (at your
13 * option) any later version.
14 */
15
16/dts-v1/;
17
18/ {
19 model = "SBC8641D";
20 compatible = "wind,sbc8641";
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 aliases {
25 ethernet0 = &enet0;
26 ethernet1 = &enet1;
27 ethernet2 = &enet2;
28 ethernet3 = &enet3;
29 serial0 = &serial0;
30 serial1 = &serial1;
31 pci0 = &pci0;
32 pci1 = &pci1;
33 };
34
35 cpus {
36 #address-cells = <1>;
37 #size-cells = <0>;
38
39 PowerPC,8641@0 {
40 device_type = "cpu";
41 reg = <0>;
42 d-cache-line-size = <32>;
43 i-cache-line-size = <32>;
44 d-cache-size = <32768>; // L1
45 i-cache-size = <32768>; // L1
46 timebase-frequency = <0>; // From uboot
47 bus-frequency = <0>; // From uboot
48 clock-frequency = <0>; // From uboot
49 };
50 PowerPC,8641@1 {
51 device_type = "cpu";
52 reg = <1>;
53 d-cache-line-size = <32>;
54 i-cache-line-size = <32>;
55 d-cache-size = <32768>;
56 i-cache-size = <32768>;
57 timebase-frequency = <0>; // From uboot
58 bus-frequency = <0>; // From uboot
59 clock-frequency = <0>; // From uboot
60 };
61 };
62
63 memory {
64 device_type = "memory";
65 reg = <0x00000000 0x20000000>; // 512M at 0x0
66 };
67
68 localbus@f8005000 {
69 #address-cells = <2>;
70 #size-cells = <1>;
71 compatible = "fsl,mpc8641-localbus", "simple-bus";
72 reg = <0xf8005000 0x1000>;
73 interrupts = <19 2>;
74 interrupt-parent = <&mpic>;
75
76 ranges = <0 0 0xff000000 0x01000000 // 16MB Boot flash
77 1 0 0xf0000000 0x00010000 // 64KB EEPROM
78 2 0 0xf1000000 0x00100000 // EPLD (1MB)
79 3 0 0xe0000000 0x04000000 // 64MB LB SDRAM (CS3)
80 4 0 0xe4000000 0x04000000 // 64MB LB SDRAM (CS4)
81 6 0 0xf4000000 0x00100000 // LCD display (1MB)
82 7 0 0xe8000000 0x04000000>; // 64MB OneNAND
83
84 flash@0,0 {
85 compatible = "cfi-flash";
86 reg = <0 0 0x01000000>;
87 bank-width = <2>;
88 device-width = <2>;
89 #address-cells = <1>;
90 #size-cells = <1>;
91 partition@0 {
92 label = "dtb";
93 reg = <0x00000000 0x00100000>;
94 read-only;
95 };
96 partition@300000 {
97 label = "kernel";
98 reg = <0x00100000 0x00400000>;
99 read-only;
100 };
101 partition@400000 {
102 label = "fs";
103 reg = <0x00500000 0x00a00000>;
104 };
105 partition@700000 {
106 label = "firmware";
107 reg = <0x00f00000 0x00100000>;
108 read-only;
109 };
110 };
111
112 epld@2,0 {
113 compatible = "wrs,epld-localbus";
114 #address-cells = <2>;
115 #size-cells = <1>;
116 reg = <2 0 0x100000>;
117 ranges = <0 0 5 0 1 // User switches
118 1 0 5 1 1 // Board ID/Rev
119 3 0 5 3 1>; // LEDs
120 };
121 };
122
123 soc@f8000000 {
124 #address-cells = <1>;
125 #size-cells = <1>;
126 device_type = "soc";
127 compatible = "simple-bus";
128 ranges = <0x00000000 0xf8000000 0x00100000>;
129 reg = <0xf8000000 0x00001000>; // CCSRBAR
130 bus-frequency = <0>;
131
Kumar Galada385782009-04-27 11:02:16 -0500132 mcm-law@0 {
133 compatible = "fsl,mcm-law";
134 reg = <0x0 0x1000>;
135 fsl,num-laws = <10>;
136 };
137
138 mcm@1000 {
139 compatible = "fsl,mpc8641-mcm", "fsl,mcm";
140 reg = <0x1000 0x1000>;
141 interrupts = <17 2>;
142 interrupt-parent = <&mpic>;
143 };
144
Paul Gortmaker81fad212008-04-15 18:41:31 -0400145 i2c@3000 {
146 #address-cells = <1>;
147 #size-cells = <0>;
148 cell-index = <0>;
149 compatible = "fsl-i2c";
150 reg = <0x3000 0x100>;
151 interrupts = <43 2>;
152 interrupt-parent = <&mpic>;
153 dfsrr;
154 };
155
156 i2c@3100 {
157 #address-cells = <1>;
158 #size-cells = <0>;
159 cell-index = <1>;
160 compatible = "fsl-i2c";
161 reg = <0x3100 0x100>;
162 interrupts = <43 2>;
163 interrupt-parent = <&mpic>;
164 dfsrr;
165 };
166
Kumar Galadee80552008-06-27 13:45:19 -0500167 dma@21300 {
168 #address-cells = <1>;
169 #size-cells = <1>;
170 compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma";
171 reg = <0x21300 0x4>;
172 ranges = <0x0 0x21100 0x200>;
173 cell-index = <0>;
174 dma-channel@0 {
175 compatible = "fsl,mpc8641-dma-channel",
176 "fsl,eloplus-dma-channel";
177 reg = <0x0 0x80>;
178 cell-index = <0>;
179 interrupt-parent = <&mpic>;
180 interrupts = <20 2>;
181 };
182 dma-channel@80 {
183 compatible = "fsl,mpc8641-dma-channel",
184 "fsl,eloplus-dma-channel";
185 reg = <0x80 0x80>;
186 cell-index = <1>;
187 interrupt-parent = <&mpic>;
188 interrupts = <21 2>;
189 };
190 dma-channel@100 {
191 compatible = "fsl,mpc8641-dma-channel",
192 "fsl,eloplus-dma-channel";
193 reg = <0x100 0x80>;
194 cell-index = <2>;
195 interrupt-parent = <&mpic>;
196 interrupts = <22 2>;
197 };
198 dma-channel@180 {
199 compatible = "fsl,mpc8641-dma-channel",
200 "fsl,eloplus-dma-channel";
201 reg = <0x180 0x80>;
202 cell-index = <3>;
203 interrupt-parent = <&mpic>;
204 interrupts = <23 2>;
205 };
206 };
207
Paul Gortmaker81fad212008-04-15 18:41:31 -0400208 enet0: ethernet@24000 {
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300209 #address-cells = <1>;
210 #size-cells = <1>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400211 cell-index = <0>;
212 device_type = "network";
213 model = "TSEC";
214 compatible = "gianfar";
215 reg = <0x24000 0x1000>;
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300216 ranges = <0x0 0x24000 0x1000>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400217 local-mac-address = [ 00 00 00 00 00 00 ];
218 interrupts = <29 2 30 2 34 2>;
219 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800220 tbi-handle = <&tbi0>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400221 phy-handle = <&phy0>;
222 phy-connection-type = "rgmii-id";
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300223
224 mdio@520 {
225 #address-cells = <1>;
226 #size-cells = <0>;
227 compatible = "fsl,gianfar-mdio";
228 reg = <0x520 0x20>;
229
230 phy0: ethernet-phy@1f {
231 interrupt-parent = <&mpic>;
232 interrupts = <10 1>;
233 reg = <0x1f>;
234 device_type = "ethernet-phy";
235 };
236 phy1: ethernet-phy@0 {
237 interrupt-parent = <&mpic>;
238 interrupts = <10 1>;
239 reg = <0>;
240 device_type = "ethernet-phy";
241 };
242 phy2: ethernet-phy@1 {
243 interrupt-parent = <&mpic>;
244 interrupts = <10 1>;
245 reg = <1>;
246 device_type = "ethernet-phy";
247 };
248 phy3: ethernet-phy@2 {
249 interrupt-parent = <&mpic>;
250 interrupts = <10 1>;
251 reg = <2>;
252 device_type = "ethernet-phy";
253 };
254 tbi0: tbi-phy@11 {
255 reg = <0x11>;
256 device_type = "tbi-phy";
257 };
258 };
Paul Gortmaker81fad212008-04-15 18:41:31 -0400259 };
260
261 enet1: ethernet@25000 {
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300262 #address-cells = <1>;
263 #size-cells = <1>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400264 cell-index = <1>;
265 device_type = "network";
266 model = "TSEC";
267 compatible = "gianfar";
268 reg = <0x25000 0x1000>;
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300269 ranges = <0x0 0x25000 0x1000>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400270 local-mac-address = [ 00 00 00 00 00 00 ];
271 interrupts = <35 2 36 2 40 2>;
272 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800273 tbi-handle = <&tbi1>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400274 phy-handle = <&phy1>;
275 phy-connection-type = "rgmii-id";
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300276
277 mdio@520 {
278 #address-cells = <1>;
279 #size-cells = <0>;
280 compatible = "fsl,gianfar-tbi";
281 reg = <0x520 0x20>;
282
283 tbi1: tbi-phy@11 {
284 reg = <0x11>;
285 device_type = "tbi-phy";
286 };
287 };
Paul Gortmaker81fad212008-04-15 18:41:31 -0400288 };
289
290 enet2: ethernet@26000 {
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300291 #address-cells = <1>;
292 #size-cells = <1>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400293 cell-index = <2>;
294 device_type = "network";
295 model = "TSEC";
296 compatible = "gianfar";
297 reg = <0x26000 0x1000>;
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300298 ranges = <0x0 0x26000 0x1000>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400299 local-mac-address = [ 00 00 00 00 00 00 ];
300 interrupts = <31 2 32 2 33 2>;
301 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800302 tbi-handle = <&tbi2>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400303 phy-handle = <&phy2>;
304 phy-connection-type = "rgmii-id";
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300305
306 mdio@520 {
307 #address-cells = <1>;
308 #size-cells = <0>;
309 compatible = "fsl,gianfar-tbi";
310 reg = <0x520 0x20>;
311
312 tbi2: tbi-phy@11 {
313 reg = <0x11>;
314 device_type = "tbi-phy";
315 };
316 };
Paul Gortmaker81fad212008-04-15 18:41:31 -0400317 };
318
319 enet3: ethernet@27000 {
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300320 #address-cells = <1>;
321 #size-cells = <1>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400322 cell-index = <3>;
323 device_type = "network";
324 model = "TSEC";
325 compatible = "gianfar";
326 reg = <0x27000 0x1000>;
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300327 ranges = <0x0 0x27000 0x1000>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400328 local-mac-address = [ 00 00 00 00 00 00 ];
329 interrupts = <37 2 38 2 39 2>;
330 interrupt-parent = <&mpic>;
Andy Flemingb31a1d82008-12-16 15:29:15 -0800331 tbi-handle = <&tbi3>;
Paul Gortmaker81fad212008-04-15 18:41:31 -0400332 phy-handle = <&phy3>;
333 phy-connection-type = "rgmii-id";
Anton Vorontsovd8bc55f2009-03-19 21:01:51 +0300334
335 mdio@520 {
336 #address-cells = <1>;
337 #size-cells = <0>;
338 compatible = "fsl,gianfar-tbi";
339 reg = <0x520 0x20>;
340
341 tbi3: tbi-phy@11 {
342 reg = <0x11>;
343 device_type = "tbi-phy";
344 };
345 };
Paul Gortmaker81fad212008-04-15 18:41:31 -0400346 };
347
348 serial0: serial@4500 {
349 cell-index = <0>;
350 device_type = "serial";
351 compatible = "ns16550";
352 reg = <0x4500 0x100>;
353 clock-frequency = <0>;
354 interrupts = <42 2>;
355 interrupt-parent = <&mpic>;
356 };
357
358 serial1: serial@4600 {
359 cell-index = <1>;
360 device_type = "serial";
361 compatible = "ns16550";
362 reg = <0x4600 0x100>;
363 clock-frequency = <0>;
364 interrupts = <28 2>;
365 interrupt-parent = <&mpic>;
366 };
367
368 mpic: pic@40000 {
369 clock-frequency = <0>;
370 interrupt-controller;
371 #address-cells = <0>;
372 #interrupt-cells = <2>;
373 reg = <0x40000 0x40000>;
374 compatible = "chrp,open-pic";
375 device_type = "open-pic";
376 big-endian;
377 };
378
379 global-utilities@e0000 {
380 compatible = "fsl,mpc8641-guts";
381 reg = <0xe0000 0x1000>;
382 fsl,has-rstcr;
383 };
384 };
385
386 pci0: pcie@f8008000 {
Paul Gortmaker81fad212008-04-15 18:41:31 -0400387 compatible = "fsl,mpc8641-pcie";
388 device_type = "pci";
389 #interrupt-cells = <1>;
390 #size-cells = <2>;
391 #address-cells = <3>;
392 reg = <0xf8008000 0x1000>;
393 bus-range = <0x0 0xff>;
394 ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x20000000
395 0x01000000 0x0 0x00000000 0xe2000000 0x0 0x00100000>;
396 clock-frequency = <33333333>;
397 interrupt-parent = <&mpic>;
398 interrupts = <24 2>;
399 interrupt-map-mask = <0xff00 0 0 7>;
400 interrupt-map = <
401 /* IDSEL 0x0 */
402 0x0000 0 0 1 &mpic 0 1
403 0x0000 0 0 2 &mpic 1 1
404 0x0000 0 0 3 &mpic 2 1
405 0x0000 0 0 4 &mpic 3 1
406 >;
407
408 pcie@0 {
409 reg = <0 0 0 0 0>;
410 #size-cells = <2>;
411 #address-cells = <3>;
412 device_type = "pci";
413 ranges = <0x02000000 0x0 0x80000000
414 0x02000000 0x0 0x80000000
415 0x0 0x20000000
416
417 0x01000000 0x0 0x00000000
418 0x01000000 0x0 0x00000000
419 0x0 0x00100000>;
420 };
421
422 };
423
424 pci1: pcie@f8009000 {
Paul Gortmaker81fad212008-04-15 18:41:31 -0400425 compatible = "fsl,mpc8641-pcie";
426 device_type = "pci";
427 #interrupt-cells = <1>;
428 #size-cells = <2>;
429 #address-cells = <3>;
430 reg = <0xf8009000 0x1000>;
431 bus-range = <0 0xff>;
432 ranges = <0x02000000 0x0 0xa0000000 0xa0000000 0x0 0x20000000
433 0x01000000 0x0 0x00000000 0xe3000000 0x0 0x00100000>;
434 clock-frequency = <33333333>;
435 interrupt-parent = <&mpic>;
436 interrupts = <25 2>;
437 interrupt-map-mask = <0xf800 0 0 7>;
438 interrupt-map = <
439 /* IDSEL 0x0 */
440 0x0000 0 0 1 &mpic 4 1
441 0x0000 0 0 2 &mpic 5 1
442 0x0000 0 0 3 &mpic 6 1
443 0x0000 0 0 4 &mpic 7 1
444 >;
445
446 pcie@0 {
447 reg = <0 0 0 0 0>;
448 #size-cells = <2>;
449 #address-cells = <3>;
450 device_type = "pci";
451 ranges = <0x02000000 0x0 0xa0000000
452 0x02000000 0x0 0xa0000000
453 0x0 0x20000000
454
455 0x01000000 0x0 0x00000000
456 0x01000000 0x0 0x00000000
457 0x0 0x00100000>;
458 };
459 };
460};