Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 1 | Kernel driver sht15 |
| 2 | =================== |
| 3 | |
| 4 | Authors: |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 5 | |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 6 | * Wouter Horre |
| 7 | * Jonathan Cameron |
Vivien Didelot | cc15c7e | 2011-04-12 15:34:38 -0400 | [diff] [blame] | 8 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
Jerome Oufella | 82c7465 | 2011-04-12 15:34:39 -0400 | [diff] [blame] | 9 | * Jerome Oufella <jerome.oufella@savoirfairelinux.com> |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 10 | |
| 11 | Supported chips: |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 12 | |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 13 | * Sensirion SHT10 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 14 | |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 15 | Prefix: 'sht10' |
| 16 | |
| 17 | * Sensirion SHT11 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 18 | |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 19 | Prefix: 'sht11' |
| 20 | |
| 21 | * Sensirion SHT15 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 22 | |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 23 | Prefix: 'sht15' |
| 24 | |
| 25 | * Sensirion SHT71 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 26 | |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 27 | Prefix: 'sht71' |
| 28 | |
| 29 | * Sensirion SHT75 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 30 | |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 31 | Prefix: 'sht75' |
| 32 | |
| 33 | Datasheet: Publicly available at the Sensirion website |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 34 | |
| 35 | http://www.sensirion.ch/en/pdf/product_information/Datasheet-humidity-sensor-SHT1x.pdf |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 36 | |
| 37 | Description |
| 38 | ----------- |
| 39 | |
| 40 | The SHT10, SHT11, SHT15, SHT71, and SHT75 are humidity and temperature |
| 41 | sensors. |
| 42 | |
Vivien Didelot | cc15c7e | 2011-04-12 15:34:38 -0400 | [diff] [blame] | 43 | The devices communicate using two GPIO lines. |
| 44 | |
| 45 | Supported resolutions for the measurements are 14 bits for temperature and 12 |
| 46 | bits for humidity, or 12 bits for temperature and 8 bits for humidity. |
| 47 | |
| 48 | The humidity calibration coefficients are programmed into an OTP memory on the |
| 49 | chip. These coefficients are used to internally calibrate the signals from the |
| 50 | sensors. Disabling the reload of those coefficients allows saving 10ms for each |
Masanari Iida | 1754e4c | 2013-04-13 01:22:11 +0900 | [diff] [blame] | 51 | measurement and decrease power consumption, while losing on precision. |
Vivien Didelot | cc15c7e | 2011-04-12 15:34:38 -0400 | [diff] [blame] | 52 | |
Linus Walleij | 1867311 | 2017-09-10 11:44:46 +0200 | [diff] [blame] | 53 | Some options may be set via sysfs attributes. |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 54 | |
Jerome Oufella | 82c7465 | 2011-04-12 15:34:39 -0400 | [diff] [blame] | 55 | Notes: |
| 56 | * The regulator supply name is set to "vcc". |
| 57 | * If a CRC validation fails, a soft reset command is sent, which resets |
| 58 | status register to its hardware default value, but the driver will try to |
| 59 | restore the previous device configuration. |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 60 | |
Vivien Didelot | cc15c7e | 2011-04-12 15:34:38 -0400 | [diff] [blame] | 61 | Platform data |
| 62 | ------------- |
| 63 | |
Jerome Oufella | 82c7465 | 2011-04-12 15:34:39 -0400 | [diff] [blame] | 64 | * checksum: |
| 65 | set it to true to enable CRC validation of the readings (default to false). |
Vivien Didelot | cc15c7e | 2011-04-12 15:34:38 -0400 | [diff] [blame] | 66 | * no_otp_reload: |
| 67 | flag to indicate not to reload from OTP (default to false). |
| 68 | * low_resolution: |
| 69 | flag to indicate the temp/humidity resolution to use (default to false). |
| 70 | |
Vivien Didelot | 99a0378 | 2011-04-12 15:34:36 -0400 | [diff] [blame] | 71 | Sysfs interface |
| 72 | --------------- |
| 73 | |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame] | 74 | ================== ========================================================== |
| 75 | temp1_input temperature input |
| 76 | humidity1_input humidity input |
| 77 | heater_enable write 1 in this attribute to enable the on-chip heater, |
| 78 | 0 to disable it. Be careful not to enable the heater |
| 79 | for too long. |
| 80 | temp1_fault if 1, this means that the voltage is low (below 2.47V) and |
| 81 | measurement may be invalid. |
| 82 | humidity1_fault same as temp1_fault. |
| 83 | ================== ========================================================== |