gpmc-nand.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Device tree bindings for GPMC connected NANDs
  2. GPMC connected NAND (found on OMAP boards) are represented as child nodes of
  3. the GPMC controller with a name of "nand".
  4. All timing relevant properties as well as generic gpmc child properties are
  5. explained in a separate documents - please refer to
  6. Documentation/devicetree/bindings/bus/ti-gpmc.txt
  7. For NAND specific properties such as ECC modes or bus width, please refer to
  8. Documentation/devicetree/bindings/mtd/nand.txt
  9. Required properties:
  10. - reg: The CS line the peripheral is connected to
  11. Optional properties:
  12. - nand-bus-width: Set this numeric value to 16 if the hardware
  13. is wired that way. If not specified, a bus
  14. width of 8 is assumed.
  15. - ti,nand-ecc-opt: A string setting the ECC layout to use. One of:
  16. "sw" Software method (default)
  17. "hw" Hardware method
  18. "hw-romcode" gpmc hamming mode method & romcode layout
  19. "bch4" 4-bit BCH ecc code
  20. "bch8" 8-bit BCH ecc code
  21. For inline partiton table parsing (optional):
  22. - #address-cells: should be set to 1
  23. - #size-cells: should be set to 1
  24. Example for an AM33xx board:
  25. gpmc: gpmc@50000000 {
  26. compatible = "ti,am3352-gpmc";
  27. ti,hwmods = "gpmc";
  28. reg = <0x50000000 0x1000000>;
  29. interrupts = <100>;
  30. gpmc,num-cs = <8>;
  31. gpmc,num-waitpins = <2>;
  32. #address-cells = <2>;
  33. #size-cells = <1>;
  34. ranges = <0 0 0x08000000 0x2000>; /* CS0: NAND */
  35. nand@0,0 {
  36. reg = <0 0 0>; /* CS0, offset 0 */
  37. nand-bus-width = <16>;
  38. ti,nand-ecc-opt = "bch8";
  39. gpmc,sync-clk = <0>;
  40. gpmc,cs-on = <0>;
  41. gpmc,cs-rd-off = <44>;
  42. gpmc,cs-wr-off = <44>;
  43. gpmc,adv-on = <6>;
  44. gpmc,adv-rd-off = <34>;
  45. gpmc,adv-wr-off = <44>;
  46. gpmc,we-off = <40>;
  47. gpmc,oe-off = <54>;
  48. gpmc,access = <64>;
  49. gpmc,rd-cycle = <82>;
  50. gpmc,wr-cycle = <82>;
  51. gpmc,wr-access = <40>;
  52. gpmc,wr-data-mux-bus = <0>;
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. /* partitions go here */
  56. };
  57. };