gpmi-nand.txt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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", chip can be:
  6. * imx23
  7. * imx28
  8. * imx6q
  9. * imx6sx
  10. * imx7d
  11. - reg : should contain registers location and length for gpmi and bch.
  12. - reg-names: Should contain the reg names "gpmi-nand" and "bch"
  13. - interrupts : BCH interrupt number.
  14. - interrupt-names : Should be "bch".
  15. - dmas: DMA specifier, consisting of a phandle to DMA controller node
  16. and GPMI DMA channel ID.
  17. Refer to dma.txt and fsl-mxs-dma.txt for details.
  18. - dma-names: Must be "rx-tx".
  19. - clocks : clocks phandle and clock specifier corresponding to each clock
  20. specified in clock-names.
  21. - clock-names : The "gpmi_io" clock is always required. Which clocks are
  22. exactly required depends on chip:
  23. * imx23/imx28 : "gpmi_io"
  24. * imx6q/sx : "gpmi_io", "gpmi_apb", "gpmi_bch", "gpmi_bch_apb", "per1_bch"
  25. * imx7d : "gpmi_io", "gpmi_bch_apb"
  26. Optional properties:
  27. - nand-on-flash-bbt: boolean to enable on flash bbt option if not
  28. present false
  29. - fsl,use-minimum-ecc: Protect this NAND flash with the minimum ECC
  30. strength required. The required ECC strength is
  31. automatically discoverable for some flash
  32. (e.g., according to the ONFI standard).
  33. However, note that if this strength is not
  34. discoverable or this property is not enabled,
  35. the software may chooses an implementation-defined
  36. ECC scheme.
  37. - fsl,no-blockmark-swap: Don't swap the bad block marker from the OOB
  38. area with the byte in the data area but rely on the
  39. flash based BBT for identifying bad blocks.
  40. NOTE: this is only valid in conjunction with
  41. 'nand-on-flash-bbt'.
  42. WARNING: on i.MX28 blockmark swapping cannot be
  43. disabled for the BootROM in the FCB. Thus,
  44. partitions written from Linux with this feature
  45. turned on may not be accessible by the BootROM
  46. code.
  47. - nand-ecc-strength: integer representing the number of bits to correct
  48. per ECC step. Needs to be a multiple of 2.
  49. - nand-ecc-step-size: integer representing the number of data bytes
  50. that are covered by a single ECC step. The driver
  51. supports 512 and 1024.
  52. The device tree may optionally contain sub-nodes describing partitions of the
  53. address space. See partition.txt for more detail.
  54. Examples:
  55. gpmi-nand@8000c000 {
  56. compatible = "fsl,imx28-gpmi-nand";
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. reg = <0x8000c000 2000>, <0x8000a000 2000>;
  60. reg-names = "gpmi-nand", "bch";
  61. interrupts = <41>;
  62. interrupt-names = "bch";
  63. dmas = <&dma_apbh 4>;
  64. dma-names = "rx-tx";
  65. partition@0 {
  66. ...
  67. };
  68. };