How is a device tree used to specifiy flash?

Jon Smirl jonsmirl at gmail.com
Fri Dec 14 13:28:28 EST 2007


To get this working on the mpc5200 I had to add the localbus node
above the flash.

	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>;
			};
		};
	};


-- 
Jon Smirl
jonsmirl at gmail.com


More information about the Linuxppc-embedded mailing list