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