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 tag 'hwmon-for-linus-v4.10' of git://git.kernel.org/pub/scm/lin…
…ux/kernel/git/groeck/linux-staging Pull hwmon updates from Guenter Roeck: - new drivers for TMP108 and TC654 - hwmon core code cleanup - coretemp driver cleanup - fix overflow issues in several drivers - minor fixes, cleanups and enhancements in various drivers * tag 'hwmon-for-linus-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (41 commits) hwmon: (g762) Fix overflows and crash seen when writing limit attributes hwmon: (emcw201) Fix overflows seen when writing into limit attributes hwmon: (emc2103) Fix overflows seen when temperature limit attributes hwmon: (lm85) Fix overflows seen when writing voltage limit attributes hwmon: (lm87) Fix overflow seen when writing voltage limit attributes hwmon: (nct7802) Fix overflows seen when writing into limit attributes hwmon: (adt7470) Fix overflows seen when writing into limit attributes hwmon: (adt7462) Fix overflows seen when writing into limit attributes hwmon: (adm1026) Fix overflows seen when writing into limit attributes hwmon: (adm1025) Fix overflows seen when writing voltage limits hwmon: (via-cputemp) Convert to hotplug state machine devicetree: hwmon: Add documentation for TMP108 driver. hwmon: Add Texas Instruments TMP108 temperature sensor driver. hwmon: (core) Simplify sysfs attribute name allocation hwmon: (core) Rename groups parameter in API to extra_groups hwmon: (core) Explain why at least two attribute groups are allocated hwmon: (core) Make is_visible callback truly mandatory hwmon: (core) Deprecate hwmon_device_register() hwmon: (core) Clarify use of chip attributes hwmon: (core) Add support for string attributes to new API ...
- Loading branch information
Showing
32 changed files
with
1,695 additions
and
594 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,21 @@ | ||
mcp3021 properties | ||
|
||
Required properties: | ||
- compatible: Must be one of the following: | ||
- "microchip,mcp3021" for mcp3021 | ||
- "microchip,mcp3221" for mcp3221 | ||
- reg: I2C address | ||
|
||
Optional properties: | ||
|
||
- reference-voltage-microvolt | ||
Reference voltage in microvolt (uV) | ||
|
||
Example: | ||
|
||
mcp3021@4d { | ||
compatible = "microchip,mcp3021"; | ||
reg = <0x4d>; | ||
|
||
reference-voltage-microvolt = <4500000>; /* 4.5 V */ | ||
}; |
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,14 @@ | ||
TMP108 temperature sensor | ||
------------------------- | ||
|
||
This device supports I2C only. | ||
|
||
Requires node properties: | ||
- compatible : "ti,tmp108" | ||
- reg : the I2C address of the device. This is 0x48, 0x49, 0x4a, or 0x4b. | ||
|
||
Example: | ||
tmp108@48 { | ||
compatible = "ti,tmp108"; | ||
reg = <0x48>; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Kernel driver tc654 | ||
=================== | ||
|
||
Supported chips: | ||
* Microship TC654 and TC655 | ||
Prefix: 'tc654' | ||
Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/20001734C.pdf | ||
|
||
Authors: | ||
Chris Packham <[email protected]> | ||
Masahiko Iwamoto <[email protected]> | ||
|
||
Description | ||
----------- | ||
This driver implements support for the Microchip TC654 and TC655. | ||
|
||
The TC654 uses the 2-wire interface compatible with the SMBUS 2.0 | ||
specification. The TC654 has two (2) inputs for measuring fan RPM and | ||
one (1) PWM output which can be used for fan control. | ||
|
||
Configuration Notes | ||
------------------- | ||
Ordinarily the pwm1_mode ABI is used for controlling the pwm output | ||
mode. However, for this chip the output is always pwm, and the | ||
pwm1_mode determines if the pwm output is controlled via the pwm1 value | ||
or via the Vin analog input. | ||
|
||
|
||
Setting pwm1_mode to 1 will cause the pwm output to be driven based on | ||
the pwm1 value. Setting pwm1_mode to 0 will cause the pwm output to be | ||
driven based on the Vin 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Kernel driver tmp108 | ||
==================== | ||
|
||
Supported chips: | ||
* Texas Instruments TMP108 | ||
Prefix: 'tmp108' | ||
Addresses scanned: none | ||
Datasheet: http://www.ti.com/product/tmp108 | ||
|
||
Author: | ||
John Muir <[email protected]> | ||
|
||
Description | ||
----------- | ||
|
||
The Texas Instruments TMP108 implements one temperature sensor. An alert pin | ||
can be set when temperatures exceed minimum or maximum values plus or minus a | ||
hysteresis value. (This driver does not support interrupts for the alert pin, | ||
and the device runs in comparator mode.) | ||
|
||
The sensor is accurate to 0.75C over the range of -25 to +85 C, and to 1.0 | ||
degree from -40 to +125 C. Resolution of the sensor is 0.0625 degree. The | ||
operating temperature has a minimum of -55 C and a maximum of +150 C. | ||
Hysteresis values can be set to 0, 1, 2, or 4C. | ||
|
||
The TMP108 has a programmable update rate that can select between 8, 4, 1, and | ||
0.5 Hz. | ||
|
||
By default the TMP108 reads the temperature continuously. To conserve power, | ||
the TMP108 has a one-shot mode where the device is normally shut-down. When a | ||
one shot is requested the temperature is read, the result can be retrieved, | ||
and then the device is shut down automatically. (This driver only supports | ||
continuous mode.) | ||
|
||
The driver provides the common sysfs-interface for temperatures (see | ||
Documentation/hwmon/sysfs-interface under Temperatures). |
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.