2009-12-09 14:36:02 -05:00
|
|
|
Kernel driver adt7475
|
|
|
|
=====================
|
|
|
|
|
|
|
|
Supported chips:
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
* Analog Devices ADT7473
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
Prefix: 'adt7473'
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
Addresses scanned: I2C 0x2C, 0x2D, 0x2E
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
Datasheet: Publicly available at the On Semiconductors website
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
* Analog Devices ADT7475
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
Prefix: 'adt7475'
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
Addresses scanned: I2C 0x2E
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
Datasheet: Publicly available at the On Semiconductors website
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:08 -05:00
|
|
|
* Analog Devices ADT7476
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:08 -05:00
|
|
|
Prefix: 'adt7476'
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:08 -05:00
|
|
|
Addresses scanned: I2C 0x2C, 0x2D, 0x2E
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:08 -05:00
|
|
|
Datasheet: Publicly available at the On Semiconductors website
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:05 -05:00
|
|
|
* Analog Devices ADT7490
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:05 -05:00
|
|
|
Prefix: 'adt7490'
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:05 -05:00
|
|
|
Addresses scanned: I2C 0x2C, 0x2D, 0x2E
|
2019-04-17 05:46:28 -04:00
|
|
|
|
2009-12-09 14:36:05 -05:00
|
|
|
Datasheet: Publicly available at the On Semiconductors website
|
2009-12-09 14:36:02 -05:00
|
|
|
|
|
|
|
Authors:
|
2019-04-17 05:46:28 -04:00
|
|
|
- Jordan Crouse
|
|
|
|
- Hans de Goede
|
|
|
|
- Darrick J. Wong (documentation)
|
|
|
|
- Jean Delvare
|
2009-12-09 14:36:02 -05:00
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
2009-12-09 14:36:08 -05:00
|
|
|
This driver implements support for the Analog Devices ADT7473, ADT7475,
|
|
|
|
ADT7476 and ADT7490 chip family. The ADT7473 and ADT7475 differ only in
|
|
|
|
minor details. The ADT7476 has additional features, including extra voltage
|
|
|
|
measurement inputs and VID support. The ADT7490 also has additional
|
|
|
|
features, including extra voltage measurement inputs and PECI support. All
|
|
|
|
the supported chips will be collectively designed by the name "ADT747x" in
|
|
|
|
the rest of this document.
|
2009-12-09 14:36:02 -05:00
|
|
|
|
|
|
|
The ADT747x uses the 2-wire interface compatible with the SMBus 2.0
|
|
|
|
specification. Using an analog to digital converter it measures three (3)
|
2009-12-09 14:36:05 -05:00
|
|
|
temperatures and two (2) or more voltages. It has four (4) 16-bit counters
|
|
|
|
for measuring fan speed. There are three (3) PWM outputs that can be used
|
2009-12-09 14:36:02 -05:00
|
|
|
to control fan speed.
|
|
|
|
|
|
|
|
A sophisticated control system for the PWM outputs is designed into the
|
|
|
|
ADT747x that allows fan speed to be adjusted automatically based on any of the
|
|
|
|
three temperature sensors. Each PWM output is individually adjustable and
|
|
|
|
programmable. Once configured, the ADT747x will adjust the PWM outputs in
|
|
|
|
response to the measured temperatures without further host intervention.
|
|
|
|
This feature can also be disabled for manual control of the PWM's.
|
|
|
|
|
|
|
|
Each of the measured inputs (voltage, temperature, fan speed) has
|
|
|
|
corresponding high/low limit values. The ADT747x will signal an ALARM if
|
|
|
|
any measured value exceeds either limit.
|
|
|
|
|
|
|
|
The ADT747x samples all inputs continuously. The driver will not read
|
|
|
|
the registers more often than once every other second. Further,
|
|
|
|
configuration data is only read once per minute.
|
|
|
|
|
2009-12-09 14:36:05 -05:00
|
|
|
Chip Differences Summary
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
ADT7473:
|
|
|
|
* 2 voltage inputs
|
|
|
|
* system acoustics optimizations (not implemented)
|
|
|
|
|
|
|
|
ADT7475:
|
|
|
|
* 2 voltage inputs
|
|
|
|
|
2009-12-09 14:36:08 -05:00
|
|
|
ADT7476:
|
|
|
|
* 5 voltage inputs
|
2009-12-09 14:36:08 -05:00
|
|
|
* VID support
|
2009-12-09 14:36:08 -05:00
|
|
|
|
2009-12-09 14:36:05 -05:00
|
|
|
ADT7490:
|
|
|
|
* 6 voltage inputs
|
2023-09-14 18:39:47 -04:00
|
|
|
* 1 Imon input
|
2009-12-09 14:36:05 -05:00
|
|
|
* PECI support (not implemented)
|
|
|
|
* 2 GPIO pins (not implemented)
|
|
|
|
* system acoustics optimizations (not implemented)
|
|
|
|
|
2018-10-30 16:25:27 -04:00
|
|
|
Sysfs Mapping
|
|
|
|
-------------
|
|
|
|
|
2019-04-17 05:46:28 -04:00
|
|
|
==== =========== =========== ========= ==========
|
|
|
|
in ADT7490 ADT7476 ADT7475 ADT7473
|
|
|
|
==== =========== =========== ========= ==========
|
2018-10-30 16:25:27 -04:00
|
|
|
in0 2.5VIN (22) 2.5VIN (22) - -
|
|
|
|
in1 VCCP (23) VCCP (23) VCCP (14) VCCP (14)
|
|
|
|
in2 VCC (4) VCC (4) VCC (4) VCC (3)
|
|
|
|
in3 5VIN (20) 5VIN (20)
|
|
|
|
in4 12VIN (21) 12VIN (21)
|
|
|
|
in5 VTT (8)
|
2023-09-14 18:39:47 -04:00
|
|
|
in6 Imon (19)
|
2019-04-17 05:46:28 -04:00
|
|
|
==== =========== =========== ========= ==========
|
2018-10-30 16:25:27 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
Special Features
|
|
|
|
----------------
|
|
|
|
|
|
|
|
The ADT747x has a 10-bit ADC and can therefore measure temperatures
|
|
|
|
with a resolution of 0.25 degree Celsius. Temperature readings can be
|
|
|
|
configured either for two's complement format or "Offset 64" format,
|
|
|
|
wherein 64 is subtracted from the raw value to get the temperature value.
|
|
|
|
|
|
|
|
The datasheet is very detailed and describes a procedure for determining
|
|
|
|
an optimal configuration for the automatic PWM control.
|
|
|
|
|
|
|
|
Fan Speed Control
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
The driver exposes two trip points per PWM channel.
|
|
|
|
|
2019-04-17 05:46:28 -04:00
|
|
|
- point1: Set the PWM speed at the lower temperature bound
|
|
|
|
- point2: Set the PWM speed at the higher temperature bound
|
2009-12-09 14:36:02 -05:00
|
|
|
|
|
|
|
The ADT747x will scale the PWM linearly between the lower and higher PWM
|
|
|
|
speed when the temperature is between the two temperature boundaries.
|
|
|
|
Temperature boundaries are associated to temperature channels rather than
|
|
|
|
PWM outputs, and a given PWM output can be controlled by several temperature
|
|
|
|
channels. As a result, the ADT747x may compute more than one PWM value
|
|
|
|
for a channel at a given time, in which case the maximum value (fastest
|
|
|
|
fan speed) is applied. PWM values range from 0 (off) to 255 (full speed).
|
|
|
|
|
|
|
|
Fan speed may be set to maximum when the temperature sensor associated with
|
|
|
|
the PWM control exceeds temp#_max.
|
|
|
|
|
2017-05-14 21:30:27 -04:00
|
|
|
At Tmin - hysteresis the PWM output can either be off (0% duty cycle) or at the
|
|
|
|
minimum (i.e. auto_point1_pwm). This behaviour can be configured using the
|
2019-04-17 05:46:28 -04:00
|
|
|
`pwm[1-*]_stall_disable sysfs attribute`. A value of 0 means the fans will shut
|
2017-05-14 21:30:27 -04:00
|
|
|
off. A value of 1 means the fans will run at auto_point1_pwm.
|
|
|
|
|
2017-05-14 21:30:28 -04:00
|
|
|
The responsiveness of the ADT747x to temperature changes can be configured.
|
|
|
|
This allows smoothing of the fan speed transition. To set the transition time
|
2019-04-17 05:46:28 -04:00
|
|
|
set the value in ms in the `temp[1-*]_smoothing` sysfs attribute.
|
2017-05-14 21:30:28 -04:00
|
|
|
|
2009-12-09 14:36:02 -05:00
|
|
|
Notes
|
|
|
|
-----
|
|
|
|
|
|
|
|
The nVidia binary driver presents an ADT7473 chip via an on-card i2c bus.
|
|
|
|
Unfortunately, they fail to set the i2c adapter class, so this driver may
|
|
|
|
fail to find the chip until the nvidia driver is patched.
|