[PATCH] Adding PCI-E support for 460SX based redwood board.

Josh Boyer jwboyer at linux.vnet.ibm.com
Sat Dec 19 01:03:47 EST 2009


On Mon, Nov 30, 2009 at 02:58:23PM -0800, tmarri at amcc.com wrote:
>+			PCIE0: pciex at d00000000 {
>+				device_type = "pci";
>+				#interrupt-cells = <1>;
>+				#size-cells = <2>;
>+				#address-cells = <3>;
>+				compatible = "ibm,plb-pciex-460sx", "ibm,plb-pciex";
>+				primary;
>+				port = <0x0>; /* port number */
>+				reg = <0x0000000d 0x00000000 0x20000000	/* Config space access */
>+				       0x0000000c 0x10000000 0x00001000>;	/* Registers */
>+				dcr-reg = <0x100 0x020>;
>+				sdr-base = <0x300>;
>+
>+				/* Outbound ranges, one memory and one IO,
>+				 * later cannot be changed
>+				 */
>+				ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
>+					  0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
>+

DTC complains about this:

jwboyer at zod:~/src/linux-2.6> make ARCH=powerpc CROSS_COMPILE=ppcnf-unknown- -j2 redwood.dtb
/home/jwboyer/src/linux-2.6/scripts/dtc/dtc -O dtb -o arch/powerpc/boot/redwood.dtb -b 0 -p 1024 /home/jwboyer/src/linux-2.6/arch/powerpc/boot/dts/redwood.dts
DTC: dts->dtb  on file "/home/jwboyer/src/linux-2.6/arch/powerpc/boot/dts/redwood.dts"
Warning (ranges_format): "ranges" property in /plb/opb/pciex at d00000000 has invalid length (56 bytes) (parent #address-cells == 1, child #address-cells == 3, #size-cells == 2)
Warning (ranges_format): "ranges" property in /plb/opb/pciex at d20000000 has invalid length (56 bytes) (parent #address-cells == 1, child #address-cells == 3, #size-cells == 2)
Warning (ranges_format): "ranges" property in /plb/opb/pciex at d40000000 has invalid length (56 bytes) (parent #address-cells == 1, child #address-cells == 3, #size-cells == 2)
jwboyer at zod:~/src/linux-2.6> 

My guess is that you meant to have this under the PLB bus node, and not the OPB
bus?

josh


More information about the Linuxppc-dev mailing list