aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/powerpc
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2008-06-25 13:07:39 -0400
committerKumar Gala <galak@kernel.crashing.org>2008-07-16 18:57:29 -0400
commit7e72063c9aaeb618815589cd4d57f26186e6fcad (patch)
treec716d86c1eb02c62de8bd6e97bdd952be665494d /Documentation/powerpc
parent2dff41775decb9cb1f3a6ac577c78dc3eea60431 (diff)
powerpc: Update example SOC node in booting-without-of.txt.
Convert to DTS version 1, eliminate some obsolete practices, and correct some errors (compared to the actual 8540 device tree). Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'Documentation/powerpc')
-rw-r--r--Documentation/powerpc/booting-without-of.txt87
1 files changed, 33 insertions, 54 deletions
diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt
index 07ae2edff7c4..ddafbf2fb1f3 100644
--- a/Documentation/powerpc/booting-without-of.txt
+++ b/Documentation/powerpc/booting-without-of.txt
@@ -2507,18 +2507,14 @@ sleep-map should wait until its necessity is demonstrated).
2507Appendix A - Sample SOC node for MPC8540 2507Appendix A - Sample SOC node for MPC8540
2508======================================== 2508========================================
2509 2509
2510Note that the #address-cells and #size-cells for the SoC node 2510 soc@e0000000 {
2511in this example have been explicitly listed; these are likely
2512not necessary as they are usually the same as the root node.
2513
2514 soc8540@e0000000 {
2515 #address-cells = <1>; 2511 #address-cells = <1>;
2516 #size-cells = <1>; 2512 #size-cells = <1>;
2517 #interrupt-cells = <2>; 2513 compatible = "fsl,mpc8540-ccsr", "simple-bus";
2518 device_type = "soc"; 2514 device_type = "soc";
2519 ranges = <00000000 e0000000 00100000> 2515 ranges = <0x00000000 0xe0000000 0x00100000>
2520 reg = <e0000000 00003000>;
2521 bus-frequency = <0>; 2516 bus-frequency = <0>;
2517 interrupt-parent = <&pic>;
2522 2518
2523 ethernet@24000 { 2519 ethernet@24000 {
2524 #address-cells = <1>; 2520 #address-cells = <1>;
@@ -2526,38 +2522,31 @@ not necessary as they are usually the same as the root node.
2526 device_type = "network"; 2522 device_type = "network";
2527 model = "TSEC"; 2523 model = "TSEC";
2528 compatible = "gianfar", "simple-bus"; 2524 compatible = "gianfar", "simple-bus";
2529 reg = <24000 1000>; 2525 reg = <0x24000 0x1000>;
2530 mac-address = [ 00 E0 0C 00 73 00 ]; 2526 local-mac-address = [ 00 E0 0C 00 73 00 ];
2531 interrupts = <d 3 e 3 12 3>; 2527 interrupts = <29 2 30 2 34 2>;
2532 interrupt-parent = <40000>; 2528 phy-handle = <&phy0>;
2533 phy-handle = <2452000>;
2534 sleep = <&pmc 00000080>; 2529 sleep = <&pmc 00000080>;
2535 ranges; 2530 ranges;
2536 2531
2537 mdio@24520 { 2532 mdio@24520 {
2538 reg = <24520 20>; 2533 reg = <0x24520 0x20>;
2539 compatible = "fsl,gianfar-mdio"; 2534 compatible = "fsl,gianfar-mdio";
2540 2535
2541 ethernet-phy@0 { 2536 phy0: ethernet-phy@0 {
2542 linux,phandle = <2452000> 2537 interrupts = <5 1>;
2543 interrupt-parent = <40000>;
2544 interrupts = <35 1>;
2545 reg = <0>; 2538 reg = <0>;
2546 device_type = "ethernet-phy"; 2539 device_type = "ethernet-phy";
2547 }; 2540 };
2548 2541
2549 ethernet-phy@1 { 2542 phy1: ethernet-phy@1 {
2550 linux,phandle = <2452001> 2543 interrupts = <5 1>;
2551 interrupt-parent = <40000>;
2552 interrupts = <35 1>;
2553 reg = <1>; 2544 reg = <1>;
2554 device_type = "ethernet-phy"; 2545 device_type = "ethernet-phy";
2555 }; 2546 };
2556 2547
2557 ethernet-phy@3 { 2548 phy3: ethernet-phy@3 {
2558 linux,phandle = <2452002> 2549 interrupts = <7 1>;
2559 interrupt-parent = <40000>;
2560 interrupts = <35 1>;
2561 reg = <3>; 2550 reg = <3>;
2562 device_type = "ethernet-phy"; 2551 device_type = "ethernet-phy";
2563 }; 2552 };
@@ -2565,30 +2554,24 @@ not necessary as they are usually the same as the root node.
2565 }; 2554 };
2566 2555
2567 ethernet@25000 { 2556 ethernet@25000 {
2568 #address-cells = <1>;
2569 #size-cells = <0>;
2570 device_type = "network"; 2557 device_type = "network";
2571 model = "TSEC"; 2558 model = "TSEC";
2572 compatible = "gianfar"; 2559 compatible = "gianfar";
2573 reg = <25000 1000>; 2560 reg = <0x25000 0x1000>;
2574 mac-address = [ 00 E0 0C 00 73 01 ]; 2561 local-mac-address = [ 00 E0 0C 00 73 01 ];
2575 interrupts = <13 3 14 3 18 3>; 2562 interrupts = <13 2 14 2 18 2>;
2576 interrupt-parent = <40000>; 2563 phy-handle = <&phy1>;
2577 phy-handle = <2452001>;
2578 sleep = <&pmc 00000040>; 2564 sleep = <&pmc 00000040>;
2579 }; 2565 };
2580 2566
2581 ethernet@26000 { 2567 ethernet@26000 {
2582 #address-cells = <1>;
2583 #size-cells = <0>;
2584 device_type = "network"; 2568 device_type = "network";
2585 model = "FEC"; 2569 model = "FEC";
2586 compatible = "gianfar"; 2570 compatible = "gianfar";
2587 reg = <26000 1000>; 2571 reg = <0x26000 0x1000>;
2588 mac-address = [ 00 E0 0C 00 73 02 ]; 2572 local-mac-address = [ 00 E0 0C 00 73 02 ];
2589 interrupts = <19 3>; 2573 interrupts = <41 2>;
2590 interrupt-parent = <40000>; 2574 phy-handle = <&phy3>;
2591 phy-handle = <2452002>;
2592 sleep = <&pmc 00000020>; 2575 sleep = <&pmc 00000020>;
2593 }; 2576 };
2594 2577
@@ -2602,36 +2585,32 @@ not necessary as they are usually the same as the root node.
2602 serial@4500 { 2585 serial@4500 {
2603 device_type = "serial"; 2586 device_type = "serial";
2604 compatible = "ns16550"; 2587 compatible = "ns16550";
2605 reg = <4500 100>; 2588 reg = <0x4500 0x100>;
2606 clock-frequency = <0>; 2589 clock-frequency = <0>;
2607 interrupts = <1a 3>; 2590 interrupts = <42 2>;
2608 interrupt-parent = <40000>;
2609 }; 2591 };
2610 2592
2611 serial@4600 { 2593 serial@4600 {
2612 device_type = "serial"; 2594 device_type = "serial";
2613 compatible = "ns16550"; 2595 compatible = "ns16550";
2614 reg = <4600 100>; 2596 reg = <0x4600 0x100>;
2615 clock-frequency = <0>; 2597 clock-frequency = <0>;
2616 interrupts = <1a 3>; 2598 interrupts = <42 2>;
2617 interrupt-parent = <40000>;
2618 }; 2599 };
2619 }; 2600 };
2620 2601
2621 pic@40000 { 2602 pic: pic@40000 {
2622 linux,phandle = <40000>;
2623 interrupt-controller; 2603 interrupt-controller;
2624 #address-cells = <0>; 2604 #address-cells = <0>;
2625 reg = <40000 40000>; 2605 #interrupt-cells = <2>;
2606 reg = <0x40000 0x40000>;
2626 compatible = "chrp,open-pic"; 2607 compatible = "chrp,open-pic";
2627 device_type = "open-pic"; 2608 device_type = "open-pic";
2628 }; 2609 };
2629 2610
2630 i2c@3000 { 2611 i2c@3000 {
2631 interrupt-parent = <40000>; 2612 interrupts = <43 2>;
2632 interrupts = <1b 3>; 2613 reg = <0x3000 0x100>;
2633 reg = <3000 18>;
2634 device_type = "i2c";
2635 compatible = "fsl-i2c"; 2614 compatible = "fsl-i2c";
2636 dfsrr; 2615 dfsrr;
2637 sleep = <&pmc 00000004>; 2616 sleep = <&pmc 00000004>;
@@ -2639,6 +2618,6 @@ not necessary as they are usually the same as the root node.
2639 2618
2640 pmc: power@e0070 { 2619 pmc: power@e0070 {
2641 compatible = "fsl,mpc8540-pmc", "fsl,mpc8548-pmc"; 2620 compatible = "fsl,mpc8540-pmc", "fsl,mpc8548-pmc";
2642 reg = <e0070 20>; 2621 reg = <0xe0070 0x20>;
2643 }; 2622 };
2644 }; 2623 };