4 - compatible : "atmel,at91rm9200-nand".
5 - reg : should specify localbus address and size used for the chip,
6 and hardware ECC controller if available.
7 If the hardware ECC is PMECC, it should contain address and size for
8 PMECC, PMECC Error Location controller and ROM which has lookup tables.
9 - atmel,nand-addr-offset : offset for the address latch.
10 - atmel,nand-cmd-offset : offset for the command latch.
11 - #address-cells, #size-cells : Must be present if the device has sub-nodes
12 representing partitions.
14 - gpios : specifies the gpio pins to control the NAND device. detect is an
15 optional gpio and may be set to 0 if not present.
18 - nand-ecc-mode : String, operation mode of the NAND ecc mode, soft by default.
19 Supported values are: "none", "soft", "hw", "hw_syndrome", "hw_oob_first",
21 - atmel,has-pmecc : boolean to enable Programmable Multibit ECC hardware.
22 Only supported by at91sam9x5 or later sam9 product.
23 - atmel,pmecc-cap : error correct capability for Programmable Multibit ECC
24 Controller. Supported values are: 2, 4, 8, 12, 24.
25 - atmel,pmecc-sector-size : sector size for ECC computation. Supported values
27 - atmel,pmecc-lookup-table-offset : includes two offsets of lookup table in ROM
28 for different sector size. First one is for sector size 512, the next is for
30 - nand-bus-width : 8 or 16 bus width if not present 8
31 - nand-on-flash-bbt: boolean to enable on flash bbt option if not present false
34 nand0: nand@40000000,0 {
35 compatible = "atmel,at91rm9200-nand";
38 reg = <0x40000000 0x10000000
41 atmel,nand-addr-offset = <21>; /* ale */
42 atmel,nand-cmd-offset = <22>; /* cle */
44 nand-ecc-mode = "soft";
45 gpios = <&pioC 13 0 /* rdy */
54 /* for PMECC supported chips */
55 nand0: nand@40000000 {
56 compatible = "atmel,at91rm9200-nand";
59 reg = < 0x40000000 0x10000000 /* bus addr & size */
60 0xffffe000 0x00000600 /* PMECC addr & size */
61 0xffffe600 0x00000200 /* PMECC ERRLOC addr & size */
62 0x00100000 0x00100000 /* ROM addr & size */
64 atmel,nand-addr-offset = <21>; /* ale */
65 atmel,nand-cmd-offset = <22>; /* cle */
68 atmel,has-pmecc; /* enable PMECC */
69 atmel,pmecc-cap = <2>;
70 atmel,pmecc-sector-size = <512>;
71 atmel,pmecc-lookup-table-offset = <0x8000 0x10000>;
72 gpios = <&pioD 5 0 /* rdy */