gpmi-nand.txt 2.3 KB

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