atmel-nand.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Atmel NAND flash
  2. Required properties:
  3. - compatible : "atmel,at91rm9200-nand".
  4. - reg : should specify localbus address and size used for the chip,
  5. and if availlable the ECC.
  6. - atmel,nand-addr-offset : offset for the address latch.
  7. - atmel,nand-cmd-offset : offset for the command latch.
  8. - #address-cells, #size-cells : Must be present if the device has sub-nodes
  9. representing partitions.
  10. - gpios : specifies the gpio pins to control the NAND device. detect is an
  11. optional gpio and may be set to 0 if not present.
  12. Optional properties:
  13. - nand-ecc-mode : String, operation mode of the NAND ecc mode, soft by default.
  14. Supported values are: "none", "soft", "hw", "hw_syndrome", "hw_oob_first",
  15. "soft_bch".
  16. - nand-bus-width : 8 or 16 bus width if not present 8
  17. - nand-on-flash-bbt: boolean to enable on flash bbt option if not present false
  18. Examples:
  19. nand0: nand@40000000,0 {
  20. compatible = "atmel,at91rm9200-nand";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. reg = <0x40000000 0x10000000
  24. 0xffffe800 0x200
  25. >;
  26. atmel,nand-addr-offset = <21>; /* ale */
  27. atmel,nand-cmd-offset = <22>; /* cle */
  28. nand-on-flash-bbt;
  29. nand-ecc-mode = "soft";
  30. gpios = <&pioC 13 0 /* rdy */
  31. &pioC 14 0 /* nce */
  32. 0 /* cd */
  33. >;
  34. partition@0 {
  35. ...
  36. };
  37. };