All of lore.kernel.org
 help / color / mirror / Atom feed
* Using 1GB Nand with AM335x
@ 2015-09-02  3:42 Ankur Tyagi
  2015-09-03 16:24 ` Denys Dmytriyenko
  0 siblings, 1 reply; 3+ messages in thread
From: Ankur Tyagi @ 2015-09-02  3:42 UTC (permalink / raw)
  To: meta-ti

[-- Attachment #1: Type: text/plain, Size: 2099 bytes --]

Hi,

I have following queries regarding usage of 1GB Nand (MT29F8G16ABACAWP)
with AM335x

- what is the meaning of cells in "reg" property of gpmc nand child node ?
Information here is not clear
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/mtd/gpmc-nand.txt?v=3.14

- what should be the value of property "gpmc,device-width" if
"nand-bus-width= <16>" ? I think it should be "2"


Please confirm whether below is correct for 1GB 16-bit bus-width nand

&gpmc {
	status = "okay";
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&nandflash_pins_default>;
	pinctrl-1 = <&nandflash_pins_sleep>;
	ranges = <0 0 0x08000000 0x40000000>;	/* CS0: NAND */
	nand@0,0 {
		reg = <0 0 0>; /* CS0, offset 0 */
		ti,nand-ecc-opt = "bch16";
		ti,elm-id = <&elm>;
		nand-bus-width = <16>;
		gpmc,device-width = <2>;
		#address-cells = <1>;
		#size-cells = <1>;
		partition@0 {
			label = "NAND.SPL";
			reg = <0x00000000 0x000040000>;
		};
		partition@1 {
			label = "NAND.SPL.backup1";
			reg = <0x00040000 0x00040000>;
		};
		partition@2 {
			label = "NAND.SPL.backup2";
			reg = <0x00080000 0x00040000>;
		};
		partition@3 {
			label = "NAND.SPL.backup3";
			reg = <0x000c0000 0x00040000>;
		};
		partition@4 {
			label = "NAND.u-boot-spl-os";
			reg = <0x00100000 0x00080000>;
		};
		partition@5 {
			label = "NAND.u-boot";
			reg = <0x00180000 0x00200000>;
		};
		partition@6 {
			label = "NAND.u-boot-env";
			reg = <0x00380000 0x00040000>;
		};
		partition@7 {
			label = "NAND.u-boot-env.backup1";
			reg = <0x003c0000 0x00040000>;
		};
		partition@8 {
			label = "NAND.kernel";
			reg = <0x00400000 0x00600000>;
		};
		partition@9 {
			label = "NAND.file-system";
			reg = <0x00A00000 0x1F600000>;
		};
	}
}


Please also confirm the following arguments for UBIFS :

mkfs.ubifs -r </path/rootfs> -o </path/rootfs.ubifs> -F –m 4096 –e
253952 –c 1918
ubinize -o </path/rootfs.ubi> -m 4096 -p 256KiB -s 1024 -O 4096 ubinize.cfg
ubiformat /dev/mtd9 -f rootfs.ubi -s 1024 -O 4096


Thanks

Ankur

[-- Attachment #2: Type: text/html, Size: 2805 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Using 1GB Nand with AM335x
@ 2015-09-02  3:59 Ankur Tyagi
  0 siblings, 0 replies; 3+ messages in thread
From: Ankur Tyagi @ 2015-09-02  3:59 UTC (permalink / raw)
  To: meta-arago

[-- Attachment #1: Type: text/plain, Size: 2099 bytes --]

Hi,

I have following queries regarding usage of 1GB Nand (MT29F8G16ABACAWP)
with AM335x

- what is the meaning of cells in "reg" property of gpmc nand child node ?
Information here is not clear
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/mtd/gpmc-nand.txt?v=3.14

- what should be the value of property "gpmc,device-width" if
"nand-bus-width= <16>" ? I think it should be "2"


Please confirm whether below is correct for 1GB 16-bit bus-width nand

&gpmc {
	status = "okay";
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&nandflash_pins_default>;
	pinctrl-1 = <&nandflash_pins_sleep>;
	ranges = <0 0 0x08000000 0x40000000>;	/* CS0: NAND */
	nand@0,0 {
		reg = <0 0 0>; /* CS0, offset 0 */
		ti,nand-ecc-opt = "bch16";
		ti,elm-id = <&elm>;
		nand-bus-width = <16>;
		gpmc,device-width = <2>;
		#address-cells = <1>;
		#size-cells = <1>;
		partition@0 {
			label = "NAND.SPL";
			reg = <0x00000000 0x000040000>;
		};
		partition@1 {
			label = "NAND.SPL.backup1";
			reg = <0x00040000 0x00040000>;
		};
		partition@2 {
			label = "NAND.SPL.backup2";
			reg = <0x00080000 0x00040000>;
		};
		partition@3 {
			label = "NAND.SPL.backup3";
			reg = <0x000c0000 0x00040000>;
		};
		partition@4 {
			label = "NAND.u-boot-spl-os";
			reg = <0x00100000 0x00080000>;
		};
		partition@5 {
			label = "NAND.u-boot";
			reg = <0x00180000 0x00200000>;
		};
		partition@6 {
			label = "NAND.u-boot-env";
			reg = <0x00380000 0x00040000>;
		};
		partition@7 {
			label = "NAND.u-boot-env.backup1";
			reg = <0x003c0000 0x00040000>;
		};
		partition@8 {
			label = "NAND.kernel";
			reg = <0x00400000 0x00600000>;
		};
		partition@9 {
			label = "NAND.file-system";
			reg = <0x00A00000 0x1F600000>;
		};
	}
}


Please also confirm the following arguments for UBIFS :

mkfs.ubifs -r </path/rootfs> -o </path/rootfs.ubifs> -F –m 4096 –e
253952 –c 1918
ubinize -o </path/rootfs.ubi> -m 4096 -p 256KiB -s 1024 -O 4096 ubinize.cfg
ubiformat /dev/mtd9 -f rootfs.ubi -s 1024 -O 4096


Thanks

Ankur

[-- Attachment #2: Type: text/html, Size: 3013 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-03 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-02  3:42 Using 1GB Nand with AM335x Ankur Tyagi
2015-09-03 16:24 ` Denys Dmytriyenko
  -- strict thread matches above, loose matches on Subject: below --
2015-09-02  3:59 Ankur Tyagi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.