Comments on device tree for pcm030

Juergen Beisert jbe at pengutronix.de
Tue Jun 10 02:31:24 EST 2008


On Sunday 08 June 2008 21:08, Jon Smirl wrote:
> What about the flash on the local bus?  Could we use something like
> this, or the same without the partition data?
>
> 	lpb at ff000000 {
> 		compatible = "fsl,lpb";
> 		ranges = <0 ff000000 01000000>;
>
> 		flash at 00000000 {
> 			compatible = "cfi-flash";
> 			reg = <00000000 01000000>;
> 			bank-width = <2>;
> 			#size-cells = <1>;
> 			#address-cells = <1>;
> 			partition at 0 {
> 				label = "ubootl";
> 				reg = <00000000 00040000>;
> 			};
> 			partition at 40000 {
> 				label = "kernel";
> 				reg = <00040000 001c0000>;
> 			};
> 			partition at 200000 {
> 				label = "jffs2";
> 				reg = <00200000 00D00000>;
> 			};
> 			partition at f00000 {
> 				label = "uboot";
> 				reg = <00f00000 00040000>;
> 			};
> 			partition at f40000 {
> 				label = "oftree";
> 				reg = <00f40000 00040000>;
> 			};
> 			partition at f80000 {
> 				label = "space";
> 				reg = <00f80000 00080000>;
> 			};
> 		};
> 	};

Hmm, I tried with these setting (and many others) to make the flash on my 
board work again.
But the physmap_of.c driver always fails. It tries to request the region 
0xfe000000 to 0x00000000 (my flash is 32MiB in size at 0xfe00000 to 
0xffffffff) and fails badly. What are the correct settings in the OFTree to 
make the physmap_of.c driver work?

Regards,
Juergen

-- 
Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
    Handelsregister: Amtsgericht Hildesheim, HRA 2686
         Vertretung Sued/Muenchen, Germany
   Phone: +49-8766-939 228 |  Fax: +49-5121-206917-9



More information about the Linuxppc-dev mailing list