nvidia,tegra20-nand.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. NAND Flash
  2. ----------
  3. (there isn't yet a generic binding in Linux, so this describes what is in
  4. U-Boot. There should not be Linux-specific or U-Boot specific binding, just
  5. a binding that describes this hardware. But agreeing a binding in Linux in
  6. the absence of a driver may be beyond my powers.)
  7. The device node for a NAND flash device is as follows:
  8. Required properties :
  9. - compatible : Should be "manufacturer,device", "nand-flash"
  10. This node should sit inside its controller.
  11. Nvidia NAND Controller
  12. ----------------------
  13. The device node for a NAND flash controller is as follows:
  14. Optional properties:
  15. nvidia,wp-gpios : GPIO of write-protect line, three cells in the format:
  16. phandle, parameter, flags
  17. nvidia,nand-width : bus width of the NAND device in bits
  18. - nvidia,nand-timing : Timing parameters for the NAND. Each is in ns.
  19. Order is: MAX_TRP_TREA, TWB, Max(tCS, tCH, tALS, tALH),
  20. TWHR, Max(tCS, tCH, tALS, tALH), TWH, TWP, TRH, TADL
  21. MAX_TRP_TREA is:
  22. non-EDO mode: Max(tRP, tREA) + 6ns
  23. EDO mode: tRP timing
  24. The 'reg' property should provide the chip select used by the flash chip.
  25. Example
  26. -------
  27. nand-controller@0x70008000 {
  28. compatible = "nvidia,tegra20-nand";
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. nvidia,wp-gpios = <&gpio 59 0>; /* PH3 */
  32. nvidia,nand-width = <8>;
  33. nvidia,timing = <26 100 20 80 20 10 12 10 70>;
  34. nand@0 {
  35. reg = <0>;
  36. compatible = "hynix,hy27uf4g2b", "nand-flash";
  37. };
  38. };