adt7475 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Kernel driver adt7475
  2. =====================
  3. Supported chips:
  4. * Analog Devices ADT7473
  5. Prefix: 'adt7473'
  6. Addresses scanned: I2C 0x2C, 0x2D, 0x2E
  7. Datasheet: Publicly available at the On Semiconductors website
  8. * Analog Devices ADT7475
  9. Prefix: 'adt7475'
  10. Addresses scanned: I2C 0x2E
  11. Datasheet: Publicly available at the On Semiconductors website
  12. * Analog Devices ADT7476
  13. Prefix: 'adt7476'
  14. Addresses scanned: I2C 0x2C, 0x2D, 0x2E
  15. Datasheet: Publicly available at the On Semiconductors website
  16. * Analog Devices ADT7490
  17. Prefix: 'adt7490'
  18. Addresses scanned: I2C 0x2C, 0x2D, 0x2E
  19. Datasheet: Publicly available at the On Semiconductors website
  20. Authors:
  21. Jordan Crouse
  22. Hans de Goede
  23. Darrick J. Wong (documentation)
  24. Jean Delvare
  25. Description
  26. -----------
  27. This driver implements support for the Analog Devices ADT7473, ADT7475,
  28. ADT7476 and ADT7490 chip family. The ADT7473 and ADT7475 differ only in
  29. minor details. The ADT7476 has additional features, including extra voltage
  30. measurement inputs and VID support. The ADT7490 also has additional
  31. features, including extra voltage measurement inputs and PECI support. All
  32. the supported chips will be collectively designed by the name "ADT747x" in
  33. the rest of this document.
  34. The ADT747x uses the 2-wire interface compatible with the SMBus 2.0
  35. specification. Using an analog to digital converter it measures three (3)
  36. temperatures and two (2) or more voltages. It has four (4) 16-bit counters
  37. for measuring fan speed. There are three (3) PWM outputs that can be used
  38. to control fan speed.
  39. A sophisticated control system for the PWM outputs is designed into the
  40. ADT747x that allows fan speed to be adjusted automatically based on any of the
  41. three temperature sensors. Each PWM output is individually adjustable and
  42. programmable. Once configured, the ADT747x will adjust the PWM outputs in
  43. response to the measured temperatures without further host intervention.
  44. This feature can also be disabled for manual control of the PWM's.
  45. Each of the measured inputs (voltage, temperature, fan speed) has
  46. corresponding high/low limit values. The ADT747x will signal an ALARM if
  47. any measured value exceeds either limit.
  48. The ADT747x samples all inputs continuously. The driver will not read
  49. the registers more often than once every other second. Further,
  50. configuration data is only read once per minute.
  51. Chip Differences Summary
  52. ------------------------
  53. ADT7473:
  54. * 2 voltage inputs
  55. * system acoustics optimizations (not implemented)
  56. ADT7475:
  57. * 2 voltage inputs
  58. ADT7476:
  59. * 5 voltage inputs
  60. * VID support
  61. ADT7490:
  62. * 6 voltage inputs
  63. * 1 Imon input (not implemented)
  64. * PECI support (not implemented)
  65. * 2 GPIO pins (not implemented)
  66. * system acoustics optimizations (not implemented)
  67. Special Features
  68. ----------------
  69. The ADT747x has a 10-bit ADC and can therefore measure temperatures
  70. with a resolution of 0.25 degree Celsius. Temperature readings can be
  71. configured either for two's complement format or "Offset 64" format,
  72. wherein 64 is subtracted from the raw value to get the temperature value.
  73. The datasheet is very detailed and describes a procedure for determining
  74. an optimal configuration for the automatic PWM control.
  75. Fan Speed Control
  76. -----------------
  77. The driver exposes two trip points per PWM channel.
  78. point1: Set the PWM speed at the lower temperature bound
  79. point2: Set the PWM speed at the higher temperature bound
  80. The ADT747x will scale the PWM linearly between the lower and higher PWM
  81. speed when the temperature is between the two temperature boundaries.
  82. Temperature boundaries are associated to temperature channels rather than
  83. PWM outputs, and a given PWM output can be controlled by several temperature
  84. channels. As a result, the ADT747x may compute more than one PWM value
  85. for a channel at a given time, in which case the maximum value (fastest
  86. fan speed) is applied. PWM values range from 0 (off) to 255 (full speed).
  87. Fan speed may be set to maximum when the temperature sensor associated with
  88. the PWM control exceeds temp#_max.
  89. Notes
  90. -----
  91. The nVidia binary driver presents an ADT7473 chip via an on-card i2c bus.
  92. Unfortunately, they fail to set the i2c adapter class, so this driver may
  93. fail to find the chip until the nvidia driver is patched.