ti-gpmc.txt 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. Device tree bindings for OMAP general purpose memory controllers (GPMC)
  2. The actual devices are instantiated from the child nodes of a GPMC node.
  3. Required properties:
  4. - compatible: Should be set to one of the following:
  5. ti,omap2420-gpmc (omap2420)
  6. ti,omap2430-gpmc (omap2430)
  7. ti,omap3430-gpmc (omap3430 & omap3630)
  8. ti,omap4430-gpmc (omap4430 & omap4460 & omap543x)
  9. ti,am3352-gpmc (am335x devices)
  10. - reg: A resource specifier for the register space
  11. (see the example below)
  12. - ti,hwmods: Should be set to "ti,gpmc" until the DT transition is
  13. completed.
  14. - #address-cells: Must be set to 2 to allow memory address translation
  15. - #size-cells: Must be set to 1 to allow CS address passing
  16. - gpmc,num-cs: The maximum number of chip-select lines that controller
  17. can support.
  18. - gpmc,num-waitpins: The maximum number of wait pins that controller can
  19. support.
  20. - ranges: Must be set up to reflect the memory layout with four
  21. integer values for each chip-select line in use:
  22. <cs-number> 0 <physical address of mapping> <size>
  23. Currently, calculated values derived from the contents
  24. of the per-CS register GPMC_CONFIG7 (as set up by the
  25. bootloader) are used for the physical address decoding.
  26. As this will change in the future, filling correct
  27. values here is a requirement.
  28. Timing properties for child nodes. All are optional and default to 0.
  29. - gpmc,sync-clk-ps: Minimum clock period for synchronous mode, in picoseconds
  30. Chip-select signal timings (in nanoseconds) corresponding to GPMC_CONFIG2:
  31. - gpmc,cs-on-ns: Assertion time
  32. - gpmc,cs-rd-off-ns: Read deassertion time
  33. - gpmc,cs-wr-off-ns: Write deassertion time
  34. ADV signal timings (in nanoseconds) corresponding to GPMC_CONFIG3:
  35. - gpmc,adv-on-ns: Assertion time
  36. - gpmc,adv-rd-off-ns: Read deassertion time
  37. - gpmc,adv-wr-off-ns: Write deassertion time
  38. WE signals timings (in nanoseconds) corresponding to GPMC_CONFIG4:
  39. - gpmc,we-on-ns Assertion time
  40. - gpmc,we-off-ns: Deassertion time
  41. OE signals timings (in nanoseconds) corresponding to GPMC_CONFIG4:
  42. - gpmc,oe-on-ns: Assertion time
  43. - gpmc,oe-off-ns: Deassertion time
  44. Access time and cycle time timings (in nanoseconds) corresponding to
  45. GPMC_CONFIG5:
  46. - gpmc,page-burst-access-ns: Multiple access word delay
  47. - gpmc,access-ns: Start-cycle to first data valid delay
  48. - gpmc,rd-cycle-ns: Total read cycle time
  49. - gpmc,wr-cycle-ns: Total write cycle time
  50. - gpmc,bus-turnaround-ns: Turn-around time between successive accesses
  51. - gpmc,cycle2cycle-delay-ns: Delay between chip-select pulses
  52. - gpmc,clk-activation-ns: GPMC clock activation time
  53. - gpmc,wait-monitoring-ns: Start of wait monitoring with regard to valid
  54. data
  55. Boolean timing parameters. If property is present parameter enabled and
  56. disabled if omitted:
  57. - gpmc,adv-extra-delay: ADV signal is delayed by half GPMC clock
  58. - gpmc,cs-extra-delay: CS signal is delayed by half GPMC clock
  59. - gpmc,cycle2cycle-diffcsen: Add "cycle2cycle-delay" between successive
  60. accesses to a different CS
  61. - gpmc,cycle2cycle-samecsen: Add "cycle2cycle-delay" between successive
  62. accesses to the same CS
  63. - gpmc,oe-extra-delay: OE signal is delayed by half GPMC clock
  64. - gpmc,we-extra-delay: WE signal is delayed by half GPMC clock
  65. - gpmc,time-para-granularity: Multiply all access times by 2
  66. The following are only applicable to OMAP3+ and AM335x:
  67. - gpmc,wr-access-ns: In synchronous write mode, for single or
  68. burst accesses, defines the number of
  69. GPMC_FCLK cycles from start access time
  70. to the GPMC_CLK rising edge used by the
  71. memory device for the first data capture.
  72. - gpmc,wr-data-mux-bus-ns: In address-data multiplex mode, specifies
  73. the time when the first data is driven on
  74. the address-data bus.
  75. GPMC chip-select settings properties for child nodes. All are optional.
  76. - gpmc,burst-length Page/burst length. Must be 4, 8 or 16.
  77. - gpmc,burst-wrap Enables wrap bursting
  78. - gpmc,burst-read Enables read page/burst mode
  79. - gpmc,burst-write Enables write page/burst mode
  80. - gpmc,device-width Total width of device(s) connected to a GPMC
  81. chip-select in bytes. The GPMC supports 8-bit
  82. and 16-bit devices and so this property must be
  83. 1 or 2.
  84. - gpmc,mux-add-data Address and data multiplexing configuration.
  85. Valid values are 1 for address-address-data
  86. multiplexing mode and 2 for address-data
  87. multiplexing mode.
  88. - gpmc,sync-read Enables synchronous read. Defaults to asynchronous
  89. is this is not set.
  90. - gpmc,sync-write Enables synchronous writes. Defaults to asynchronous
  91. is this is not set.
  92. - gpmc,wait-pin Wait-pin used by client. Must be less than
  93. "gpmc,num-waitpins".
  94. - gpmc,wait-on-read Enables wait monitoring on reads.
  95. - gpmc,wait-on-write Enables wait monitoring on writes.
  96. Example for an AM33xx board:
  97. gpmc: gpmc@50000000 {
  98. compatible = "ti,am3352-gpmc";
  99. ti,hwmods = "gpmc";
  100. reg = <0x50000000 0x2000>;
  101. interrupts = <100>;
  102. gpmc,num-cs = <8>;
  103. gpmc,num-waitpins = <2>;
  104. #address-cells = <2>;
  105. #size-cells = <1>;
  106. ranges = <0 0 0x08000000 0x10000000>; /* CS0 @addr 0x8000000, size 0x10000000 */
  107. /* child nodes go here */
  108. };