Loading...
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2008 Extreme Engineering Solutions, Inc.
4 * Based on MPC8572DS device tree from Freescale Semiconductor, Inc.
5 *
6 * XPedite5370 3U VPX single-board computer based on MPC8572E
7 */
8
9/dts-v1/;
10/ {
11 model = "xes,xpedite5370";
12 compatible = "xes,xpedite5370", "xes,MPC8572";
13 #address-cells = <2>;
14 #size-cells = <2>;
15
16 aliases {
17 ethernet0 = &enet0;
18 ethernet1 = &enet1;
19 serial0 = &serial0;
20 serial1 = &serial1;
21 pci1 = &pci1;
22 pci2 = &pci2;
23 };
24
25 cpus {
26 #address-cells = <1>;
27 #size-cells = <0>;
28
29 PowerPC,8572@0 {
30 device_type = "cpu";
31 reg = <0x0>;
32 d-cache-line-size = <32>; // 32 bytes
33 i-cache-line-size = <32>; // 32 bytes
34 d-cache-size = <0x8000>; // L1, 32K
35 i-cache-size = <0x8000>; // L1, 32K
36 timebase-frequency = <0>;
37 bus-frequency = <0>;
38 clock-frequency = <0>;
39 next-level-cache = <&L2>;
40 };
41
42 PowerPC,8572@1 {
43 device_type = "cpu";
44 reg = <0x1>;
45 d-cache-line-size = <32>; // 32 bytes
46 i-cache-line-size = <32>; // 32 bytes
47 d-cache-size = <0x8000>; // L1, 32K
48 i-cache-size = <0x8000>; // L1, 32K
49 timebase-frequency = <0>;
50 bus-frequency = <0>;
51 clock-frequency = <0>;
52 next-level-cache = <&L2>;
53 };
54 };
55
56 memory {
57 device_type = "memory";
58 reg = <0x0 0x0 0x0 0x0>; // Filled in by U-Boot
59 };
60
61 localbus@ef005000 {
62 #address-cells = <2>;
63 #size-cells = <1>;
64 compatible = "fsl,mpc8572-elbc", "fsl,elbc", "simple-bus";
65 reg = <0 0xef005000 0 0x1000>;
66 interrupts = <19 2>;
67 interrupt-parent = <&mpic>;
68 /* Local bus region mappings */
69 ranges = <0 0 0 0xf8000000 0x8000000 /* CS0: Boot flash */
70 1 0 0 0xf0000000 0x8000000 /* CS1: Alternate flash */
71 2 0 0 0xef800000 0x40000 /* CS2: NAND CE1 */
72 3 0 0 0xef840000 0x40000>; /* CS3: NAND CE2 */
73
74 nor-boot@0,0 {
75 compatible = "amd,s29gl01gp", "cfi-flash";
76 bank-width = <2>;
77 reg = <0 0 0x8000000>; /* 128MB */
78 #address-cells = <1>;
79 #size-cells = <1>;
80 partition@0 {
81 label = "Primary user space";
82 reg = <0x00000000 0x6f00000>; /* 111 MB */
83 };
84 partition@6f00000 {
85 label = "Primary kernel";
86 reg = <0x6f00000 0x1000000>; /* 16 MB */
87 };
88 partition@7f00000 {
89 label = "Primary DTB";
90 reg = <0x7f00000 0x40000>; /* 256 KB */
91 };
92 partition@7f40000 {
93 label = "Primary U-Boot environment";
94 reg = <0x7f40000 0x40000>; /* 256 KB */
95 };
96 partition@7f80000 {
97 label = "Primary U-Boot";
98 reg = <0x7f80000 0x80000>; /* 512 KB */
99 read-only;
100 };
101 };
102
103 nor-alternate@1,0 {
104 compatible = "amd,s29gl01gp", "cfi-flash";
105 bank-width = <2>;
106 //reg = <0xf0000000 0x08000000>; /* 128MB */
107 reg = <1 0 0x8000000>; /* 128MB */
108 #address-cells = <1>;
109 #size-cells = <1>;
110 partition@0 {
111 label = "Secondary user space";
112 reg = <0x00000000 0x6f00000>; /* 111 MB */
113 };
114 partition@6f00000 {
115 label = "Secondary kernel";
116 reg = <0x6f00000 0x1000000>; /* 16 MB */
117 };
118 partition@7f00000 {
119 label = "Secondary DTB";
120 reg = <0x7f00000 0x40000>; /* 256 KB */
121 };
122 partition@7f40000 {
123 label = "Secondary U-Boot environment";
124 reg = <0x7f40000 0x40000>; /* 256 KB */
125 };
126 partition@7f80000 {
127 label = "Secondary U-Boot";
128 reg = <0x7f80000 0x80000>; /* 512 KB */
129 read-only;
130 };
131 };
132
133 nand@2,0 {
134 #address-cells = <1>;
135 #size-cells = <1>;
136 /*
137 * Actual part could be ST Micro NAND08GW3B2A (1 GB),
138 * Micron MT29F8G08DAA (2x 512 MB), or Micron
139 * MT29F16G08FAA (2x 1 GB), depending on the build
140 * configuration
141 */
142 compatible = "fsl,mpc8572-fcm-nand",
143 "fsl,elbc-fcm-nand";
144 reg = <2 0 0x40000>;
145 /* U-Boot should fix this up if chip size > 1 GB */
146 partition@0 {
147 label = "NAND Filesystem";
148 reg = <0 0x40000000>;
149 };
150 };
151
152 };
153
154 soc8572@ef000000 {
155 #address-cells = <1>;
156 #size-cells = <1>;
157 device_type = "soc";
158 compatible = "fsl,mpc8572-immr", "simple-bus";
159 ranges = <0x0 0 0xef000000 0x100000>;
160 bus-frequency = <0>; // Filled out by uboot.
161
162 ecm-law@0 {
163 compatible = "fsl,ecm-law";
164 reg = <0x0 0x1000>;
165 fsl,num-laws = <12>;
166 };
167
168 ecm@1000 {
169 compatible = "fsl,mpc8572-ecm", "fsl,ecm";
170 reg = <0x1000 0x1000>;
171 interrupts = <17 2>;
172 interrupt-parent = <&mpic>;
173 };
174
175 memory-controller@2000 {
176 compatible = "fsl,mpc8572-memory-controller";
177 reg = <0x2000 0x1000>;
178 interrupt-parent = <&mpic>;
179 interrupts = <18 2>;
180 };
181
182 memory-controller@6000 {
183 compatible = "fsl,mpc8572-memory-controller";
184 reg = <0x6000 0x1000>;
185 interrupt-parent = <&mpic>;
186 interrupts = <18 2>;
187 };
188
189 L2: l2-cache-controller@20000 {
190 compatible = "fsl,mpc8572-l2-cache-controller";
191 reg = <0x20000 0x1000>;
192 cache-line-size = <32>; // 32 bytes
193 cache-size = <0x100000>; // L2, 1M
194 interrupt-parent = <&mpic>;
195 interrupts = <16 2>;
196 };
197
198 i2c@3000 {
199 #address-cells = <1>;
200 #size-cells = <0>;
201 cell-index = <0>;
202 compatible = "fsl-i2c";
203 reg = <0x3000 0x100>;
204 interrupts = <43 2>;
205 interrupt-parent = <&mpic>;
206 dfsrr;
207
208 temp-sensor@48 {
209 compatible = "dallas,ds1631", "dallas,ds1621";
210 reg = <0x48>;
211 };
212
213 temp-sensor@4c {
214 compatible = "adi,adt7461";
215 reg = <0x4c>;
216 };
217
218 cpu-supervisor@51 {
219 compatible = "dallas,ds4510";
220 reg = <0x51>;
221 };
222
223 eeprom@54 {
224 compatible = "atmel,at24c128b";
225 reg = <0x54>;
226 };
227
228 rtc@68 {
229 compatible = "st,m41t00",
230 "dallas,ds1338";
231 reg = <0x68>;
232 };
233
234 pcie-switch@70 {
235 compatible = "plx,pex8518";
236 reg = <0x70>;
237 };
238
239 gpio1: gpio@18 {
240 compatible = "nxp,pca9557";
241 reg = <0x18>;
242 #gpio-cells = <2>;
243 gpio-controller;
244 polarity = <0x00>;
245 };
246
247 gpio2: gpio@1c {
248 compatible = "nxp,pca9557";
249 reg = <0x1c>;
250 #gpio-cells = <2>;
251 gpio-controller;
252 polarity = <0x00>;
253 };
254
255 gpio3: gpio@1e {
256 compatible = "nxp,pca9557";
257 reg = <0x1e>;
258 #gpio-cells = <2>;
259 gpio-controller;
260 polarity = <0x00>;
261 };
262
263 gpio4: gpio@1f {
264 compatible = "nxp,pca9557";
265 reg = <0x1f>;
266 #gpio-cells = <2>;
267 gpio-controller;
268 polarity = <0x00>;
269 };
270 };
271
272 i2c@3100 {
273 #address-cells = <1>;
274 #size-cells = <0>;
275 cell-index = <1>;
276 compatible = "fsl-i2c";
277 reg = <0x3100 0x100>;
278 interrupts = <43 2>;
279 interrupt-parent = <&mpic>;
280 dfsrr;
281 };
282
283 dma@c300 {
284 #address-cells = <1>;
285 #size-cells = <1>;
286 compatible = "fsl,mpc8572-dma", "fsl,eloplus-dma";
287 reg = <0xc300 0x4>;
288 ranges = <0x0 0xc100 0x200>;
289 cell-index = <1>;
290 dma-channel@0 {
291 compatible = "fsl,mpc8572-dma-channel",
292 "fsl,eloplus-dma-channel";
293 reg = <0x0 0x80>;
294 cell-index = <0>;
295 interrupt-parent = <&mpic>;
296 interrupts = <76 2>;
297 };
298 dma-channel@80 {
299 compatible = "fsl,mpc8572-dma-channel",
300 "fsl,eloplus-dma-channel";
301 reg = <0x80 0x80>;
302 cell-index = <1>;
303 interrupt-parent = <&mpic>;
304 interrupts = <77 2>;
305 };
306 dma-channel@100 {
307 compatible = "fsl,mpc8572-dma-channel",
308 "fsl,eloplus-dma-channel";
309 reg = <0x100 0x80>;
310 cell-index = <2>;
311 interrupt-parent = <&mpic>;
312 interrupts = <78 2>;
313 };
314 dma-channel@180 {
315 compatible = "fsl,mpc8572-dma-channel",
316 "fsl,eloplus-dma-channel";
317 reg = <0x180 0x80>;
318 cell-index = <3>;
319 interrupt-parent = <&mpic>;
320 interrupts = <79 2>;
321 };
322 };
323
324 dma@21300 {
325 #address-cells = <1>;
326 #size-cells = <1>;
327 compatible = "fsl,mpc8572-dma", "fsl,eloplus-dma";
328 reg = <0x21300 0x4>;
329 ranges = <0x0 0x21100 0x200>;
330 cell-index = <0>;
331 dma-channel@0 {
332 compatible = "fsl,mpc8572-dma-channel",
333 "fsl,eloplus-dma-channel";
334 reg = <0x0 0x80>;
335 cell-index = <0>;
336 interrupt-parent = <&mpic>;
337 interrupts = <20 2>;
338 };
339 dma-channel@80 {
340 compatible = "fsl,mpc8572-dma-channel",
341 "fsl,eloplus-dma-channel";
342 reg = <0x80 0x80>;
343 cell-index = <1>;
344 interrupt-parent = <&mpic>;
345 interrupts = <21 2>;
346 };
347 dma-channel@100 {
348 compatible = "fsl,mpc8572-dma-channel",
349 "fsl,eloplus-dma-channel";
350 reg = <0x100 0x80>;
351 cell-index = <2>;
352 interrupt-parent = <&mpic>;
353 interrupts = <22 2>;
354 };
355 dma-channel@180 {
356 compatible = "fsl,mpc8572-dma-channel",
357 "fsl,eloplus-dma-channel";
358 reg = <0x180 0x80>;
359 cell-index = <3>;
360 interrupt-parent = <&mpic>;
361 interrupts = <23 2>;
362 };
363 };
364
365 /* eTSEC 1 */
366 enet0: ethernet@24000 {
367 #address-cells = <1>;
368 #size-cells = <1>;
369 cell-index = <0>;
370 device_type = "network";
371 model = "eTSEC";
372 compatible = "gianfar";
373 reg = <0x24000 0x1000>;
374 ranges = <0x0 0x24000 0x1000>;
375 local-mac-address = [ 00 00 00 00 00 00 ];
376 interrupts = <29 2 30 2 34 2>;
377 interrupt-parent = <&mpic>;
378 tbi-handle = <&tbi0>;
379 phy-handle = <&phy0>;
380 phy-connection-type = "sgmii";
381
382 mdio@520 {
383 #address-cells = <1>;
384 #size-cells = <0>;
385 compatible = "fsl,gianfar-mdio";
386 reg = <0x520 0x20>;
387
388 phy0: ethernet-phy@1 {
389 interrupt-parent = <&mpic>;
390 interrupts = <8 1>;
391 reg = <0x1>;
392 };
393 phy1: ethernet-phy@2 {
394 interrupt-parent = <&mpic>;
395 interrupts = <8 1>;
396 reg = <0x2>;
397 };
398 tbi0: tbi-phy@11 {
399 reg = <0x11>;
400 device_type = "tbi-phy";
401 };
402 };
403 };
404
405 /* eTSEC 2 */
406 enet1: ethernet@25000 {
407 #address-cells = <1>;
408 #size-cells = <1>;
409 cell-index = <1>;
410 device_type = "network";
411 model = "eTSEC";
412 compatible = "gianfar";
413 reg = <0x25000 0x1000>;
414 ranges = <0x0 0x25000 0x1000>;
415 local-mac-address = [ 00 00 00 00 00 00 ];
416 interrupts = <35 2 36 2 40 2>;
417 interrupt-parent = <&mpic>;
418 tbi-handle = <&tbi1>;
419 phy-handle = <&phy1>;
420 phy-connection-type = "sgmii";
421
422 mdio@520 {
423 #address-cells = <1>;
424 #size-cells = <0>;
425 compatible = "fsl,gianfar-tbi";
426 reg = <0x520 0x20>;
427
428 tbi1: tbi-phy@11 {
429 reg = <0x11>;
430 device_type = "tbi-phy";
431 };
432 };
433 };
434
435 /* UART0 */
436 serial0: serial@4500 {
437 cell-index = <0>;
438 device_type = "serial";
439 compatible = "fsl,ns16550", "ns16550";
440 reg = <0x4500 0x100>;
441 clock-frequency = <0>;
442 interrupts = <42 2>;
443 interrupt-parent = <&mpic>;
444 };
445
446 /* UART1 */
447 serial1: serial@4600 {
448 cell-index = <1>;
449 device_type = "serial";
450 compatible = "fsl,ns16550", "ns16550";
451 reg = <0x4600 0x100>;
452 clock-frequency = <0>;
453 interrupts = <42 2>;
454 interrupt-parent = <&mpic>;
455 };
456
457 global-utilities@e0000 { //global utilities block
458 compatible = "fsl,mpc8572-guts";
459 reg = <0xe0000 0x1000>;
460 fsl,has-rstcr;
461 };
462
463 msi@41600 {
464 compatible = "fsl,mpc8572-msi", "fsl,mpic-msi";
465 reg = <0x41600 0x80>;
466 msi-available-ranges = <0 0x100>;
467 interrupts = <
468 0xe0 0
469 0xe1 0
470 0xe2 0
471 0xe3 0
472 0xe4 0
473 0xe5 0
474 0xe6 0
475 0xe7 0>;
476 interrupt-parent = <&mpic>;
477 };
478
479 crypto@30000 {
480 compatible = "fsl,sec3.0", "fsl,sec2.4", "fsl,sec2.2",
481 "fsl,sec2.1", "fsl,sec2.0";
482 reg = <0x30000 0x10000>;
483 interrupts = <45 2 58 2>;
484 interrupt-parent = <&mpic>;
485 fsl,num-channels = <4>;
486 fsl,channel-fifo-len = <24>;
487 fsl,exec-units-mask = <0x9fe>;
488 fsl,descriptor-types-mask = <0x3ab0ebf>;
489 };
490
491 mpic: pic@40000 {
492 interrupt-controller;
493 #address-cells = <0>;
494 #interrupt-cells = <2>;
495 reg = <0x40000 0x40000>;
496 compatible = "chrp,open-pic";
497 device_type = "open-pic";
498 };
499
500 gpio0: gpio@f000 {
501 compatible = "fsl,mpc8572-gpio";
502 reg = <0xf000 0x1000>;
503 interrupts = <47 2>;
504 interrupt-parent = <&mpic>;
505 #gpio-cells = <2>;
506 gpio-controller;
507 };
508
509 gpio-leds {
510 compatible = "gpio-leds";
511
512 heartbeat {
513 label = "Heartbeat";
514 gpios = <&gpio0 4 1>;
515 linux,default-trigger = "heartbeat";
516 };
517
518 yellow {
519 label = "Yellow";
520 gpios = <&gpio0 5 1>;
521 };
522
523 red {
524 label = "Red";
525 gpios = <&gpio0 6 1>;
526 };
527
528 green {
529 label = "Green";
530 gpios = <&gpio0 7 1>;
531 };
532 };
533
534 /* PME (pattern-matcher) */
535 pme@10000 {
536 compatible = "fsl,mpc8572-pme", "pme8572";
537 reg = <0x10000 0x5000>;
538 interrupts = <57 2 64 2 65 2 66 2 67 2>;
539 interrupt-parent = <&mpic>;
540 };
541
542 tlu@2f000 {
543 compatible = "fsl,mpc8572-tlu", "fsl_tlu";
544 reg = <0x2f000 0x1000>;
545 interrupts = <61 2>;
546 interrupt-parent = <&mpic>;
547 };
548
549 tlu@15000 {
550 compatible = "fsl,mpc8572-tlu", "fsl_tlu";
551 reg = <0x15000 0x1000>;
552 interrupts = <75 2>;
553 interrupt-parent = <&mpic>;
554 };
555 };
556
557 /*
558 * PCI Express controller 3 @ ef008000 is not used.
559 * This would have been pci0 on other mpc85xx platforms.
560 */
561
562 /* PCI Express controller 2, wired to VPX P1,P2 backplane */
563 pci1: pcie@ef009000 {
564 compatible = "fsl,mpc8548-pcie";
565 device_type = "pci";
566 #interrupt-cells = <1>;
567 #size-cells = <2>;
568 #address-cells = <3>;
569 reg = <0 0xef009000 0 0x1000>;
570 bus-range = <0 255>;
571 ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x10000000
572 0x1000000 0x0 0x00000000 0 0xe8800000 0x0 0x00010000>;
573 clock-frequency = <33333333>;
574 interrupt-parent = <&mpic>;
575 interrupts = <25 2>;
576 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
577 interrupt-map = <
578 /* IDSEL 0x0 */
579 0x0 0x0 0x0 0x1 &mpic 0x4 0x1
580 0x0 0x0 0x0 0x2 &mpic 0x5 0x1
581 0x0 0x0 0x0 0x3 &mpic 0x6 0x1
582 0x0 0x0 0x0 0x4 &mpic 0x7 0x1
583 >;
584 pcie@0 {
585 reg = <0x00000000 0x00000000 0x00000000 0x00000000 0x00000000>;
586 #size-cells = <2>;
587 #address-cells = <3>;
588 device_type = "pci";
589 ranges = <0x2000000 0x0 0xc0000000
590 0x2000000 0x0 0xc0000000
591 0x0 0x10000000
592
593 0x1000000 0x0 0x0
594 0x1000000 0x0 0x0
595 0x0 0x100000>;
596 };
597 };
598
599 /* PCI Express controller 1, wired to PEX8518 PCIe switch */
600 pci2: pcie@ef00a000 {
601 compatible = "fsl,mpc8548-pcie";
602 device_type = "pci";
603 #interrupt-cells = <1>;
604 #size-cells = <2>;
605 #address-cells = <3>;
606 reg = <0 0xef00a000 0 0x1000>;
607 bus-range = <0 255>;
608 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x40000000
609 0x1000000 0x0 0x00000000 0 0xe8000000 0x0 0x10000>;
610 clock-frequency = <33333333>;
611 interrupt-parent = <&mpic>;
612 interrupts = <26 2>;
613 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
614 interrupt-map = <
615 /* IDSEL 0x0 */
616 0x0 0x0 0x0 0x1 &mpic 0x0 0x1
617 0x0 0x0 0x0 0x2 &mpic 0x1 0x1
618 0x0 0x0 0x0 0x3 &mpic 0x2 0x1
619 0x0 0x0 0x0 0x4 &mpic 0x3 0x1
620 >;
621 pcie@0 {
622 reg = <0x0 0x0 0x0 0x0 0x0>;
623 #size-cells = <2>;
624 #address-cells = <3>;
625 device_type = "pci";
626 ranges = <0x2000000 0x0 0x80000000
627 0x2000000 0x0 0x80000000
628 0x0 0x40000000
629
630 0x1000000 0x0 0x0
631 0x1000000 0x0 0x0
632 0x0 0x100000>;
633 };
634 };
635};
1/*
2 * Copyright (C) 2008 Extreme Engineering Solutions, Inc.
3 * Based on MPC8572DS device tree from Freescale Semiconductor, Inc.
4 *
5 * XPedite5370 3U VPX single-board computer based on MPC8572E
6 *
7 * This is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12/dts-v1/;
13/ {
14 model = "xes,xpedite5370";
15 compatible = "xes,xpedite5370", "xes,MPC8572";
16 #address-cells = <2>;
17 #size-cells = <2>;
18
19 aliases {
20 ethernet0 = &enet0;
21 ethernet1 = &enet1;
22 serial0 = &serial0;
23 serial1 = &serial1;
24 pci1 = &pci1;
25 pci2 = &pci2;
26 };
27
28 cpus {
29 #address-cells = <1>;
30 #size-cells = <0>;
31
32 PowerPC,8572@0 {
33 device_type = "cpu";
34 reg = <0x0>;
35 d-cache-line-size = <32>; // 32 bytes
36 i-cache-line-size = <32>; // 32 bytes
37 d-cache-size = <0x8000>; // L1, 32K
38 i-cache-size = <0x8000>; // L1, 32K
39 timebase-frequency = <0>;
40 bus-frequency = <0>;
41 clock-frequency = <0>;
42 next-level-cache = <&L2>;
43 };
44
45 PowerPC,8572@1 {
46 device_type = "cpu";
47 reg = <0x1>;
48 d-cache-line-size = <32>; // 32 bytes
49 i-cache-line-size = <32>; // 32 bytes
50 d-cache-size = <0x8000>; // L1, 32K
51 i-cache-size = <0x8000>; // L1, 32K
52 timebase-frequency = <0>;
53 bus-frequency = <0>;
54 clock-frequency = <0>;
55 next-level-cache = <&L2>;
56 };
57 };
58
59 memory {
60 device_type = "memory";
61 reg = <0x0 0x0 0x0 0x0>; // Filled in by U-Boot
62 };
63
64 localbus@ef005000 {
65 #address-cells = <2>;
66 #size-cells = <1>;
67 compatible = "fsl,mpc8572-elbc", "fsl,elbc", "simple-bus";
68 reg = <0 0xef005000 0 0x1000>;
69 interrupts = <19 2>;
70 interrupt-parent = <&mpic>;
71 /* Local bus region mappings */
72 ranges = <0 0 0 0xf8000000 0x8000000 /* CS0: Boot flash */
73 1 0 0 0xf0000000 0x8000000 /* CS1: Alternate flash */
74 2 0 0 0xef800000 0x40000 /* CS2: NAND CE1 */
75 3 0 0 0xef840000 0x40000>; /* CS3: NAND CE2 */
76
77 nor-boot@0,0 {
78 compatible = "amd,s29gl01gp", "cfi-flash";
79 bank-width = <2>;
80 reg = <0 0 0x8000000>; /* 128MB */
81 #address-cells = <1>;
82 #size-cells = <1>;
83 partition@0 {
84 label = "Primary user space";
85 reg = <0x00000000 0x6f00000>; /* 111 MB */
86 };
87 partition@6f00000 {
88 label = "Primary kernel";
89 reg = <0x6f00000 0x1000000>; /* 16 MB */
90 };
91 partition@7f00000 {
92 label = "Primary DTB";
93 reg = <0x7f00000 0x40000>; /* 256 KB */
94 };
95 partition@7f40000 {
96 label = "Primary U-Boot environment";
97 reg = <0x7f40000 0x40000>; /* 256 KB */
98 };
99 partition@7f80000 {
100 label = "Primary U-Boot";
101 reg = <0x7f80000 0x80000>; /* 512 KB */
102 read-only;
103 };
104 };
105
106 nor-alternate@1,0 {
107 compatible = "amd,s29gl01gp", "cfi-flash";
108 bank-width = <2>;
109 //reg = <0xf0000000 0x08000000>; /* 128MB */
110 reg = <1 0 0x8000000>; /* 128MB */
111 #address-cells = <1>;
112 #size-cells = <1>;
113 partition@0 {
114 label = "Secondary user space";
115 reg = <0x00000000 0x6f00000>; /* 111 MB */
116 };
117 partition@6f00000 {
118 label = "Secondary kernel";
119 reg = <0x6f00000 0x1000000>; /* 16 MB */
120 };
121 partition@7f00000 {
122 label = "Secondary DTB";
123 reg = <0x7f00000 0x40000>; /* 256 KB */
124 };
125 partition@7f40000 {
126 label = "Secondary U-Boot environment";
127 reg = <0x7f40000 0x40000>; /* 256 KB */
128 };
129 partition@7f80000 {
130 label = "Secondary U-Boot";
131 reg = <0x7f80000 0x80000>; /* 512 KB */
132 read-only;
133 };
134 };
135
136 nand@2,0 {
137 #address-cells = <1>;
138 #size-cells = <1>;
139 /*
140 * Actual part could be ST Micro NAND08GW3B2A (1 GB),
141 * Micron MT29F8G08DAA (2x 512 MB), or Micron
142 * MT29F16G08FAA (2x 1 GB), depending on the build
143 * configuration
144 */
145 compatible = "fsl,mpc8572-fcm-nand",
146 "fsl,elbc-fcm-nand";
147 reg = <2 0 0x40000>;
148 /* U-Boot should fix this up if chip size > 1 GB */
149 partition@0 {
150 label = "NAND Filesystem";
151 reg = <0 0x40000000>;
152 };
153 };
154
155 };
156
157 soc8572@ef000000 {
158 #address-cells = <1>;
159 #size-cells = <1>;
160 device_type = "soc";
161 compatible = "fsl,mpc8572-immr", "simple-bus";
162 ranges = <0x0 0 0xef000000 0x100000>;
163 bus-frequency = <0>; // Filled out by uboot.
164
165 ecm-law@0 {
166 compatible = "fsl,ecm-law";
167 reg = <0x0 0x1000>;
168 fsl,num-laws = <12>;
169 };
170
171 ecm@1000 {
172 compatible = "fsl,mpc8572-ecm", "fsl,ecm";
173 reg = <0x1000 0x1000>;
174 interrupts = <17 2>;
175 interrupt-parent = <&mpic>;
176 };
177
178 memory-controller@2000 {
179 compatible = "fsl,mpc8572-memory-controller";
180 reg = <0x2000 0x1000>;
181 interrupt-parent = <&mpic>;
182 interrupts = <18 2>;
183 };
184
185 memory-controller@6000 {
186 compatible = "fsl,mpc8572-memory-controller";
187 reg = <0x6000 0x1000>;
188 interrupt-parent = <&mpic>;
189 interrupts = <18 2>;
190 };
191
192 L2: l2-cache-controller@20000 {
193 compatible = "fsl,mpc8572-l2-cache-controller";
194 reg = <0x20000 0x1000>;
195 cache-line-size = <32>; // 32 bytes
196 cache-size = <0x100000>; // L2, 1M
197 interrupt-parent = <&mpic>;
198 interrupts = <16 2>;
199 };
200
201 i2c@3000 {
202 #address-cells = <1>;
203 #size-cells = <0>;
204 cell-index = <0>;
205 compatible = "fsl-i2c";
206 reg = <0x3000 0x100>;
207 interrupts = <43 2>;
208 interrupt-parent = <&mpic>;
209 dfsrr;
210
211 temp-sensor@48 {
212 compatible = "dallas,ds1631", "dallas,ds1621";
213 reg = <0x48>;
214 };
215
216 temp-sensor@4c {
217 compatible = "adi,adt7461";
218 reg = <0x4c>;
219 };
220
221 cpu-supervisor@51 {
222 compatible = "dallas,ds4510";
223 reg = <0x51>;
224 };
225
226 eeprom@54 {
227 compatible = "atmel,at24c128b";
228 reg = <0x54>;
229 };
230
231 rtc@68 {
232 compatible = "stm,m41t00",
233 "dallas,ds1338";
234 reg = <0x68>;
235 };
236
237 pcie-switch@70 {
238 compatible = "plx,pex8518";
239 reg = <0x70>;
240 };
241
242 gpio1: gpio@18 {
243 compatible = "nxp,pca9557";
244 reg = <0x18>;
245 #gpio-cells = <2>;
246 gpio-controller;
247 polarity = <0x00>;
248 };
249
250 gpio2: gpio@1c {
251 compatible = "nxp,pca9557";
252 reg = <0x1c>;
253 #gpio-cells = <2>;
254 gpio-controller;
255 polarity = <0x00>;
256 };
257
258 gpio3: gpio@1e {
259 compatible = "nxp,pca9557";
260 reg = <0x1e>;
261 #gpio-cells = <2>;
262 gpio-controller;
263 polarity = <0x00>;
264 };
265
266 gpio4: gpio@1f {
267 compatible = "nxp,pca9557";
268 reg = <0x1f>;
269 #gpio-cells = <2>;
270 gpio-controller;
271 polarity = <0x00>;
272 };
273 };
274
275 i2c@3100 {
276 #address-cells = <1>;
277 #size-cells = <0>;
278 cell-index = <1>;
279 compatible = "fsl-i2c";
280 reg = <0x3100 0x100>;
281 interrupts = <43 2>;
282 interrupt-parent = <&mpic>;
283 dfsrr;
284 };
285
286 dma@c300 {
287 #address-cells = <1>;
288 #size-cells = <1>;
289 compatible = "fsl,mpc8572-dma", "fsl,eloplus-dma";
290 reg = <0xc300 0x4>;
291 ranges = <0x0 0xc100 0x200>;
292 cell-index = <1>;
293 dma-channel@0 {
294 compatible = "fsl,mpc8572-dma-channel",
295 "fsl,eloplus-dma-channel";
296 reg = <0x0 0x80>;
297 cell-index = <0>;
298 interrupt-parent = <&mpic>;
299 interrupts = <76 2>;
300 };
301 dma-channel@80 {
302 compatible = "fsl,mpc8572-dma-channel",
303 "fsl,eloplus-dma-channel";
304 reg = <0x80 0x80>;
305 cell-index = <1>;
306 interrupt-parent = <&mpic>;
307 interrupts = <77 2>;
308 };
309 dma-channel@100 {
310 compatible = "fsl,mpc8572-dma-channel",
311 "fsl,eloplus-dma-channel";
312 reg = <0x100 0x80>;
313 cell-index = <2>;
314 interrupt-parent = <&mpic>;
315 interrupts = <78 2>;
316 };
317 dma-channel@180 {
318 compatible = "fsl,mpc8572-dma-channel",
319 "fsl,eloplus-dma-channel";
320 reg = <0x180 0x80>;
321 cell-index = <3>;
322 interrupt-parent = <&mpic>;
323 interrupts = <79 2>;
324 };
325 };
326
327 dma@21300 {
328 #address-cells = <1>;
329 #size-cells = <1>;
330 compatible = "fsl,mpc8572-dma", "fsl,eloplus-dma";
331 reg = <0x21300 0x4>;
332 ranges = <0x0 0x21100 0x200>;
333 cell-index = <0>;
334 dma-channel@0 {
335 compatible = "fsl,mpc8572-dma-channel",
336 "fsl,eloplus-dma-channel";
337 reg = <0x0 0x80>;
338 cell-index = <0>;
339 interrupt-parent = <&mpic>;
340 interrupts = <20 2>;
341 };
342 dma-channel@80 {
343 compatible = "fsl,mpc8572-dma-channel",
344 "fsl,eloplus-dma-channel";
345 reg = <0x80 0x80>;
346 cell-index = <1>;
347 interrupt-parent = <&mpic>;
348 interrupts = <21 2>;
349 };
350 dma-channel@100 {
351 compatible = "fsl,mpc8572-dma-channel",
352 "fsl,eloplus-dma-channel";
353 reg = <0x100 0x80>;
354 cell-index = <2>;
355 interrupt-parent = <&mpic>;
356 interrupts = <22 2>;
357 };
358 dma-channel@180 {
359 compatible = "fsl,mpc8572-dma-channel",
360 "fsl,eloplus-dma-channel";
361 reg = <0x180 0x80>;
362 cell-index = <3>;
363 interrupt-parent = <&mpic>;
364 interrupts = <23 2>;
365 };
366 };
367
368 /* eTSEC 1 */
369 enet0: ethernet@24000 {
370 #address-cells = <1>;
371 #size-cells = <1>;
372 cell-index = <0>;
373 device_type = "network";
374 model = "eTSEC";
375 compatible = "gianfar";
376 reg = <0x24000 0x1000>;
377 ranges = <0x0 0x24000 0x1000>;
378 local-mac-address = [ 00 00 00 00 00 00 ];
379 interrupts = <29 2 30 2 34 2>;
380 interrupt-parent = <&mpic>;
381 tbi-handle = <&tbi0>;
382 phy-handle = <&phy0>;
383 phy-connection-type = "sgmii";
384
385 mdio@520 {
386 #address-cells = <1>;
387 #size-cells = <0>;
388 compatible = "fsl,gianfar-mdio";
389 reg = <0x520 0x20>;
390
391 phy0: ethernet-phy@1 {
392 interrupt-parent = <&mpic>;
393 interrupts = <8 1>;
394 reg = <0x1>;
395 };
396 phy1: ethernet-phy@2 {
397 interrupt-parent = <&mpic>;
398 interrupts = <8 1>;
399 reg = <0x2>;
400 };
401 tbi0: tbi-phy@11 {
402 reg = <0x11>;
403 device_type = "tbi-phy";
404 };
405 };
406 };
407
408 /* eTSEC 2 */
409 enet1: ethernet@25000 {
410 #address-cells = <1>;
411 #size-cells = <1>;
412 cell-index = <1>;
413 device_type = "network";
414 model = "eTSEC";
415 compatible = "gianfar";
416 reg = <0x25000 0x1000>;
417 ranges = <0x0 0x25000 0x1000>;
418 local-mac-address = [ 00 00 00 00 00 00 ];
419 interrupts = <35 2 36 2 40 2>;
420 interrupt-parent = <&mpic>;
421 tbi-handle = <&tbi1>;
422 phy-handle = <&phy1>;
423 phy-connection-type = "sgmii";
424
425 mdio@520 {
426 #address-cells = <1>;
427 #size-cells = <0>;
428 compatible = "fsl,gianfar-tbi";
429 reg = <0x520 0x20>;
430
431 tbi1: tbi-phy@11 {
432 reg = <0x11>;
433 device_type = "tbi-phy";
434 };
435 };
436 };
437
438 /* UART0 */
439 serial0: serial@4500 {
440 cell-index = <0>;
441 device_type = "serial";
442 compatible = "ns16550";
443 reg = <0x4500 0x100>;
444 clock-frequency = <0>;
445 interrupts = <42 2>;
446 interrupt-parent = <&mpic>;
447 };
448
449 /* UART1 */
450 serial1: serial@4600 {
451 cell-index = <1>;
452 device_type = "serial";
453 compatible = "ns16550";
454 reg = <0x4600 0x100>;
455 clock-frequency = <0>;
456 interrupts = <42 2>;
457 interrupt-parent = <&mpic>;
458 };
459
460 global-utilities@e0000 { //global utilities block
461 compatible = "fsl,mpc8572-guts";
462 reg = <0xe0000 0x1000>;
463 fsl,has-rstcr;
464 };
465
466 msi@41600 {
467 compatible = "fsl,mpc8572-msi", "fsl,mpic-msi";
468 reg = <0x41600 0x80>;
469 msi-available-ranges = <0 0x100>;
470 interrupts = <
471 0xe0 0
472 0xe1 0
473 0xe2 0
474 0xe3 0
475 0xe4 0
476 0xe5 0
477 0xe6 0
478 0xe7 0>;
479 interrupt-parent = <&mpic>;
480 };
481
482 crypto@30000 {
483 compatible = "fsl,sec3.0", "fsl,sec2.4", "fsl,sec2.2",
484 "fsl,sec2.1", "fsl,sec2.0";
485 reg = <0x30000 0x10000>;
486 interrupts = <45 2 58 2>;
487 interrupt-parent = <&mpic>;
488 fsl,num-channels = <4>;
489 fsl,channel-fifo-len = <24>;
490 fsl,exec-units-mask = <0x9fe>;
491 fsl,descriptor-types-mask = <0x3ab0ebf>;
492 };
493
494 mpic: pic@40000 {
495 interrupt-controller;
496 #address-cells = <0>;
497 #interrupt-cells = <2>;
498 reg = <0x40000 0x40000>;
499 compatible = "chrp,open-pic";
500 device_type = "open-pic";
501 };
502
503 gpio0: gpio@f000 {
504 compatible = "fsl,mpc8572-gpio";
505 reg = <0xf000 0x1000>;
506 interrupts = <47 2>;
507 interrupt-parent = <&mpic>;
508 #gpio-cells = <2>;
509 gpio-controller;
510 };
511
512 gpio-leds {
513 compatible = "gpio-leds";
514
515 heartbeat {
516 label = "Heartbeat";
517 gpios = <&gpio0 4 1>;
518 linux,default-trigger = "heartbeat";
519 };
520
521 yellow {
522 label = "Yellow";
523 gpios = <&gpio0 5 1>;
524 };
525
526 red {
527 label = "Red";
528 gpios = <&gpio0 6 1>;
529 };
530
531 green {
532 label = "Green";
533 gpios = <&gpio0 7 1>;
534 };
535 };
536
537 /* PME (pattern-matcher) */
538 pme@10000 {
539 compatible = "fsl,mpc8572-pme", "pme8572";
540 reg = <0x10000 0x5000>;
541 interrupts = <57 2 64 2 65 2 66 2 67 2>;
542 interrupt-parent = <&mpic>;
543 };
544
545 tlu@2f000 {
546 compatible = "fsl,mpc8572-tlu", "fsl_tlu";
547 reg = <0x2f000 0x1000>;
548 interupts = <61 2 >;
549 interrupt-parent = <&mpic>;
550 };
551
552 tlu@15000 {
553 compatible = "fsl,mpc8572-tlu", "fsl_tlu";
554 reg = <0x15000 0x1000>;
555 interupts = <75 2>;
556 interrupt-parent = <&mpic>;
557 };
558 };
559
560 /*
561 * PCI Express controller 3 @ ef008000 is not used.
562 * This would have been pci0 on other mpc85xx platforms.
563 */
564
565 /* PCI Express controller 2, wired to VPX P1,P2 backplane */
566 pci1: pcie@ef009000 {
567 compatible = "fsl,mpc8548-pcie";
568 device_type = "pci";
569 #interrupt-cells = <1>;
570 #size-cells = <2>;
571 #address-cells = <3>;
572 reg = <0 0xef009000 0 0x1000>;
573 bus-range = <0 255>;
574 ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x10000000
575 0x1000000 0x0 0x00000000 0 0xe8800000 0x0 0x00010000>;
576 clock-frequency = <33333333>;
577 interrupt-parent = <&mpic>;
578 interrupts = <25 2>;
579 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
580 interrupt-map = <
581 /* IDSEL 0x0 */
582 0x0 0x0 0x0 0x1 &mpic 0x4 0x1
583 0x0 0x0 0x0 0x2 &mpic 0x5 0x1
584 0x0 0x0 0x0 0x3 &mpic 0x6 0x1
585 0x0 0x0 0x0 0x4 &mpic 0x7 0x1
586 >;
587 pcie@0 {
588 reg = <0x00000000 0x00000000 0x00000000 0x00000000 0x00000000>;
589 #size-cells = <2>;
590 #address-cells = <3>;
591 device_type = "pci";
592 ranges = <0x2000000 0x0 0xc0000000
593 0x2000000 0x0 0xc0000000
594 0x0 0x10000000
595
596 0x1000000 0x0 0x0
597 0x1000000 0x0 0x0
598 0x0 0x100000>;
599 };
600 };
601
602 /* PCI Express controller 1, wired to PEX8518 PCIe switch */
603 pci2: pcie@ef00a000 {
604 compatible = "fsl,mpc8548-pcie";
605 device_type = "pci";
606 #interrupt-cells = <1>;
607 #size-cells = <2>;
608 #address-cells = <3>;
609 reg = <0 0xef00a000 0 0x1000>;
610 bus-range = <0 255>;
611 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x40000000
612 0x1000000 0x0 0x00000000 0 0xe8000000 0x0 0x10000>;
613 clock-frequency = <33333333>;
614 interrupt-parent = <&mpic>;
615 interrupts = <26 2>;
616 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
617 interrupt-map = <
618 /* IDSEL 0x0 */
619 0x0 0x0 0x0 0x1 &mpic 0x0 0x1
620 0x0 0x0 0x0 0x2 &mpic 0x1 0x1
621 0x0 0x0 0x0 0x3 &mpic 0x2 0x1
622 0x0 0x0 0x0 0x4 &mpic 0x3 0x1
623 >;
624 pcie@0 {
625 reg = <0x0 0x0 0x0 0x0 0x0>;
626 #size-cells = <2>;
627 #address-cells = <3>;
628 device_type = "pci";
629 ranges = <0x2000000 0x0 0x80000000
630 0x2000000 0x0 0x80000000
631 0x0 0x40000000
632
633 0x1000000 0x0 0x0
634 0x1000000 0x0 0x0
635 0x0 0x100000>;
636 };
637 };
638};