w83627ehf.rst 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. Kernel driver w83627ehf
  2. =======================
  3. Supported chips:
  4. * Winbond W83627EHF/EHG (ISA access ONLY)
  5. Prefix: 'w83627ehf'
  6. Addresses scanned: ISA address retrieved from Super I/O registers
  7. Datasheet: not available
  8. * Winbond W83627DHG
  9. Prefix: 'w83627dhg'
  10. Addresses scanned: ISA address retrieved from Super I/O registers
  11. Datasheet: not available
  12. * Winbond W83627DHG-P
  13. Prefix: 'w83627dhg'
  14. Addresses scanned: ISA address retrieved from Super I/O registers
  15. Datasheet: not available
  16. * Winbond W83627UHG
  17. Prefix: 'w83627uhg'
  18. Addresses scanned: ISA address retrieved from Super I/O registers
  19. Datasheet: available from www.nuvoton.com
  20. * Winbond W83667HG
  21. Prefix: 'w83667hg'
  22. Addresses scanned: ISA address retrieved from Super I/O registers
  23. Datasheet: not available
  24. * Winbond W83667HG-B
  25. Prefix: 'w83667hg'
  26. Addresses scanned: ISA address retrieved from Super I/O registers
  27. Datasheet: Available from Nuvoton upon request
  28. * Nuvoton NCT6775F/W83667HG-I
  29. Prefix: 'nct6775'
  30. Addresses scanned: ISA address retrieved from Super I/O registers
  31. Datasheet: Available from Nuvoton upon request
  32. * Nuvoton NCT6776F
  33. Prefix: 'nct6776'
  34. Addresses scanned: ISA address retrieved from Super I/O registers
  35. Datasheet: Available from Nuvoton upon request
  36. Authors:
  37. - Jean Delvare <jdelvare@suse.de>
  38. - Yuan Mu (Winbond)
  39. - Rudolf Marek <r.marek@assembler.cz>
  40. - David Hubbard <david.c.hubbard@gmail.com>
  41. - Gong Jun <JGong@nuvoton.com>
  42. Description
  43. -----------
  44. This driver implements support for the Winbond W83627EHF, W83627EHG,
  45. W83627DHG, W83627DHG-P, W83627UHG, W83667HG, W83667HG-B, W83667HG-I
  46. (NCT6775F), and NCT6776F super I/O chips. We will refer to them collectively
  47. as Winbond chips.
  48. The chips implement 3 to 4 temperature sensors (9 for NCT6775F and NCT6776F),
  49. 2 to 5 fan rotation speed sensors, 8 to 10 analog voltage sensors, one VID
  50. (except for 627UHG), alarms with beep warnings (control unimplemented),
  51. and some automatic fan regulation strategies (plus manual fan control mode).
  52. The temperature sensor sources on W82677HG-B, NCT6775F, and NCT6776F are
  53. configurable. temp4 and higher attributes are only reported if its temperature
  54. source differs from the temperature sources of the already reported temperature
  55. sensors. The configured source for each of the temperature sensors is provided
  56. in tempX_label.
  57. Temperatures are measured in degrees Celsius and measurement resolution is 1
  58. degC for temp1 and 0.5 degC for temp2 and temp3. For temp4 and higher,
  59. resolution is 1 degC for W83667HG-B and 0.0 degC for NCT6775F and NCT6776F.
  60. An alarm is triggered when the temperature gets higher than high limit;
  61. it stays on until the temperature falls below the hysteresis value.
  62. Alarms are only supported for temp1, temp2, and temp3.
  63. Fan rotation speeds are reported in RPM (rotations per minute). An alarm is
  64. triggered if the rotation speed has dropped below a programmable limit. Fan
  65. readings can be divided by a programmable divider (1, 2, 4, 8, 16, 32, 64 or
  66. 128) to give the readings more range or accuracy. The driver sets the most
  67. suitable fan divisor itself. Some fans might not be present because they
  68. share pins with other functions.
  69. Voltage sensors (also known as IN sensors) report their values in millivolts.
  70. An alarm is triggered if the voltage has crossed a programmable minimum
  71. or maximum limit.
  72. The driver supports automatic fan control mode known as Thermal Cruise.
  73. In this mode, the chip attempts to keep the measured temperature in a
  74. predefined temperature range. If the temperature goes out of range, fan
  75. is driven slower/faster to reach the predefined range again.
  76. The mode works for fan1-fan4. Mapping of temperatures to pwm outputs is as
  77. follows::
  78. temp1 -> pwm1
  79. temp2 -> pwm2
  80. temp3 -> pwm3 (not on 627UHG)
  81. prog -> pwm4 (not on 667HG and 667HG-B; the programmable setting is not
  82. supported by the driver)
  83. /sys files
  84. ----------
  85. name
  86. this is a standard hwmon device entry, it contains the name of
  87. the device (see the prefix in the list of supported devices at
  88. the top of this file)
  89. pwm[1-4]
  90. this file stores PWM duty cycle or DC value (fan speed) in range:
  91. 0 (stop) to 255 (full)
  92. pwm[1-4]_enable
  93. this file controls mode of fan/temperature control:
  94. * 1 Manual mode, write to pwm file any value 0-255 (full speed)
  95. * 2 "Thermal Cruise" mode
  96. * 3 "Fan Speed Cruise" mode
  97. * 4 "Smart Fan III" mode
  98. * 5 "Smart Fan IV" mode
  99. SmartFan III mode is not supported on NCT6776F.
  100. SmartFan IV mode is configurable only if it was configured at system
  101. startup, and is only supported for W83677HG-B, NCT6775F, and NCT6776F.
  102. SmartFan IV operational parameters can not be configured at this time,
  103. and the various pwm attributes are not used in SmartFan IV mode.
  104. The attributes can be written to, which is useful if you plan to
  105. configure the system for a different pwm mode. However, the information
  106. returned when reading pwm attributes is unrelated to SmartFan IV
  107. operation.
  108. pwm[1-4]_mode
  109. controls if output is PWM or DC level
  110. * 0 DC output (0 - 12v)
  111. * 1 PWM output
  112. Thermal Cruise mode
  113. -------------------
  114. If the temperature is in the range defined by:
  115. pwm[1-4]_target
  116. set target temperature, unit millidegree Celsius
  117. (range 0 - 127000)
  118. pwm[1-4]_tolerance
  119. tolerance, unit millidegree Celsius (range 0 - 15000)
  120. there are no changes to fan speed. Once the temperature leaves the interval,
  121. fan speed increases (temp is higher) or decreases if lower than desired.
  122. There are defined steps and times, but not exported by the driver yet.
  123. pwm[1-4]_min_output
  124. minimum fan speed (range 1 - 255), when the temperature
  125. is below defined range.
  126. pwm[1-4]_stop_time
  127. how many milliseconds [ms] must elapse to switch
  128. corresponding fan off. (when the temperature was below
  129. defined range).
  130. pwm[1-4]_start_output
  131. minimum fan speed (range 1 - 255) when spinning up
  132. pwm[1-4]_step_output
  133. rate of fan speed change (1 - 255)
  134. pwm[1-4]_stop_output
  135. minimum fan speed (range 1 - 255) when spinning down
  136. pwm[1-4]_max_output
  137. maximum fan speed (range 1 - 255), when the temperature
  138. is above defined range.
  139. Note: last six functions are influenced by other control bits, not yet exported
  140. by the driver, so a change might not have any effect.
  141. Implementation Details
  142. ----------------------
  143. Future driver development should bear in mind that the following registers have
  144. different functions on the 627EHF and the 627DHG. Some registers also have
  145. different power-on default values, but BIOS should already be loading
  146. appropriate defaults. Note that bank selection must be performed as is currently
  147. done in the driver for all register addresses.
  148. ========================= =====================================================
  149. Register(s) Meaning
  150. ========================= =====================================================
  151. 0x49 only on DHG, selects temperature source for AUX fan,
  152. CPU fan0
  153. 0x4a not completely documented for the EHF and the DHG
  154. documentation assigns different behavior to bits 7
  155. and 6, including extending the temperature input
  156. selection to SmartFan I, not just SmartFan III.
  157. Testing on the EHF will reveal whether they are
  158. compatible or not.
  159. 0x58 Chip ID: 0xa1=EHF 0xc1=DHG
  160. 0x5e only on DHG, has bits to enable "current mode"
  161. temperature detection and critical temperature
  162. protection
  163. 0x45b only on EHF, bit 3, vin4 alarm (EHF supports 10
  164. inputs, only 9 on DHG)
  165. 0x552 only on EHF, vin4
  166. 0x558 only on EHF, vin4 high limit
  167. 0x559 only on EHF, vin4 low limit
  168. 0x6b only on DHG, SYS fan critical temperature
  169. 0x6c only on DHG, CPU fan0 critical temperature
  170. 0x6d only on DHG, AUX fan critical temperature
  171. 0x6e only on DHG, CPU fan1 critical temperature
  172. 0x50-0x55 and 0x650-0x657 marked as:
  173. - "Test Register" for the EHF
  174. - "Reserved Register" for the DHG
  175. ========================= =====================================================
  176. The DHG also supports PECI, where the DHG queries Intel CPU temperatures, and
  177. the ICH8 southbridge gets that data via PECI from the DHG, so that the
  178. southbridge drives the fans. And the DHG supports SST, a one-wire serial bus.
  179. The DHG-P has an additional automatic fan speed control mode named Smart Fan
  180. (TM) III+. This mode is not yet supported by the driver.