xref: /OK3568_Linux_fs/kernel/Documentation/hwmon/tmp108.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunKernel driver tmp108
2*4882a593Smuzhiyun====================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSupported chips:
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun  * Texas Instruments TMP108
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun    Prefix: 'tmp108'
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun    Addresses scanned: none
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun    Datasheet: https://www.ti.com/product/tmp108
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunAuthor:
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun	John Muir <john@jmuir.com>
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunDescription
19*4882a593Smuzhiyun-----------
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunThe Texas Instruments TMP108 implements one temperature sensor. An alert pin
22*4882a593Smuzhiyuncan be set when temperatures exceed minimum or maximum values plus or minus a
23*4882a593Smuzhiyunhysteresis value. (This driver does not support interrupts for the alert pin,
24*4882a593Smuzhiyunand the device runs in comparator mode.)
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunThe sensor is accurate to 0.75C over the range of -25 to +85 C, and to 1.0
27*4882a593Smuzhiyundegree from -40 to +125 C. Resolution of the sensor is 0.0625 degree. The
28*4882a593Smuzhiyunoperating temperature has a minimum of -55 C and a maximum of +150 C.
29*4882a593SmuzhiyunHysteresis values can be set to 0, 1, 2, or 4C.
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunThe TMP108 has a programmable update rate that can select between 8, 4, 1, and
32*4882a593Smuzhiyun0.5 Hz.
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunBy default the TMP108 reads the temperature continuously. To conserve power,
35*4882a593Smuzhiyunthe TMP108 has a one-shot mode where the device is normally shut-down. When a
36*4882a593Smuzhiyunone shot is requested the temperature is read, the result can be retrieved,
37*4882a593Smuzhiyunand then the device is shut down automatically. (This driver only supports
38*4882a593Smuzhiyuncontinuous mode.)
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunThe driver provides the common sysfs-interface for temperatures (see
41*4882a593SmuzhiyunDocumentation/hwmon/sysfs-interface.rst under Temperatures).
42