vf610-nfc.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Freescale's NAND flash controller (NFC)
  2. This variant of the Freescale NAND flash controller (NFC) can be found on
  3. Vybrid (vf610), MPC5125, MCF54418 and Kinetis K70.
  4. Required properties:
  5. - compatible: Should be set to "fsl,vf610-nfc".
  6. - reg: address range of the NFC.
  7. - interrupts: interrupt of the NFC.
  8. - #address-cells: shall be set to 1. Encode the nand CS.
  9. - #size-cells : shall be set to 0.
  10. - assigned-clocks: main clock from the SoC, for Vybrid <&clks VF610_CLK_NFC>;
  11. - assigned-clock-rates: The NAND bus timing is derived from this clock
  12. rate and should not exceed maximum timing for any NAND memory chip
  13. in a board stuffing. Typical NAND memory timings derived from this
  14. clock are found in the SoC hardware reference manual. Furthermore,
  15. there might be restrictions on maximum rates when using hardware ECC.
  16. - #address-cells, #size-cells : Must be present if the device has sub-nodes
  17. representing partitions.
  18. Required children nodes:
  19. Children nodes represent the available nand chips. Currently the driver can
  20. only handle one NAND chip.
  21. Required properties:
  22. - compatible: Should be set to "fsl,vf610-nfc-cs".
  23. - nand-bus-width: see nand.txt
  24. - nand-ecc-mode: see nand.txt
  25. Required properties for hardware ECC:
  26. - nand-ecc-strength: supported strengths are 24 and 32 bit (see nand.txt)
  27. - nand-ecc-step-size: step size equals page size, currently only 2k pages are
  28. supported
  29. - nand-on-flash-bbt: see nand.txt
  30. Example:
  31. nfc: nand@400e0000 {
  32. compatible = "fsl,vf610-nfc";
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. reg = <0x400e0000 0x4000>;
  36. interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
  37. clocks = <&clks VF610_CLK_NFC>;
  38. clock-names = "nfc";
  39. assigned-clocks = <&clks VF610_CLK_NFC>;
  40. assigned-clock-rates = <33000000>;
  41. nand@0 {
  42. compatible = "fsl,vf610-nfc-nandcs";
  43. reg = <0>;
  44. nand-bus-width = <8>;
  45. nand-ecc-mode = "hw";
  46. nand-ecc-strength = <32>;
  47. nand-ecc-step-size = <2048>;
  48. nand-on-flash-bbt;
  49. };
  50. };