This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MTD Concatenate NAND

Other Parts Discussed in Thread: AM3352

Hi All,

I'm using AM3352, Linux 3.14.26 and trying to concatenate two NAND chips into single MTD partition using device tree.  My device tree entry is:

&gpmc {
	ranges = <1 0 0x28000000 0x40000000
		  2 0 0x68000000 0x40000000
	>;

	nand@1,0 {
		reg = <1 0 0x40000000	/* CS1 */
		       2 0 0x40000000	/* CS2 */
		>;
		nand-bus-width = <8>;
		ti,nand-ecc-opt = "bch8";
		ti,nand-xfer-type = "polled";
		ti,elm-id = <&elm>;

		gpmc,device-width = <1>;
		gpmc,sync-clk-ps = <0>;
		gpmc,cs-on-ns = <0>;
		gpmc,cs-rd-off-ns = <40>;
		gpmc,cs-wr-off-ns = <40>;
		gpmc,adv-on-ns = <0>;
		gpmc,adv-rd-off-ns = <40>;
		gpmc,adv-wr-off-ns = <40>;
		gmpc,we-on-ns = <0>;
		gpmc,we-off-ns = <20>;
		gpmc,oe-on-ns = <0>;
		gpmc,oe-off-ns = <20>;
		gpmc,access-ns = <30>;
		gpmc,rd-cycle-ns = <40>;
		gpmc,wr-cycle-ns = <40>;
		gpmc,wait-on-read = "true";
		gpmc,wait-on-write = "true";
		gpmc,bus-turnaround-ns = <0>;
		gpmc,cycle2cycle-delay-ns = <90>;
		gpmc,clk-activation-ns = <0>;
		gpmc,wait-monitoring-ns = <0>;
		gpmc,wr-access-ns = <40>;
		gpmc,wr-data-mux-bus-ns = <0>;

		#address-cells = <1>;
		#size-cells = <1>;
		partition@0 {
			label = "data";
			reg = <0 0x80000000>;
		};
	};
};

During boot I see:

[    2.087239] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xd3
[    2.094000] nand: Micron MT29F8G08ADADAH4
[    2.098223] nand: 1024MiB, SLC, page size: 2048, OOB size: 64
[    2.104286] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[    2.110026] 1 ofpart partitions found on MTD device omap2-nand.1
[    2.116352] Creating 1 MTD partitions on "omap2-nand.1":
[    2.121977] 0x000000000000-0x000080000000 : "data"
[    2.127020] mtd: partition "data" extends beyond the end of device "omap2-nand.1" -- size truncated to 0x40000000

Only 1 chip is being probed.  Note, if I put each chip in its own nand device tree node, both chips are probed.

Has anyone concatenated