diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-20 12:26:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-20 12:26:08 -0500 |
commit | c560dc8793ecf4c3bb4ba6e7b8cae8a64486d96b (patch) | |
tree | 21d516ad43a5e3207b81731239ef207795cf7e11 /Documentation | |
parent | 8a3a11f91def34424b1995cb54ccd658efde8568 (diff) | |
parent | 4626dcff78a70258f0064fbdd6d504249f918bcd (diff) |
Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon updates from Guenter Roeck:
- New drivers for MAX6697 and compatibles and for INA209.
- Added support for IT8771E, IT8772E, MAX34460, MAX34461, MCP98244, and
ADT7420 to existing drivers.
- Added support for additional attributes to various drivers.
- Replaced SENSORS_LIMIT with clamp_val; retire SENSORS_LIMIT;
- Clean up PMBus code to reduce its size; clean up adt7410 driver.
- A couple of minor bug fixes as well as documentation cleanup.
- Out-of-tree change: Replace SENSORS_LIMIT with clamp_val in
platform/x86/eeepc-laptop driver.
* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (32 commits)
hwmon: (ntc_thermistor): Fix sparse warnings
hwmon: (adt7410) Add device table entry for the adt7420
hwmon: (adt7410) Use I2C_ADDRS helper macro
hwmon: (adt7410) Use the SIMPLE_DEV_PM_OPS helper macro
hwmon: (adt7410) Let suspend/resume depend on CONFIG_PM_SLEEP
hwmon: (adt7410) Clear unwanted bits in the config register
hwmon: (jc42) Add support for MCP98244
hwmon: (pmbus) Clean up for code size reduction
hwmon: (pmbus/max34440) Add support for MAX34460 and MAX34461
hwmon: (pmbus) Add support for word status register
hwmon: (pmbus/zl6100) Add support for VMON/VDRV
hwmon: (pmbus) Add function to clear sensor cache
hwmon: (pmbus) Add support for additional voltage sensor
hwmon: (pmbus) Use krealloc to allocate attribute memory
hwmon: (pmbus) Simplify memory allocation for sensor attributes
hwmon: (pmbus) Improve boolean handling
hwmon: (pmbus) Simplify memory allocation for labels and booleans
hwmon: (pmbus) Use dev variable to represent client->dev
hwmon: (pmbus) Fix 'Macros with multiple statements' checkpatch error
hwmon: (pmbus) Drop unnecessary error messages in probe error path
...
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/i2c/ina209.txt | 18 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/i2c/max6697.txt | 64 | ||||
-rw-r--r-- | Documentation/hwmon/coretemp | 9 | ||||
-rw-r--r-- | Documentation/hwmon/ina209 | 93 | ||||
-rw-r--r-- | Documentation/hwmon/it87 | 16 | ||||
-rw-r--r-- | Documentation/hwmon/jc42 | 3 | ||||
-rw-r--r-- | Documentation/hwmon/lm73 | 90 | ||||
-rw-r--r-- | Documentation/hwmon/max34440 | 16 | ||||
-rw-r--r-- | Documentation/hwmon/max6697 | 58 | ||||
-rw-r--r-- | Documentation/hwmon/sysfs-interface | 8 | ||||
-rw-r--r-- | Documentation/hwmon/zl6100 | 26 |
11 files changed, 386 insertions, 15 deletions
diff --git a/Documentation/devicetree/bindings/i2c/ina209.txt b/Documentation/devicetree/bindings/i2c/ina209.txt new file mode 100644 index 000000000000..9dd2bee80840 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/ina209.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | ina209 properties | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: Must be "ti,ina209" | ||
5 | - reg: I2C address | ||
6 | |||
7 | Optional properties: | ||
8 | |||
9 | - shunt-resistor | ||
10 | Shunt resistor value in micro-Ohm | ||
11 | |||
12 | Example: | ||
13 | |||
14 | temp-sensor@4c { | ||
15 | compatible = "ti,ina209"; | ||
16 | reg = <0x4c>; | ||
17 | shunt-resistor = <5000>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/i2c/max6697.txt b/Documentation/devicetree/bindings/i2c/max6697.txt new file mode 100644 index 000000000000..5f793998e4a4 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/max6697.txt | |||
@@ -0,0 +1,64 @@ | |||
1 | max6697 properties | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: | ||
5 | Should be one of | ||
6 | maxim,max6581 | ||
7 | maxim,max6602 | ||
8 | maxim,max6622 | ||
9 | maxim,max6636 | ||
10 | maxim,max6689 | ||
11 | maxim,max6693 | ||
12 | maxim,max6694 | ||
13 | maxim,max6697 | ||
14 | maxim,max6698 | ||
15 | maxim,max6699 | ||
16 | - reg: I2C address | ||
17 | |||
18 | Optional properties: | ||
19 | |||
20 | - smbus-timeout-disable | ||
21 | Set to disable SMBus timeout. If not specified, SMBus timeout will be | ||
22 | enabled. | ||
23 | - extended-range-enable | ||
24 | Only valid for MAX6581. Set to enable extended temperature range. | ||
25 | Extended temperature will be disabled if not specified. | ||
26 | - beta-compensation-enable | ||
27 | Only valid for MAX6693 and MX6694. Set to enable beta compensation on | ||
28 | remote temperature channel 1. | ||
29 | Beta compensation will be disabled if not specified. | ||
30 | - alert-mask | ||
31 | Alert bit mask. Alert disabled for bits set. | ||
32 | Select bit 0 for local temperature, bit 1..7 for remote temperatures. | ||
33 | If not specified, alert will be enabled for all channels. | ||
34 | - over-temperature-mask | ||
35 | Over-temperature bit mask. Over-temperature reporting disabled for | ||
36 | bits set. | ||
37 | Select bit 0 for local temperature, bit 1..7 for remote temperatures. | ||
38 | If not specified, over-temperature reporting will be enabled for all | ||
39 | channels. | ||
40 | - resistance-cancellation | ||
41 | Boolean for all chips other than MAX6581. Set to enable resistance | ||
42 | cancellation on remote temperature channel 1. | ||
43 | For MAX6581, resistance cancellation enabled for all channels if | ||
44 | specified as boolean, otherwise as per bit mask specified. | ||
45 | Only supported for remote temperatures (bit 1..7). | ||
46 | If not specified, resistance cancellation will be disabled for all | ||
47 | channels. | ||
48 | - transistor-ideality | ||
49 | For MAX6581 only. Two values; first is bit mask, second is ideality | ||
50 | select value as per MAX6581 data sheet. Select bit 1..7 for remote | ||
51 | channels. | ||
52 | Transistor ideality will be initialized to default (1.008) if not | ||
53 | specified. | ||
54 | |||
55 | Example: | ||
56 | |||
57 | temp-sensor@1a { | ||
58 | compatible = "maxim,max6697"; | ||
59 | reg = <0x1a>; | ||
60 | smbus-timeout-disable; | ||
61 | resistance-cancellation; | ||
62 | alert-mask = <0x72>; | ||
63 | over-temperature-mask = <0x7f>; | ||
64 | }; | ||
diff --git a/Documentation/hwmon/coretemp b/Documentation/hwmon/coretemp index 3374c085678d..fec5a9bf755f 100644 --- a/Documentation/hwmon/coretemp +++ b/Documentation/hwmon/coretemp | |||
@@ -66,6 +66,7 @@ Process Processor TjMax(C) | |||
66 | i5 3470T 91 | 66 | i5 3470T 91 |
67 | 67 | ||
68 | 32nm Core i3/i5/i7 Processors | 68 | 32nm Core i3/i5/i7 Processors |
69 | i7 2600 98 | ||
69 | i7 660UM/640/620, 640LM/620, 620M, 610E 105 | 70 | i7 660UM/640/620, 640LM/620, 620M, 610E 105 |
70 | i5 540UM/520/430, 540M/520/450/430 105 | 71 | i5 540UM/520/430, 540M/520/450/430 105 |
71 | i3 330E, 370M/350/330 90 rPGA, 105 BGA | 72 | i3 330E, 370M/350/330 90 rPGA, 105 BGA |
@@ -79,7 +80,10 @@ Process Processor TjMax(C) | |||
79 | P4505/P4500 90 | 80 | P4505/P4500 90 |
80 | 81 | ||
81 | 32nm Atom Processors | 82 | 32nm Atom Processors |
83 | S1260/1220 95 | ||
84 | S1240 102 | ||
82 | Z2460 90 | 85 | Z2460 90 |
86 | Z2760 90 | ||
83 | D2700/2550/2500 100 | 87 | D2700/2550/2500 100 |
84 | N2850/2800/2650/2600 100 | 88 | N2850/2800/2650/2600 100 |
85 | 89 | ||
@@ -98,6 +102,7 @@ Process Processor TjMax(C) | |||
98 | 102 | ||
99 | 45nm Atom Processors | 103 | 45nm Atom Processors |
100 | D525/510/425/410 100 | 104 | D525/510/425/410 100 |
105 | K525/510/425/410 100 | ||
101 | Z670/650 90 | 106 | Z670/650 90 |
102 | Z560/550/540/530P/530/520PT/520/515/510PT/510P 90 | 107 | Z560/550/540/530P/530/520PT/520/515/510PT/510P 90 |
103 | Z510/500 90 | 108 | Z510/500 90 |
@@ -107,7 +112,11 @@ Process Processor TjMax(C) | |||
107 | 330/230 125 | 112 | 330/230 125 |
108 | E680/660/640/620 90 | 113 | E680/660/640/620 90 |
109 | E680T/660T/640T/620T 110 | 114 | E680T/660T/640T/620T 110 |
115 | E665C/645C 90 | ||
116 | E665CT/645CT 110 | ||
110 | CE4170/4150/4110 110 | 117 | CE4170/4150/4110 110 |
118 | CE4200 series unknown | ||
119 | CE5300 series unknown | ||
111 | 120 | ||
112 | 45nm Core2 Processors | 121 | 45nm Core2 Processors |
113 | Solo ULV SU3500/3300 100 | 122 | Solo ULV SU3500/3300 100 |
diff --git a/Documentation/hwmon/ina209 b/Documentation/hwmon/ina209 new file mode 100644 index 000000000000..672501de4509 --- /dev/null +++ b/Documentation/hwmon/ina209 | |||
@@ -0,0 +1,93 @@ | |||
1 | Kernel driver ina209 | ||
2 | ===================== | ||
3 | |||
4 | Supported chips: | ||
5 | * Burr-Brown / Texas Instruments INA209 | ||
6 | Prefix: 'ina209' | ||
7 | Addresses scanned: - | ||
8 | Datasheet: | ||
9 | http://www.ti.com/lit/gpn/ina209 | ||
10 | |||
11 | Author: Paul Hays <Paul.Hays@cattail.ca> | ||
12 | Author: Ira W. Snyder <iws@ovro.caltech.edu> | ||
13 | Author: Guenter Roeck <linux@roeck-us.net> | ||
14 | |||
15 | |||
16 | Description | ||
17 | ----------- | ||
18 | |||
19 | The TI / Burr-Brown INA209 monitors voltage, current, and power on the high side | ||
20 | of a D.C. power supply. It can perform measurements and calculations in the | ||
21 | background to supply readings at any time. It includes a programmable | ||
22 | calibration multiplier to scale the displayed current and power values. | ||
23 | |||
24 | |||
25 | Sysfs entries | ||
26 | ------------- | ||
27 | |||
28 | The INA209 chip is highly configurable both via hardwiring and via | ||
29 | the I2C bus. See the datasheet for details. | ||
30 | |||
31 | This tries to expose most monitoring features of the hardware via | ||
32 | sysfs. It does not support every feature of this chip. | ||
33 | |||
34 | |||
35 | in0_input shunt voltage (mV) | ||
36 | in0_input_highest shunt voltage historical maximum reading (mV) | ||
37 | in0_input_lowest shunt voltage historical minimum reading (mV) | ||
38 | in0_reset_history reset shunt voltage history | ||
39 | in0_max shunt voltage max alarm limit (mV) | ||
40 | in0_min shunt voltage min alarm limit (mV) | ||
41 | in0_crit_max shunt voltage crit max alarm limit (mV) | ||
42 | in0_crit_min shunt voltage crit min alarm limit (mV) | ||
43 | in0_max_alarm shunt voltage max alarm limit exceeded | ||
44 | in0_min_alarm shunt voltage min alarm limit exceeded | ||
45 | in0_crit_max_alarm shunt voltage crit max alarm limit exceeded | ||
46 | in0_crit_min_alarm shunt voltage crit min alarm limit exceeded | ||
47 | |||
48 | in1_input bus voltage (mV) | ||
49 | in1_input_highest bus voltage historical maximum reading (mV) | ||
50 | in1_input_lowest bus voltage historical minimum reading (mV) | ||
51 | in1_reset_history reset bus voltage history | ||
52 | in1_max bus voltage max alarm limit (mV) | ||
53 | in1_min bus voltage min alarm limit (mV) | ||
54 | in1_crit_max bus voltage crit max alarm limit (mV) | ||
55 | in1_crit_min bus voltage crit min alarm limit (mV) | ||
56 | in1_max_alarm bus voltage max alarm limit exceeded | ||
57 | in1_min_alarm bus voltage min alarm limit exceeded | ||
58 | in1_crit_max_alarm bus voltage crit max alarm limit exceeded | ||
59 | in1_crit_min_alarm bus voltage crit min alarm limit exceeded | ||
60 | |||
61 | power1_input power measurement (uW) | ||
62 | power1_input_highest power historical maximum reading (uW) | ||
63 | power1_reset_history reset power history | ||
64 | power1_max power max alarm limit (uW) | ||
65 | power1_crit power crit alarm limit (uW) | ||
66 | power1_max_alarm power max alarm limit exceeded | ||
67 | power1_crit_alarm power crit alarm limit exceeded | ||
68 | |||
69 | curr1_input current measurement (mA) | ||
70 | |||
71 | update_interval data conversion time; affects number of samples used | ||
72 | to average results for shunt and bus voltages. | ||
73 | |||
74 | General Remarks | ||
75 | --------------- | ||
76 | |||
77 | The power and current registers in this chip require that the calibration | ||
78 | register is programmed correctly before they are used. Normally this is expected | ||
79 | to be done in the BIOS. In the absence of BIOS programming, the shunt resistor | ||
80 | voltage can be provided using platform data. The driver uses platform data from | ||
81 | the ina2xx driver for this purpose. If calibration register data is not provided | ||
82 | via platform data, the driver checks if the calibration register has been | ||
83 | programmed (ie has a value not equal to zero). If so, this value is retained. | ||
84 | Otherwise, a default value reflecting a shunt resistor value of 10 mOhm is | ||
85 | programmed into the calibration register. | ||
86 | |||
87 | |||
88 | Output Pins | ||
89 | ----------- | ||
90 | |||
91 | Output pin programming is a board feature which depends on the BIOS. It is | ||
92 | outside the scope of a hardware monitoring driver to enable or disable output | ||
93 | pins. | ||
diff --git a/Documentation/hwmon/it87 b/Documentation/hwmon/it87 index 8386aadc0a82..c263740f0cba 100644 --- a/Documentation/hwmon/it87 +++ b/Documentation/hwmon/it87 | |||
@@ -30,6 +30,14 @@ Supported chips: | |||
30 | Prefix: 'it8728' | 30 | Prefix: 'it8728' |
31 | Addresses scanned: from Super I/O config space (8 I/O ports) | 31 | Addresses scanned: from Super I/O config space (8 I/O ports) |
32 | Datasheet: Not publicly available | 32 | Datasheet: Not publicly available |
33 | * IT8771E | ||
34 | Prefix: 'it8771' | ||
35 | Addresses scanned: from Super I/O config space (8 I/O ports) | ||
36 | Datasheet: Not publicly available | ||
37 | * IT8772E | ||
38 | Prefix: 'it8772' | ||
39 | Addresses scanned: from Super I/O config space (8 I/O ports) | ||
40 | Datasheet: Not publicly available | ||
33 | * IT8782F | 41 | * IT8782F |
34 | Prefix: 'it8782' | 42 | Prefix: 'it8782' |
35 | Addresses scanned: from Super I/O config space (8 I/O ports) | 43 | Addresses scanned: from Super I/O config space (8 I/O ports) |
@@ -83,8 +91,8 @@ Description | |||
83 | ----------- | 91 | ----------- |
84 | 92 | ||
85 | This driver implements support for the IT8705F, IT8712F, IT8716F, | 93 | This driver implements support for the IT8705F, IT8712F, IT8716F, |
86 | IT8718F, IT8720F, IT8721F, IT8726F, IT8728F, IT8758E, IT8781F, IT8782F, | 94 | IT8718F, IT8720F, IT8721F, IT8726F, IT8728F, IT8758E, IT8771E, IT8772E, |
87 | IT8783E/F, and SiS950 chips. | 95 | IT8782F, IT8783E/F, and SiS950 chips. |
88 | 96 | ||
89 | These chips are 'Super I/O chips', supporting floppy disks, infrared ports, | 97 | These chips are 'Super I/O chips', supporting floppy disks, infrared ports, |
90 | joysticks and other miscellaneous stuff. For hardware monitoring, they | 98 | joysticks and other miscellaneous stuff. For hardware monitoring, they |
@@ -118,8 +126,8 @@ The IT8726F is just bit enhanced IT8716F with additional hardware | |||
118 | for AMD power sequencing. Therefore the chip will appear as IT8716F | 126 | for AMD power sequencing. Therefore the chip will appear as IT8716F |
119 | to userspace applications. | 127 | to userspace applications. |
120 | 128 | ||
121 | The IT8728F is considered compatible with the IT8721F, until a datasheet | 129 | The IT8728F, IT8771E, and IT8772E are considered compatible with the IT8721F, |
122 | becomes available (hopefully.) | 130 | until a datasheet becomes available (hopefully.) |
123 | 131 | ||
124 | Temperatures are measured in degrees Celsius. An alarm is triggered once | 132 | Temperatures are measured in degrees Celsius. An alarm is triggered once |
125 | when the Overtemperature Shutdown limit is crossed. | 133 | when the Overtemperature Shutdown limit is crossed. |
diff --git a/Documentation/hwmon/jc42 b/Documentation/hwmon/jc42 index 66ecb9fc8246..165077121238 100644 --- a/Documentation/hwmon/jc42 +++ b/Documentation/hwmon/jc42 | |||
@@ -17,12 +17,13 @@ Supported chips: | |||
17 | * Maxim MAX6604 | 17 | * Maxim MAX6604 |
18 | Datasheets: | 18 | Datasheets: |
19 | http://datasheets.maxim-ic.com/en/ds/MAX6604.pdf | 19 | http://datasheets.maxim-ic.com/en/ds/MAX6604.pdf |
20 | * Microchip MCP9804, MCP9805, MCP98242, MCP98243, MCP9843 | 20 | * Microchip MCP9804, MCP9805, MCP98242, MCP98243, MCP98244, MCP9843 |
21 | Datasheets: | 21 | Datasheets: |
22 | http://ww1.microchip.com/downloads/en/DeviceDoc/22203C.pdf | 22 | http://ww1.microchip.com/downloads/en/DeviceDoc/22203C.pdf |
23 | http://ww1.microchip.com/downloads/en/DeviceDoc/21977b.pdf | 23 | http://ww1.microchip.com/downloads/en/DeviceDoc/21977b.pdf |
24 | http://ww1.microchip.com/downloads/en/DeviceDoc/21996a.pdf | 24 | http://ww1.microchip.com/downloads/en/DeviceDoc/21996a.pdf |
25 | http://ww1.microchip.com/downloads/en/DeviceDoc/22153c.pdf | 25 | http://ww1.microchip.com/downloads/en/DeviceDoc/22153c.pdf |
26 | http://ww1.microchip.com/downloads/en/DeviceDoc/22327A.pdf | ||
26 | * NXP Semiconductors SE97, SE97B, SE98, SE98A | 27 | * NXP Semiconductors SE97, SE97B, SE98, SE98A |
27 | Datasheets: | 28 | Datasheets: |
28 | http://www.nxp.com/documents/data_sheet/SE97.pdf | 29 | http://www.nxp.com/documents/data_sheet/SE97.pdf |
diff --git a/Documentation/hwmon/lm73 b/Documentation/hwmon/lm73 new file mode 100644 index 000000000000..8af059dcb642 --- /dev/null +++ b/Documentation/hwmon/lm73 | |||
@@ -0,0 +1,90 @@ | |||
1 | Kernel driver lm73 | ||
2 | ================== | ||
3 | |||
4 | Supported chips: | ||
5 | * Texas Instruments LM73 | ||
6 | Prefix: 'lm73' | ||
7 | Addresses scanned: I2C 0x48, 0x49, 0x4a, 0x4c, 0x4d, and 0x4e | ||
8 | Datasheet: Publicly available at the Texas Instruments website | ||
9 | http://www.ti.com/product/lm73 | ||
10 | |||
11 | Author: Guillaume Ligneul <guillaume.ligneul@gmail.com> | ||
12 | Documentation: Chris Verges <kg4ysn@gmail.com> | ||
13 | |||
14 | |||
15 | Description | ||
16 | ----------- | ||
17 | |||
18 | The LM73 is a digital temperature sensor. All temperature values are | ||
19 | given in degrees Celsius. | ||
20 | |||
21 | Measurement Resolution Support | ||
22 | ------------------------------ | ||
23 | |||
24 | The LM73 supports four resolutions, defined in terms of degrees C per | ||
25 | LSB: 0.25, 0.125, 0.0625, and 0.3125. Changing the resolution mode | ||
26 | affects the conversion time of the LM73's analog-to-digital converter. | ||
27 | From userspace, the desired resolution can be specified as a function of | ||
28 | conversion time via the 'update_interval' sysfs attribute for the | ||
29 | device. This attribute will normalize ranges of input values to the | ||
30 | maximum times defined for the resolution in the datasheet. | ||
31 | |||
32 | Resolution Conv. Time Input Range | ||
33 | (C/LSB) (msec) (msec) | ||
34 | -------------------------------------- | ||
35 | 0.25 14 0..14 | ||
36 | 0.125 28 15..28 | ||
37 | 0.0625 56 29..56 | ||
38 | 0.03125 112 57..infinity | ||
39 | -------------------------------------- | ||
40 | |||
41 | The following examples show how the 'update_interval' attribute can be | ||
42 | used to change the conversion time: | ||
43 | |||
44 | $ echo 0 > update_interval | ||
45 | $ cat update_interval | ||
46 | 14 | ||
47 | $ cat temp1_input | ||
48 | 24250 | ||
49 | |||
50 | $ echo 22 > update_interval | ||
51 | $ cat update_interval | ||
52 | 28 | ||
53 | $ cat temp1_input | ||
54 | 24125 | ||
55 | |||
56 | $ echo 56 > update_interval | ||
57 | $ cat update_interval | ||
58 | 56 | ||
59 | $ cat temp1_input | ||
60 | 24062 | ||
61 | |||
62 | $ echo 85 > update_interval | ||
63 | $ cat update_interval | ||
64 | 112 | ||
65 | $ cat temp1_input | ||
66 | 24031 | ||
67 | |||
68 | As shown here, the lm73 driver automatically adjusts any user input for | ||
69 | 'update_interval' via a step function. Reading back the | ||
70 | 'update_interval' value after a write operation will confirm the | ||
71 | conversion time actively in use. | ||
72 | |||
73 | Mathematically, the resolution can be derived from the conversion time | ||
74 | via the following function: | ||
75 | |||
76 | g(x) = 0.250 * [log(x/14) / log(2)] | ||
77 | |||
78 | where 'x' is the output from 'update_interval' and 'g(x)' is the | ||
79 | resolution in degrees C per LSB. | ||
80 | |||
81 | Alarm Support | ||
82 | ------------- | ||
83 | |||
84 | The LM73 features a simple over-temperature alarm mechanism. This | ||
85 | feature is exposed via the sysfs attributes. | ||
86 | |||
87 | The attributes 'temp1_max_alarm' and 'temp1_min_alarm' are flags | ||
88 | provided by the LM73 that indicate whether the measured temperature has | ||
89 | passed the 'temp1_max' and 'temp1_min' thresholds, respectively. These | ||
90 | values _must_ be read to clear the registers on the LM73. | ||
diff --git a/Documentation/hwmon/max34440 b/Documentation/hwmon/max34440 index 04482226db20..47651ff341ae 100644 --- a/Documentation/hwmon/max34440 +++ b/Documentation/hwmon/max34440 | |||
@@ -16,6 +16,16 @@ Supported chips: | |||
16 | Prefixes: 'max34446' | 16 | Prefixes: 'max34446' |
17 | Addresses scanned: - | 17 | Addresses scanned: - |
18 | Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX34446.pdf | 18 | Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX34446.pdf |
19 | * Maxim MAX34460 | ||
20 | PMBus 12-Channel Voltage Monitor & Sequencer | ||
21 | Prefix: 'max34460' | ||
22 | Addresses scanned: - | ||
23 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX34460.pdf | ||
24 | * Maxim MAX34461 | ||
25 | PMBus 16-Channel Voltage Monitor & Sequencer | ||
26 | Prefix: 'max34461' | ||
27 | Addresses scanned: - | ||
28 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX34461.pdf | ||
19 | 29 | ||
20 | Author: Guenter Roeck <guenter.roeck@ericsson.com> | 30 | Author: Guenter Roeck <guenter.roeck@ericsson.com> |
21 | 31 | ||
@@ -26,6 +36,9 @@ Description | |||
26 | This driver supports hardware montoring for Maxim MAX34440 PMBus 6-Channel | 36 | This driver supports hardware montoring for Maxim MAX34440 PMBus 6-Channel |
27 | Power-Supply Manager, MAX34441 PMBus 5-Channel Power-Supply Manager | 37 | Power-Supply Manager, MAX34441 PMBus 5-Channel Power-Supply Manager |
28 | and Intelligent Fan Controller, and MAX34446 PMBus Power-Supply Data Logger. | 38 | and Intelligent Fan Controller, and MAX34446 PMBus Power-Supply Data Logger. |
39 | It also supports the MAX34460 and MAX34461 PMBus Voltage Monitor & Sequencers. | ||
40 | The MAX34460 supports 12 voltage channels, and the MAX34461 supports 16 voltage | ||
41 | channels. | ||
29 | 42 | ||
30 | The driver is a client driver to the core PMBus driver. Please see | 43 | The driver is a client driver to the core PMBus driver. Please see |
31 | Documentation/hwmon/pmbus for details on PMBus client drivers. | 44 | Documentation/hwmon/pmbus for details on PMBus client drivers. |
@@ -109,3 +122,6 @@ temp[1-8]_reset_history Write any value to reset history. | |||
109 | 122 | ||
110 | temp7 and temp8 attributes only exist for MAX34440. | 123 | temp7 and temp8 attributes only exist for MAX34440. |
111 | MAX34446 only supports temp[1-3]. | 124 | MAX34446 only supports temp[1-3]. |
125 | |||
126 | MAX34460 supports attribute groups in[1-12] and temp[1-5]. | ||
127 | MAX34461 supports attribute groups in[1-16] and temp[1-5]. | ||
diff --git a/Documentation/hwmon/max6697 b/Documentation/hwmon/max6697 new file mode 100644 index 000000000000..6594177ededa --- /dev/null +++ b/Documentation/hwmon/max6697 | |||
@@ -0,0 +1,58 @@ | |||
1 | Kernel driver max6697 | ||
2 | ===================== | ||
3 | |||
4 | Supported chips: | ||
5 | * Maxim MAX6581 | ||
6 | Prefix: 'max6581' | ||
7 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6581.pdf | ||
8 | * Maxim MAX6602 | ||
9 | Prefix: 'max6602' | ||
10 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6602.pdf | ||
11 | * Maxim MAX6622 | ||
12 | Prefix: 'max6622' | ||
13 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6622.pdf | ||
14 | * Maxim MAX6636 | ||
15 | Prefix: 'max6636' | ||
16 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6636.pdf | ||
17 | * Maxim MAX6689 | ||
18 | Prefix: 'max6689' | ||
19 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6689.pdf | ||
20 | * Maxim MAX6693 | ||
21 | Prefix: 'max6693' | ||
22 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6693.pdf | ||
23 | * Maxim MAX6694 | ||
24 | Prefix: 'max6694' | ||
25 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6694.pdf | ||
26 | * Maxim MAX6697 | ||
27 | Prefix: 'max6697' | ||
28 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6697.pdf | ||
29 | * Maxim MAX6698 | ||
30 | Prefix: 'max6698' | ||
31 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6698.pdf | ||
32 | * Maxim MAX6699 | ||
33 | Prefix: 'max6699' | ||
34 | Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6699.pdf | ||
35 | |||
36 | Author: | ||
37 | Guenter Roeck <linux@roeck-us.net> | ||
38 | |||
39 | Description | ||
40 | ----------- | ||
41 | |||
42 | This driver implements support for several MAX6697 compatible temperature sensor | ||
43 | chips. The chips support one local temperature sensor plus four, six, or seven | ||
44 | remote temperature sensors. Remote temperature sensors are diode-connected | ||
45 | thermal transitors, except for MAX6698 which supports three diode-connected | ||
46 | thermal transistors plus three thermistors in addition to the local temperature | ||
47 | sensor. | ||
48 | |||
49 | The driver provides the following sysfs attributes. temp1 is the local (chip) | ||
50 | temperature, temp[2..n] are remote temperatures. The actually supported | ||
51 | per-channel attributes are chip type and channel dependent. | ||
52 | |||
53 | tempX_input RO temperature | ||
54 | tempX_max RW temperature maximum threshold | ||
55 | tempX_max_alarm RO temperature maximum threshold alarm | ||
56 | tempX_crit RW temperature critical threshold | ||
57 | tempX_crit_alarm RO temperature critical threshold alarm | ||
58 | tempX_fault RO temperature diode fault (remote sensors only) | ||
diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface index 1f4dd855a299..79f8257dd790 100644 --- a/Documentation/hwmon/sysfs-interface +++ b/Documentation/hwmon/sysfs-interface | |||
@@ -722,14 +722,14 @@ add/subtract if it has been divided before the add/subtract. | |||
722 | What to do if a value is found to be invalid, depends on the type of the | 722 | What to do if a value is found to be invalid, depends on the type of the |
723 | sysfs attribute that is being set. If it is a continuous setting like a | 723 | sysfs attribute that is being set. If it is a continuous setting like a |
724 | tempX_max or inX_max attribute, then the value should be clamped to its | 724 | tempX_max or inX_max attribute, then the value should be clamped to its |
725 | limits using SENSORS_LIMIT(value, min_limit, max_limit). If it is not | 725 | limits using clamp_val(value, min_limit, max_limit). If it is not continuous |
726 | continuous like for example a tempX_type, then when an invalid value is | 726 | like for example a tempX_type, then when an invalid value is written, |
727 | written, -EINVAL should be returned. | 727 | -EINVAL should be returned. |
728 | 728 | ||
729 | Example1, temp1_max, register is a signed 8 bit value (-128 - 127 degrees): | 729 | Example1, temp1_max, register is a signed 8 bit value (-128 - 127 degrees): |
730 | 730 | ||
731 | long v = simple_strtol(buf, NULL, 10) / 1000; | 731 | long v = simple_strtol(buf, NULL, 10) / 1000; |
732 | v = SENSORS_LIMIT(v, -128, 127); | 732 | v = clamp_val(v, -128, 127); |
733 | /* write v to register */ | 733 | /* write v to register */ |
734 | 734 | ||
735 | Example2, fan divider setting, valid values 2, 4 and 8: | 735 | Example2, fan divider setting, valid values 2, 4 and 8: |
diff --git a/Documentation/hwmon/zl6100 b/Documentation/hwmon/zl6100 index a995b41724fd..3d924b6b59e9 100644 --- a/Documentation/hwmon/zl6100 +++ b/Documentation/hwmon/zl6100 | |||
@@ -121,12 +121,26 @@ in1_max_alarm Input voltage high alarm. | |||
121 | in1_lcrit_alarm Input voltage critical low alarm. | 121 | in1_lcrit_alarm Input voltage critical low alarm. |
122 | in1_crit_alarm Input voltage critical high alarm. | 122 | in1_crit_alarm Input voltage critical high alarm. |
123 | 123 | ||
124 | in2_label "vout1" | 124 | in2_label "vmon" |
125 | in2_input Measured output voltage. | 125 | in2_input Measured voltage on VMON (ZL2004) or VDRV (ZL9101M, |
126 | in2_lcrit Critical minimum output Voltage. | 126 | ZL9117M) pin. Reported voltage is 16x the voltage on the |
127 | in2_crit Critical maximum output voltage. | 127 | pin (adjusted internally by the chip). |
128 | in2_lcrit_alarm Critical output voltage critical low alarm. | 128 | in2_lcrit Critical minumum VMON/VDRV Voltage. |
129 | in2_crit_alarm Critical output voltage critical high alarm. | 129 | in2_crit Critical maximum VMON/VDRV voltage. |
130 | in2_lcrit_alarm VMON/VDRV voltage critical low alarm. | ||
131 | in2_crit_alarm VMON/VDRV voltage critical high alarm. | ||
132 | |||
133 | vmon attributes are supported on ZL2004, ZL9101M, | ||
134 | and ZL9117M only. | ||
135 | |||
136 | inX_label "vout1" | ||
137 | inX_input Measured output voltage. | ||
138 | inX_lcrit Critical minimum output Voltage. | ||
139 | inX_crit Critical maximum output voltage. | ||
140 | inX_lcrit_alarm Critical output voltage critical low alarm. | ||
141 | inX_crit_alarm Critical output voltage critical high alarm. | ||
142 | |||
143 | X is 3 for ZL2004, ZL9101M, and ZL9117M, 2 otherwise. | ||
130 | 144 | ||
131 | curr1_label "iout1" | 145 | curr1_label "iout1" |
132 | curr1_input Measured output current. | 146 | curr1_input Measured output current. |