upm-nand.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Freescale Localbus UPM programmed to work with NAND flash
  2. Required properties:
  3. - compatible : "fsl,upm-nand".
  4. - reg : should specify localbus chip select and size used for the chip.
  5. - fsl,upm-addr-offset : UPM pattern offset for the address latch.
  6. - fsl,upm-cmd-offset : UPM pattern offset for the command latch.
  7. Optional properties:
  8. - fsl,upm-wait-flags : add chip-dependent short delays after running the
  9. UPM pattern (0x1), after writing a data byte (0x2) or after
  10. writing out a buffer (0x4).
  11. - fsl,upm-addr-line-cs-offsets : address offsets for multi-chip support.
  12. The corresponding address lines are used to select the chip.
  13. - gpios : may specify optional GPIOs connected to the Ready-Not-Busy pins
  14. (R/B#). For multi-chip devices, "n" GPIO definitions are required
  15. according to the number of chips.
  16. - chip-delay : chip dependent delay for transfering data from array to
  17. read registers (tR). Required if property "gpios" is not used
  18. (R/B# pins not connected).
  19. Examples:
  20. upm@1,0 {
  21. compatible = "fsl,upm-nand";
  22. reg = <1 0 1>;
  23. fsl,upm-addr-offset = <16>;
  24. fsl,upm-cmd-offset = <8>;
  25. gpios = <&qe_pio_e 18 0>;
  26. flash {
  27. #address-cells = <1>;
  28. #size-cells = <1>;
  29. compatible = "...";
  30. partition@0 {
  31. ...
  32. };
  33. };
  34. };
  35. upm@3,0 {
  36. #address-cells = <0>;
  37. #size-cells = <0>;
  38. compatible = "tqc,tqm8548-upm-nand", "fsl,upm-nand";
  39. reg = <3 0x0 0x800>;
  40. fsl,upm-addr-offset = <0x10>;
  41. fsl,upm-cmd-offset = <0x08>;
  42. /* Multi-chip NAND device */
  43. fsl,upm-addr-line-cs-offsets = <0x0 0x200>;
  44. fsl,upm-wait-flags = <0x5>;
  45. chip-delay = <25>; // in micro-seconds
  46. nand@0 {
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. partition@0 {
  50. label = "fs";
  51. reg = <0x00000000 0x10000000>;
  52. };
  53. };
  54. };