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-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to