w83627ehf 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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 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 - this is a standard hwmon device entry, it contains the name of
  86. the device (see the prefix in the list of supported devices at
  87. the top of this file)
  88. pwm[1-4] - this file stores PWM duty cycle or DC value (fan speed) in range:
  89. 0 (stop) to 255 (full)
  90. pwm[1-4]_enable - this file controls mode of fan/temperature control:
  91. * 1 Manual mode, write to pwm file any value 0-255 (full speed)
  92. * 2 "Thermal Cruise" mode
  93. * 3 "Fan Speed Cruise" mode
  94. * 4 "Smart Fan III" mode
  95. * 5 "Smart Fan IV" mode
  96. SmartFan III mode is not supported on NCT6776F.
  97. SmartFan IV mode is configurable only if it was configured at system
  98. startup, and is only supported for W83677HG-B, NCT6775F, and NCT6776F.
  99. SmartFan IV operational parameters can not be configured at this time,
  100. and the various pwm attributes are not used in SmartFan IV mode.
  101. The attributes can be written to, which is useful if you plan to
  102. configure the system for a different pwm mode. However, the information
  103. returned when reading pwm attributes is unrelated to SmartFan IV
  104. operation.
  105. pwm[1-4]_mode - controls if output is PWM or DC level
  106. * 0 DC output (0 - 12v)
  107. * 1 PWM output
  108. Thermal Cruise mode
  109. -------------------
  110. If the temperature is in the range defined by:
  111. pwm[1-4]_target - set target temperature, unit millidegree Celsius
  112. (range 0 - 127000)
  113. pwm[1-4]_tolerance - tolerance, unit millidegree Celsius (range 0 - 15000)
  114. there are no changes to fan speed. Once the temperature leaves the interval,
  115. fan speed increases (temp is higher) or decreases if lower than desired.
  116. There are defined steps and times, but not exported by the driver yet.
  117. pwm[1-4]_min_output - minimum fan speed (range 1 - 255), when the temperature
  118. is below defined range.
  119. pwm[1-4]_stop_time - how many milliseconds [ms] must elapse to switch
  120. corresponding fan off. (when the temperature was below
  121. defined range).
  122. pwm[1-4]_start_output-minimum fan speed (range 1 - 255) when spinning up
  123. pwm[1-4]_step_output- rate of fan speed change (1 - 255)
  124. pwm[1-4]_stop_output- minimum fan speed (range 1 - 255) when spinning down
  125. pwm[1-4]_max_output - maximum fan speed (range 1 - 255), when the temperature
  126. is above defined range.
  127. Note: last six functions are influenced by other control bits, not yet exported
  128. by the driver, so a change might not have any effect.
  129. Implementation Details
  130. ----------------------
  131. Future driver development should bear in mind that the following registers have
  132. different functions on the 627EHF and the 627DHG. Some registers also have
  133. different power-on default values, but BIOS should already be loading
  134. appropriate defaults. Note that bank selection must be performed as is currently
  135. done in the driver for all register addresses.
  136. 0x49: only on DHG, selects temperature source for AUX fan, CPU fan0
  137. 0x4a: not completely documented for the EHF and the DHG documentation assigns
  138. different behavior to bits 7 and 6, including extending the temperature
  139. input selection to SmartFan I, not just SmartFan III. Testing on the EHF
  140. will reveal whether they are compatible or not.
  141. 0x58: Chip ID: 0xa1=EHF 0xc1=DHG
  142. 0x5e: only on DHG, has bits to enable "current mode" temperature detection and
  143. critical temperature protection
  144. 0x45b: only on EHF, bit 3, vin4 alarm (EHF supports 10 inputs, only 9 on DHG)
  145. 0x552: only on EHF, vin4
  146. 0x558: only on EHF, vin4 high limit
  147. 0x559: only on EHF, vin4 low limit
  148. 0x6b: only on DHG, SYS fan critical temperature
  149. 0x6c: only on DHG, CPU fan0 critical temperature
  150. 0x6d: only on DHG, AUX fan critical temperature
  151. 0x6e: only on DHG, CPU fan1 critical temperature
  152. 0x50-0x55 and 0x650-0x657 are marked "Test Register" for the EHF, but "Reserved
  153. Register" for the DHG
  154. The DHG also supports PECI, where the DHG queries Intel CPU temperatures, and
  155. the ICH8 southbridge gets that data via PECI from the DHG, so that the
  156. southbridge drives the fans. And the DHG supports SST, a one-wire serial bus.
  157. The DHG-P has an additional automatic fan speed control mode named Smart Fan
  158. (TM) III+. This mode is not yet supported by the driver.