提交 7e72063c 编写于 作者: S Scott Wood 提交者: Kumar Gala

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: NScott Wood <scottwood@freescale.com>
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 2dff4177
...@@ -2507,18 +2507,14 @@ sleep-map should wait until its necessity is demonstrated). ...@@ -2507,18 +2507,14 @@ sleep-map should wait until its necessity is demonstrated).
Appendix A - Sample SOC node for MPC8540 Appendix A - Sample SOC node for MPC8540
======================================== ========================================
Note that the #address-cells and #size-cells for the SoC node soc@e0000000 {
in this example have been explicitly listed; these are likely
not necessary as they are usually the same as the root node.
soc8540@e0000000 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
#interrupt-cells = <2>; compatible = "fsl,mpc8540-ccsr", "simple-bus";
device_type = "soc"; device_type = "soc";
ranges = <00000000 e0000000 00100000> ranges = <0x00000000 0xe0000000 0x00100000>
reg = <e0000000 00003000>;
bus-frequency = <0>; bus-frequency = <0>;
interrupt-parent = <&pic>;
ethernet@24000 { ethernet@24000 {
#address-cells = <1>; #address-cells = <1>;
...@@ -2526,38 +2522,31 @@ not necessary as they are usually the same as the root node. ...@@ -2526,38 +2522,31 @@ not necessary as they are usually the same as the root node.
device_type = "network"; device_type = "network";
model = "TSEC"; model = "TSEC";
compatible = "gianfar", "simple-bus"; compatible = "gianfar", "simple-bus";
reg = <24000 1000>; reg = <0x24000 0x1000>;
mac-address = [ 00 E0 0C 00 73 00 ]; local-mac-address = [ 00 E0 0C 00 73 00 ];
interrupts = <d 3 e 3 12 3>; interrupts = <29 2 30 2 34 2>;
interrupt-parent = <40000>; phy-handle = <&phy0>;
phy-handle = <2452000>;
sleep = <&pmc 00000080>; sleep = <&pmc 00000080>;
ranges; ranges;
mdio@24520 { mdio@24520 {
reg = <24520 20>; reg = <0x24520 0x20>;
compatible = "fsl,gianfar-mdio"; compatible = "fsl,gianfar-mdio";
ethernet-phy@0 { phy0: ethernet-phy@0 {
linux,phandle = <2452000> interrupts = <5 1>;
interrupt-parent = <40000>;
interrupts = <35 1>;
reg = <0>; reg = <0>;
device_type = "ethernet-phy"; device_type = "ethernet-phy";
}; };
ethernet-phy@1 { phy1: ethernet-phy@1 {
linux,phandle = <2452001> interrupts = <5 1>;
interrupt-parent = <40000>;
interrupts = <35 1>;
reg = <1>; reg = <1>;
device_type = "ethernet-phy"; device_type = "ethernet-phy";
}; };
ethernet-phy@3 { phy3: ethernet-phy@3 {
linux,phandle = <2452002> interrupts = <7 1>;
interrupt-parent = <40000>;
interrupts = <35 1>;
reg = <3>; reg = <3>;
device_type = "ethernet-phy"; device_type = "ethernet-phy";
}; };
...@@ -2565,30 +2554,24 @@ not necessary as they are usually the same as the root node. ...@@ -2565,30 +2554,24 @@ not necessary as they are usually the same as the root node.
}; };
ethernet@25000 { ethernet@25000 {
#address-cells = <1>;
#size-cells = <0>;
device_type = "network"; device_type = "network";
model = "TSEC"; model = "TSEC";
compatible = "gianfar"; compatible = "gianfar";
reg = <25000 1000>; reg = <0x25000 0x1000>;
mac-address = [ 00 E0 0C 00 73 01 ]; local-mac-address = [ 00 E0 0C 00 73 01 ];
interrupts = <13 3 14 3 18 3>; interrupts = <13 2 14 2 18 2>;
interrupt-parent = <40000>; phy-handle = <&phy1>;
phy-handle = <2452001>;
sleep = <&pmc 00000040>; sleep = <&pmc 00000040>;
}; };
ethernet@26000 { ethernet@26000 {
#address-cells = <1>;
#size-cells = <0>;
device_type = "network"; device_type = "network";
model = "FEC"; model = "FEC";
compatible = "gianfar"; compatible = "gianfar";
reg = <26000 1000>; reg = <0x26000 0x1000>;
mac-address = [ 00 E0 0C 00 73 02 ]; local-mac-address = [ 00 E0 0C 00 73 02 ];
interrupts = <19 3>; interrupts = <41 2>;
interrupt-parent = <40000>; phy-handle = <&phy3>;
phy-handle = <2452002>;
sleep = <&pmc 00000020>; sleep = <&pmc 00000020>;
}; };
...@@ -2602,36 +2585,32 @@ not necessary as they are usually the same as the root node. ...@@ -2602,36 +2585,32 @@ not necessary as they are usually the same as the root node.
serial@4500 { serial@4500 {
device_type = "serial"; device_type = "serial";
compatible = "ns16550"; compatible = "ns16550";
reg = <4500 100>; reg = <0x4500 0x100>;
clock-frequency = <0>; clock-frequency = <0>;
interrupts = <1a 3>; interrupts = <42 2>;
interrupt-parent = <40000>;
}; };
serial@4600 { serial@4600 {
device_type = "serial"; device_type = "serial";
compatible = "ns16550"; compatible = "ns16550";
reg = <4600 100>; reg = <0x4600 0x100>;
clock-frequency = <0>; clock-frequency = <0>;
interrupts = <1a 3>; interrupts = <42 2>;
interrupt-parent = <40000>;
}; };
}; };
pic@40000 { pic: pic@40000 {
linux,phandle = <40000>;
interrupt-controller; interrupt-controller;
#address-cells = <0>; #address-cells = <0>;
reg = <40000 40000>; #interrupt-cells = <2>;
reg = <0x40000 0x40000>;
compatible = "chrp,open-pic"; compatible = "chrp,open-pic";
device_type = "open-pic"; device_type = "open-pic";
}; };
i2c@3000 { i2c@3000 {
interrupt-parent = <40000>; interrupts = <43 2>;
interrupts = <1b 3>; reg = <0x3000 0x100>;
reg = <3000 18>;
device_type = "i2c";
compatible = "fsl-i2c"; compatible = "fsl-i2c";
dfsrr; dfsrr;
sleep = <&pmc 00000004>; sleep = <&pmc 00000004>;
...@@ -2639,6 +2618,6 @@ not necessary as they are usually the same as the root node. ...@@ -2639,6 +2618,6 @@ not necessary as they are usually the same as the root node.
pmc: power@e0070 { pmc: power@e0070 {
compatible = "fsl,mpc8540-pmc", "fsl,mpc8548-pmc"; compatible = "fsl,mpc8540-pmc", "fsl,mpc8548-pmc";
reg = <e0070 20>; reg = <0xe0070 0x20>;
}; };
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册