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 - atmel,nand-has-dma : boolean to support dma transfer for nand read/write.
19 - nand-ecc-mode : String, operation mode of the NAND ecc mode, soft by default.
20 Supported values are: "none", "soft", "hw", "hw_syndrome", "hw_oob_first",
22 - atmel,has-pmecc : boolean to enable Programmable Multibit ECC hardware.
23 Only supported by at91sam9x5 or later sam9 product.
24 - atmel,pmecc-cap : error correct capability for Programmable Multibit ECC
25 Controller. Supported values are: 2, 4, 8, 12, 24.
26 - atmel,pmecc-sector-size : sector size for ECC computation. Supported values
28 - atmel,pmecc-lookup-table-offset : includes two offsets of lookup table in ROM
29 for different sector size. First one is for sector size 512, the next is for
31 - nand-bus-width : 8 or 16 bus width if not present 8
32 - nand-on-flash-bbt: boolean to enable on flash bbt option if not present false
33 - Nand Flash Controller(NFC) is a slave driver under Atmel nand flash
34 - Required properties:
35 - compatible : "atmel,sama5d3-nfc".
36 - reg : should specify the address and size used for NFC command registers,
37 NFC registers and NFC Sram. NFC Sram address and size can be absent
38 if don't want to use it.
39 - Optional properties:
40 - atmel,write-by-sram: boolean to enable NFC write by sram.
43 nand0: nand@40000000,0 {
44 compatible = "atmel,at91rm9200-nand";
47 reg = <0x40000000 0x10000000
50 atmel,nand-addr-offset = <21>; /* ale */
51 atmel,nand-cmd-offset = <22>; /* cle */
53 nand-ecc-mode = "soft";
54 gpios = <&pioC 13 0 /* rdy */
63 /* for PMECC supported chips */
64 nand0: nand@40000000 {
65 compatible = "atmel,at91rm9200-nand";
68 reg = < 0x40000000 0x10000000 /* bus addr & size */
69 0xffffe000 0x00000600 /* PMECC addr & size */
70 0xffffe600 0x00000200 /* PMECC ERRLOC addr & size */
71 0x00100000 0x00100000 /* ROM addr & size */
73 atmel,nand-addr-offset = <21>; /* ale */
74 atmel,nand-cmd-offset = <22>; /* cle */
77 atmel,has-pmecc; /* enable PMECC */
78 atmel,pmecc-cap = <2>;
79 atmel,pmecc-sector-size = <512>;
80 atmel,pmecc-lookup-table-offset = <0x8000 0x10000>;
81 gpios = <&pioD 5 0 /* rdy */
90 /* for NFC supported chips */
91 nand0: nand@40000000 {
92 compatible = "atmel,at91rm9200-nand";
98 compatible = "atmel,sama5d3-nfc";
102 0x70000000 0x10000000 /* NFC Command Registers */
103 0xffffc000 0x00000070 /* NFC HSMC regs */
104 0x00200000 0x00100000 /* NFC SRAM banks */