adt7475.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. Sysfs Mapping
  68. -------------
  69. ==== =========== =========== ========= ==========
  70. in ADT7490 ADT7476 ADT7475 ADT7473
  71. ==== =========== =========== ========= ==========
  72. in0 2.5VIN (22) 2.5VIN (22) - -
  73. in1 VCCP (23) VCCP (23) VCCP (14) VCCP (14)
  74. in2 VCC (4) VCC (4) VCC (4) VCC (3)
  75. in3 5VIN (20) 5VIN (20)
  76. in4 12VIN (21) 12VIN (21)
  77. in5 VTT (8)
  78. ==== =========== =========== ========= ==========
  79. Special Features
  80. ----------------
  81. The ADT747x has a 10-bit ADC and can therefore measure temperatures
  82. with a resolution of 0.25 degree Celsius. Temperature readings can be
  83. configured either for two's complement format or "Offset 64" format,
  84. wherein 64 is subtracted from the raw value to get the temperature value.
  85. The datasheet is very detailed and describes a procedure for determining
  86. an optimal configuration for the automatic PWM control.
  87. Fan Speed Control
  88. -----------------
  89. The driver exposes two trip points per PWM channel.
  90. - point1: Set the PWM speed at the lower temperature bound
  91. - point2: Set the PWM speed at the higher temperature bound
  92. The ADT747x will scale the PWM linearly between the lower and higher PWM
  93. speed when the temperature is between the two temperature boundaries.
  94. Temperature boundaries are associated to temperature channels rather than
  95. PWM outputs, and a given PWM output can be controlled by several temperature
  96. channels. As a result, the ADT747x may compute more than one PWM value
  97. for a channel at a given time, in which case the maximum value (fastest
  98. fan speed) is applied. PWM values range from 0 (off) to 255 (full speed).
  99. Fan speed may be set to maximum when the temperature sensor associated with
  100. the PWM control exceeds temp#_max.
  101. At Tmin - hysteresis the PWM output can either be off (0% duty cycle) or at the
  102. minimum (i.e. auto_point1_pwm). This behaviour can be configured using the
  103. `pwm[1-*]_stall_disable sysfs attribute`. A value of 0 means the fans will shut
  104. off. A value of 1 means the fans will run at auto_point1_pwm.
  105. The responsiveness of the ADT747x to temperature changes can be configured.
  106. This allows smoothing of the fan speed transition. To set the transition time
  107. set the value in ms in the `temp[1-*]_smoothing` sysfs attribute.
  108. Notes
  109. -----
  110. The nVidia binary driver presents an ADT7473 chip via an on-card i2c bus.
  111. Unfortunately, they fail to set the i2c adapter class, so this driver may
  112. fail to find the chip until the nvidia driver is patched.