forked from torvalds/linux
-
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 branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/…
…kernel/git/groeck/staging * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/staging: (44 commits) hwmon: Support for Dallas Semiconductor DS620 hwmon: driver for Sensirion SHT21 humidity and temperature sensor hwmon: Add humidity attribute to sysfs ABI hwmon: sysfs ABI updates hwmon: (via-cputemp) sync hotplug handling with coretemp/pkgtemp hwmon: (lm95241) Rewrite to avoid using macros hwmon: (applesmc) Fix checkpatch errors and fix value range checks hwmon: (applesmc) Update copyright information hwmon: (applesmc) Silence driver hwmon: (applesmc) Simplify feature sysfs handling hwmon: (applesmc) Dynamic creation of fan files hwmon: (applesmc) Extract all features generically hwmon: (applesmc) Handle new temperature format hwmon: (applesmc) Dynamic creation of temperature files hwmon: (applesmc) Introduce a register lookup table hwmon: (applesmc) Use pr_fmt and pr_<level> hwmon: (applesmc) Relax the severity of device init failure hwmon: (applesmc) Add MacBookAir3,1(3,2) support hwmon: (w83627hf) Use pr_fmt and pr_<level> hwmon: (w83627ehf) Use pr_fmt and pr_<level> ...
- Loading branch information
Showing
36 changed files
with
1,827 additions
and
1,546 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,34 @@ | ||
Kernel driver ds620 | ||
=================== | ||
|
||
Supported chips: | ||
* Dallas Semiconductor DS620 | ||
Prefix: 'ds620' | ||
Datasheet: Publicly available at the Dallas Semiconductor website | ||
http://www.dalsemi.com/ | ||
|
||
Authors: | ||
Roland Stigge <[email protected]> | ||
based on ds1621.c by | ||
Christian W. Zuckschwerdt <[email protected]> | ||
|
||
Description | ||
----------- | ||
|
||
The DS620 is a (one instance) digital thermometer and thermostat. It has both | ||
high and low temperature limits which can be user defined (i.e. programmed | ||
into non-volatile on-chip registers). Temperature range is -55 degree Celsius | ||
to +125. Between 0 and 70 degree Celsius, accuracy is 0.5 Kelvin. The value | ||
returned via sysfs displays post decimal positions. | ||
|
||
The thermostat function works as follows: When configured via platform_data | ||
(struct ds620_platform_data) .pomode == 0 (default), the thermostat output pin | ||
PO is always low. If .pomode == 1, the thermostat is in PO_LOW mode. I.e., the | ||
output pin PO becomes active when the temperature falls below temp1_min and | ||
stays active until the temperature goes above temp1_max. | ||
|
||
Likewise, with .pomode == 2, the thermostat is in PO_HIGH mode. I.e., the PO | ||
output pin becomes active when the temperature goes above temp1_max and stays | ||
active until the temperature falls below temp1_min. | ||
|
||
The PO output pin of the DS620 operates active-low. |
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,49 @@ | ||
Kernel driver sht21 | ||
=================== | ||
|
||
Supported chips: | ||
* Sensirion SHT21 | ||
Prefix: 'sht21' | ||
Addresses scanned: none | ||
Datasheet: Publicly available at the Sensirion website | ||
http://www.sensirion.com/en/pdf/product_information/Datasheet-humidity-sensor-SHT21.pdf | ||
|
||
* Sensirion SHT25 | ||
Prefix: 'sht21' | ||
Addresses scanned: none | ||
Datasheet: Publicly available at the Sensirion website | ||
http://www.sensirion.com/en/pdf/product_information/Datasheet-humidity-sensor-SHT25.pdf | ||
|
||
Author: | ||
Urs Fleisch <[email protected]> | ||
|
||
Description | ||
----------- | ||
|
||
The SHT21 and SHT25 are humidity and temperature sensors in a DFN package of | ||
only 3 x 3 mm footprint and 1.1 mm height. The difference between the two | ||
devices is the higher level of precision of the SHT25 (1.8% relative humidity, | ||
0.2 degree Celsius) compared with the SHT21 (2.0% relative humidity, | ||
0.3 degree Celsius). | ||
|
||
The devices communicate with the I2C protocol. All sensors are set to the same | ||
I2C address 0x40, so an entry with I2C_BOARD_INFO("sht21", 0x40) can be used | ||
in the board setup code. | ||
|
||
sysfs-Interface | ||
--------------- | ||
|
||
temp1_input - temperature input | ||
humidity1_input - humidity input | ||
|
||
Notes | ||
----- | ||
|
||
The driver uses the default resolution settings of 12 bit for humidity and 14 | ||
bit for temperature, which results in typical measurement times of 22 ms for | ||
humidity and 66 ms for temperature. To keep self heating below 0.1 degree | ||
Celsius, the device should not be active for more than 10% of the time, | ||
e.g. maximum two measurements per second at the given resolution. | ||
|
||
Different resolutions, the on-chip heater, using the CRC checksum and reading | ||
the serial number are not supported yet. |
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.