hisi504-nand.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Hisilicon Hip04 Soc NAND controller DT binding
  2. Required properties:
  3. - compatible: Should be "hisilicon,504-nfc".
  4. - reg: The first contains base physical address and size of
  5. NAND controller's registers. The second contains base
  6. physical address and size of NAND controller's buffer.
  7. - interrupts: Interrupt number for nfc.
  8. - nand-bus-width: See nand.txt.
  9. - nand-ecc-mode: Support none and hw ecc mode.
  10. - #address-cells: Partition address, should be set 1.
  11. - #size-cells: Partition size, should be set 1.
  12. Optional properties:
  13. - nand-ecc-strength: Number of bits to correct per ECC step.
  14. - nand-ecc-step-size: Number of data bytes covered by a single ECC step.
  15. The following ECC strength and step size are currently supported:
  16. - nand-ecc-strength = <16>, nand-ecc-step-size = <1024>
  17. Flash chip may optionally contain additional sub-nodes describing partitions of
  18. the address space. See partition.txt for more detail.
  19. Example:
  20. nand: nand@4020000 {
  21. compatible = "hisilicon,504-nfc";
  22. reg = <0x4020000 0x10000>, <0x5000000 0x1000>;
  23. interrupts = <0 379 4>;
  24. nand-bus-width = <8>;
  25. nand-ecc-mode = "hw";
  26. nand-ecc-strength = <16>;
  27. nand-ecc-step-size = <1024>;
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. partition@0 {
  31. label = "nand_text";
  32. reg = <0x00000000 0x00400000>;
  33. };
  34. ...
  35. };