forked from swarren/WSL2-Linux-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/groeck/linux-staging Pull hwmon updates from Guenter Roeck: - new driver for Sensirion SHTC1 humidity / temperature sensor - convert ltc4151 and vexpress drivers to use devm functions - drop generic chip detection from lm85 driver - avoid forward declarations in atxp1 driver - fix sign extensions in ina2xx driver * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: hwmon: vexpress: Use devm helper for hwmon device registration hwmon: (atxp1) Avoid forward declaration hwmon: add support for Sensirion SHTC1 sensor hwmon: (ltc4151) Convert to devm_hwmon_device_register_with_groups hwmon: (lm85) Drop generic detection hwmon: (ina2xx) Cast to s16 on shunt and current regs
- Loading branch information
Showing
10 changed files
with
401 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Kernel driver shtc1 | ||
=================== | ||
|
||
Supported chips: | ||
* Sensirion SHTC1 | ||
Prefix: 'shtc1' | ||
Addresses scanned: none | ||
Datasheet: http://www.sensirion.com/file/datasheet_shtc1 | ||
|
||
* Sensirion SHTW1 | ||
Prefix: 'shtw1' | ||
Addresses scanned: none | ||
Datasheet: Not publicly available | ||
|
||
Author: | ||
Johannes Winkelmann <johannes.winkelmann@sensirion.com> | ||
|
||
Description | ||
----------- | ||
|
||
This driver implements support for the Sensirion SHTC1 chip, a humidity and | ||
temperature sensor. Temperature is measured in degrees celsius, relative | ||
humidity is expressed as a percentage. Driver can be used as well for SHTW1 | ||
chip, which has the same electrical interface. | ||
|
||
The device communicates with the I2C protocol. All sensors are set to I2C | ||
address 0x70. See Documentation/i2c/instantiating-devices for methods to | ||
instantiate the device. | ||
|
||
There are two options configurable by means of shtc1_platform_data: | ||
1. blocking (pull the I2C clock line down while performing the measurement) or | ||
non-blocking mode. Blocking mode will guarantee the fastest result but | ||
the I2C bus will be busy during that time. By default, non-blocking mode | ||
is used. Make sure clock-stretching works properly on your device if you | ||
want to use blocking mode. | ||
2. high or low accuracy. High accuracy is used by default and using it is | ||
strongly recommended. | ||
|
||
sysfs-Interface | ||
--------------- | ||
|
||
temp1_input - temperature input | ||
humidity1_input - humidity input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.