On Tue, Mar 18, 2014 at 01:05:02PM +0530, harninder rai wrote: > +&ifc { > + nor@0,0 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "cfi-flash"; > + reg = <0x0 0x0 0x8000000>; > + bank-width = <2>; > + device-width = <1>; > + > + partition@40000 { > + /* 256KB for DTB Image */ > + reg = <0x00040000 0x00040000>; > + label = "NOR DTB Image"; > + }; > + > + partition@80000 { > + /* 7MB for Linux Kernel Image */ > + reg = <0x00080000 0x00700000>; > + label = "NAND Linux Kernel Image"; > + }; > + > + partition@800000 { > + /* 55MB for Root file system */ > + reg = <0x00800000 0x03700000>; > + label = "NOR RFS Image"; > + }; > + > + partition@3f00000 { > + /* This location must not be altered */ > + /* 512KB for u-boot Bootloader Image */ > + /* 512KB for u-boot Environment Variables */ > + reg = <0x03f00000 0x00100000>; > + label = "NOR U-boot Image"; > + read-only; > + }; > + }; > + > + nand@1,0 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "fsl,ifc-nand"; > + reg = <0x1 0x0 0x4000>; > + > + partition@0 { > + /* This location must not be altered */ > + /* 3MB for u-boot Bootloader Image */ > + reg = <0x0 0x00300000>; > + label = "NAND U-Boot Image"; > + read-only; > + }; > + > + partition@300000 { > + /* 1MB for DTB Image */ > + reg = <0x00300000 0x00100000>; > + label = "NAND DTB Image"; > + }; > + > + partition@400000 { > + /* 8MB for Linux Kernel Image */ > + reg = <0x00400000 0x00800000>; > + label = "NAND Linux Kernel Image"; > + }; > + > + partition@c00000 { > + /* Rest space for Root file System Image */ > + reg = <0x00c00000 0x07400000>; > + label = "NAND RFS Image"; > + }; > + }; > +};
Please keep partition definitions out of the dts file, as has been recently requested of other boards. You can use U-Boot to create the partition nodes based on the mtdparts variable, or you can use the Linux mtdparts command line option. -Scott _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev