Skip to content

Commit 3cb6032

Browse files
committed
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 ...
2 parents 2355e42 + c5794cf commit 3cb6032

30 files changed

Lines changed: 2755 additions & 331 deletions

‎Documentation/hwmon/ad7314‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Kernel driver ad7314
2+
====================
3+
4+
Supported chips:
5+
* Analog Devices AD7314
6+
Prefix: 'ad7314'
7+
Datasheet: Publicly available at Analog Devices website.
8+
* Analog Devices ADT7301
9+
Prefix: 'adt7301'
10+
Datasheet: Publicly available at Analog Devices website.
11+
* Analog Devices ADT7302
12+
Prefix: 'adt7302'
13+
Datasheet: Publicly available at Analog Devices website.
14+
15+
Description
16+
-----------
17+
18+
Driver supports the above parts. The ad7314 has a 10 bit
19+
sensor with 1lsb = 0.25 degrees centigrade. The adt7301 and
20+
adt7302 have 14 bit sensors with 1lsb = 0.03125 degrees centigrade.
21+
22+
Notes
23+
-----
24+
25+
Currently power down mode is not supported.

‎Documentation/hwmon/adm1275‎

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@ Supported chips:
66
Prefix: 'adm1275'
77
Addresses scanned: -
88
Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1275.pdf
9+
* Analog Devices ADM1276
10+
Prefix: 'adm1276'
11+
Addresses scanned: -
12+
Datasheet: www.analog.com/static/imported-files/data_sheets/ADM1276.pdf
913

1014
Author: Guenter Roeck <guenter.roeck@ericsson.com>
1115

1216

1317
Description
1418
-----------
1519

16-
This driver supports hardware montoring for Analog Devices ADM1275 Hot-Swap
17-
Controller and Digital Power Monitor.
20+
This driver supports hardware montoring for Analog Devices ADM1275 and ADM1276
21+
Hot-Swap Controller and Digital Power Monitor.
1822

19-
The ADM1275 is a hot-swap controller that allows a circuit board to be removed
20-
from or inserted into a live backplane. It also features current and voltage
21-
readback via an integrated 12-bit analog-to-digital converter (ADC), accessed
22-
using a PMBus. interface.
23+
ADM1275 and ADM1276 are hot-swap controllers that allow a circuit board to be
24+
removed from or inserted into a live backplane. They also feature current and
25+
voltage readback via an integrated 12-bit analog-to-digital converter (ADC),
26+
accessed using a PMBus interface.
2327

2428
The driver is a client driver to the core PMBus driver. Please see
2529
Documentation/hwmon/pmbus for details on PMBus client drivers.
@@ -48,17 +52,25 @@ attributes are write-only, all other attributes are read-only.
4852

4953
in1_label "vin1" or "vout1" depending on chip variant and
5054
configuration.
51-
in1_input Measured voltage. From READ_VOUT register.
52-
in1_min Minumum Voltage. From VOUT_UV_WARN_LIMIT register.
53-
in1_max Maximum voltage. From VOUT_OV_WARN_LIMIT register.
54-
in1_min_alarm Voltage low alarm. From VOLTAGE_UV_WARNING status.
55-
in1_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status.
55+
in1_input Measured voltage.
56+
in1_min Minumum Voltage.
57+
in1_max Maximum voltage.
58+
in1_min_alarm Voltage low alarm.
59+
in1_max_alarm Voltage high alarm.
5660
in1_highest Historical maximum voltage.
5761
in1_reset_history Write any value to reset history.
5862

5963
curr1_label "iout1"
60-
curr1_input Measured current. From READ_IOUT register.
61-
curr1_max Maximum current. From IOUT_OC_WARN_LIMIT register.
62-
curr1_max_alarm Current high alarm. From IOUT_OC_WARN_LIMIT register.
64+
curr1_input Measured current.
65+
curr1_max Maximum current.
66+
curr1_max_alarm Current high alarm.
67+
curr1_lcrit Critical minimum current. Depending on the chip
68+
configuration, either curr1_lcrit or curr1_crit is
69+
supported, but not both.
70+
curr1_lcrit_alarm Critical current low alarm.
71+
curr1_crit Critical maximum current. Depending on the chip
72+
configuration, either curr1_lcrit or curr1_crit is
73+
supported, but not both.
74+
curr1_crit_alarm Critical current high alarm.
6375
curr1_highest Historical maximum current.
6476
curr1_reset_history Write any value to reset history.

‎Documentation/hwmon/exynos4_tmu‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
Kernel driver exynos4_tmu
2+
=================
3+
4+
Supported chips:
5+
* ARM SAMSUNG EXYNOS4 series of SoC
6+
Prefix: 'exynos4-tmu'
7+
Datasheet: Not publicly available
8+
9+
Authors: Donggeun Kim <dg77.kim@samsung.com>
10+
11+
Description
12+
-----------
13+
14+
This driver allows to read temperature inside SAMSUNG EXYNOS4 series of SoC.
15+
16+
The chip only exposes the measured 8-bit temperature code value
17+
through a register.
18+
Temperature can be taken from the temperature code.
19+
There are three equations converting from temperature to temperature code.
20+
21+
The three equations are:
22+
1. Two point trimming
23+
Tc = (T - 25) * (TI2 - TI1) / (85 - 25) + TI1
24+
25+
2. One point trimming
26+
Tc = T + TI1 - 25
27+
28+
3. No trimming
29+
Tc = T + 50
30+
31+
Tc: Temperature code, T: Temperature,
32+
TI1: Trimming info for 25 degree Celsius (stored at TRIMINFO register)
33+
Temperature code measured at 25 degree Celsius which is unchanged
34+
TI2: Trimming info for 85 degree Celsius (stored at TRIMINFO register)
35+
Temperature code measured at 85 degree Celsius which is unchanged
36+
37+
TMU(Thermal Management Unit) in EXYNOS4 generates interrupt
38+
when temperature exceeds pre-defined levels.
39+
The maximum number of configurable threshold is four.
40+
The threshold levels are defined as follows:
41+
Level_0: current temperature > trigger_level_0 + threshold
42+
Level_1: current temperature > trigger_level_1 + threshold
43+
Level_2: current temperature > trigger_level_2 + threshold
44+
Level_3: current temperature > trigger_level_3 + threshold
45+
46+
The threshold and each trigger_level are set
47+
through the corresponding registers.
48+
49+
When an interrupt occurs, this driver notify user space of
50+
one of four threshold levels for the interrupt
51+
through kobject_uevent_env and sysfs_notify functions.
52+
Although an interrupt condition for level_0 can be set,
53+
it is not notified to user space through sysfs_notify function.
54+
55+
Sysfs Interface
56+
---------------
57+
name name of the temperature sensor
58+
RO
59+
60+
temp1_input temperature
61+
RO
62+
63+
temp1_max temperature for level_1 interrupt
64+
RO
65+
66+
temp1_crit temperature for level_2 interrupt
67+
RO
68+
69+
temp1_emergency temperature for level_3 interrupt
70+
RO
71+
72+
temp1_max_alarm alarm for level_1 interrupt
73+
RO
74+
75+
temp1_crit_alarm
76+
alarm for level_2 interrupt
77+
RO
78+
79+
temp1_emergency_alarm
80+
alarm for level_3 interrupt
81+
RO

‎Documentation/hwmon/lm75‎

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,46 @@ Supported chips:
1212
Addresses scanned: I2C 0x48 - 0x4f
1313
Datasheet: Publicly available at the National Semiconductor website
1414
http://www.national.com/
15-
* Dallas Semiconductor DS75
16-
Prefix: 'lm75'
17-
Addresses scanned: I2C 0x48 - 0x4f
18-
Datasheet: Publicly available at the Dallas Semiconductor website
19-
http://www.maxim-ic.com/
20-
* Dallas Semiconductor DS1775
21-
Prefix: 'lm75'
22-
Addresses scanned: I2C 0x48 - 0x4f
15+
* Dallas Semiconductor DS75, DS1775
16+
Prefixes: 'ds75', 'ds1775'
17+
Addresses scanned: none
2318
Datasheet: Publicly available at the Dallas Semiconductor website
2419
http://www.maxim-ic.com/
2520
* Maxim MAX6625, MAX6626
26-
Prefix: 'lm75'
27-
Addresses scanned: I2C 0x48 - 0x4b
21+
Prefixes: 'max6625', 'max6626'
22+
Addresses scanned: none
2823
Datasheet: Publicly available at the Maxim website
2924
http://www.maxim-ic.com/
3025
* Microchip (TelCom) TCN75
3126
Prefix: 'lm75'
32-
Addresses scanned: I2C 0x48 - 0x4f
27+
Addresses scanned: none
28+
Datasheet: Publicly available at the Microchip website
29+
http://www.microchip.com/
30+
* Microchip MCP9800, MCP9801, MCP9802, MCP9803
31+
Prefix: 'mcp980x'
32+
Addresses scanned: none
3333
Datasheet: Publicly available at the Microchip website
3434
http://www.microchip.com/
35+
* Analog Devices ADT75
36+
Prefix: 'adt75'
37+
Addresses scanned: none
38+
Datasheet: Publicly available at the Analog Devices website
39+
http://www.analog.com/adt75
40+
* ST Microelectronics STDS75
41+
Prefix: 'stds75'
42+
Addresses scanned: none
43+
Datasheet: Publicly available at the ST website
44+
http://www.st.com/internet/analog/product/121769.jsp
45+
* Texas Instruments TMP100, TMP101, TMP105, TMP75, TMP175, TMP275
46+
Prefixes: 'tmp100', 'tmp101', 'tmp105', 'tmp175', 'tmp75', 'tmp275'
47+
Addresses scanned: none
48+
Datasheet: Publicly available at the Texas Instruments website
49+
http://www.ti.com/product/tmp100
50+
http://www.ti.com/product/tmp101
51+
http://www.ti.com/product/tmp105
52+
http://www.ti.com/product/tmp75
53+
http://www.ti.com/product/tmp175
54+
http://www.ti.com/product/tmp275
3555

3656
Author: Frodo Looijaard <frodol@dds.nl>
3757

@@ -50,21 +70,16 @@ range of -55 to +125 degrees.
5070
The LM75 only updates its values each 1.5 seconds; reading it more often
5171
will do no harm, but will return 'old' values.
5272

53-
The LM75 is usually used in combination with LM78-like chips, to measure
54-
the temperature of the processor(s).
55-
56-
The DS75, DS1775, MAX6625, and MAX6626 are supported as well.
57-
They are not distinguished from an LM75. While most of these chips
58-
have three additional bits of accuracy (12 vs. 9 for the LM75),
59-
the additional bits are not supported. Not only that, but these chips will
60-
not be detected if not in 9-bit precision mode (use the force parameter if
61-
needed).
62-
63-
The TCN75 is supported as well, and is not distinguished from an LM75.
73+
The original LM75 was typically used in combination with LM78-like chips
74+
on PC motherboards, to measure the temperature of the processor(s). Clones
75+
are now used in various embedded designs.
6476

6577
The LM75 is essentially an industry standard; there may be other
6678
LM75 clones not listed here, with or without various enhancements,
67-
that are supported.
79+
that are supported. The clones are not detected by the driver, unless
80+
they reproduce the exact register tricks of the original LM75, and must
81+
therefore be instantiated explicitly. The specific enhancements (such as
82+
higher resolution) are not currently supported by the driver.
6883

6984
The LM77 is not supported, contrary to what we pretended for a long time.
7085
Both chips are simply not compatible, value encoding differs.

‎Documentation/hwmon/ltc2978‎

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
Kernel driver ltc2978
2+
=====================
3+
4+
Supported chips:
5+
* Linear Technology LTC2978
6+
Prefix: 'ltc2978'
7+
Addresses scanned: -
8+
Datasheet: http://cds.linear.com/docs/Datasheet/2978fa.pdf
9+
* Linear Technology LTC3880
10+
Prefix: 'ltc3880'
11+
Addresses scanned: -
12+
Datasheet: http://cds.linear.com/docs/Datasheet/3880f.pdf
13+
14+
Author: Guenter Roeck <guenter.roeck@ericsson.com>
15+
16+
17+
Description
18+
-----------
19+
20+
The LTC2978 is an octal power supply monitor, supervisor, sequencer and
21+
margin controller. The LTC3880 is a dual, PolyPhase DC/DC synchronous
22+
step-down switching regulator controller.
23+
24+
25+
Usage Notes
26+
-----------
27+
28+
This driver does not probe for PMBus devices. You will have to instantiate
29+
devices explicitly.
30+
31+
Example: the following commands will load the driver for an LTC2978 at address
32+
0x60 on I2C bus #1:
33+
34+
# modprobe ltc2978
35+
# echo ltc2978 0x60 > /sys/bus/i2c/devices/i2c-1/new_device
36+
37+
38+
Sysfs attributes
39+
----------------
40+
41+
in1_label "vin"
42+
in1_input Measured input voltage.
43+
in1_min Minimum input voltage.
44+
in1_max Maximum input voltage.
45+
in1_lcrit Critical minimum input voltage.
46+
in1_crit Critical maximum input voltage.
47+
in1_min_alarm Input voltage low alarm.
48+
in1_max_alarm Input voltage high alarm.
49+
in1_lcrit_alarm Input voltage critical low alarm.
50+
in1_crit_alarm Input voltage critical high alarm.
51+
in1_lowest Lowest input voltage. LTC2978 only.
52+
in1_highest Highest input voltage.
53+
in1_reset_history Reset history. Writing into this attribute will reset
54+
history for all attributes.
55+
56+
in[2-9]_label "vout[1-8]". Channels 3 to 9 on LTC2978 only.
57+
in[2-9]_input Measured output voltage.
58+
in[2-9]_min Minimum output voltage.
59+
in[2-9]_max Maximum output voltage.
60+
in[2-9]_lcrit Critical minimum output voltage.
61+
in[2-9]_crit Critical maximum output voltage.
62+
in[2-9]_min_alarm Output voltage low alarm.
63+
in[2-9]_max_alarm Output voltage high alarm.
64+
in[2-9]_lcrit_alarm Output voltage critical low alarm.
65+
in[2-9]_crit_alarm Output voltage critical high alarm.
66+
in[2-9]_lowest Lowest output voltage. LTC2978 only.
67+
in[2-9]_highest Lowest output voltage.
68+
in[2-9]_reset_history Reset history. Writing into this attribute will reset
69+
history for all attributes.
70+
71+
temp[1-3]_input Measured temperature.
72+
On LTC2978, only one temperature measurement is
73+
supported and reflects the internal temperature.
74+
On LTC3880, temp1 and temp2 report external
75+
temperatures, and temp3 reports the internal
76+
temperature.
77+
temp[1-3]_min Mimimum temperature.
78+
temp[1-3]_max Maximum temperature.
79+
temp[1-3]_lcrit Critical low temperature.
80+
temp[1-3]_crit Critical high temperature.
81+
temp[1-3]_min_alarm Chip temperature low alarm.
82+
temp[1-3]_max_alarm Chip temperature high alarm.
83+
temp[1-3]_lcrit_alarm Chip temperature critical low alarm.
84+
temp[1-3]_crit_alarm Chip temperature critical high alarm.
85+
temp[1-3]_lowest Lowest measured temperature. LTC2978 only.
86+
temp[1-3]_highest Highest measured temperature.
87+
temp[1-3]_reset_history Reset history. Writing into this attribute will reset
88+
history for all attributes.
89+
90+
power[1-2]_label "pout[1-2]". LTC3880 only.
91+
power[1-2]_input Measured power.
92+
93+
curr1_label "iin". LTC3880 only.
94+
curr1_input Measured input current.
95+
curr1_max Maximum input current.
96+
curr1_max_alarm Input current high alarm.
97+
98+
curr[2-3]_label "iout[1-2]". LTC3880 only.
99+
curr[2-3]_input Measured input current.
100+
curr[2-3]_max Maximum input current.
101+
curr[2-3]_crit Critical input current.
102+
curr[2-3]_max_alarm Input current high alarm.
103+
curr[2-3]_crit_alarm Input current critical high alarm.

‎Documentation/hwmon/pmbus‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ Supported chips:
88
Addresses scanned: -
99
Datasheet:
1010
http://archive.ericsson.net/service/internet/picov/get?DocNo=28701-EN/LZT146395
11-
* Linear Technology LTC2978
12-
Octal PMBus Power Supply Monitor and Controller
13-
Prefix: 'ltc2978'
14-
Addresses scanned: -
15-
Datasheet: http://cds.linear.com/docs/Datasheet/2978fa.pdf
1611
* ON Semiconductor ADP4000, NCP4200, NCP4208
1712
Prefixes: 'adp4000', 'ncp4200', 'ncp4208'
1813
Addresses scanned: -
1914
Datasheets:
2015
http://www.onsemi.com/pub_link/Collateral/ADP4000-D.PDF
2116
http://www.onsemi.com/pub_link/Collateral/NCP4200-D.PDF
2217
http://www.onsemi.com/pub_link/Collateral/JUNE%202009-%20REV.%200.PDF
18+
* Lineage Power
19+
Prefixes: 'pdt003', 'pdt006', 'pdt012', 'udt020'
20+
Addresses scanned: -
21+
Datasheets:
22+
http://www.lineagepower.com/oem/pdf/PDT003A0X.pdf
23+
http://www.lineagepower.com/oem/pdf/PDT006A0X.pdf
24+
http://www.lineagepower.com/oem/pdf/PDT012A0X.pdf
25+
http://www.lineagepower.com/oem/pdf/UDT020A0X.pdf
2326
* Generic PMBus devices
2427
Prefix: 'pmbus'
2528
Addresses scanned: -

0 commit comments

Comments
 (0)