Skip to contentSkip to conversation

Add 8548 CDS PCI express controller node and PCI-X device node

PATCH In review Zang Roy-r61911 3 participants 14 messages Jul 10, 2007 – Jul 17, 2007

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

PATCH 3/6 Add 8548 CDS PCI express controller node and PCI-X device node

From: Roy Zang <[email protected]>

Add 8548 CDS PCI express controller node and PCI-X device node. The current dts file is suitable for 8548 Rev 2.0 board with Arcadia 3.1.
This kind of board combination is the most popular.

Indentify pci, pcie host by compatible property "fsl,mpc85xx-pci" and "fsl, mpc85xx-pciex".

---
 arch/powerpc/boot/dts/mpc8548cds.dts |  156 +++++++++++++++++++++++-----------
 1 files changed, 105 insertions(+), 51 deletions(-)
arch/powerpc/boot/dts/mpc8548cds.dts +105 -51
index 9d0b84b..d60821b 100644
@@ -1,5 +1,5 @@
 /*
- * MPC8555 CDS Device Tree Source
+ * MPC8548 CDS Device Tree Source
  *
  * Copyright 2006 Freescale Semiconductor Inc.
  *
@@ -186,67 +186,96 @@
 		pci1: pci@8000 {
 			interrupt-map-mask = <1f800 0 0 7>;
 			interrupt-map = <
+				/* IDSEL 0x4 (PCIX Slot 2) */
+				02000 0 0 1 &mpic 0 1
+				02000 0 0 2 &mpic 1 1
+				02000 0 0 3 &mpic 2 1
+				02000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0x5 (PCIX Slot 3) */
+				02800 0 0 1 &mpic 1 1
+				02800 0 0 2 &mpic 2 1
+				02800 0 0 3 &mpic 3 1
+				02800 0 0 4 &mpic 0 1
+
+				/* IDSEL 0x6 (PCIX Slot 4) */
+				03000 0 0 1 &mpic 2 1
+				03000 0 0 2 &mpic 3 1
+				03000 0 0 3 &mpic 0 1
+				03000 0 0 4 &mpic 1 1
+
+				/* IDSEL 0x8 (PCIX Slot 5) */
+				04000 0 0 1 &mpic 0 1
+				04000 0 0 2 &mpic 1 1
+				04000 0 0 3 &mpic 2 1
+				04000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0xC (Tsi310 bridge) */
+				06000 0 0 1 &mpic 0 1
+				06000 0 0 2 &mpic 1 1
+				06000 0 0 3 &mpic 2 1
+				06000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0x14 (Slot 2) */
+				0a000 0 0 1 &mpic 0 1
+				0a000 0 0 2 &mpic 1 1
+				0a000 0 0 3 &mpic 2 1
+				0a000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0x15 (Slot 3) */
+				0a800 0 0 1 &mpic 1 1
+				0a800 0 0 2 &mpic 2 1
+				0a800 0 0 3 &mpic 3 1
+				0a800 0 0 4 &mpic 0 1
+
+				/* IDSEL 0x16 (Slot 4) */
+				0b000 0 0 1 &mpic 2 1
+				0b000 0 0 2 &mpic 3 1
+				0b000 0 0 3 &mpic 0 1
+				0b000 0 0 4 &mpic 1 1
+
+				/* IDSEL 0x18 (Slot 5) */
+				0c000 0 0 1 &mpic 0 1
+				0c000 0 0 2 &mpic 1 1
+				0c000 0 0 3 &mpic 2 1
+				0c000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0x1C (Tsi310 bridge PCI primary) */
+				0E000 0 0 1 &mpic 0 1
+				0E000 0 0 2 &mpic 1 1
+				0E000 0 0 3 &mpic 2 1
+				0E000 0 0 4 &mpic 3 1
+
+				/* bus 1 , idsel 0x2 Tsi310 bridge secondary */
+				11000 0 0 1 &mpic 2 1
+				11000 0 0 2 &mpic 3 1
+				11000 0 0 3 &mpic 0 1
+				11000 0 0 4 &mpic 1 1
+
+				/* VIA chip */
+				12000 0 0 1 &mpic 0 1
+				12000 0 0 2 &mpic 1 1
+				12000 0 0 3 &mpic 2 1
+				12000 0 0 4 &mpic 3 1>;
 
-				/* IDSEL 0x10 */
-				08000 0 0 1 &mpic 0 1
-				08000 0 0 2 &mpic 1 1
-				08000 0 0 3 &mpic 2 1
-				08000 0 0 4 &mpic 3 1
-
-				/* IDSEL 0x11 */
-				08800 0 0 1 &mpic 0 1
-				08800 0 0 2 &mpic 1 1
-				08800 0 0 3 &mpic 2 1
-				08800 0 0 4 &mpic 3 1
-
-				/* IDSEL 0x12 (Slot 1) */
-				09000 0 0 1 &mpic 0 1
-				09000 0 0 2 &mpic 1 1
-				09000 0 0 3 &mpic 2 1
-				09000 0 0 4 &mpic 3 1
-
-				/* IDSEL 0x13 (Slot 2) */
-				09800 0 0 1 &mpic 1 1
-				09800 0 0 2 &mpic 2 1
-				09800 0 0 3 &mpic 3 1
-				09800 0 0 4 &mpic 0 1
-
-				/* IDSEL 0x14 (Slot 3) */
-				0a000 0 0 1 &mpic 2 1
-				0a000 0 0 2 &mpic 3 1
-				0a000 0 0 3 &mpic 0 1
-				0a000 0 0 4 &mpic 1 1
-
-				/* IDSEL 0x15 (Slot 4) */
-				0a800 0 0 1 &mpic 3 1
-				0a800 0 0 2 &mpic 0 1
-				0a800 0 0 3 &mpic 1 1
-				0a800 0 0 4 &mpic 2 1
-
-				/* Bus 1 (Tundra Bridge) */
-				/* IDSEL 0x12 (ISA bridge) */
-				19000 0 0 1 &mpic 0 1
-				19000 0 0 2 &mpic 1 1
-				19000 0 0 3 &mpic 2 1
-				19000 0 0 4 &mpic 3 1>;
 			interrupt-parent = <&mpic>;
 			interrupts = <18 2>;
 			bus-range = <0 0>;
-			ranges = <02000000 0 80000000 80000000 0 20000000
-				  01000000 0 00000000 e2000000 0 00100000>;
+			ranges = <02000000 0 80000000 80000000 0 10000000
+				  01000000 0 00000000 e2000000 0 00800000>;
 			clock-frequency = <3f940aa>;
 			#interrupt-cells = <1>;
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8000 1000>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
 			device_type = "pci";
 
-			i8259@19000 {
+			i8259@4 {
 				clock-frequency = <0>;
 				interrupt-controller;
 				device_type = "interrupt-controller";
-				reg = <19000 0 0 0 1>;
+				reg = <12000 0 0 0 1>;
 				#address-cells = <0>;
 				#interrupt-cells = <2>;
 				built-in;
@@ -266,17 +295,42 @@
 				a800 0 0 2 &mpic b 1
 				a800 0 0 3 &mpic b 1
 				a800 0 0 4 &mpic b 1>;
+
 			interrupt-parent = <&mpic>;
 			interrupts = <19 2>;
 			bus-range = <0 0>;
-			ranges = <02000000 0 a0000000 a0000000 0 20000000
-				  01000000 0 00000000 e3000000 0 00100000>;
+			ranges = <02000000 0 90000000 90000000 0 10000000
+				  01000000 0 00000000 e2800000 0 00800000>;
 			clock-frequency = <3f940aa>;
 			#interrupt-cells = <1>;
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <9000 1000>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
+			device_type = "pci";
+		};
+		/* PCI Express */
+		pci@a000 {
+			interrupt-map-mask = <f800 0 0 7>;
+			interrupt-map = <
+
+				/* IDSEL 0x0 (PEX) */
+				00000 0 0 1 &mpic 0 1
+				00000 0 0 2 &mpic 1 0
+				00000 0 0 3 &mpic 2 0
+				00000 0 0 4 &mpic 3 0>;
+
+			interrupt-parent = <&mpic>;
+			interrupts = <1a 2>;
+			bus-range = <0 ff>;
+			ranges = <02000000 0 a0000000 a0000000 0 20000000
+				  01000000 0 00000000 e3000000 0 08000000>;
+			clock-frequency = <1fca055>;
+			#interrupt-cells = <1>;
+			#size-cells = <2>;
+			#address-cells = <3>;
+			reg = <a000 1000>;
+			compatible = "fsl,mpc86xx-pciex","86xx";
 			device_type = "pci";
 		};
 
Signature · 1 line
1.5.1
#1 lore raw

arch/powerpc/boot/dts/mpc8548cds.dts line 187

Quoted 2 lines
arch/powerpc/boot/dts/mpc8548cds.dts +0 -0
 		pci1: pci@8000 {
 			interrupt-map-mask = <1f800 0 0 7>;

Set the mask to <1800 0 0 7>, and you need only 16 entries to encode the swizzle. Except...

arch/powerpc/boot/dts/mpc8548cds.dts line 249

Quoted 1 line
arch/powerpc/boot/dts/mpc8548cds.dts +1 -0
+				/* bus 1 , idsel 0x2 Tsi310 bridge secondary */

...interrupts on bus 1 should be swizzled on bus 1, not at the PHB. Really. It is a horrible workaround for a non-existing problem to do it here, and I promise you it _will_ come back to hurt you later. Not a threat, just a promise :-)

Review

Quoted 2 lines
(quoted diff) +1 -1
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";

No more "xx" please...

arch/powerpc/boot/dts/mpc8548cds.dts line 321

Quoted 9 lines
arch/powerpc/boot/dts/mpc8548cds.dts +9 -0
+		pci@a000 {
+			interrupt-map-mask = <f800 0 0 7>;
+			interrupt-map = <
+
+				/* IDSEL 0x0 (PEX) */
+				00000 0 0 1 &mpic 0 1
+				00000 0 0 2 &mpic 1 0
+				00000 0 0 3 &mpic 2 0
+				00000 0 0 4 &mpic 3 0>;

Why sense 0 for all but the first entry in this map?

arch/powerpc/boot/dts/mpc8548cds.dts line 333

Quoted 1 line
arch/powerpc/boot/dts/mpc8548cds.dts +1 -0
+			compatible = "fsl,mpc86xx-pciex","86xx";

And "xx" again. Aren't the 85- and 86- PCIe controllers compatible, btw?

Segher

#2 lore raw
Quoted 31 lines · Segher Boessenkool

arch/powerpc/boot/dts/mpc8548cds.dts line 187

Quoted 2 lines
arch/powerpc/boot/dts/mpc8548cds.dts +0 -0
 		pci1: pci@8000 {
 			interrupt-map-mask = <1f800 0 0 7>;

Set the mask to <1800 0 0 7>, and you need only 16 entries to encode the swizzle. Except...

arch/powerpc/boot/dts/mpc8548cds.dts line 249

Quoted 1 line
arch/powerpc/boot/dts/mpc8548cds.dts +1 -0
+				/* bus 1 , idsel 0x2 Tsi310 bridge secondary */

...interrupts on bus 1 should be swizzled on bus 1, not at the PHB. Really. It is a horrible workaround for a non-existing problem to do it here, and I promise you it _will_ come back to hurt you later. Not a threat, just a promise :-)

Review

Quoted 2 lines
(quoted diff) +1 -1
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";

No more "xx" please...

arch/powerpc/boot/dts/mpc8548cds.dts line 321

Quoted 9 lines
arch/powerpc/boot/dts/mpc8548cds.dts +9 -0
+		pci@a000 {
+			interrupt-map-mask = <f800 0 0 7>;
+			interrupt-map = <
+
+				/* IDSEL 0x0 (PEX) */
+				00000 0 0 1 &mpic 0 1
+				00000 0 0 2 &mpic 1 0
+				00000 0 0 3 &mpic 2 0
+				00000 0 0 4 &mpic 3 0>;

Why sense 0 for all but the first entry in this map?

Quoted 4 lines

arch/powerpc/boot/dts/mpc8548cds.dts line 333

Quoted 1 line
arch/powerpc/boot/dts/mpc8548cds.dts +1 -0
+			compatible = "fsl,mpc86xx-pciex","86xx";

And "xx" again. Aren't the 85- and 86- PCIe controllers compatible, btw?

They are, but we need to distinguish between 83xx, 85xx, and 86xx pci, pciex, pci-x controllers.

- k

#4 lore raw
In reply to Segher Boessenkool
Quoted 6 lines · Segher Boessenkool
Quoted 2 lines
              pci1: pci@8000 {
                      interrupt-map-mask = <1f800 0 0 7>;

Set the mask to <1800 0 0 7>, and you need only 16 entries to encode the swizzle. Except...

Quoted 8 lines
Quoted 1 line

+ /* bus 1 , idsel 0x2 Tsi310 bridge

secondary */

...interrupts on bus 1 should be swizzled on bus 1, not at the PHB. Really. It is a horrible workaround for a non-existing problem to do it here, and I promise you it _will_ come back to hurt you later. Not a threat, just a promise :-)

I just want to make it as a temporary workaround now. Extra patches will be provided to fix it.

Quoted 15 lines

Review

Quoted 2 lines
(quoted diff) +1 -1
-                     compatible = "85xx";
+                     compatible = "fsl,mpc85xx-pci","85xx";

No more "xx" please...

arch/powerpc/boot/dts/mpc8548cds.dts line 321

Quoted 9 lines
arch/powerpc/boot/dts/mpc8548cds.dts +9 -0
+             pci@a000 {
+                     interrupt-map-mask = <f800 0 0 7>;
+                     interrupt-map = <
+
+                             /* IDSEL 0x0 (PEX) */
+                             00000 0 0 1 &mpic 0 1
+                             00000 0 0 2 &mpic 1 0
+                             00000 0 0 3 &mpic 2 0
+                             00000 0 0 4 &mpic 3 0>;
Quoted 1 line

Why sense 0 for all but the first entry in this map?

Now, only the first entry is used.

Quoted 5 lines
Quoted 2 lines

+ compatible = "fsl,mpc86xx-pciex","86xx";

And "xx" again. Aren't the 85- and 86- PCIe controllers compatible, btw?

#3 lore raw
In reply to Kumar Gala
Quoted 6 lines
Quoted 4 lines

arch/powerpc/boot/dts/mpc8548cds.dts line 333

Quoted 1 line
arch/powerpc/boot/dts/mpc8548cds.dts +1 -0
+			compatible = "fsl,mpc86xx-pciex","86xx";

And "xx" again. Aren't the 85- and 86- PCIe controllers compatible, btw?

They are, but we need to distinguish between 83xx, 85xx, and 86xx pci, pciex, pci-x controllers.

Sure, but if 85xx-pcie and 86xx-pcie are compatible, the OS driver can match on the same "compatible" entry for both. Just choose one -- "fsl,8641-pcie" or something. It is a good idea to put the exact name of the controller on the board in the first "compatible" entry in case it is found later that some specific model needs a workaround or some other special treatment, but in general, everything can just use the generic "grandfather" model to match on.

Segher

#5 lore raw
In reply to Zang Roy-r61911
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines
              pci1: pci@8000 {
                      interrupt-map-mask = <1f800 0 0 7>;

Set the mask to <1800 0 0 7>, and you need only 16 entries to encode the swizzle. Except...

Quoted 1 line

+ /* bus 1 , idsel 0x2 Tsi310 bridge

secondary */

Quoted 7 lines
Quoted 5 lines

...interrupts on bus 1 should be swizzled on bus 1, not at the PHB. Really. It is a horrible workaround for a non-existing problem to do it here, and I promise you it _will_ come back to hurt you later. Not a threat, just a promise :-)

I just want to make it as a temporary workaround now.

That is fine.

Quoted 1 line

Extra patches will be provided to fix it.

Looking forward to it!

Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
arch/powerpc/boot/dts/mpc8548cds.dts +9 -0
+             pci@a000 {
+                     interrupt-map-mask = <f800 0 0 7>;
+                     interrupt-map = <
+
+                             /* IDSEL 0x0 (PEX) */
+                             00000 0 0 1 &mpic 0 1
+                             00000 0 0 2 &mpic 1 0
+                             00000 0 0 3 &mpic 2 0
+                             00000 0 0 4 &mpic 3 0>;
Quoted 2 lines
Quoted 1 line

Why sense 0 for all but the first entry in this map?

Now, only the first entry is used.

Sure, but the other three entries are incorrect. Either provide correct entries, or just leave the unused entries out of the map; if those three interrupts aren't wired up, that is the right thing to do, too.

Segher

#6 lore raw
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
arch/powerpc/boot/dts/mpc8548cds.dts +9 -0
+             pci@a000 {
+                     interrupt-map-mask = <f800 0 0 7>;
+                     interrupt-map = <
+
+                             /* IDSEL 0x0 (PEX) */
+                             00000 0 0 1 &mpic 0 1
+                             00000 0 0 2 &mpic 1 0
+                             00000 0 0 3 &mpic 2 0
+                             00000 0 0 4 &mpic 3 0>;
Quoted 7 lines
Quoted 2 lines
Quoted 1 line

Why sense 0 for all but the first entry in this map?

Now, only the first entry is used.

Sure, but the other three entries are incorrect. Either provide correct entries, or just leave the unused entries out of the map; if those three interrupts aren't wired up, that is the right thing to do, too.

Yeah these should be sense 1 for irq b, c, d. I'll fix that up when I apply the patch.

- k

#7 lore raw

From: Roy Zang <[email protected]>

Add 8548 CDS PCI express controller node and PCI-X device node. The current dts file is suitable for 8548 Rev 2.0 board with Arcadia 3.1.
This kind of board combination is the most popular.

Indentify pci, pcie host by compatible property "fsl,mpc85xx-pci" and "fsl, mpc85xx-pciex".

---
Fix the PCI Express b,c,d, irq sense.

 arch/powerpc/boot/dts/mpc8548cds.dts |  156 +++++++++++++++++++++++-----------
 1 files changed, 105 insertions(+), 51 deletions(-)
arch/powerpc/boot/dts/mpc8548cds.dts +105 -51
index 9d0b84b..d60821b 100644
@@ -1,5 +1,5 @@
 /*
- * MPC8555 CDS Device Tree Source
+ * MPC8548 CDS Device Tree Source
  *
  * Copyright 2006 Freescale Semiconductor Inc.
  *
@@ -186,67 +186,96 @@
 		pci1: pci@8000 {
 			interrupt-map-mask = <1f800 0 0 7>;
 			interrupt-map = <
+				/* IDSEL 0x4 (PCIX Slot 2) */
+				02000 0 0 1 &mpic 0 1
+				02000 0 0 2 &mpic 1 1
+				02000 0 0 3 &mpic 2 1
+				02000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0x5 (PCIX Slot 3) */
+				02800 0 0 1 &mpic 1 1
+				02800 0 0 2 &mpic 2 1
+				02800 0 0 3 &mpic 3 1
+				02800 0 0 4 &mpic 0 1
+
+				/* IDSEL 0x6 (PCIX Slot 4) */
+				03000 0 0 1 &mpic 2 1
+				03000 0 0 2 &mpic 3 1
+				03000 0 0 3 &mpic 0 1
+				03000 0 0 4 &mpic 1 1
+
+				/* IDSEL 0x8 (PCIX Slot 5) */
+				04000 0 0 1 &mpic 0 1
+				04000 0 0 2 &mpic 1 1
+				04000 0 0 3 &mpic 2 1
+				04000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0xC (Tsi310 bridge) */
+				06000 0 0 1 &mpic 0 1
+				06000 0 0 2 &mpic 1 1
+				06000 0 0 3 &mpic 2 1
+				06000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0x14 (Slot 2) */
+				0a000 0 0 1 &mpic 0 1
+				0a000 0 0 2 &mpic 1 1
+				0a000 0 0 3 &mpic 2 1
+				0a000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0x15 (Slot 3) */
+				0a800 0 0 1 &mpic 1 1
+				0a800 0 0 2 &mpic 2 1
+				0a800 0 0 3 &mpic 3 1
+				0a800 0 0 4 &mpic 0 1
+
+				/* IDSEL 0x16 (Slot 4) */
+				0b000 0 0 1 &mpic 2 1
+				0b000 0 0 2 &mpic 3 1
+				0b000 0 0 3 &mpic 0 1
+				0b000 0 0 4 &mpic 1 1
+
+				/* IDSEL 0x18 (Slot 5) */
+				0c000 0 0 1 &mpic 0 1
+				0c000 0 0 2 &mpic 1 1
+				0c000 0 0 3 &mpic 2 1
+				0c000 0 0 4 &mpic 3 1
+
+				/* IDSEL 0x1C (Tsi310 bridge PCI primary) */
+				0E000 0 0 1 &mpic 0 1
+				0E000 0 0 2 &mpic 1 1
+				0E000 0 0 3 &mpic 2 1
+				0E000 0 0 4 &mpic 3 1
+
+				/* bus 1 , idsel 0x2 Tsi310 bridge secondary */
+				11000 0 0 1 &mpic 2 1
+				11000 0 0 2 &mpic 3 1
+				11000 0 0 3 &mpic 0 1
+				11000 0 0 4 &mpic 1 1
+
+				/* VIA chip */
+				12000 0 0 1 &mpic 0 1
+				12000 0 0 2 &mpic 1 1
+				12000 0 0 3 &mpic 2 1
+				12000 0 0 4 &mpic 3 1>;
 
-				/* IDSEL 0x10 */
-				08000 0 0 1 &mpic 0 1
-				08000 0 0 2 &mpic 1 1
-				08000 0 0 3 &mpic 2 1
-				08000 0 0 4 &mpic 3 1
-
-				/* IDSEL 0x11 */
-				08800 0 0 1 &mpic 0 1
-				08800 0 0 2 &mpic 1 1
-				08800 0 0 3 &mpic 2 1
-				08800 0 0 4 &mpic 3 1
-
-				/* IDSEL 0x12 (Slot 1) */
-				09000 0 0 1 &mpic 0 1
-				09000 0 0 2 &mpic 1 1
-				09000 0 0 3 &mpic 2 1
-				09000 0 0 4 &mpic 3 1
-
-				/* IDSEL 0x13 (Slot 2) */
-				09800 0 0 1 &mpic 1 1
-				09800 0 0 2 &mpic 2 1
-				09800 0 0 3 &mpic 3 1
-				09800 0 0 4 &mpic 0 1
-
-				/* IDSEL 0x14 (Slot 3) */
-				0a000 0 0 1 &mpic 2 1
-				0a000 0 0 2 &mpic 3 1
-				0a000 0 0 3 &mpic 0 1
-				0a000 0 0 4 &mpic 1 1
-
-				/* IDSEL 0x15 (Slot 4) */
-				0a800 0 0 1 &mpic 3 1
-				0a800 0 0 2 &mpic 0 1
-				0a800 0 0 3 &mpic 1 1
-				0a800 0 0 4 &mpic 2 1
-
-				/* Bus 1 (Tundra Bridge) */
-				/* IDSEL 0x12 (ISA bridge) */
-				19000 0 0 1 &mpic 0 1
-				19000 0 0 2 &mpic 1 1
-				19000 0 0 3 &mpic 2 1
-				19000 0 0 4 &mpic 3 1>;
 			interrupt-parent = <&mpic>;
 			interrupts = <18 2>;
 			bus-range = <0 0>;
-			ranges = <02000000 0 80000000 80000000 0 20000000
-				  01000000 0 00000000 e2000000 0 00100000>;
+			ranges = <02000000 0 80000000 80000000 0 10000000
+				  01000000 0 00000000 e2000000 0 00800000>;
 			clock-frequency = <3f940aa>;
 			#interrupt-cells = <1>;
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <8000 1000>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
 			device_type = "pci";
 
-			i8259@19000 {
+			i8259@4 {
 				clock-frequency = <0>;
 				interrupt-controller;
 				device_type = "interrupt-controller";
-				reg = <19000 0 0 0 1>;
+				reg = <12000 0 0 0 1>;
 				#address-cells = <0>;
 				#interrupt-cells = <2>;
 				built-in;
@@ -266,17 +295,42 @@
 				a800 0 0 2 &mpic b 1
 				a800 0 0 3 &mpic b 1
 				a800 0 0 4 &mpic b 1>;
+
 			interrupt-parent = <&mpic>;
 			interrupts = <19 2>;
 			bus-range = <0 0>;
-			ranges = <02000000 0 a0000000 a0000000 0 20000000
-				  01000000 0 00000000 e3000000 0 00100000>;
+			ranges = <02000000 0 90000000 90000000 0 10000000
+				  01000000 0 00000000 e2800000 0 00800000>;
 			clock-frequency = <3f940aa>;
 			#interrupt-cells = <1>;
 			#size-cells = <2>;
 			#address-cells = <3>;
 			reg = <9000 1000>;
-			compatible = "85xx";
+			compatible = "fsl,mpc85xx-pci","85xx";
+			device_type = "pci";
+		};
+		/* PCI Express */
+		pci@a000 {
+			interrupt-map-mask = <f800 0 0 7>;
+			interrupt-map = <
+
+				/* IDSEL 0x0 (PEX) */
+				00000 0 0 1 &mpic 0 1
+				00000 0 0 2 &mpic 1 1
+				00000 0 0 3 &mpic 2 1
+				00000 0 0 4 &mpic 3 1>;
+
+			interrupt-parent = <&mpic>;
+			interrupts = <1a 2>;
+			bus-range = <0 ff>;
+			ranges = <02000000 0 a0000000 a0000000 0 20000000
+				  01000000 0 00000000 e3000000 0 08000000>;
+			clock-frequency = <1fca055>;
+			#interrupt-cells = <1>;
+			#size-cells = <2>;
+			#address-cells = <3>;
+			reg = <a000 1000>;
+			compatible = "fsl,mpc86xx-pciex","86xx";
 			device_type = "pci";
 		};
 
Signature · 1 line
1.5.1
#8 lore raw
Quoted 7 lines · On Jul 12, 2007, at 3:27 AM, Zang Roy-r61911 wrote:

From: Roy Zang <[email protected]>

Add 8548 CDS PCI express controller node and PCI-X device node. The current dts file is suitable for 8548 Rev 2.0 board with Arcadia 3.1.
This kind of board combination is the most popular.

Quoted 6 lines

Indentify pci, pcie host by compatible property "fsl,mpc85xx-pci" and "fsl, mpc85xx-pciex".

---
Fix the PCI Express b,c,d, irq sense.

is this the only fix, I've already applied a version of this to my tree (with the irq sense fix) and just want to make sure there isn't anything else.

- k

#9 lore raw
Quoted 12 lines · Kumar Gala
Quoted 10 lines · On Jul 12, 2007, at 3:27 AM, Zang Roy-r61911 wrote:

From: Roy Zang <[email protected]>

Add 8548 CDS PCI express controller node and PCI-X device node. The current dts file is suitable for 8548 Rev 2.0 board with Arcadia 3.1.
This kind of board combination is the most popular.

Indentify pci, pcie host by compatible property "fsl,mpc85xx-pci" and "fsl, mpc85xx-pciex".

Quoted 7 lines
Quoted 3 lines

---
Fix the PCI Express b,c,d, irq sense.

is this the only fix, I've already applied a version of this to my tree (with the irq sense fix) and just want to make sure there isn't anything else.

I do not get more.
I'd like to enroll Segher's suggestion together with VIA chip function in next step.
We need to make basic pcie work on 8548 CDS board first. Thanks.

Roy

#10 lore raw
Quoted 7 lines
Quoted 3 lines

is this the only fix, I've already applied a version of this to my tree (with the irq sense fix) and just want to make sure there isn't anything else.

I do not get more.
I'd like to enroll Segher's suggestion together with VIA chip function in next step.
We need to make basic pcie work on 8548 CDS board first.

If you can, please make the "compatible" properties correct ("pcie" instead of "pciex") before the patch goes in; it'll be less work total and less confusing in the end.

Segher

#11 lore raw
Quoted 11 lines · Segher Boessenkool
Quoted 7 lines
Quoted 3 lines

is this the only fix, I've already applied a version of this to my tree (with the irq sense fix) and just want to make sure there isn't anything else.

I do not get more.
I'd like to enroll Segher's suggestion together with VIA chip function in next step.
We need to make basic pcie work on 8548 CDS board first.

If you can, please make the "compatible" properties correct ("pcie" instead of "pciex") before the patch goes in; it'll be less work total and less confusing in the end.

I've taken care of that as well.

They are now 'fsl,mpc8548-pcie, and 'fsl,mpc8641-pcie'

- k

#12 lore raw
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

is this the only fix, I've already applied a version of this to my tree (with the irq sense fix) and just want to make sure there isn't anything else.

I do not get more.
I'd like to enroll Segher's suggestion together with VIA chip function in next step.
We need to make basic pcie work on 8548 CDS board first.

Quoted 7 lines
Quoted 3 lines

If you can, please make the "compatible" properties correct ("pcie" instead of "pciex") before the patch goes in; it'll be less work total and less confusing in the end.

I've taken care of that as well.

They are now 'fsl,mpc8548-pcie, and 'fsl,mpc8641-pcie'

Perfect, thanks!

Segher

#13 lore raw
Quoted 15 lines · Segher Boessenkool
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

is this the only fix, I've already applied a version of this to

my

Quoted 13 lines
Quoted 12 lines
Quoted 8 lines
Quoted 3 lines

tree (with the irq sense fix) and just want to make sure there isn't
anything else.

I do not get more.
I'd like to enroll Segher's suggestion together with VIA chip function
in next step.
We need to make basic pcie work on 8548 CDS board first.

If you can, please make the "compatible" properties correct ("pcie" instead of "pciex") before the patch goes in; it'll be less work total and less confusing in the end.

Quoted 5 lines
Quoted 3 lines

I've taken care of that as well.

They are now 'fsl,mpc8548-pcie, and 'fsl,mpc8641-pcie'

Perfect, thanks!

I noticed Kumar made some modifications according to the feedback, when he applied the patch.
Thanks!
Roy