diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2011-04-12 15:34:38 -0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-05-19 11:19:35 -0400 |
commit | cc15c7ebb424e45ba2c5ceecbe52d025219ee970 (patch) | |
tree | b5f752332d07352bc3d38381c554a3d71beeb588 /Documentation/hwmon | |
parent | 181148ae68799f5b17f09b418b276f56e9179e99 (diff) |
hwmon: (sht15) add support for the status register
* Add support for:
- Heater.
- End of battery notice.
- Ability not to reload from OTP.
- Low resolution (12bit temp, 8bit humidity).
* Add an utility function to read individual bytes from the device.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'Documentation/hwmon')
-rw-r--r-- | Documentation/hwmon/sht15 | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/Documentation/hwmon/sht15 b/Documentation/hwmon/sht15 index 2919c516fdbc..d1939b25eb16 100644 --- a/Documentation/hwmon/sht15 +++ b/Documentation/hwmon/sht15 | |||
@@ -4,6 +4,7 @@ Kernel driver sht15 | |||
4 | Authors: | 4 | Authors: |
5 | * Wouter Horre | 5 | * Wouter Horre |
6 | * Jonathan Cameron | 6 | * Jonathan Cameron |
7 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> | ||
7 | 8 | ||
8 | Supported chips: | 9 | Supported chips: |
9 | * Sensirion SHT10 | 10 | * Sensirion SHT10 |
@@ -30,13 +31,37 @@ Description | |||
30 | The SHT10, SHT11, SHT15, SHT71, and SHT75 are humidity and temperature | 31 | The SHT10, SHT11, SHT15, SHT71, and SHT75 are humidity and temperature |
31 | sensors. | 32 | sensors. |
32 | 33 | ||
33 | The devices communicate using two GPIO lines and use the default | 34 | The devices communicate using two GPIO lines. |
34 | resolution settings of 14 bits for temperature and 12 bits for humidity. | 35 | |
36 | Supported resolutions for the measurements are 14 bits for temperature and 12 | ||
37 | bits for humidity, or 12 bits for temperature and 8 bits for humidity. | ||
38 | |||
39 | The humidity calibration coefficients are programmed into an OTP memory on the | ||
40 | chip. These coefficients are used to internally calibrate the signals from the | ||
41 | sensors. Disabling the reload of those coefficients allows saving 10ms for each | ||
42 | measurement and decrease power consumption, while loosing on precision. | ||
43 | |||
44 | Some options may be set directly in the sht15_platform_data structure | ||
45 | or via sysfs attributes. | ||
35 | 46 | ||
36 | Note: The regulator supply name is set to "vcc". | 47 | Note: The regulator supply name is set to "vcc". |
37 | 48 | ||
49 | Platform data | ||
50 | ------------- | ||
51 | |||
52 | * no_otp_reload: | ||
53 | flag to indicate not to reload from OTP (default to false). | ||
54 | * low_resolution: | ||
55 | flag to indicate the temp/humidity resolution to use (default to false). | ||
56 | |||
38 | Sysfs interface | 57 | Sysfs interface |
39 | --------------- | 58 | --------------- |
40 | 59 | ||
41 | * temp1_input: temperature input | 60 | * temp1_input: temperature input |
42 | * humidity1_input: humidity input | 61 | * humidity1_input: humidity input |
62 | * heater_enable: write 1 in this attribute to enable the on-chip heater, | ||
63 | 0 to disable it. Be careful not to enable the heater | ||
64 | for too long. | ||
65 | * temp1_fault: if 1, this means that the voltage is low (below 2.47V) and | ||
66 | measurement may be invalid. | ||
67 | * humidity1_fault: same as temp1_fault. | ||