-
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: hwmon: (coretemp) Fix checkpatch errors hwmon: Remove pkgtemp driver hwmon: (coretemp) Merge pkgtemp with coretemp hwmon: (pmbus) Add support for Analog Devices ADM1275 hwmon: (pmbus) Support for TI UCD90xxx series Sequencer and System Health Controllers hwmon: (pmbus) Add support for TI UCD9200 series of PWM System Controllers hwmon: (pmbus) Use device specific function to read fan configuration hwmon: (pmbus) Expand scope of device specific get_status function hwmon: (pmbus) Introduce infrastructure to detect sensors and limit registers hwmon: Driver for MAX16065 System Manager and compatibles hwmon: (sht15) add support for CRC validation hwmon: (sht15) add support for the status register hwmon: (sht15) clean-up the probe function hwmon: (sht15) general code clean-up hwmon: Add support for MAX6642
- Loading branch information
Showing
23 changed files
with
3,765 additions
and
1,442 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,60 @@ | ||
Kernel driver adm1275 | ||
===================== | ||
|
||
Supported chips: | ||
* Analog Devices ADM1275 | ||
Prefix: 'adm1275' | ||
Addresses scanned: - | ||
Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1275.pdf | ||
|
||
Author: Guenter Roeck <guenter.roeck@ericsson.com> | ||
|
||
|
||
Description | ||
----------- | ||
|
||
This driver supports hardware montoring for Analog Devices ADM1275 Hot-Swap | ||
Controller and Digital Power Monitor. | ||
|
||
The ADM1275 is a hot-swap controller that allows a circuit board to be removed | ||
from or inserted into a live backplane. It also features current and voltage | ||
readback via an integrated 12-bit analog-to-digital converter (ADC), accessed | ||
using a PMBus. interface. | ||
|
||
The driver is a client driver to the core PMBus driver. Please see | ||
Documentation/hwmon/pmbus for details on PMBus client drivers. | ||
|
||
|
||
Usage Notes | ||
----------- | ||
|
||
This driver does not auto-detect devices. You will have to instantiate the | ||
devices explicitly. Please see Documentation/i2c/instantiating-devices for | ||
details. | ||
|
||
|
||
Platform data support | ||
--------------------- | ||
|
||
The driver supports standard PMBus driver platform data. Please see | ||
Documentation/hwmon/pmbus for details. | ||
|
||
|
||
Sysfs entries | ||
------------- | ||
|
||
The following attributes are supported. Limits are read-write; all other | ||
attributes are read-only. | ||
|
||
in1_label "vin1" or "vout1" depending on chip variant and | ||
configuration. | ||
in1_input Measured voltage. From READ_VOUT register. | ||
in1_min Minumum Voltage. From VOUT_UV_WARN_LIMIT register. | ||
in1_max Maximum voltage. From VOUT_OV_WARN_LIMIT register. | ||
in1_min_alarm Voltage low alarm. From VOLTAGE_UV_WARNING status. | ||
in1_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status. | ||
|
||
curr1_label "iout1" | ||
curr1_input Measured current. From READ_IOUT register. | ||
curr1_max Maximum current. From IOUT_OC_WARN_LIMIT register. | ||
curr1_max_alarm Current high alarm. From IOUT_OC_WARN_LIMIT register. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
Kernel driver max16065 | ||
====================== | ||
|
||
Supported chips: | ||
* Maxim MAX16065, MAX16066 | ||
Prefixes: 'max16065', 'max16066' | ||
Addresses scanned: - | ||
Datasheet: | ||
http://datasheets.maxim-ic.com/en/ds/MAX16065-MAX16066.pdf | ||
* Maxim MAX16067 | ||
Prefix: 'max16067' | ||
Addresses scanned: - | ||
Datasheet: | ||
http://datasheets.maxim-ic.com/en/ds/MAX16067.pdf | ||
* Maxim MAX16068 | ||
Prefix: 'max16068' | ||
Addresses scanned: - | ||
Datasheet: | ||
http://datasheets.maxim-ic.com/en/ds/MAX16068.pdf | ||
* Maxim MAX16070/MAX16071 | ||
Prefixes: 'max16070', 'max16071' | ||
Addresses scanned: - | ||
Datasheet: | ||
http://datasheets.maxim-ic.com/en/ds/MAX16070-MAX16071.pdf | ||
|
||
|
||
Author: Guenter Roeck <guenter.roeck@ericsson.com> | ||
|
||
|
||
Description | ||
----------- | ||
|
||
[From datasheets] The MAX16065/MAX16066 flash-configurable system managers | ||
monitor and sequence multiple system voltages. The MAX16065/MAX16066 can also | ||
accurately monitor (+/-2.5%) one current channel using a dedicated high-side | ||
current-sense amplifier. The MAX16065 manages up to twelve system voltages | ||
simultaneously, and the MAX16066 manages up to eight supply voltages. | ||
|
||
The MAX16067 flash-configurable system manager monitors and sequences multiple | ||
system voltages. The MAX16067 manages up to six system voltages simultaneously. | ||
|
||
The MAX16068 flash-configurable system manager monitors and manages up to six | ||
system voltages simultaneously. | ||
|
||
The MAX16070/MAX16071 flash-configurable system monitors supervise multiple | ||
system voltages. The MAX16070/MAX16071 can also accurately monitor (+/-2.5%) | ||
one current channel using a dedicated high-side current-sense amplifier. The | ||
MAX16070 monitors up to twelve system voltages simultaneously, and the MAX16071 | ||
monitors up to eight supply voltages. | ||
|
||
Each monitored channel has its own low and high critical limits. MAX16065, | ||
MAX16066, MAX16070, and MAX16071 support an additional limit which is | ||
configurable as either low or high secondary limit. MAX16065, MAX16066, | ||
MAX16070, and MAX16071 also support supply current monitoring. | ||
|
||
|
||
Usage Notes | ||
----------- | ||
|
||
This driver does not probe for devices, since there is no register which | ||
can be safely used to identify the chip. You will have to instantiate | ||
the devices explicitly. Please see Documentation/i2c/instantiating-devices for | ||
details. | ||
|
||
|
||
Sysfs entries | ||
------------- | ||
|
||
in[0-11]_input Input voltage measurements. | ||
|
||
in12_input Voltage on CSP (Current Sense Positive) pin. | ||
Only if the chip supports current sensing and if | ||
current sensing is enabled. | ||
|
||
in[0-11]_min Low warning limit. | ||
Supported on MAX16065, MAX16066, MAX16070, and MAX16071 | ||
only. | ||
|
||
in[0-11]_max High warning limit. | ||
Supported on MAX16065, MAX16066, MAX16070, and MAX16071 | ||
only. | ||
|
||
Either low or high warning limits are supported | ||
(depending on chip configuration), but not both. | ||
|
||
in[0-11]_lcrit Low critical limit. | ||
|
||
in[0-11]_crit High critical limit. | ||
|
||
in[0-11]_alarm Input voltage alarm. | ||
|
||
curr1_input Current sense input; only if the chip supports current | ||
sensing and if current sensing is enabled. | ||
Displayed current assumes 0.001 Ohm current sense | ||
resistor. | ||
|
||
curr1_alarm Overcurrent alarm; only if the chip supports current | ||
sensing and if current sensing is enabled. |
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,21 @@ | ||
Kernel driver max6642 | ||
===================== | ||
|
||
Supported chips: | ||
* Maxim MAX6642 | ||
Prefix: 'max6642' | ||
Addresses scanned: I2C 0x48-0x4f | ||
Datasheet: Publicly available at the Maxim website | ||
http://datasheets.maxim-ic.com/en/ds/MAX6642.pdf | ||
|
||
Authors: | ||
Per Dalen <per.dalen@appeartv.com> | ||
|
||
Description | ||
----------- | ||
|
||
The MAX6642 is a digital temperature sensor. It senses its own temperature as | ||
well as the temperature on one external diode. | ||
|
||
All temperature values are given in degrees Celsius. Resolution | ||
is 0.25 degree for the local temperature and for the remote temperature. |
This file was deleted.
Oops, something went wrong.
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,74 @@ | ||
Kernel driver sht15 | ||
=================== | ||
|
||
Authors: | ||
* Wouter Horre | ||
* Jonathan Cameron | ||
* Vivien Didelot <vivien.didelot@savoirfairelinux.com> | ||
* Jerome Oufella <jerome.oufella@savoirfairelinux.com> | ||
|
||
Supported chips: | ||
* Sensirion SHT10 | ||
Prefix: 'sht10' | ||
|
||
* Sensirion SHT11 | ||
Prefix: 'sht11' | ||
|
||
* Sensirion SHT15 | ||
Prefix: 'sht15' | ||
|
||
* Sensirion SHT71 | ||
Prefix: 'sht71' | ||
|
||
* Sensirion SHT75 | ||
Prefix: 'sht75' | ||
|
||
Datasheet: Publicly available at the Sensirion website | ||
http://www.sensirion.ch/en/pdf/product_information/Datasheet-humidity-sensor-SHT1x.pdf | ||
|
||
Description | ||
----------- | ||
|
||
The SHT10, SHT11, SHT15, SHT71, and SHT75 are humidity and temperature | ||
sensors. | ||
|
||
The devices communicate using two GPIO lines. | ||
|
||
Supported resolutions for the measurements are 14 bits for temperature and 12 | ||
bits for humidity, or 12 bits for temperature and 8 bits for humidity. | ||
|
||
The humidity calibration coefficients are programmed into an OTP memory on the | ||
chip. These coefficients are used to internally calibrate the signals from the | ||
sensors. Disabling the reload of those coefficients allows saving 10ms for each | ||
measurement and decrease power consumption, while loosing on precision. | ||
|
||
Some options may be set directly in the sht15_platform_data structure | ||
or via sysfs attributes. | ||
|
||
Notes: | ||
* The regulator supply name is set to "vcc". | ||
* If a CRC validation fails, a soft reset command is sent, which resets | ||
status register to its hardware default value, but the driver will try to | ||
restore the previous device configuration. | ||
|
||
Platform data | ||
------------- | ||
|
||
* checksum: | ||
set it to true to enable CRC validation of the readings (default to false). | ||
* no_otp_reload: | ||
flag to indicate not to reload from OTP (default to false). | ||
* low_resolution: | ||
flag to indicate the temp/humidity resolution to use (default to false). | ||
|
||
Sysfs interface | ||
--------------- | ||
|
||
* temp1_input: temperature input | ||
* humidity1_input: humidity input | ||
* heater_enable: write 1 in this attribute to enable the on-chip heater, | ||
0 to disable it. Be careful not to enable the heater | ||
for too long. | ||
* temp1_fault: if 1, this means that the voltage is low (below 2.47V) and | ||
measurement may be invalid. | ||
* humidity1_fault: same as temp1_fault. |
Oops, something went wrong.