f71805f 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. Kernel driver f71805f
  2. =====================
  3. Supported chips:
  4. * Fintek F71805F/FG
  5. Prefix: 'f71805f'
  6. Addresses scanned: none, address read from Super I/O config space
  7. Datasheet: Available from the Fintek website
  8. * Fintek F71806F/FG
  9. Prefix: 'f71872f'
  10. Addresses scanned: none, address read from Super I/O config space
  11. Datasheet: Available from the Fintek website
  12. * Fintek F71872F/FG
  13. Prefix: 'f71872f'
  14. Addresses scanned: none, address read from Super I/O config space
  15. Datasheet: Available from the Fintek website
  16. Author: Jean Delvare <jdelvare@suse.de>
  17. Thanks to Denis Kieft from Barracuda Networks for the donation of a
  18. test system (custom Jetway K8M8MS motherboard, with CPU and RAM) and
  19. for providing initial documentation.
  20. Thanks to Kris Chen and Aaron Huang from Fintek for answering technical
  21. questions and providing additional documentation.
  22. Thanks to Chris Lin from Jetway for providing wiring schematics and
  23. answering technical questions.
  24. Description
  25. -----------
  26. The Fintek F71805F/FG Super I/O chip includes complete hardware monitoring
  27. capabilities. It can monitor up to 9 voltages (counting its own power
  28. source), 3 fans and 3 temperature sensors.
  29. This chip also has fan controlling features, using either DC or PWM, in
  30. three different modes (one manual, two automatic).
  31. The Fintek F71872F/FG Super I/O chip is almost the same, with two
  32. additional internal voltages monitored (VSB and battery). It also features
  33. 6 VID inputs. The VID inputs are not yet supported by this driver.
  34. The Fintek F71806F/FG Super-I/O chip is essentially the same as the
  35. F71872F/FG, and is undistinguishable therefrom.
  36. The driver assumes that no more than one chip is present, which seems
  37. reasonable.
  38. Voltage Monitoring
  39. ------------------
  40. Voltages are sampled by an 8-bit ADC with a LSB of 8 mV. The supported
  41. range is thus from 0 to 2.040 V. Voltage values outside of this range
  42. need external resistors. An exception is in0, which is used to monitor
  43. the chip's own power source (+3.3V), and is divided internally by a
  44. factor 2. For the F71872F/FG, in9 (VSB) and in10 (battery) are also
  45. divided internally by a factor 2.
  46. The two LSB of the voltage limit registers are not used (always 0), so
  47. you can only set the limits in steps of 32 mV (before scaling).
  48. The wirings and resistor values suggested by Fintek are as follow:
  49. pin expected
  50. name use R1 R2 divider raw val.
  51. in0 VCC VCC3.3V int. int. 2.00 1.65 V
  52. in1 VIN1 VTT1.2V 10K - 1.00 1.20 V
  53. in2 VIN2 VRAM 100K 100K 2.00 ~1.25 V (1)
  54. in3 VIN3 VCHIPSET 47K 100K 1.47 2.24 V (2)
  55. in4 VIN4 VCC5V 200K 47K 5.25 0.95 V
  56. in5 VIN5 +12V 200K 20K 11.00 1.05 V
  57. in6 VIN6 VCC1.5V 10K - 1.00 1.50 V
  58. in7 VIN7 VCORE 10K - 1.00 ~1.40 V (1)
  59. in8 VIN8 VSB5V 200K 47K 1.00 0.95 V
  60. in10 VSB VSB3.3V int. int. 2.00 1.65 V (3)
  61. in9 VBAT VBATTERY int. int. 2.00 1.50 V (3)
  62. (1) Depends on your hardware setup.
  63. (2) Obviously not correct, swapping R1 and R2 would make more sense.
  64. (3) F71872F/FG only.
  65. These values can be used as hints at best, as motherboard manufacturers
  66. are free to use a completely different setup. As a matter of fact, the
  67. Jetway K8M8MS uses a significantly different setup. You will have to
  68. find out documentation about your own motherboard, and edit sensors.conf
  69. accordingly.
  70. Each voltage measured has associated low and high limits, each of which
  71. triggers an alarm when crossed.
  72. Fan Monitoring
  73. --------------
  74. Fan rotation speeds are reported as 12-bit values from a gated clock
  75. signal. Speeds down to 366 RPM can be measured. There is no theoretical
  76. high limit, but values over 6000 RPM seem to cause problem. The effective
  77. resolution is much lower than you would expect, the step between different
  78. register values being 10 rather than 1.
  79. The chip assumes 2 pulse-per-revolution fans.
  80. An alarm is triggered if the rotation speed drops below a programmable
  81. limit or is too low to be measured.
  82. Temperature Monitoring
  83. ----------------------
  84. Temperatures are reported in degrees Celsius. Each temperature measured
  85. has a high limit, those crossing triggers an alarm. There is an associated
  86. hysteresis value, below which the temperature has to drop before the
  87. alarm is cleared.
  88. All temperature channels are external, there is no embedded temperature
  89. sensor. Each channel can be used for connecting either a thermal diode
  90. or a thermistor. The driver reports the currently selected mode, but
  91. doesn't allow changing it. In theory, the BIOS should have configured
  92. everything properly.
  93. Fan Control
  94. -----------
  95. Both PWM (pulse-width modulation) and DC fan speed control methods are
  96. supported. The right one to use depends on external circuitry on the
  97. motherboard, so the driver assumes that the BIOS set the method
  98. properly. The driver will report the method, but won't let you change
  99. it.
  100. When the PWM method is used, you can select the operating frequency,
  101. from 187.5 kHz (default) to 31 Hz. The best frequency depends on the
  102. fan model. As a rule of thumb, lower frequencies seem to give better
  103. control, but may generate annoying high-pitch noise. So a frequency just
  104. above the audible range, such as 25 kHz, may be a good choice; if this
  105. doesn't give you good linear control, try reducing it. Fintek recommends
  106. not going below 1 kHz, as the fan tachometers get confused by lower
  107. frequencies as well.
  108. When the DC method is used, Fintek recommends not going below 5 V, which
  109. corresponds to a pwm value of 106 for the driver. The driver doesn't
  110. enforce this limit though.
  111. Three different fan control modes are supported; the mode number is written
  112. to the pwm<n>_enable file.
  113. * 1: Manual mode
  114. You ask for a specific PWM duty cycle or DC voltage by writing to the
  115. pwm<n> file.
  116. * 2: Temperature mode
  117. You define 3 temperature/fan speed trip points using the
  118. pwm<n>_auto_point<m>_temp and _fan files. These define a staircase
  119. relationship between temperature and fan speed with two additional points
  120. interpolated between the values that you define. When the temperature
  121. is below auto_point1_temp the fan is switched off.
  122. * 3: Fan speed mode
  123. You ask for a specific fan speed by writing to the fan<n>_target file.
  124. Both of the automatic modes require that pwm1 corresponds to fan1, pwm2 to
  125. fan2 and pwm3 to fan3. Temperature mode also requires that temp1 corresponds
  126. to pwm1 and fan1, etc.