-
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/linux-staging * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (26 commits) hwmon: (w83627ehf) Better fix for negative temperature values hwmon: (w83627ehf) Uninline is_word_sized hwmon: (lm75) Document why clones are not detected hwmon: (w83627ehf) Move fan pins check to a separate function hwmon: (w83627ehf) Skip reading unused voltage registers hwmon: (lm75) Add support for Analog Devices ADT75 hwmon: (pmbus_core) Simplify sign extensions hwmon: (pmbus) Add support for Lineage Power DC-DC converters hwmon: (pmbus/ltc2978) Add support for LTC3880 to LTC2978 driver hwmon: (pmbus/ltc2978) Explicit driver for LTC2978 hwmon: (pmbus) Add support for TEMP2 peak attributes hwmon: AD7314 driver (ported from IIO) hwmon: (pmbus) Add support for Intersil power management chips hwmon: (pmbus) Always call _pmbus_read_byte in core driver hwmon: (pmbus) Replace EINVAL return codes with more appropriate errors hwmon: (pmbus) Provide more documentation hwmon/f71882fg: Make the decision wether to register fan attr. per fan hwmon/f71882fg: Add a f71882fg_create_fan_sysfs_files helper function hwmon/f71882fg: Make all fan/pwm attr tables 2 dimensional hwmon: (exynos4_tmu) Remove IRQF_DISABLED ...
- Loading branch information
Showing
30 changed files
with
2,755 additions
and
331 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,25 @@ | ||
Kernel driver ad7314 | ||
==================== | ||
|
||
Supported chips: | ||
* Analog Devices AD7314 | ||
Prefix: 'ad7314' | ||
Datasheet: Publicly available at Analog Devices website. | ||
* Analog Devices ADT7301 | ||
Prefix: 'adt7301' | ||
Datasheet: Publicly available at Analog Devices website. | ||
* Analog Devices ADT7302 | ||
Prefix: 'adt7302' | ||
Datasheet: Publicly available at Analog Devices website. | ||
|
||
Description | ||
----------- | ||
|
||
Driver supports the above parts. The ad7314 has a 10 bit | ||
sensor with 1lsb = 0.25 degrees centigrade. The adt7301 and | ||
adt7302 have 14 bit sensors with 1lsb = 0.03125 degrees centigrade. | ||
|
||
Notes | ||
----- | ||
|
||
Currently power down mode is not supported. |
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,81 @@ | ||
Kernel driver exynos4_tmu | ||
================= | ||
|
||
Supported chips: | ||
* ARM SAMSUNG EXYNOS4 series of SoC | ||
Prefix: 'exynos4-tmu' | ||
Datasheet: Not publicly available | ||
|
||
Authors: Donggeun Kim <dg77.kim@samsung.com> | ||
|
||
Description | ||
----------- | ||
|
||
This driver allows to read temperature inside SAMSUNG EXYNOS4 series of SoC. | ||
|
||
The chip only exposes the measured 8-bit temperature code value | ||
through a register. | ||
Temperature can be taken from the temperature code. | ||
There are three equations converting from temperature to temperature code. | ||
|
||
The three equations are: | ||
1. Two point trimming | ||
Tc = (T - 25) * (TI2 - TI1) / (85 - 25) + TI1 | ||
|
||
2. One point trimming | ||
Tc = T + TI1 - 25 | ||
|
||
3. No trimming | ||
Tc = T + 50 | ||
|
||
Tc: Temperature code, T: Temperature, | ||
TI1: Trimming info for 25 degree Celsius (stored at TRIMINFO register) | ||
Temperature code measured at 25 degree Celsius which is unchanged | ||
TI2: Trimming info for 85 degree Celsius (stored at TRIMINFO register) | ||
Temperature code measured at 85 degree Celsius which is unchanged | ||
|
||
TMU(Thermal Management Unit) in EXYNOS4 generates interrupt | ||
when temperature exceeds pre-defined levels. | ||
The maximum number of configurable threshold is four. | ||
The threshold levels are defined as follows: | ||
Level_0: current temperature > trigger_level_0 + threshold | ||
Level_1: current temperature > trigger_level_1 + threshold | ||
Level_2: current temperature > trigger_level_2 + threshold | ||
Level_3: current temperature > trigger_level_3 + threshold | ||
|
||
The threshold and each trigger_level are set | ||
through the corresponding registers. | ||
|
||
When an interrupt occurs, this driver notify user space of | ||
one of four threshold levels for the interrupt | ||
through kobject_uevent_env and sysfs_notify functions. | ||
Although an interrupt condition for level_0 can be set, | ||
it is not notified to user space through sysfs_notify function. | ||
|
||
Sysfs Interface | ||
--------------- | ||
name name of the temperature sensor | ||
RO | ||
|
||
temp1_input temperature | ||
RO | ||
|
||
temp1_max temperature for level_1 interrupt | ||
RO | ||
|
||
temp1_crit temperature for level_2 interrupt | ||
RO | ||
|
||
temp1_emergency temperature for level_3 interrupt | ||
RO | ||
|
||
temp1_max_alarm alarm for level_1 interrupt | ||
RO | ||
|
||
temp1_crit_alarm | ||
alarm for level_2 interrupt | ||
RO | ||
|
||
temp1_emergency_alarm | ||
alarm for level_3 interrupt | ||
RO |
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,103 @@ | ||
Kernel driver ltc2978 | ||
===================== | ||
|
||
Supported chips: | ||
* Linear Technology LTC2978 | ||
Prefix: 'ltc2978' | ||
Addresses scanned: - | ||
Datasheet: http://cds.linear.com/docs/Datasheet/2978fa.pdf | ||
* Linear Technology LTC3880 | ||
Prefix: 'ltc3880' | ||
Addresses scanned: - | ||
Datasheet: http://cds.linear.com/docs/Datasheet/3880f.pdf | ||
|
||
Author: Guenter Roeck <guenter.roeck@ericsson.com> | ||
|
||
|
||
Description | ||
----------- | ||
|
||
The LTC2978 is an octal power supply monitor, supervisor, sequencer and | ||
margin controller. The LTC3880 is a dual, PolyPhase DC/DC synchronous | ||
step-down switching regulator controller. | ||
|
||
|
||
Usage Notes | ||
----------- | ||
|
||
This driver does not probe for PMBus devices. You will have to instantiate | ||
devices explicitly. | ||
|
||
Example: the following commands will load the driver for an LTC2978 at address | ||
0x60 on I2C bus #1: | ||
|
||
# modprobe ltc2978 | ||
# echo ltc2978 0x60 > /sys/bus/i2c/devices/i2c-1/new_device | ||
|
||
|
||
Sysfs attributes | ||
---------------- | ||
|
||
in1_label "vin" | ||
in1_input Measured input voltage. | ||
in1_min Minimum input voltage. | ||
in1_max Maximum input voltage. | ||
in1_lcrit Critical minimum input voltage. | ||
in1_crit Critical maximum input voltage. | ||
in1_min_alarm Input voltage low alarm. | ||
in1_max_alarm Input voltage high alarm. | ||
in1_lcrit_alarm Input voltage critical low alarm. | ||
in1_crit_alarm Input voltage critical high alarm. | ||
in1_lowest Lowest input voltage. LTC2978 only. | ||
in1_highest Highest input voltage. | ||
in1_reset_history Reset history. Writing into this attribute will reset | ||
history for all attributes. | ||
|
||
in[2-9]_label "vout[1-8]". Channels 3 to 9 on LTC2978 only. | ||
in[2-9]_input Measured output voltage. | ||
in[2-9]_min Minimum output voltage. | ||
in[2-9]_max Maximum output voltage. | ||
in[2-9]_lcrit Critical minimum output voltage. | ||
in[2-9]_crit Critical maximum output voltage. | ||
in[2-9]_min_alarm Output voltage low alarm. | ||
in[2-9]_max_alarm Output voltage high alarm. | ||
in[2-9]_lcrit_alarm Output voltage critical low alarm. | ||
in[2-9]_crit_alarm Output voltage critical high alarm. | ||
in[2-9]_lowest Lowest output voltage. LTC2978 only. | ||
in[2-9]_highest Lowest output voltage. | ||
in[2-9]_reset_history Reset history. Writing into this attribute will reset | ||
history for all attributes. | ||
|
||
temp[1-3]_input Measured temperature. | ||
On LTC2978, only one temperature measurement is | ||
supported and reflects the internal temperature. | ||
On LTC3880, temp1 and temp2 report external | ||
temperatures, and temp3 reports the internal | ||
temperature. | ||
temp[1-3]_min Mimimum temperature. | ||
temp[1-3]_max Maximum temperature. | ||
temp[1-3]_lcrit Critical low temperature. | ||
temp[1-3]_crit Critical high temperature. | ||
temp[1-3]_min_alarm Chip temperature low alarm. | ||
temp[1-3]_max_alarm Chip temperature high alarm. | ||
temp[1-3]_lcrit_alarm Chip temperature critical low alarm. | ||
temp[1-3]_crit_alarm Chip temperature critical high alarm. | ||
temp[1-3]_lowest Lowest measured temperature. LTC2978 only. | ||
temp[1-3]_highest Highest measured temperature. | ||
temp[1-3]_reset_history Reset history. Writing into this attribute will reset | ||
history for all attributes. | ||
|
||
power[1-2]_label "pout[1-2]". LTC3880 only. | ||
power[1-2]_input Measured power. | ||
|
||
curr1_label "iin". LTC3880 only. | ||
curr1_input Measured input current. | ||
curr1_max Maximum input current. | ||
curr1_max_alarm Input current high alarm. | ||
|
||
curr[2-3]_label "iout[1-2]". LTC3880 only. | ||
curr[2-3]_input Measured input current. | ||
curr[2-3]_max Maximum input current. | ||
curr[2-3]_crit Critical input current. | ||
curr[2-3]_max_alarm Input current high alarm. | ||
curr[2-3]_crit_alarm Input current critical high alarm. |
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.