Skip to contentSkip to conversation

Update the 83xx/85xx/86xx boards device tree

PATCH In review Zang Roy-r61911 2 participants 4 messages Jul 10, 2007 – Jul 11, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/6 Update the 83xx/85xx/86xx boards device tree

From: Roy Zang <[email protected]>

Update the 83xx/85xx/86xx boards device tree.

Indentify pci, pcie host by compatible property
"fsl,mpc83xx-pci","83xx"
"fsl,mpc85xx-pci","85xx"
"fsl,mpc86xx-pci","86xx"
and
"fsl, mpc85xx-pciex","85xx"
"fsl, mpc86xx-pciex","86xx"

---
 arch/powerpc/boot/dts/mpc8313erdb.dts    |    2 +-
 arch/powerpc/boot/dts/mpc832x_mds.dts    |    2 +-
 arch/powerpc/boot/dts/mpc832x_rdb.dts    |    2 +-
 arch/powerpc/boot/dts/mpc8349emitx.dts   |    4 ++--
 arch/powerpc/boot/dts/mpc8349emitxgp.dts |    2 +-
 arch/powerpc/boot/dts/mpc834x_mds.dts    |    4 ++--
 arch/powerpc/boot/dts/mpc836x_mds.dts    |    2 +-
 arch/powerpc/boot/dts/mpc8540ads.dts     |    2 +-
 arch/powerpc/boot/dts/mpc8541cds.dts     |    4 ++--
 arch/powerpc/boot/dts/mpc8555cds.dts     |    4 ++--
 arch/powerpc/boot/dts/mpc8560ads.dts     |    2 +-
 arch/powerpc/boot/dts/mpc8641_hpcn.dts   |    4 ++--
 12 files changed, 17 insertions(+), 17 deletions(-)
arch/powerpc/boot/dts/mpc8313erdb.dts +1 -1
index a1533cc..5276843 100644
@@ -178,7 +178,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8500 100>;
-			compatible = "83xx";
+			compatible = "fsl,mpc83xx-pci","83xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc832x_mds.dts +1 -1
index 4fc0c4d..ee8897b 100644
@@ -154,7 +154,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8500 100>;
-			compatible = "83xx";
+			compatible = "fsl,mpc83xx-pci","83xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc832x_rdb.dts +1 -1
index 447c03f..d83469b 100644
@@ -123,7 +123,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8500 100>;
-			compatible = "83xx";
+			compatible = "fsl,mpc83xx-pci","83xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc8349emitx.dts +2 -2
index ae9bca5..911984b 100644
@@ -197,7 +197,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8500 100>;
-			compatible = "83xx";
+			compatible = "fsl,mpc83xx-pci","83xx";
 			device_type = "pci";
 		};
 
@@ -222,7 +222,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8600 100>;
-			compatible = "83xx";
+			compatible = "fsl,mpc83xx-pci","83xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc8349emitxgp.dts +1 -1
index f636528..8790349 100644
@@ -154,7 +154,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8600 100>;
-			compatible = "83xx";
+			compatible = "fsl,mpc83xx-pci","83xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc834x_mds.dts +2 -2
index 310e877..dc4d97d 100644
@@ -241,7 +241,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8500 100>;
-			compatible = "83xx";
+			compatible = "fsl,mpc83xx-pci","83xx";
 			device_type = "pci";
 		};
 
@@ -301,7 +301,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8600 100>;
-			compatible = "83xx";
+			compatible = "fsl,mpc83xx-pci","83xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc836x_mds.dts +1 -1
index 1e914f3..2750eb1 100644
@@ -169,7 +169,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8500 100>;
-			compatible = "83xx";
+			compatible = "fsl,mpc83xx-pci","83xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc8540ads.dts +1 -1
index 364a969..8efea9b 100644
@@ -258,7 +258,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8000 1000>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc8541cds.dts +2 -2
index 070206f..be89d46 100644
@@ -193,7 +193,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8000 1000>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
 			device_type = "pci";
 
 			i8259@19000 {
@@ -230,7 +230,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <9000 1000>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc8555cds.dts +2 -2
index 17e45d9..0bee322 100644
@@ -193,7 +193,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8000 1000>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
 			device_type = "pci";
 
 			i8259@19000 {
@@ -230,7 +230,7 @@
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <9000 1000>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
 			device_type = "pci";
 		};
 
arch/powerpc/boot/dts/mpc8560ads.dts +1 -1
index 21ccaaa..d0627bd 100644
@@ -136,7 +136,7 @@
 			#interrupt-cells = <1>;
 			#size-cells = <2>;
 			#address-cells = <3>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
 			device_type = "pci";
 			reg = <8000 1000>;
 			clock-frequency = <3f940aa>;
arch/powerpc/boot/dts/mpc8641_hpcn.dts +2 -2
index db56a02..2b36ae3 100644
@@ -208,7 +208,7 @@
 		};
 
 		pci@8000 {
-			compatible = "86xx";
+			compatible = "fsl,mpc86xx-pciex","86xx";
 			device_type = "pci";
 			#interrupt-cells = <1>;
 			#size-cells = <2>;
@@ -396,7 +396,7 @@
 		};
 
 		pci@9000 {
-			compatible = "86xx";
+			compatible = "fsl,mpc86xx-pciex","86xx";
 			device_type = "pci";
 			#interrupt-cells = <1>;
 			#size-cells = <2>;
Signature · 1 line
1.5.1
#1 lore raw
Quoted 7 lines

Indentify pci, pcie host by compatible property
"fsl,mpc83xx-pci","83xx"
"fsl,mpc85xx-pci","85xx"
"fsl,mpc86xx-pci","86xx"
and
"fsl, mpc85xx-pciex","85xx"
"fsl, mpc86xx-pciex","86xx"

This can't ever work -- if you see "compatible" = "85xx", what is it? PCI or PCIe? Or something else perhaps, maybe a CPU or an I2C controller or who-knows-what?

Segher

#2 lore raw
Quoted 9 lines · Segher Boessenkool
Quoted 7 lines

Indentify pci, pcie host by compatible property
"fsl,mpc83xx-pci","83xx"
"fsl,mpc85xx-pci","85xx"
"fsl,mpc86xx-pci","86xx"
and
"fsl, mpc85xx-pciex","85xx"
"fsl, mpc86xx-pciex","86xx"

This can't ever work --

It works!

Quoted 2 lines

if you see "compatible" = "85xx",
what is it?

That's why I remove the original compatible "85xx".

Quoted 2 lines

PCI or PCIe? Or something else perhaps, maybe
a CPU or an I2C controller or who-knows-what?

I just think the compatible field
"fsl,mpc83xx-pci","83xx"
has some redundant information.
Kumar don't want to break anything using the old
information.
We can remove it in the future:-).
Roy

#3 lore raw
Quoted 10 lines
Quoted 9 lines
Quoted 7 lines

Indentify pci, pcie host by compatible property
"fsl,mpc83xx-pci","83xx"
"fsl,mpc85xx-pci","85xx"
"fsl,mpc86xx-pci","86xx"
and
"fsl, mpc85xx-pciex","85xx"
"fsl, mpc86xx-pciex","86xx"

This can't ever work --

It works!

How can any driver match for "85xx" if two completely different devices use it as device name?

Quoted 3 lines
Quoted 2 lines

if you see "compatible" = "85xx",
what is it?

That's why I remove the original compatible "85xx".

All entries in "compatible" are independent of each other. So there still is a "85xx" in there.

Quoted 7 lines
Quoted 2 lines

PCI or PCIe? Or something else perhaps, maybe
a CPU or an I2C controller or who-knows-what?

I just think the compatible field
"fsl,mpc83xx-pci","83xx"
has some redundant information.
Kumar don't want to break anything using the old
information.

Yes, you can keep the existing "compatible" for, ahem, compatibility reasons -- but that doesn't mean you should add "85xx" to new (incompatible!) nodes.

Quoted 1 line

We can remove it in the future:-).

I hope so :-)

Segher