2012-05-05 09:42:05 +08:00
|
|
|
* Freescale General-Purpose Media Interface (GPMI)
|
|
|
|
|
|
|
|
The GPMI nand controller provides an interface to control the
|
2014-11-27 22:18:49 +08:00
|
|
|
NAND flash chips.
|
2012-05-05 09:42:05 +08:00
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible : should be "fsl,<chip>-gpmi-nand"
|
|
|
|
- reg : should contain registers location and length for gpmi and bch.
|
|
|
|
- reg-names: Should contain the reg names "gpmi-nand" and "bch"
|
2013-02-26 11:44:28 +08:00
|
|
|
- interrupts : BCH interrupt number.
|
|
|
|
- interrupt-names : Should be "bch".
|
|
|
|
- dmas: DMA specifier, consisting of a phandle to DMA controller node
|
|
|
|
and GPMI DMA channel ID.
|
|
|
|
Refer to dma.txt and fsl-mxs-dma.txt for details.
|
|
|
|
- dma-names: Must be "rx-tx".
|
2012-05-05 09:42:05 +08:00
|
|
|
|
2012-07-03 16:24:32 +08:00
|
|
|
Optional properties:
|
|
|
|
- nand-on-flash-bbt: boolean to enable on flash bbt option if not
|
|
|
|
present false
|
2013-11-07 18:07:38 +08:00
|
|
|
- fsl,use-minimum-ecc: Protect this NAND flash with the minimum ECC
|
|
|
|
strength required. The required ECC strength is
|
|
|
|
automatically discoverable for some flash
|
|
|
|
(e.g., according to the ONFI standard).
|
|
|
|
However, note that if this strength is not
|
|
|
|
discoverable or this property is not enabled,
|
|
|
|
the software may chooses an implementation-defined
|
|
|
|
ECC scheme.
|
2014-03-28 18:35:06 +08:00
|
|
|
- fsl,no-blockmark-swap: Don't swap the bad block marker from the OOB
|
|
|
|
area with the byte in the data area but rely on the
|
|
|
|
flash based BBT for identifying bad blocks.
|
|
|
|
NOTE: this is only valid in conjunction with
|
|
|
|
'nand-on-flash-bbt'.
|
|
|
|
WARNING: on i.MX28 blockmark swapping cannot be
|
|
|
|
disabled for the BootROM in the FCB. Thus,
|
|
|
|
partitions written from Linux with this feature
|
|
|
|
turned on may not be accessible by the BootROM
|
|
|
|
code.
|
2012-07-03 16:24:32 +08:00
|
|
|
|
2012-05-05 09:42:05 +08:00
|
|
|
The device tree may optionally contain sub-nodes describing partitions of the
|
|
|
|
address space. See partition.txt for more detail.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
gpmi-nand@8000c000 {
|
|
|
|
compatible = "fsl,imx28-gpmi-nand";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
reg = <0x8000c000 2000>, <0x8000a000 2000>;
|
|
|
|
reg-names = "gpmi-nand", "bch";
|
2013-02-26 11:44:28 +08:00
|
|
|
interrupts = <41>;
|
|
|
|
interrupt-names = "bch";
|
|
|
|
dmas = <&dma_apbh 4>;
|
|
|
|
dma-names = "rx-tx";
|
2012-05-05 09:42:05 +08:00
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
...
|
|
|
|
};
|
|
|
|
};
|