All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Ankur Tyagi <ankur.tyagi85@gmail.com>
Cc: meta-ti@yoctoproject.org
Subject: Re: Using 1GB Nand with AM335x
Date: Thu, 3 Sep 2015 12:24:50 -0400	[thread overview]
Message-ID: <20150903162449.GI4305@edge> (raw)
In-Reply-To: <CADySD0E_yJCeRTS-chGrT0-SUqUfU8TpHTMWmzGmCfMjTS=UHg@mail.gmail.com>

No reason to send this to multiple lists, as neither of them is the correct 
list for these types of questions.

Please use http://e2e.ti.com forums instead. Thanks.

-- 
Denys


On Wed, Sep 02, 2015 at 03:42:42PM +1200, Ankur Tyagi wrote:
> 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

> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti



  reply	other threads:[~2015-09-03 16:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02  3:42 Using 1GB Nand with AM335x Ankur Tyagi
2015-09-03 16:24 ` Denys Dmytriyenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-09-02  3:59 Ankur Tyagi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150903162449.GI4305@edge \
    --to=denys@ti.com \
    --cc=ankur.tyagi85@gmail.com \
    --cc=meta-ti@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.