Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 1 | Kernel driver shtc1 |
| 2 | =================== |
| 3 | |
| 4 | Supported chips: |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 5 | |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 6 | * Sensirion SHTC1 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 7 | |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 8 | Prefix: 'shtc1' |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 9 | |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 10 | Addresses scanned: none |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 11 | |
Alexander A. Klimov | ad736c1 | 2020-07-19 19:55:12 +0200 | [diff] [blame] | 12 | Datasheet: https://www.sensirion.com/file/datasheet_shtc1 |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 13 | |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 14 | |
| 15 | |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 16 | * Sensirion SHTW1 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 17 | |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 18 | Prefix: 'shtw1' |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 19 | |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 20 | Addresses scanned: none |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 21 | |
Alexander A. Klimov | ad736c1 | 2020-07-19 19:55:12 +0200 | [diff] [blame] | 22 | Datasheet: https://www.sensirion.com/file/datasheet_shtw1 |
Dan Robertson | ffd9686 | 2019-09-05 01:45:53 +0000 | [diff] [blame] | 23 | |
| 24 | |
| 25 | |
| 26 | * Sensirion SHTC3 |
| 27 | |
| 28 | Prefix: 'shtc3' |
| 29 | |
| 30 | Addresses scanned: none |
| 31 | |
Alexander A. Klimov | ad736c1 | 2020-07-19 19:55:12 +0200 | [diff] [blame] | 32 | Datasheet: https://www.sensirion.com/file/datasheet_shtc3 |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 33 | |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 34 | |
| 35 | |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 36 | Author: |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 37 | |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 38 | Johannes Winkelmann <johannes.winkelmann@sensirion.com> |
| 39 | |
| 40 | Description |
| 41 | ----------- |
| 42 | |
Dan Robertson | ffd9686 | 2019-09-05 01:45:53 +0000 | [diff] [blame] | 43 | This driver implements support for the Sensirion SHTC1, SHTW1, and SHTC3 |
| 44 | chips, a humidity and temperature sensor. Temperature is measured in degrees |
| 45 | celsius, relative humidity is expressed as a percentage. |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 46 | |
| 47 | The device communicates with the I2C protocol. All sensors are set to I2C |
Mauro Carvalho Chehab | ccf988b | 2019-07-26 09:51:16 -0300 | [diff] [blame] | 48 | address 0x70. See Documentation/i2c/instantiating-devices.rst for methods to |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 49 | instantiate the device. |
| 50 | |
| 51 | There are two options configurable by means of shtc1_platform_data: |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 52 | |
Tomas Pop | 1a539d3 | 2014-06-05 15:24:19 -0700 | [diff] [blame] | 53 | 1. blocking (pull the I2C clock line down while performing the measurement) or |
| 54 | non-blocking mode. Blocking mode will guarantee the fastest result but |
| 55 | the I2C bus will be busy during that time. By default, non-blocking mode |
| 56 | is used. Make sure clock-stretching works properly on your device if you |
| 57 | want to use blocking mode. |
| 58 | 2. high or low accuracy. High accuracy is used by default and using it is |
| 59 | strongly recommended. |
| 60 | |
| 61 | sysfs-Interface |
| 62 | --------------- |
| 63 | |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 64 | temp1_input |
| 65 | - temperature input |
| 66 | humidity1_input |
| 67 | - humidity input |