Kernel driver adt7410

Supported chips:

Author: Hartmut Knaack <knaack.h@gmx.de>

Description

The ADT7310/ADT7410 is a temperature sensor with rated temperature range of-55°C to +150°C. It has a high accuracy of +/-0.5°C and can be operated at aresolution of 13 bits (0.0625°C) or 16 bits (0.0078°C). The sensor provides anINT pin to indicate that a minimum or maximum temperature set point has beenexceeded, as well as a critical temperature (CT) pin to indicate that thecritical temperature set point has been exceeded. Both pins can be set up with acommon hysteresis of 0°C - 15°C and a fault queue, ranging from 1 to 4 events.Both pins can individually set to be active-low or active-high, while the wholedevice can either run in comparator mode or interrupt mode. The ADT7410 supportscontinuous temperature sampling, as well as sampling one temperature value persecond or even just get one sample on demand for power saving. Besides, it cancompletely power down its ADC, if power management is required.

The ADT7320/ADT7420 is register compatible, the only differences being thepackage, a slightly narrower operating temperature range (-40°C to +150°C), anda better accuracy (0.25°C instead of 0.50°C.)

The difference between the ADT7310/ADT7320 and ADT7410/ADT7420 is the controlinterface, the ADT7310 and ADT7320 use SPI while the ADT7410 and ADT7420 useI2C.

Configuration Notes

Since the device uses one hysteresis value, which is an offset to minimum,maximum and critical temperature, it can only be set for temp#_max_hyst.However, temp#_min_hyst and temp#_crit_hyst show their correspondinghysteresis.The device is set to 16 bit resolution and comparator mode.

sysfs-Interface

temp#_inputtemperature input
temp#_mintemperature minimum setpoint
temp#_maxtemperature maximum setpoint
temp#_critcritical temperature setpoint
temp#_min_hysthysteresis for temperature minimum (read-only)
temp#_max_hysthysteresis for temperature maximum (read/write)
temp#_crit_hysthysteresis for critical temperature (read-only)
temp#_min_alarmtemperature minimum alarm flag
temp#_max_alarmtemperature maximum alarm flag
temp#_crit_alarmcritical temperature alarm flag