asc7621 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. Kernel driver asc7621
  2. ==================
  3. Supported chips:
  4. Andigilog aSC7621 and aSC7621a
  5. Prefix: 'asc7621'
  6. Addresses scanned: I2C 0x2c, 0x2d, 0x2e
  7. Datasheet: http://www.fairview5.com/linux/asc7621/asc7621.pdf
  8. Author:
  9. George Joseph
  10. Description provided by Dave Pivin @ Andigilog:
  11. Andigilog has both the PECI and pre-PECI versions of the Heceta-6, as
  12. Intel calls them. Heceta-6e has high frequency PWM and Heceta-6p has
  13. added PECI and a 4th thermal zone. The Andigilog aSC7611 is the
  14. Heceta-6e part and aSC7621 is the Heceta-6p part. They are both in
  15. volume production, shipping to Intel and their subs.
  16. We have enhanced both parts relative to the governing Intel
  17. specification. First enhancement is temperature reading resolution. We
  18. have used registers below 20h for vendor-specific functions in addition
  19. to those in the Intel-specified vendor range.
  20. Our conversion process produces a result that is reported as two bytes.
  21. The fan speed control uses this finer value to produce a "step-less" fan
  22. PWM output. These two bytes are "read-locked" to guarantee that once a
  23. high or low byte is read, the other byte is locked-in until after the
  24. next read of any register. So to get an atomic reading, read high or low
  25. byte, then the very next read should be the opposite byte. Our data
  26. sheet says 10-bits of resolution, although you may find the lower bits
  27. are active, they are not necessarily reliable or useful externally. We
  28. chose not to mask them.
  29. We employ significant filtering that is user tunable as described in the
  30. data sheet. Our temperature reports and fan PWM outputs are very smooth
  31. when compared to the competition, in addition to the higher resolution
  32. temperature reports. The smoother PWM output does not require user
  33. intervention.
  34. We offer GPIO features on the former VID pins. These are open-drain
  35. outputs or inputs and may be used as general purpose I/O or as alarm
  36. outputs that are based on temperature limits. These are in 19h and 1Ah.
  37. We offer flexible mapping of temperature readings to thermal zones. Any
  38. temperature may be mapped to any zone, which has a default assignment
  39. that follows Intel's specs.
  40. Since there is a fan to zone assignment that allows for the "hotter" of
  41. a set of zones to control the PWM of an individual fan, but there is no
  42. indication to the user, we have added an indicator that shows which zone
  43. is currently controlling the PWM for a given fan. This is in register
  44. 00h.
  45. Both remote diode temperature readings may be given an offset value such
  46. that the reported reading as well as the temperature used to determine
  47. PWM may be offset for system calibration purposes.
  48. PECI Extended configuration allows for having more than two domains per
  49. PECI address and also provides an enabling function for each PECI
  50. address. One could use our flexible zone assignment to have a zone
  51. assigned to up to 4 PECI addresses. This is not possible in the default
  52. Intel configuration. This would be useful in multi-CPU systems with
  53. individual fans on each that would benefit from individual fan control.
  54. This is in register 0Eh.
  55. The tachometer measurement system is flexible and able to adapt to many
  56. fan types. We can also support pulse-stretched PWM so that 3-wire fans
  57. may be used. These characteristics are in registers 04h to 07h.
  58. Finally, we have added a tach disable function that turns off the tach
  59. measurement system for individual tachs in order to save power. That is
  60. in register 75h.
  61. --
  62. aSC7621 Product Description
  63. The aSC7621 has a two wire digital interface compatible with SMBus 2.0.
  64. Using a 10-bit ADC, the aSC7621 measures the temperature of two remote diode
  65. connected transistors as well as its own die. Support for Platform
  66. Environmental Control Interface (PECI) is included.
  67. Using temperature information from these four zones, an automatic fan speed
  68. control algorithm is employed to minimize acoustic impact while achieving
  69. recommended CPU temperature under varying operational loads.
  70. To set fan speed, the aSC7621 has three independent pulse width modulation
  71. (PWM) outputs that are controlled by one, or a combination of three,
  72. temperature zones. Both high- and low-frequency PWM ranges are supported.
  73. The aSC7621 also includes a digital filter that can be invoked to smooth
  74. temperature readings for better control of fan speed and minimum acoustic
  75. impact.
  76. The aSC7621 has tachometer inputs to measure fan speed on up to four fans.
  77. Limit and status registers for all measured values are included to alert
  78. the system host that any measurements are outside of programmed limits
  79. via status registers.
  80. System voltages of VCCP, 2.5V, 3.3V, 5.0V, and 12V motherboard power are
  81. monitored efficiently with internal scaling resistors.
  82. Features
  83. - Supports PECI interface and monitors internal and remote thermal diodes
  84. - 2-wire, SMBus 2.0 compliant, serial interface
  85. - 10-bit ADC
  86. - Monitors VCCP, 2.5V, 3.3V, 5.0V, and 12V motherboard/processor supplies
  87. - Programmable autonomous fan control based on temperature readings
  88. - Noise filtering of temperature reading for fan speed control
  89. - 0.25C digital temperature sensor resolution
  90. - 3 PWM fan speed control outputs for 2-, 3- or 4-wire fans and up to 4 fan
  91. tachometer inputs
  92. - Enhanced measured temperature to Temperature Zone assignment.
  93. - Provides high and low PWM frequency ranges
  94. - 3 GPIO pins for custom use
  95. - 24-Lead QSOP package
  96. Configuration Notes
  97. ===================
  98. Except where noted below, the sysfs entries created by this driver follow
  99. the standards defined in "sysfs-interface".
  100. temp1_source
  101. 0 (default) peci_legacy = 0, Remote 1 Temperature
  102. peci_legacy = 1, PECI Processor Temperature 0
  103. 1 Remote 1 Temperature
  104. 2 Remote 2 Temperature
  105. 3 Internal Temperature
  106. 4 PECI Processor Temperature 0
  107. 5 PECI Processor Temperature 1
  108. 6 PECI Processor Temperature 2
  109. 7 PECI Processor Temperature 3
  110. temp2_source
  111. 0 (default) Internal Temperature
  112. 1 Remote 1 Temperature
  113. 2 Remote 2 Temperature
  114. 3 Internal Temperature
  115. 4 PECI Processor Temperature 0
  116. 5 PECI Processor Temperature 1
  117. 6 PECI Processor Temperature 2
  118. 7 PECI Processor Temperature 3
  119. temp3_source
  120. 0 (default) Remote 2 Temperature
  121. 1 Remote 1 Temperature
  122. 2 Remote 2 Temperature
  123. 3 Internal Temperature
  124. 4 PECI Processor Temperature 0
  125. 5 PECI Processor Temperature 1
  126. 6 PECI Processor Temperature 2
  127. 7 PECI Processor Temperature 3
  128. temp4_source
  129. 0 (default) peci_legacy = 0, PECI Processor Temperature 0
  130. peci_legacy = 1, Remote 1 Temperature
  131. 1 Remote 1 Temperature
  132. 2 Remote 2 Temperature
  133. 3 Internal Temperature
  134. 4 PECI Processor Temperature 0
  135. 5 PECI Processor Temperature 1
  136. 6 PECI Processor Temperature 2
  137. 7 PECI Processor Temperature 3
  138. temp[1-4]_smoothing_enable
  139. temp[1-4]_smoothing_time
  140. Smooths spikes in temp readings caused by noise.
  141. Valid values in milliseconds are:
  142. 35000
  143. 17600
  144. 11800
  145. 7000
  146. 4400
  147. 3000
  148. 1600
  149. 800
  150. temp[1-4]_crit
  151. When the corresponding zone temperature reaches this value,
  152. ALL pwm outputs will got to 100%.
  153. temp[5-8]_input
  154. temp[5-8]_enable
  155. The aSC7621 can also read temperatures provided by the processor
  156. via the PECI bus. Usually these are "core" temps and are relative
  157. to the point where the automatic thermal control circuit starts
  158. throttling. This means that these are usually negative numbers.
  159. pwm[1-3]_enable
  160. 0 Fan off.
  161. 1 Fan on manual control.
  162. 2 Fan on automatic control and will run at the minimum pwm
  163. if the temperature for the zone is below the minimum.
  164. 3 Fan on automatic control but will be off if the temperature
  165. for the zone is below the minimum.
  166. 4-254 Ignored.
  167. 255 Fan on full.
  168. pwm[1-3]_auto_channels
  169. Bitmap as described in sysctl-interface with the following
  170. exceptions...
  171. Only the following combination of zones (and their corresponding masks)
  172. are valid:
  173. 1
  174. 2
  175. 3
  176. 2,3
  177. 1,2,3
  178. 4
  179. 1,2,3,4
  180. Special values:
  181. 0 Disabled.
  182. 16 Fan on manual control.
  183. 31 Fan on full.
  184. pwm[1-3]_invert
  185. When set, inverts the meaning of pwm[1-3].
  186. i.e. when pwm = 0, the fan will be on full and
  187. when pwm = 255 the fan will be off.
  188. pwm[1-3]_freq
  189. PWM frequency in Hz
  190. Valid values in Hz are:
  191. 10
  192. 15
  193. 23
  194. 30 (default)
  195. 38
  196. 47
  197. 62
  198. 94
  199. 23000
  200. 24000
  201. 25000
  202. 26000
  203. 27000
  204. 28000
  205. 29000
  206. 30000
  207. Setting any other value will be ignored.
  208. peci_enable
  209. Enables or disables PECI
  210. peci_avg
  211. Input filter average time.
  212. 0 0 Sec. (no Smoothing) (default)
  213. 1 0.25 Sec.
  214. 2 0.5 Sec.
  215. 3 1.0 Sec.
  216. 4 2.0 Sec.
  217. 5 4.0 Sec.
  218. 6 8.0 Sec.
  219. 7 0.0 Sec.
  220. peci_legacy
  221. 0 Standard Mode (default)
  222. Remote Diode 1 reading is associated with
  223. Temperature Zone 1, PECI is associated with
  224. Zone 4
  225. 1 Legacy Mode
  226. PECI is associated with Temperature Zone 1,
  227. Remote Diode 1 is associated with Zone 4
  228. peci_diode
  229. Diode filter
  230. 0 0.25 Sec.
  231. 1 1.1 Sec.
  232. 2 2.4 Sec. (default)
  233. 3 3.4 Sec.
  234. 4 5.0 Sec.
  235. 5 6.8 Sec.
  236. 6 10.2 Sec.
  237. 7 16.4 Sec.
  238. peci_4domain
  239. Four domain enable
  240. 0 1 or 2 Domains for enabled processors (default)
  241. 1 3 or 4 Domains for enabled processors
  242. peci_domain
  243. Domain
  244. 0 Processor contains a single domain (0) (default)
  245. 1 Processor contains two domains (0,1)