lpc32xx-slc.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. NXP LPC32xx SoC NAND SLC controller
  2. Required properties:
  3. - compatible: "nxp,lpc3220-slc"
  4. - reg: Address and size of the controller
  5. - nand-on-flash-bbt: Use bad block table on flash
  6. - gpios: GPIO specification for NAND write protect
  7. The following required properties are very controller specific. See the LPC32xx
  8. User Manual:
  9. - nxp,wdr-clks: Delay before Ready signal is tested on write (W_RDY)
  10. - nxp,rdr-clks: Delay before Ready signal is tested on read (R_RDY)
  11. (The following values are specified in Hz, to make them independent of actual
  12. clock speed:)
  13. - nxp,wwidth: Write pulse width (W_WIDTH)
  14. - nxp,whold: Write hold time (W_HOLD)
  15. - nxp,wsetup: Write setup time (W_SETUP)
  16. - nxp,rwidth: Read pulse width (R_WIDTH)
  17. - nxp,rhold: Read hold time (R_HOLD)
  18. - nxp,rsetup: Read setup time (R_SETUP)
  19. Optional subnodes:
  20. - Partitions, see Documentation/devicetree/bindings/mtd/partition.txt
  21. Example:
  22. slc: flash@20020000 {
  23. compatible = "nxp,lpc3220-slc";
  24. reg = <0x20020000 0x1000>;
  25. #address-cells = <1>;
  26. #size-cells = <1>;
  27. nxp,wdr-clks = <14>;
  28. nxp,wwidth = <40000000>;
  29. nxp,whold = <100000000>;
  30. nxp,wsetup = <100000000>;
  31. nxp,rdr-clks = <14>;
  32. nxp,rwidth = <40000000>;
  33. nxp,rhold = <66666666>;
  34. nxp,rsetup = <100000000>;
  35. nand-on-flash-bbt;
  36. gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */
  37. mtd0@00000000 {
  38. label = "phy3250-boot";
  39. reg = <0x00000000 0x00064000>;
  40. read-only;
  41. };
  42. ...
  43. };