[PATCH] powerpc/mpc52xx: add Phytec phyCORE-MPC5200B-IO board (pcm032)

Jon Smirl jonsmirl at gmail.com
Mon Mar 2 02:54:54 EST 2009


On Sun, Mar 1, 2009 at 9:48 AM, Grant Likely <grant.likely at secretlab.ca> wrote:
> On Sun, Mar 1, 2009 at 3:18 AM, Wolfram Sang <w.sang at pengutronix.de> wrote:
>> Hi Grant,
>>
>> thanks for the review!
>>
>> On Thu, Feb 26, 2009 at 10:31:24PM -0700, Grant Likely wrote:
>>> Thanks for the patch Wolfram.  Comments below.
>>>
>>> On Wed, Feb 25, 2009 at 8:32 AM, Wolfram Sang <w.sang at pengutronix.de> wrote:
>>> > Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
>>> > ---
>>> >  arch/powerpc/boot/dts/pcm032.dts             |  391 +++++++
>>> >  arch/powerpc/configs/52xx/pcm032_defconfig   | 1394 ++++++++++++++++++++++++++
>>>
>>> Do you really need a separate defconfig for this board?  Can it be
>>> merged with an existing defconfig?
>>
>> Will have a look if I can make a pcm03x_defconfig out of pcm030_defconfig.
>
> Cool, thanks.
>
>>> motionpro.dts is a good example of what it should look like.
>>
>> Ah, thanks for the pointer. Will have a look there. Guess I'll need to update
>> pcm030.dts later, too (from which I copied this one). Will rewrite the
>> localbus-node addressing the comments you gave.
>
> pcm030.dts in mainline doesn't have a localbus node.

I've been using this on my pcm030 locally.

pcm030 doesn't have a PCI socket but it can be added via the expansion bus.
With just the basic pcm030 hardware, if I uncomment the pci node I
sometimes hang on boot.

	lpb at ff000000 {
		compatible = "fsl,lpb", "simple-bus";
		#address-cells = <2>;
		#size-cells = <1>;
		ranges = <0 0 0xff000000 0x01000000>;

		flash at 0 {
			compatible = "cfi-flash";
			reg = <0 0 0x01000000>;
			bank-width = <2>;
			device-width = <2>;
			#size-cells = <1>;
			#address-cells = <1>;
			partition at 0 {
				label = "ubootl";
				reg = <0x00000000 0x00040000>;
			};
			partition at 40000 {
				label = "kernel";
				reg = <0x00040000 0x001c0000>;
			};
			partition at 200000 {
				label = "jffs2";
				reg = <0x00200000 0x00D00000>;
			};
			partition at f00000 {
				label = "uboot";
				reg = <0x00f00000 0x00040000>;
			};
			partition at f40000 {
				label = "oftree";
				reg = <0x00f40000 0x00040000>;
			};
			partition at f80000 {
				label = "space";
				reg = <0x00f80000 0x00080000>;
			};
		};
	};
	/*
	pci at f0000d00 {
		#interrupt-cells = <1>;
		#size-cells = <2>;
		#address-cells = <3>;
		device_type = "pci";
		compatible = "fsl,mpc5200b-pci","fsl,mpc5200-pci";
		reg = <0xf0000d00 0x100>;
		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
		interrupt-map = <0xc000 0x0 0x0 0x1 &mpc5200_pic 0x0 0x0 0x3 / 1st slot /
				 0xc000 0x0 0x0 0x2 &mpc5200_pic 0x1 0x1 0x3
				 0xc000 0x0 0x0 0x3 &mpc5200_pic 0x1 0x2 0x3
				 0xc000 0x0 0x0 0x4 &mpc5200_pic 0x1 0x3 0x3

				 0xc800 0x0 0x0 0x1 &mpc5200_pic 0x1 0x1 0x3 / 2nd slot /
				 0xc800 0x0 0x0 0x2 &mpc5200_pic 0x1 0x2 0x3
				 0xc800 0x0 0x0 0x3 &mpc5200_pic 0x1 0x3 0x3
				 0xc800 0x0 0x0 0x4 &mpc5200_pic 0x0 0x0 0x3>;
		clock-frequency = <0>; // From boot loader
		interrupts = <0x2 0x8 0x0 0x2 0x9 0x0 0x2 0xa 0x0>;
		interrupt-parent = <&mpc5200_pic>;
		bus-range = <0 0>;
		ranges = <0x42000000 0x0 0x80000000 0x80000000 0x0 0x20000000
			  0x02000000 0x0 0xa0000000 0xa0000000 0x0 0x10000000
			  0x01000000 0x0 0x00000000 0xb0000000 0x0 0x01000000>;
	};
*/


>
> g.
>
> --
> Grant Likely, B.Sc., P.Eng.
> Secret Lab Technologies Ltd.
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>



-- 
Jon Smirl
jonsmirl at gmail.com



More information about the Linuxppc-dev mailing list