xref: /OK3568_Linux_fs/kernel/Documentation/hwmon/shtc1.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunKernel driver shtc1
2*4882a593Smuzhiyun===================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSupported chips:
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun  * Sensirion SHTC1
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun    Prefix: 'shtc1'
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun    Addresses scanned: none
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun    Datasheet: https://www.sensirion.com/file/datasheet_shtc1
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun  * Sensirion SHTW1
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun    Prefix: 'shtw1'
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun    Addresses scanned: none
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun    Datasheet: https://www.sensirion.com/file/datasheet_shtw1
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun  * Sensirion SHTC3
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun    Prefix: 'shtc3'
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun    Addresses scanned: none
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun    Datasheet: https://www.sensirion.com/file/datasheet_shtc3
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunAuthor:
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun  Johannes Winkelmann <johannes.winkelmann@sensirion.com>
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunDescription
41*4882a593Smuzhiyun-----------
42*4882a593Smuzhiyun
43*4882a593SmuzhiyunThis driver implements support for the Sensirion SHTC1, SHTW1, and SHTC3
44*4882a593Smuzhiyunchips, a humidity and temperature sensor. Temperature is measured in degrees
45*4882a593Smuzhiyuncelsius, relative humidity is expressed as a percentage.
46*4882a593Smuzhiyun
47*4882a593SmuzhiyunThe device communicates with the I2C protocol. All sensors are set to I2C
48*4882a593Smuzhiyunaddress 0x70. See Documentation/i2c/instantiating-devices.rst for methods to
49*4882a593Smuzhiyuninstantiate the device.
50*4882a593Smuzhiyun
51*4882a593SmuzhiyunThere are two options configurable by means of shtc1_platform_data:
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun1. blocking (pull the I2C clock line down while performing the measurement) or
54*4882a593Smuzhiyun   non-blocking mode. Blocking mode will guarantee the fastest result but
55*4882a593Smuzhiyun   the I2C bus will be busy during that time. By default, non-blocking mode
56*4882a593Smuzhiyun   is used. Make sure clock-stretching works properly on your device if you
57*4882a593Smuzhiyun   want to use blocking mode.
58*4882a593Smuzhiyun2. high or low accuracy. High accuracy is used by default and using it is
59*4882a593Smuzhiyun   strongly recommended.
60*4882a593Smuzhiyun
61*4882a593Smuzhiyunsysfs-Interface
62*4882a593Smuzhiyun---------------
63*4882a593Smuzhiyun
64*4882a593Smuzhiyuntemp1_input
65*4882a593Smuzhiyun	- temperature input
66*4882a593Smuzhiyunhumidity1_input
67*4882a593Smuzhiyun	- humidity input
68