Commit 6d9065d8 authored by Kumar Gala's avatar Kumar Gala

[POWERPC] 86xx: Cleaned up platform dts files

* Removed explicit linux,phandle usage. Use references and labels now
* Removed interrupts property from openpic node
* Removed interrupt-parent property from openpic node that pointed to itself
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
Acked-by: default avatarJon Loeliger <jdl@freescale.com>
parent ff7298ea
...@@ -66,7 +66,7 @@ i2c@3000 { ...@@ -66,7 +66,7 @@ i2c@3000 {
compatible = "fsl-i2c"; compatible = "fsl-i2c";
reg = <3000 100>; reg = <3000 100>;
interrupts = <2b 2>; interrupts = <2b 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
dfsrr; dfsrr;
}; };
...@@ -75,7 +75,7 @@ i2c@3100 { ...@@ -75,7 +75,7 @@ i2c@3100 {
compatible = "fsl-i2c"; compatible = "fsl-i2c";
reg = <3100 100>; reg = <3100 100>;
interrupts = <2b 2>; interrupts = <2b 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
dfsrr; dfsrr;
}; };
...@@ -85,31 +85,26 @@ mdio@24520 { ...@@ -85,31 +85,26 @@ mdio@24520 {
device_type = "mdio"; device_type = "mdio";
compatible = "gianfar"; compatible = "gianfar";
reg = <24520 20>; reg = <24520 20>;
linux,phandle = <24520>; phy0: ethernet-phy@0 {
ethernet-phy@0 { interrupt-parent = <&mpic>;
linux,phandle = <2452000>;
interrupt-parent = <40000>;
interrupts = <4a 1>; interrupts = <4a 1>;
reg = <0>; reg = <0>;
device_type = "ethernet-phy"; device_type = "ethernet-phy";
}; };
ethernet-phy@1 { phy1: ethernet-phy@1 {
linux,phandle = <2452001>; interrupt-parent = <&mpic>;
interrupt-parent = <40000>;
interrupts = <4a 1>; interrupts = <4a 1>;
reg = <1>; reg = <1>;
device_type = "ethernet-phy"; device_type = "ethernet-phy";
}; };
ethernet-phy@2 { phy2: ethernet-phy@2 {
linux,phandle = <2452002>; interrupt-parent = <&mpic>;
interrupt-parent = <40000>;
interrupts = <4a 1>; interrupts = <4a 1>;
reg = <2>; reg = <2>;
device_type = "ethernet-phy"; device_type = "ethernet-phy";
}; };
ethernet-phy@3 { phy3: ethernet-phy@3 {
linux,phandle = <2452003>; interrupt-parent = <&mpic>;
interrupt-parent = <40000>;
interrupts = <4a 1>; interrupts = <4a 1>;
reg = <3>; reg = <3>;
device_type = "ethernet-phy"; device_type = "ethernet-phy";
...@@ -125,8 +120,8 @@ ethernet@24000 { ...@@ -125,8 +120,8 @@ ethernet@24000 {
reg = <24000 1000>; reg = <24000 1000>;
mac-address = [ 00 E0 0C 00 73 00 ]; mac-address = [ 00 E0 0C 00 73 00 ];
interrupts = <1d 2 1e 2 22 2>; interrupts = <1d 2 1e 2 22 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
phy-handle = <2452000>; phy-handle = <&phy0>;
}; };
ethernet@25000 { ethernet@25000 {
...@@ -138,8 +133,8 @@ ethernet@25000 { ...@@ -138,8 +133,8 @@ ethernet@25000 {
reg = <25000 1000>; reg = <25000 1000>;
mac-address = [ 00 E0 0C 00 73 01 ]; mac-address = [ 00 E0 0C 00 73 01 ];
interrupts = <23 2 24 2 28 2>; interrupts = <23 2 24 2 28 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
phy-handle = <2452001>; phy-handle = <&phy1>;
}; };
ethernet@26000 { ethernet@26000 {
...@@ -151,8 +146,8 @@ ethernet@26000 { ...@@ -151,8 +146,8 @@ ethernet@26000 {
reg = <26000 1000>; reg = <26000 1000>;
mac-address = [ 00 E0 0C 00 02 FD ]; mac-address = [ 00 E0 0C 00 02 FD ];
interrupts = <1F 2 20 2 21 2>; interrupts = <1F 2 20 2 21 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
phy-handle = <2452002>; phy-handle = <&phy2>;
}; };
ethernet@27000 { ethernet@27000 {
...@@ -164,8 +159,8 @@ ethernet@27000 { ...@@ -164,8 +159,8 @@ ethernet@27000 {
reg = <27000 1000>; reg = <27000 1000>;
mac-address = [ 00 E0 0C 00 03 FD ]; mac-address = [ 00 E0 0C 00 03 FD ];
interrupts = <25 2 26 2 27 2>; interrupts = <25 2 26 2 27 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
phy-handle = <2452003>; phy-handle = <&phy3>;
}; };
serial@4500 { serial@4500 {
device_type = "serial"; device_type = "serial";
...@@ -173,7 +168,7 @@ serial@4500 { ...@@ -173,7 +168,7 @@ serial@4500 {
reg = <4500 100>; reg = <4500 100>;
clock-frequency = <0>; clock-frequency = <0>;
interrupts = <2a 2>; interrupts = <2a 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
}; };
serial@4600 { serial@4600 {
...@@ -182,7 +177,7 @@ serial@4600 { ...@@ -182,7 +177,7 @@ serial@4600 {
reg = <4600 100>; reg = <4600 100>;
clock-frequency = <0>; clock-frequency = <0>;
interrupts = <1c 2>; interrupts = <1c 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
}; };
pci@8000 { pci@8000 {
...@@ -196,103 +191,102 @@ pci@8000 { ...@@ -196,103 +191,102 @@ pci@8000 {
ranges = <02000000 0 80000000 80000000 0 20000000 ranges = <02000000 0 80000000 80000000 0 20000000
01000000 0 00000000 e2000000 0 00100000>; 01000000 0 00000000 e2000000 0 00100000>;
clock-frequency = <1fca055>; clock-frequency = <1fca055>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
interrupts = <18 2>; interrupts = <18 2>;
interrupt-map-mask = <f800 0 0 7>; interrupt-map-mask = <f800 0 0 7>;
interrupt-map = < interrupt-map = <
/* IDSEL 0x11 */ /* IDSEL 0x11 */
8800 0 0 1 4d0 3 2 8800 0 0 1 &i8259 3 2
8800 0 0 2 4d0 4 2 8800 0 0 2 &i8259 4 2
8800 0 0 3 4d0 5 2 8800 0 0 3 &i8259 5 2
8800 0 0 4 4d0 6 2 8800 0 0 4 &i8259 6 2
/* IDSEL 0x12 */ /* IDSEL 0x12 */
9000 0 0 1 4d0 4 2 9000 0 0 1 &i8259 4 2
9000 0 0 2 4d0 5 2 9000 0 0 2 &i8259 5 2
9000 0 0 3 4d0 6 2 9000 0 0 3 &i8259 6 2
9000 0 0 4 4d0 3 2 9000 0 0 4 &i8259 3 2
/* IDSEL 0x13 */ /* IDSEL 0x13 */
9800 0 0 1 4d0 0 0 9800 0 0 1 &i8259 0 0
9800 0 0 2 4d0 0 0 9800 0 0 2 &i8259 0 0
9800 0 0 3 4d0 0 0 9800 0 0 3 &i8259 0 0
9800 0 0 4 4d0 0 0 9800 0 0 4 &i8259 0 0
/* IDSEL 0x14 */ /* IDSEL 0x14 */
a000 0 0 1 4d0 0 0 a000 0 0 1 &i8259 0 0
a000 0 0 2 4d0 0 0 a000 0 0 2 &i8259 0 0
a000 0 0 3 4d0 0 0 a000 0 0 3 &i8259 0 0
a000 0 0 4 4d0 0 0 a000 0 0 4 &i8259 0 0
/* IDSEL 0x15 */ /* IDSEL 0x15 */
a800 0 0 1 4d0 0 0 a800 0 0 1 &i8259 0 0
a800 0 0 2 4d0 0 0 a800 0 0 2 &i8259 0 0
a800 0 0 3 4d0 0 0 a800 0 0 3 &i8259 0 0
a800 0 0 4 4d0 0 0 a800 0 0 4 &i8259 0 0
/* IDSEL 0x16 */ /* IDSEL 0x16 */
b000 0 0 1 4d0 0 0 b000 0 0 1 &i8259 0 0
b000 0 0 2 4d0 0 0 b000 0 0 2 &i8259 0 0
b000 0 0 3 4d0 0 0 b000 0 0 3 &i8259 0 0
b000 0 0 4 4d0 0 0 b000 0 0 4 &i8259 0 0
/* IDSEL 0x17 */ /* IDSEL 0x17 */
b800 0 0 1 4d0 0 0 b800 0 0 1 &i8259 0 0
b800 0 0 2 4d0 0 0 b800 0 0 2 &i8259 0 0
b800 0 0 3 4d0 0 0 b800 0 0 3 &i8259 0 0
b800 0 0 4 4d0 0 0 b800 0 0 4 &i8259 0 0
/* IDSEL 0x18 */ /* IDSEL 0x18 */
c000 0 0 1 4d0 0 0 c000 0 0 1 &i8259 0 0
c000 0 0 2 4d0 0 0 c000 0 0 2 &i8259 0 0
c000 0 0 3 4d0 0 0 c000 0 0 3 &i8259 0 0
c000 0 0 4 4d0 0 0 c000 0 0 4 &i8259 0 0
/* IDSEL 0x19 */ /* IDSEL 0x19 */
c800 0 0 1 4d0 0 0 c800 0 0 1 &i8259 0 0
c800 0 0 2 4d0 0 0 c800 0 0 2 &i8259 0 0
c800 0 0 3 4d0 0 0 c800 0 0 3 &i8259 0 0
c800 0 0 4 4d0 0 0 c800 0 0 4 &i8259 0 0
/* IDSEL 0x1a */ /* IDSEL 0x1a */
d000 0 0 1 4d0 6 2 d000 0 0 1 &i8259 6 2
d000 0 0 2 4d0 3 2 d000 0 0 2 &i8259 3 2
d000 0 0 3 4d0 4 2 d000 0 0 3 &i8259 4 2
d000 0 0 4 4d0 5 2 d000 0 0 4 &i8259 5 2
/* IDSEL 0x1b */ /* IDSEL 0x1b */
d800 0 0 1 4d0 5 2 d800 0 0 1 &i8259 5 2
d800 0 0 2 4d0 0 0 d800 0 0 2 &i8259 0 0
d800 0 0 3 4d0 0 0 d800 0 0 3 &i8259 0 0
d800 0 0 4 4d0 0 0 d800 0 0 4 &i8259 0 0
/* IDSEL 0x1c */ /* IDSEL 0x1c */
e000 0 0 1 4d0 9 2 e000 0 0 1 &i8259 9 2
e000 0 0 2 4d0 a 2 e000 0 0 2 &i8259 a 2
e000 0 0 3 4d0 c 2 e000 0 0 3 &i8259 c 2
e000 0 0 4 4d0 7 2 e000 0 0 4 &i8259 7 2
/* IDSEL 0x1d */ /* IDSEL 0x1d */
e800 0 0 1 4d0 9 2 e800 0 0 1 &i8259 9 2
e800 0 0 2 4d0 a 2 e800 0 0 2 &i8259 a 2
e800 0 0 3 4d0 b 2 e800 0 0 3 &i8259 b 2
e800 0 0 4 4d0 0 0 e800 0 0 4 &i8259 0 0
/* IDSEL 0x1e */ /* IDSEL 0x1e */
f000 0 0 1 4d0 c 2 f000 0 0 1 &i8259 c 2
f000 0 0 2 4d0 0 0 f000 0 0 2 &i8259 0 0
f000 0 0 3 4d0 0 0 f000 0 0 3 &i8259 0 0
f000 0 0 4 4d0 0 0 f000 0 0 4 &i8259 0 0
/* IDSEL 0x1f */ /* IDSEL 0x1f */
f800 0 0 1 4d0 6 2 f800 0 0 1 &i8259 6 2
f800 0 0 2 4d0 0 0 f800 0 0 2 &i8259 0 0
f800 0 0 3 4d0 0 0 f800 0 0 3 &i8259 0 0
f800 0 0 4 4d0 0 0 f800 0 0 4 &i8259 0 0
>; >;
i8259@4d0 { i8259: i8259@4d0 {
linux,phandle = <4d0>;
clock-frequency = <0>; clock-frequency = <0>;
interrupt-controller; interrupt-controller;
device_type = "interrupt-controller"; device_type = "interrupt-controller";
...@@ -302,12 +296,11 @@ i8259@4d0 { ...@@ -302,12 +296,11 @@ i8259@4d0 {
compatible = "chrp,iic"; compatible = "chrp,iic";
big-endian; big-endian;
interrupts = <49 2>; interrupts = <49 2>;
interrupt-parent = <40000>; interrupt-parent = <&mpic>;
}; };
}; };
pic@40000 { mpic: pic@40000 {
linux,phandle = <40000>;
clock-frequency = <0>; clock-frequency = <0>;
interrupt-controller; interrupt-controller;
#address-cells = <0>; #address-cells = <0>;
...@@ -316,23 +309,7 @@ pic@40000 { ...@@ -316,23 +309,7 @@ pic@40000 {
built-in; built-in;
compatible = "chrp,open-pic"; compatible = "chrp,open-pic";
device_type = "open-pic"; device_type = "open-pic";
big-endian; big-endian;
interrupts = <
10 2 11 2 12 2 13 2
14 2 15 2 16 2 17 2
18 2 19 2 1a 2 1b 2
1c 2 1d 2 1e 2 1f 2
20 2 21 2 22 2 23 2
24 2 25 2 26 2 27 2
28 2 29 2 2a 2 2b 2
2c 2 2d 2 2e 2 2f 2
30 2 31 2 32 2 33 2
34 2 35 2 36 2 37 2
38 2 39 2 2a 2 3b 2
3c 2 3d 2 3e 2 3f 2
48 1 49 2 4a 1
>;
interrupt-parent = <40000>;
}; };
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment