f71805f.rst 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. ======= ======= =========== ==== ======= ============ ==============
  50. in pin expected
  51. name use R1 R2 divider raw val.
  52. ======= ======= =========== ==== ======= ============ ==============
  53. in0 VCC VCC3.3V int. int. 2.00 1.65 V
  54. in1 VIN1 VTT1.2V 10K - 1.00 1.20 V
  55. in2 VIN2 VRAM 100K 100K 2.00 ~1.25 V [1]_
  56. in3 VIN3 VCHIPSET 47K 100K 1.47 2.24 V [2]_
  57. in4 VIN4 VCC5V 200K 47K 5.25 0.95 V
  58. in5 VIN5 +12V 200K 20K 11.00 1.05 V
  59. in6 VIN6 VCC1.5V 10K - 1.00 1.50 V
  60. in7 VIN7 VCORE 10K - 1.00 ~1.40 V [1]_
  61. in8 VIN8 VSB5V 200K 47K 1.00 0.95 V
  62. in10 VSB VSB3.3V int. int. 2.00 1.65 V [3]_
  63. in9 VBAT VBATTERY int. int. 2.00 1.50 V [3]_
  64. ======= ======= =========== ==== ======= ============ ==============
  65. .. [1] Depends on your hardware setup.
  66. .. [2] Obviously not correct, swapping R1 and R2 would make more sense.
  67. .. [3] F71872F/FG only.
  68. These values can be used as hints at best, as motherboard manufacturers
  69. are free to use a completely different setup. As a matter of fact, the
  70. Jetway K8M8MS uses a significantly different setup. You will have to
  71. find out documentation about your own motherboard, and edit sensors.conf
  72. accordingly.
  73. Each voltage measured has associated low and high limits, each of which
  74. triggers an alarm when crossed.
  75. Fan Monitoring
  76. --------------
  77. Fan rotation speeds are reported as 12-bit values from a gated clock
  78. signal. Speeds down to 366 RPM can be measured. There is no theoretical
  79. high limit, but values over 6000 RPM seem to cause problem. The effective
  80. resolution is much lower than you would expect, the step between different
  81. register values being 10 rather than 1.
  82. The chip assumes 2 pulse-per-revolution fans.
  83. An alarm is triggered if the rotation speed drops below a programmable
  84. limit or is too low to be measured.
  85. Temperature Monitoring
  86. ----------------------
  87. Temperatures are reported in degrees Celsius. Each temperature measured
  88. has a high limit, those crossing triggers an alarm. There is an associated
  89. hysteresis value, below which the temperature has to drop before the
  90. alarm is cleared.
  91. All temperature channels are external, there is no embedded temperature
  92. sensor. Each channel can be used for connecting either a thermal diode
  93. or a thermistor. The driver reports the currently selected mode, but
  94. doesn't allow changing it. In theory, the BIOS should have configured
  95. everything properly.
  96. Fan Control
  97. -----------
  98. Both PWM (pulse-width modulation) and DC fan speed control methods are
  99. supported. The right one to use depends on external circuitry on the
  100. motherboard, so the driver assumes that the BIOS set the method
  101. properly. The driver will report the method, but won't let you change
  102. it.
  103. When the PWM method is used, you can select the operating frequency,
  104. from 187.5 kHz (default) to 31 Hz. The best frequency depends on the
  105. fan model. As a rule of thumb, lower frequencies seem to give better
  106. control, but may generate annoying high-pitch noise. So a frequency just
  107. above the audible range, such as 25 kHz, may be a good choice; if this
  108. doesn't give you good linear control, try reducing it. Fintek recommends
  109. not going below 1 kHz, as the fan tachometers get confused by lower
  110. frequencies as well.
  111. When the DC method is used, Fintek recommends not going below 5 V, which
  112. corresponds to a pwm value of 106 for the driver. The driver doesn't
  113. enforce this limit though.
  114. Three different fan control modes are supported; the mode number is written
  115. to the pwm<n>_enable file.
  116. * 1: Manual mode
  117. You ask for a specific PWM duty cycle or DC voltage by writing to the
  118. pwm<n> file.
  119. * 2: Temperature mode
  120. You define 3 temperature/fan speed trip points using the
  121. pwm<n>_auto_point<m>_temp and _fan files. These define a staircase
  122. relationship between temperature and fan speed with two additional points
  123. interpolated between the values that you define. When the temperature
  124. is below auto_point1_temp the fan is switched off.
  125. * 3: Fan speed mode
  126. You ask for a specific fan speed by writing to the fan<n>_target file.
  127. Both of the automatic modes require that pwm1 corresponds to fan1, pwm2 to
  128. fan2 and pwm3 to fan3. Temperature mode also requires that temp1 corresponds
  129. to pwm1 and fan1, etc.