omap-gpmc.txt 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. - interrupt-controller: The GPMC driver implements and interrupt controller for
  29. the NAND events "fifoevent" and "termcount" plus the
  30. rising/falling edges on the GPMC_WAIT pins.
  31. The interrupt number mapping is as follows
  32. 0 - NAND_fifoevent
  33. 1 - NAND_termcount
  34. 2 - GPMC_WAIT0 pin edge
  35. 3 - GPMC_WAIT1 pin edge, and so on.
  36. - interrupt-cells: Must be set to 2
  37. - gpio-controller: The GPMC driver implements a GPIO controller for the
  38. GPMC WAIT pins that can be used as general purpose inputs.
  39. 0 maps to GPMC_WAIT0 pin.
  40. - gpio-cells: Must be set to 2
  41. Required properties when using NAND prefetch dma:
  42. - dmas GPMC NAND prefetch dma channel
  43. - dma-names Must be set to "rxtx"
  44. Timing properties for child nodes. All are optional and default to 0.
  45. - gpmc,sync-clk-ps: Minimum clock period for synchronous mode, in picoseconds
  46. Chip-select signal timings (in nanoseconds) corresponding to GPMC_CONFIG2:
  47. - gpmc,cs-on-ns: Assertion time
  48. - gpmc,cs-rd-off-ns: Read deassertion time
  49. - gpmc,cs-wr-off-ns: Write deassertion time
  50. ADV signal timings (in nanoseconds) corresponding to GPMC_CONFIG3:
  51. - gpmc,adv-on-ns: Assertion time
  52. - gpmc,adv-rd-off-ns: Read deassertion time
  53. - gpmc,adv-wr-off-ns: Write deassertion time
  54. - gpmc,adv-aad-mux-on-ns: Assertion time for AAD
  55. - gpmc,adv-aad-mux-rd-off-ns: Read deassertion time for AAD
  56. - gpmc,adv-aad-mux-wr-off-ns: Write deassertion time for AAD
  57. WE signals timings (in nanoseconds) corresponding to GPMC_CONFIG4:
  58. - gpmc,we-on-ns Assertion time
  59. - gpmc,we-off-ns: Deassertion time
  60. OE signals timings (in nanoseconds) corresponding to GPMC_CONFIG4:
  61. - gpmc,oe-on-ns: Assertion time
  62. - gpmc,oe-off-ns: Deassertion time
  63. - gpmc,oe-aad-mux-on-ns: Assertion time for AAD
  64. - gpmc,oe-aad-mux-off-ns: Deassertion time for AAD
  65. Access time and cycle time timings (in nanoseconds) corresponding to
  66. GPMC_CONFIG5:
  67. - gpmc,page-burst-access-ns: Multiple access word delay
  68. - gpmc,access-ns: Start-cycle to first data valid delay
  69. - gpmc,rd-cycle-ns: Total read cycle time
  70. - gpmc,wr-cycle-ns: Total write cycle time
  71. - gpmc,bus-turnaround-ns: Turn-around time between successive accesses
  72. - gpmc,cycle2cycle-delay-ns: Delay between chip-select pulses
  73. - gpmc,clk-activation-ns: GPMC clock activation time
  74. - gpmc,wait-monitoring-ns: Start of wait monitoring with regard to valid
  75. data
  76. Boolean timing parameters. If property is present parameter enabled and
  77. disabled if omitted:
  78. - gpmc,adv-extra-delay: ADV signal is delayed by half GPMC clock
  79. - gpmc,cs-extra-delay: CS signal is delayed by half GPMC clock
  80. - gpmc,cycle2cycle-diffcsen: Add "cycle2cycle-delay" between successive
  81. accesses to a different CS
  82. - gpmc,cycle2cycle-samecsen: Add "cycle2cycle-delay" between successive
  83. accesses to the same CS
  84. - gpmc,oe-extra-delay: OE signal is delayed by half GPMC clock
  85. - gpmc,we-extra-delay: WE signal is delayed by half GPMC clock
  86. - gpmc,time-para-granularity: Multiply all access times by 2
  87. The following are only applicable to OMAP3+ and AM335x:
  88. - gpmc,wr-access-ns: In synchronous write mode, for single or
  89. burst accesses, defines the number of
  90. GPMC_FCLK cycles from start access time
  91. to the GPMC_CLK rising edge used by the
  92. memory device for the first data capture.
  93. - gpmc,wr-data-mux-bus-ns: In address-data multiplex mode, specifies
  94. the time when the first data is driven on
  95. the address-data bus.
  96. GPMC chip-select settings properties for child nodes. All are optional.
  97. - gpmc,burst-length Page/burst length. Must be 4, 8 or 16.
  98. - gpmc,burst-wrap Enables wrap bursting
  99. - gpmc,burst-read Enables read page/burst mode
  100. - gpmc,burst-write Enables write page/burst mode
  101. - gpmc,device-width Total width of device(s) connected to a GPMC
  102. chip-select in bytes. The GPMC supports 8-bit
  103. and 16-bit devices and so this property must be
  104. 1 or 2.
  105. - gpmc,mux-add-data Address and data multiplexing configuration.
  106. Valid values are 1 for address-address-data
  107. multiplexing mode and 2 for address-data
  108. multiplexing mode.
  109. - gpmc,sync-read Enables synchronous read. Defaults to asynchronous
  110. is this is not set.
  111. - gpmc,sync-write Enables synchronous writes. Defaults to asynchronous
  112. is this is not set.
  113. - gpmc,wait-pin Wait-pin used by client. Must be less than
  114. "gpmc,num-waitpins".
  115. - gpmc,wait-on-read Enables wait monitoring on reads.
  116. - gpmc,wait-on-write Enables wait monitoring on writes.
  117. Example for an AM33xx board:
  118. gpmc: gpmc@50000000 {
  119. compatible = "ti,am3352-gpmc";
  120. ti,hwmods = "gpmc";
  121. reg = <0x50000000 0x2000>;
  122. interrupts = <100>;
  123. dmas = <&edma 52 0>;
  124. dma-names = "rxtx";
  125. gpmc,num-cs = <8>;
  126. gpmc,num-waitpins = <2>;
  127. #address-cells = <2>;
  128. #size-cells = <1>;
  129. ranges = <0 0 0x08000000 0x10000000>; /* CS0 @addr 0x8000000, size 0x10000000 */
  130. interrupt-controller;
  131. #interrupt-cells = <2>;
  132. gpio-controller;
  133. #gpio-cells = <2>;
  134. /* child nodes go here */
  135. };