diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-30 14:57:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-30 14:57:57 -0400 |
commit | 464c9098bbc17b4596aa12191a7e646a28e7587a (patch) | |
tree | 1d97f02c1f071f358f0d0b5fd8e04db3b9a7a9af /Documentation | |
parent | 4c677e2eefdba9c5bfc4474e2e91b26ae8458a1d (diff) | |
parent | f90be42fb383f39aa814b8e14de138da8973e5c1 (diff) |
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: (24 commits)
hwmon: (lm90) Refactor reading of config2 register
hwmon: (lm90) Make SA56004 detection more robust
hwmon: (lm90) Simplify handling of extended local temp register
hwmon: (pmbus) Add client driver for LM25066, LM5064, and LM5066
hwmon: (max34440) Add support for peak attributes
hwmon: (max8688) Add support for peak attributes
hwmon: (max16064) Add support for peak attributes
hwmon: (adm1275) Add support for peak attributes
hwmon: (pmbus) Add support for peak attributes
hwmon: Add new attributes to sysfs ABI
hwmon: (pmbus) Strengthen check for status register existence
hwmon: (pmbus) Add support for virtual pages
hwmon: (pmbus) Support reading and writing of word registers in device specific code
hwmon: (pmbus) Increase attribute name size
hwmon: (pmbus) Add ADP4000, NCP4200 and NCP4208 to list of supported devices
hwmon: (pmbus) Add support for VID output voltage mode
hwmon: (pmbus) Move PMBus drivers to drivers/hwmon/pmbus
hwmon: (coretemp) Add core/pkg threshold support to Coretemp
hwmon: (lm95241) Add support for LM95231
hwmon: LM95245 driver
...
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/hwmon/adm1275 | 8 | ||||
-rw-r--r-- | Documentation/hwmon/coretemp | 7 | ||||
-rw-r--r-- | Documentation/hwmon/lm25066 | 90 | ||||
-rw-r--r-- | Documentation/hwmon/lm90 | 9 | ||||
-rw-r--r-- | Documentation/hwmon/lm95245 | 33 | ||||
-rw-r--r-- | Documentation/hwmon/max16064 | 4 | ||||
-rw-r--r-- | Documentation/hwmon/max1668 | 60 | ||||
-rw-r--r-- | Documentation/hwmon/max34440 | 6 | ||||
-rw-r--r-- | Documentation/hwmon/max8688 | 6 | ||||
-rw-r--r-- | Documentation/hwmon/ntc_thermistor | 93 | ||||
-rw-r--r-- | Documentation/hwmon/pmbus | 7 | ||||
-rw-r--r-- | Documentation/hwmon/sysfs-interface | 46 |
12 files changed, 366 insertions, 3 deletions
diff --git a/Documentation/hwmon/adm1275 b/Documentation/hwmon/adm1275 index 6a3a6476cf20..097b3ccc4be7 100644 --- a/Documentation/hwmon/adm1275 +++ b/Documentation/hwmon/adm1275 | |||
@@ -43,8 +43,8 @@ Documentation/hwmon/pmbus for details. | |||
43 | Sysfs entries | 43 | Sysfs entries |
44 | ------------- | 44 | ------------- |
45 | 45 | ||
46 | The following attributes are supported. Limits are read-write; all other | 46 | The following attributes are supported. Limits are read-write, history reset |
47 | attributes are read-only. | 47 | attributes are write-only, all other attributes are read-only. |
48 | 48 | ||
49 | in1_label "vin1" or "vout1" depending on chip variant and | 49 | in1_label "vin1" or "vout1" depending on chip variant and |
50 | configuration. | 50 | configuration. |
@@ -53,8 +53,12 @@ in1_min Minumum Voltage. From VOUT_UV_WARN_LIMIT register. | |||
53 | in1_max Maximum voltage. From VOUT_OV_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. | 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_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status. |
56 | in1_highest Historical maximum voltage. | ||
57 | in1_reset_history Write any value to reset history. | ||
56 | 58 | ||
57 | curr1_label "iout1" | 59 | curr1_label "iout1" |
58 | curr1_input Measured current. From READ_IOUT register. | 60 | curr1_input Measured current. From READ_IOUT register. |
59 | curr1_max Maximum current. From IOUT_OC_WARN_LIMIT register. | 61 | curr1_max Maximum current. From IOUT_OC_WARN_LIMIT register. |
60 | curr1_max_alarm Current high alarm. From IOUT_OC_WARN_LIMIT register. | 62 | curr1_max_alarm Current high alarm. From IOUT_OC_WARN_LIMIT register. |
63 | curr1_highest Historical maximum current. | ||
64 | curr1_reset_history Write any value to reset history. | ||
diff --git a/Documentation/hwmon/coretemp b/Documentation/hwmon/coretemp index f85e913a3401..fa8776ab9b18 100644 --- a/Documentation/hwmon/coretemp +++ b/Documentation/hwmon/coretemp | |||
@@ -35,6 +35,13 @@ the Out-Of-Spec bit. Following table summarizes the exported sysfs files: | |||
35 | All Sysfs entries are named with their core_id (represented here by 'X'). | 35 | All Sysfs entries are named with their core_id (represented here by 'X'). |
36 | tempX_input - Core temperature (in millidegrees Celsius). | 36 | tempX_input - Core temperature (in millidegrees Celsius). |
37 | tempX_max - All cooling devices should be turned on (on Core2). | 37 | tempX_max - All cooling devices should be turned on (on Core2). |
38 | Initialized with IA32_THERM_INTERRUPT. When the CPU | ||
39 | temperature reaches this temperature, an interrupt is | ||
40 | generated and tempX_max_alarm is set. | ||
41 | tempX_max_hyst - If the CPU temperature falls below than temperature, | ||
42 | an interrupt is generated and tempX_max_alarm is reset. | ||
43 | tempX_max_alarm - Set if the temperature reaches or exceeds tempX_max. | ||
44 | Reset if the temperature drops to or below tempX_max_hyst. | ||
38 | tempX_crit - Maximum junction temperature (in millidegrees Celsius). | 45 | tempX_crit - Maximum junction temperature (in millidegrees Celsius). |
39 | tempX_crit_alarm - Set when Out-of-spec bit is set, never clears. | 46 | tempX_crit_alarm - Set when Out-of-spec bit is set, never clears. |
40 | Correct CPU operation is no longer guaranteed. | 47 | Correct CPU operation is no longer guaranteed. |
diff --git a/Documentation/hwmon/lm25066 b/Documentation/hwmon/lm25066 new file mode 100644 index 000000000000..a21db81c4591 --- /dev/null +++ b/Documentation/hwmon/lm25066 | |||
@@ -0,0 +1,90 @@ | |||
1 | Kernel driver max8688 | ||
2 | ===================== | ||
3 | |||
4 | Supported chips: | ||
5 | * National Semiconductor LM25066 | ||
6 | Prefix: 'lm25066' | ||
7 | Addresses scanned: - | ||
8 | Datasheets: | ||
9 | http://www.national.com/pf/LM/LM25066.html | ||
10 | http://www.national.com/pf/LM/LM25066A.html | ||
11 | * National Semiconductor LM5064 | ||
12 | Prefix: 'lm5064' | ||
13 | Addresses scanned: - | ||
14 | Datasheet: | ||
15 | http://www.national.com/pf/LM/LM5064.html | ||
16 | * National Semiconductor LM5066 | ||
17 | Prefix: 'lm5066' | ||
18 | Addresses scanned: - | ||
19 | Datasheet: | ||
20 | http://www.national.com/pf/LM/LM5066.html | ||
21 | |||
22 | Author: Guenter Roeck <guenter.roeck@ericsson.com> | ||
23 | |||
24 | |||
25 | Description | ||
26 | ----------- | ||
27 | |||
28 | This driver supports hardware montoring for National Semiconductor LM25066, | ||
29 | LM5064, and LM5064 Power Management, Monitoring, Control, and Protection ICs. | ||
30 | |||
31 | The driver is a client driver to the core PMBus driver. Please see | ||
32 | Documentation/hwmon/pmbus for details on PMBus client drivers. | ||
33 | |||
34 | |||
35 | Usage Notes | ||
36 | ----------- | ||
37 | |||
38 | This driver does not auto-detect devices. You will have to instantiate the | ||
39 | devices explicitly. Please see Documentation/i2c/instantiating-devices for | ||
40 | details. | ||
41 | |||
42 | |||
43 | Platform data support | ||
44 | --------------------- | ||
45 | |||
46 | The driver supports standard PMBus driver platform data. | ||
47 | |||
48 | |||
49 | Sysfs entries | ||
50 | ------------- | ||
51 | |||
52 | The following attributes are supported. Limits are read-write; all other | ||
53 | attributes are read-only. | ||
54 | |||
55 | in1_label "vin" | ||
56 | in1_input Measured input voltage. | ||
57 | in1_average Average measured input voltage. | ||
58 | in1_min Minimum input voltage. | ||
59 | in1_max Maximum input voltage. | ||
60 | in1_min_alarm Input voltage low alarm. | ||
61 | in1_max_alarm Input voltage high alarm. | ||
62 | |||
63 | in2_label "vout1" | ||
64 | in2_input Measured output voltage. | ||
65 | in2_average Average measured output voltage. | ||
66 | in2_min Minimum output voltage. | ||
67 | in2_min_alarm Output voltage low alarm. | ||
68 | |||
69 | in3_label "vout2" | ||
70 | in3_input Measured voltage on vaux pin | ||
71 | |||
72 | curr1_label "iin" | ||
73 | curr1_input Measured input current. | ||
74 | curr1_average Average measured input current. | ||
75 | curr1_max Maximum input current. | ||
76 | curr1_max_alarm Input current high alarm. | ||
77 | |||
78 | power1_label "pin" | ||
79 | power1_input Measured input power. | ||
80 | power1_average Average measured input power. | ||
81 | power1_max Maximum input power limit. | ||
82 | power1_alarm Input power alarm | ||
83 | power1_input_highest Historical maximum power. | ||
84 | power1_reset_history Write any value to reset maximum power history. | ||
85 | |||
86 | temp1_input Measured temperature. | ||
87 | temp1_max Maximum temperature. | ||
88 | temp1_crit Critical high temperature. | ||
89 | temp1_max_alarm Chip temperature high alarm. | ||
90 | temp1_crit_alarm Chip temperature critical high alarm. | ||
diff --git a/Documentation/hwmon/lm90 b/Documentation/hwmon/lm90 index f3efd18e87f4..9cd14cfe6515 100644 --- a/Documentation/hwmon/lm90 +++ b/Documentation/hwmon/lm90 | |||
@@ -113,7 +113,11 @@ Supported chips: | |||
113 | Prefix: 'w83l771' | 113 | Prefix: 'w83l771' |
114 | Addresses scanned: I2C 0x4c | 114 | Addresses scanned: I2C 0x4c |
115 | Datasheet: Not publicly available, can be requested from Nuvoton | 115 | Datasheet: Not publicly available, can be requested from Nuvoton |
116 | 116 | * Philips/NXP SA56004X | |
117 | Prefix: 'sa56004' | ||
118 | Addresses scanned: I2C 0x48 through 0x4F | ||
119 | Datasheet: Publicly available at NXP website | ||
120 | http://ics.nxp.com/products/interface/datasheet/sa56004x.pdf | ||
117 | 121 | ||
118 | Author: Jean Delvare <khali@linux-fr.org> | 122 | Author: Jean Delvare <khali@linux-fr.org> |
119 | 123 | ||
@@ -193,6 +197,9 @@ W83L771AWG/ASG | |||
193 | * The AWG and ASG variants only differ in package format. | 197 | * The AWG and ASG variants only differ in package format. |
194 | * Diode ideality factor configuration (remote sensor) at 0xE3 | 198 | * Diode ideality factor configuration (remote sensor) at 0xE3 |
195 | 199 | ||
200 | SA56004X: | ||
201 | * Better local resolution | ||
202 | |||
196 | All temperature values are given in degrees Celsius. Resolution | 203 | All temperature values are given in degrees Celsius. Resolution |
197 | is 1.0 degree for the local temperature, 0.125 degree for the remote | 204 | is 1.0 degree for the local temperature, 0.125 degree for the remote |
198 | temperature, except for the MAX6657, MAX6658 and MAX6659 which have a | 205 | temperature, except for the MAX6657, MAX6658 and MAX6659 which have a |
diff --git a/Documentation/hwmon/lm95245 b/Documentation/hwmon/lm95245 new file mode 100644 index 000000000000..cbd8aeab7124 --- /dev/null +++ b/Documentation/hwmon/lm95245 | |||
@@ -0,0 +1,33 @@ | |||
1 | Kernel driver lm95245 | ||
2 | ================== | ||
3 | |||
4 | Supported chips: | ||
5 | * National Semiconductor LM95245 | ||
6 | Addresses scanned: I2C 0x18, 0x19, 0x29, 0x4c, 0x4d | ||
7 | Datasheet: Publicly available at the National Semiconductor website | ||
8 | http://www.national.com/mpf/LM/LM95245.html | ||
9 | |||
10 | |||
11 | Author: Alexander Stein <alexander.stein@systec-electronic.com> | ||
12 | |||
13 | Description | ||
14 | ----------- | ||
15 | |||
16 | The LM95245 is an 11-bit digital temperature sensor with a 2-wire System | ||
17 | Management Bus (SMBus) interface and TruTherm technology that can monitor | ||
18 | the temperature of a remote diode as well as its own temperature. | ||
19 | The LM95245 can be used to very accurately monitor the temperature of | ||
20 | external devices such as microprocessors. | ||
21 | |||
22 | All temperature values are given in millidegrees Celsius. Local temperature | ||
23 | is given within a range of -127 to +127.875 degrees. Remote temperatures are | ||
24 | given within a range of -127 to +255 degrees. Resolution depends on | ||
25 | temperature input and range. | ||
26 | |||
27 | Each sensor has its own critical limit, but the hysteresis is common to all | ||
28 | two channels. | ||
29 | |||
30 | The lm95245 driver can change its update interval to a fixed set of values. | ||
31 | It will round up to the next selectable interval. See the datasheet for exact | ||
32 | values. Reading sensor values more often will do no harm, but will return | ||
33 | 'old' values. | ||
diff --git a/Documentation/hwmon/max16064 b/Documentation/hwmon/max16064 index 41728999e142..f6e8bcbfaccf 100644 --- a/Documentation/hwmon/max16064 +++ b/Documentation/hwmon/max16064 | |||
@@ -50,6 +50,8 @@ in[1-4]_min_alarm Voltage low alarm. From VOLTAGE_UV_WARNING status. | |||
50 | in[1-4]_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status. | 50 | in[1-4]_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status. |
51 | in[1-4]_lcrit_alarm Voltage critical low alarm. From VOLTAGE_UV_FAULT status. | 51 | in[1-4]_lcrit_alarm Voltage critical low alarm. From VOLTAGE_UV_FAULT status. |
52 | in[1-4]_crit_alarm Voltage critical high alarm. From VOLTAGE_OV_FAULT status. | 52 | in[1-4]_crit_alarm Voltage critical high alarm. From VOLTAGE_OV_FAULT status. |
53 | in[1-4]_highest Historical maximum voltage. | ||
54 | in[1-4]_reset_history Write any value to reset history. | ||
53 | 55 | ||
54 | temp1_input Measured temperature. From READ_TEMPERATURE_1 register. | 56 | temp1_input Measured temperature. From READ_TEMPERATURE_1 register. |
55 | temp1_max Maximum temperature. From OT_WARN_LIMIT register. | 57 | temp1_max Maximum temperature. From OT_WARN_LIMIT register. |
@@ -60,3 +62,5 @@ temp1_max_alarm Chip temperature high alarm. Set by comparing | |||
60 | temp1_crit_alarm Chip temperature critical high alarm. Set by comparing | 62 | temp1_crit_alarm Chip temperature critical high alarm. Set by comparing |
61 | READ_TEMPERATURE_1 with OT_FAULT_LIMIT if TEMP_OT_FAULT | 63 | READ_TEMPERATURE_1 with OT_FAULT_LIMIT if TEMP_OT_FAULT |
62 | status is set. | 64 | status is set. |
65 | temp1_highest Historical maximum temperature. | ||
66 | temp1_reset_history Write any value to reset history. | ||
diff --git a/Documentation/hwmon/max1668 b/Documentation/hwmon/max1668 new file mode 100644 index 000000000000..0616ed9758df --- /dev/null +++ b/Documentation/hwmon/max1668 | |||
@@ -0,0 +1,60 @@ | |||
1 | Kernel driver max1668 | ||
2 | ===================== | ||
3 | |||
4 | Supported chips: | ||
5 | * Maxim MAX1668, MAX1805 and MAX1989 | ||
6 | Prefix: 'max1668' | ||
7 | Addresses scanned: I2C 0x18, 0x19, 0x1a, 0x29, 0x2a, 0x2b, 0x4c, 0x4d, 0x4e | ||
8 | Datasheet: http://datasheets.maxim-ic.com/en/ds/MAX1668-MAX1989.pdf | ||
9 | |||
10 | Author: | ||
11 | David George <david.george@ska.ac.za> | ||
12 | |||
13 | Description | ||
14 | ----------- | ||
15 | |||
16 | This driver implements support for the Maxim MAX1668, MAX1805 and MAX1989 | ||
17 | chips. | ||
18 | |||
19 | The three devices are very similar, but the MAX1805 has a reduced feature | ||
20 | set; only two remote temperature inputs vs the four avaible on the other | ||
21 | two ICs. | ||
22 | |||
23 | The driver is able to distinguish between the devices and creates sysfs | ||
24 | entries as follows: | ||
25 | |||
26 | MAX1805, MAX1668 and MAX1989: | ||
27 | |||
28 | temp1_input ro local (ambient) temperature | ||
29 | temp1_max rw local temperature maximum threshold for alarm | ||
30 | temp1_max_alarm ro local temperature maximum threshold alarm | ||
31 | temp1_min rw local temperature minimum threshold for alarm | ||
32 | temp1_min_alarm ro local temperature minimum threshold alarm | ||
33 | temp2_input ro remote temperature 1 | ||
34 | temp2_max rw remote temperature 1 maximum threshold for alarm | ||
35 | temp2_max_alarm ro remote temperature 1 maximum threshold alarm | ||
36 | temp2_min rw remote temperature 1 minimum threshold for alarm | ||
37 | temp2_min_alarm ro remote temperature 1 minimum threshold alarm | ||
38 | temp3_input ro remote temperature 2 | ||
39 | temp3_max rw remote temperature 2 maximum threshold for alarm | ||
40 | temp3_max_alarm ro remote temperature 2 maximum threshold alarm | ||
41 | temp3_min rw remote temperature 2 minimum threshold for alarm | ||
42 | temp3_min_alarm ro remote temperature 2 minimum threshold alarm | ||
43 | |||
44 | MAX1668 and MAX1989 only: | ||
45 | temp4_input ro remote temperature 3 | ||
46 | temp4_max rw remote temperature 3 maximum threshold for alarm | ||
47 | temp4_max_alarm ro remote temperature 3 maximum threshold alarm | ||
48 | temp4_min rw remote temperature 3 minimum threshold for alarm | ||
49 | temp4_min_alarm ro remote temperature 3 minimum threshold alarm | ||
50 | temp5_input ro remote temperature 4 | ||
51 | temp5_max rw remote temperature 4 maximum threshold for alarm | ||
52 | temp5_max_alarm ro remote temperature 4 maximum threshold alarm | ||
53 | temp5_min rw remote temperature 4 minimum threshold for alarm | ||
54 | temp5_min_alarm ro remote temperature 4 minimum threshold alarm | ||
55 | |||
56 | Module Parameters | ||
57 | ----------------- | ||
58 | |||
59 | * read_only: int | ||
60 | Set to non-zero if you wish to prevent write access to alarm thresholds. | ||
diff --git a/Documentation/hwmon/max34440 b/Documentation/hwmon/max34440 index 6c525dd07d59..8ab51536a1eb 100644 --- a/Documentation/hwmon/max34440 +++ b/Documentation/hwmon/max34440 | |||
@@ -56,6 +56,8 @@ in[1-6]_min_alarm Voltage low alarm. From VOLTAGE_UV_WARNING status. | |||
56 | in[1-6]_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status. | 56 | in[1-6]_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status. |
57 | in[1-6]_lcrit_alarm Voltage critical low alarm. From VOLTAGE_UV_FAULT status. | 57 | in[1-6]_lcrit_alarm Voltage critical low alarm. From VOLTAGE_UV_FAULT status. |
58 | in[1-6]_crit_alarm Voltage critical high alarm. From VOLTAGE_OV_FAULT status. | 58 | in[1-6]_crit_alarm Voltage critical high alarm. From VOLTAGE_OV_FAULT status. |
59 | in[1-6]_highest Historical maximum voltage. | ||
60 | in[1-6]_reset_history Write any value to reset history. | ||
59 | 61 | ||
60 | curr[1-6]_label "iout[1-6]". | 62 | curr[1-6]_label "iout[1-6]". |
61 | curr[1-6]_input Measured current. From READ_IOUT register. | 63 | curr[1-6]_input Measured current. From READ_IOUT register. |
@@ -63,6 +65,8 @@ curr[1-6]_max Maximum current. From IOUT_OC_WARN_LIMIT register. | |||
63 | curr[1-6]_crit Critical maximum current. From IOUT_OC_FAULT_LIMIT register. | 65 | curr[1-6]_crit Critical maximum current. From IOUT_OC_FAULT_LIMIT register. |
64 | curr[1-6]_max_alarm Current high alarm. From IOUT_OC_WARNING status. | 66 | curr[1-6]_max_alarm Current high alarm. From IOUT_OC_WARNING status. |
65 | curr[1-6]_crit_alarm Current critical high alarm. From IOUT_OC_FAULT status. | 67 | curr[1-6]_crit_alarm Current critical high alarm. From IOUT_OC_FAULT status. |
68 | curr[1-6]_highest Historical maximum current. | ||
69 | curr[1-6]_reset_history Write any value to reset history. | ||
66 | 70 | ||
67 | in6 and curr6 attributes only exist for MAX34440. | 71 | in6 and curr6 attributes only exist for MAX34440. |
68 | 72 | ||
@@ -75,5 +79,7 @@ temp[1-8]_max Maximum temperature. From OT_WARN_LIMIT register. | |||
75 | temp[1-8]_crit Critical high temperature. From OT_FAULT_LIMIT register. | 79 | temp[1-8]_crit Critical high temperature. From OT_FAULT_LIMIT register. |
76 | temp[1-8]_max_alarm Temperature high alarm. | 80 | temp[1-8]_max_alarm Temperature high alarm. |
77 | temp[1-8]_crit_alarm Temperature critical high alarm. | 81 | temp[1-8]_crit_alarm Temperature critical high alarm. |
82 | temp[1-8]_highest Historical maximum temperature. | ||
83 | temp[1-8]_reset_history Write any value to reset history. | ||
78 | 84 | ||
79 | temp7 and temp8 attributes only exist for MAX34440. | 85 | temp7 and temp8 attributes only exist for MAX34440. |
diff --git a/Documentation/hwmon/max8688 b/Documentation/hwmon/max8688 index 0ddd3a412030..71ed10a3c94e 100644 --- a/Documentation/hwmon/max8688 +++ b/Documentation/hwmon/max8688 | |||
@@ -50,6 +50,8 @@ in1_min_alarm Voltage low alarm. From VOLTAGE_UV_WARNING status. | |||
50 | in1_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status. | 50 | in1_max_alarm Voltage high alarm. From VOLTAGE_OV_WARNING status. |
51 | in1_lcrit_alarm Voltage critical low alarm. From VOLTAGE_UV_FAULT status. | 51 | in1_lcrit_alarm Voltage critical low alarm. From VOLTAGE_UV_FAULT status. |
52 | in1_crit_alarm Voltage critical high alarm. From VOLTAGE_OV_FAULT status. | 52 | in1_crit_alarm Voltage critical high alarm. From VOLTAGE_OV_FAULT status. |
53 | in1_highest Historical maximum voltage. | ||
54 | in1_reset_history Write any value to reset history. | ||
53 | 55 | ||
54 | curr1_label "iout1" | 56 | curr1_label "iout1" |
55 | curr1_input Measured current. From READ_IOUT register. | 57 | curr1_input Measured current. From READ_IOUT register. |
@@ -57,6 +59,8 @@ curr1_max Maximum current. From IOUT_OC_WARN_LIMIT register. | |||
57 | curr1_crit Critical maximum current. From IOUT_OC_FAULT_LIMIT register. | 59 | curr1_crit Critical maximum current. From IOUT_OC_FAULT_LIMIT register. |
58 | curr1_max_alarm Current high alarm. From IOUT_OC_WARN_LIMIT register. | 60 | curr1_max_alarm Current high alarm. From IOUT_OC_WARN_LIMIT register. |
59 | curr1_crit_alarm Current critical high alarm. From IOUT_OC_FAULT status. | 61 | curr1_crit_alarm Current critical high alarm. From IOUT_OC_FAULT status. |
62 | curr1_highest Historical maximum current. | ||
63 | curr1_reset_history Write any value to reset history. | ||
60 | 64 | ||
61 | temp1_input Measured temperature. From READ_TEMPERATURE_1 register. | 65 | temp1_input Measured temperature. From READ_TEMPERATURE_1 register. |
62 | temp1_max Maximum temperature. From OT_WARN_LIMIT register. | 66 | temp1_max Maximum temperature. From OT_WARN_LIMIT register. |
@@ -67,3 +71,5 @@ temp1_max_alarm Chip temperature high alarm. Set by comparing | |||
67 | temp1_crit_alarm Chip temperature critical high alarm. Set by comparing | 71 | temp1_crit_alarm Chip temperature critical high alarm. Set by comparing |
68 | READ_TEMPERATURE_1 with OT_FAULT_LIMIT if TEMP_OT_FAULT | 72 | READ_TEMPERATURE_1 with OT_FAULT_LIMIT if TEMP_OT_FAULT |
69 | status is set. | 73 | status is set. |
74 | temp1_highest Historical maximum temperature. | ||
75 | temp1_reset_history Write any value to reset history. | ||
diff --git a/Documentation/hwmon/ntc_thermistor b/Documentation/hwmon/ntc_thermistor new file mode 100644 index 000000000000..3bfda94096fd --- /dev/null +++ b/Documentation/hwmon/ntc_thermistor | |||
@@ -0,0 +1,93 @@ | |||
1 | Kernel driver ntc_thermistor | ||
2 | ================= | ||
3 | |||
4 | Supported thermistors: | ||
5 | * Murata NTC Thermistors NCP15WB473, NCP18WB473, NCP21WB473, NCP03WB473, NCP15WL333 | ||
6 | Prefixes: 'ncp15wb473', 'ncp18wb473', 'ncp21wb473', 'ncp03wb473', 'ncp15wl333' | ||
7 | Datasheet: Publicly available at Murata | ||
8 | |||
9 | Other NTC thermistors can be supported simply by adding compensation | ||
10 | tables; e.g., NCP15WL333 support is added by the table ncpXXwl333. | ||
11 | |||
12 | Authors: | ||
13 | MyungJoo Ham <myungjoo.ham@samsung.com> | ||
14 | |||
15 | Description | ||
16 | ----------- | ||
17 | |||
18 | The NTC thermistor is a simple thermistor that requires users to provide the | ||
19 | resistance and lookup the corresponding compensation table to get the | ||
20 | temperature input. | ||
21 | |||
22 | The NTC driver provides lookup tables with a linear approximation function | ||
23 | and four circuit models with an option not to use any of the four models. | ||
24 | |||
25 | The four circuit models provided are: | ||
26 | |||
27 | $: resister, [TH]: the thermistor | ||
28 | |||
29 | 1. connect = NTC_CONNECTED_POSITIVE, pullup_ohm > 0 | ||
30 | |||
31 | [pullup_uV] | ||
32 | | | | ||
33 | [TH] $ (pullup_ohm) | ||
34 | | | | ||
35 | +----+-----------------------[read_uV] | ||
36 | | | ||
37 | $ (pulldown_ohm) | ||
38 | | | ||
39 | --- (ground) | ||
40 | |||
41 | 2. connect = NTC_CONNECTED_POSITIVE, pullup_ohm = 0 (not-connected) | ||
42 | |||
43 | [pullup_uV] | ||
44 | | | ||
45 | [TH] | ||
46 | | | ||
47 | +----------------------------[read_uV] | ||
48 | | | ||
49 | $ (pulldown_ohm) | ||
50 | | | ||
51 | --- (ground) | ||
52 | |||
53 | 3. connect = NTC_CONNECTED_GROUND, pulldown_ohm > 0 | ||
54 | |||
55 | [pullup_uV] | ||
56 | | | ||
57 | $ (pullup_ohm) | ||
58 | | | ||
59 | +----+-----------------------[read_uV] | ||
60 | | | | ||
61 | [TH] $ (pulldown_ohm) | ||
62 | | | | ||
63 | -------- (ground) | ||
64 | |||
65 | 4. connect = NTC_CONNECTED_GROUND, pulldown_ohm = 0 (not-connected) | ||
66 | |||
67 | [pullup_uV] | ||
68 | | | ||
69 | $ (pullup_ohm) | ||
70 | | | ||
71 | +----------------------------[read_uV] | ||
72 | | | ||
73 | [TH] | ||
74 | | | ||
75 | --- (ground) | ||
76 | |||
77 | When one of the four circuit models is used, read_uV, pullup_uV, pullup_ohm, | ||
78 | pulldown_ohm, and connect should be provided. When none of the four models | ||
79 | are suitable or the user can get the resistance directly, the user should | ||
80 | provide read_ohm and _not_ provide the others. | ||
81 | |||
82 | Sysfs Interface | ||
83 | --------------- | ||
84 | name the mandatory global attribute, the thermistor name. | ||
85 | |||
86 | temp1_type always 4 (thermistor) | ||
87 | RO | ||
88 | |||
89 | temp1_input measure the temperature and provide the measured value. | ||
90 | (reading this file initiates the reading procedure.) | ||
91 | RO | ||
92 | |||
93 | Note that each NTC thermistor has only _one_ thermistor; thus, only temp1 exists. | ||
diff --git a/Documentation/hwmon/pmbus b/Documentation/hwmon/pmbus index 5e462fc7f99b..c36c1c1a62bb 100644 --- a/Documentation/hwmon/pmbus +++ b/Documentation/hwmon/pmbus | |||
@@ -13,6 +13,13 @@ Supported chips: | |||
13 | Prefix: 'ltc2978' | 13 | Prefix: 'ltc2978' |
14 | Addresses scanned: - | 14 | Addresses scanned: - |
15 | Datasheet: http://cds.linear.com/docs/Datasheet/2978fa.pdf | 15 | Datasheet: http://cds.linear.com/docs/Datasheet/2978fa.pdf |
16 | * ON Semiconductor ADP4000, NCP4200, NCP4208 | ||
17 | Prefixes: 'adp4000', 'ncp4200', 'ncp4208' | ||
18 | Addresses scanned: - | ||
19 | Datasheets: | ||
20 | http://www.onsemi.com/pub_link/Collateral/ADP4000-D.PDF | ||
21 | http://www.onsemi.com/pub_link/Collateral/NCP4200-D.PDF | ||
22 | http://www.onsemi.com/pub_link/Collateral/JUNE%202009-%20REV.%200.PDF | ||
16 | * Generic PMBus devices | 23 | * Generic PMBus devices |
17 | Prefix: 'pmbus' | 24 | Prefix: 'pmbus' |
18 | Addresses scanned: - | 25 | Addresses scanned: - |
diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface index 8f63c244f1aa..a4aa8f600e09 100644 --- a/Documentation/hwmon/sysfs-interface +++ b/Documentation/hwmon/sysfs-interface | |||
@@ -139,6 +139,29 @@ in[0-*]_input Voltage input value. | |||
139 | thumb: drivers should report the voltage values at the | 139 | thumb: drivers should report the voltage values at the |
140 | "pins" of the chip. | 140 | "pins" of the chip. |
141 | 141 | ||
142 | in[0-*]_average | ||
143 | Average voltage | ||
144 | Unit: millivolt | ||
145 | RO | ||
146 | |||
147 | in[0-*]_lowest | ||
148 | Historical minimum voltage | ||
149 | Unit: millivolt | ||
150 | RO | ||
151 | |||
152 | in[0-*]_highest | ||
153 | Historical maximum voltage | ||
154 | Unit: millivolt | ||
155 | RO | ||
156 | |||
157 | in[0-*]_reset_history | ||
158 | Reset inX_lowest and inX_highest | ||
159 | WO | ||
160 | |||
161 | in_reset_history | ||
162 | Reset inX_lowest and inX_highest for all sensors | ||
163 | WO | ||
164 | |||
142 | in[0-*]_label Suggested voltage channel label. | 165 | in[0-*]_label Suggested voltage channel label. |
143 | Text string | 166 | Text string |
144 | Should only be created if the driver has hints about what | 167 | Should only be created if the driver has hints about what |
@@ -407,6 +430,29 @@ curr[1-*]_input Current input value | |||
407 | Unit: milliampere | 430 | Unit: milliampere |
408 | RO | 431 | RO |
409 | 432 | ||
433 | curr[1-*]_average | ||
434 | Average current use | ||
435 | Unit: milliampere | ||
436 | RO | ||
437 | |||
438 | curr[1-*]_lowest | ||
439 | Historical minimum current | ||
440 | Unit: milliampere | ||
441 | RO | ||
442 | |||
443 | curr[1-*]_highest | ||
444 | Historical maximum current | ||
445 | Unit: milliampere | ||
446 | RO | ||
447 | |||
448 | curr[1-*]_reset_history | ||
449 | Reset currX_lowest and currX_highest | ||
450 | WO | ||
451 | |||
452 | curr_reset_history | ||
453 | Reset currX_lowest and currX_highest for all sensors | ||
454 | WO | ||
455 | |||
410 | Also see the Alarms section for status flags associated with currents. | 456 | Also see the Alarms section for status flags associated with currents. |
411 | 457 | ||
412 | ********* | 458 | ********* |