aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon/sysfs-interface
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-08-20 10:44:44 -0400
committerMark M. Hoffman <mhoffman@lightlink.com>2007-10-09 22:56:29 -0400
commit176544dc55b0a912a2e1bacb9f48ccbd4aabd55f (patch)
tree6a13f5cf26dddfb9d8223579878a6a60c01ab0e2 /Documentation/hwmon/sysfs-interface
parent8477d026893d42b00474e9a13ab01ccce7fc2673 (diff)
hwmon: Update the sysfs interface documentation
* Document the name attribute. * Document the *_label attributes. * Drop "typical usage" lists, they no longer match the reality. * Drop non hardware-monitoring related entries. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'Documentation/hwmon/sysfs-interface')
-rw-r--r--Documentation/hwmon/sysfs-interface75
1 files changed, 41 insertions, 34 deletions
diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
index 331fa7a1d7d5..db7bb4a659c4 100644
--- a/Documentation/hwmon/sysfs-interface
+++ b/Documentation/hwmon/sysfs-interface
@@ -78,8 +78,21 @@ RW read/write value
78Read/write values may be read-only for some chips, depending on the 78Read/write values may be read-only for some chips, depending on the
79hardware implementation. 79hardware implementation.
80 80
81All entries are optional, and should only be created in a given driver 81All entries (except name) are optional, and should only be created in a
82if the chip has the feature. 82given driver if the chip has the feature.
83
84
85********
86* Name *
87********
88
89name The chip name.
90 This should be a short, lowercase string, not containing
91 spaces nor dashes, representing the chip name. This is
92 the only mandatory attribute.
93 I2C devices get this attribute created automatically.
94 RO
95
83 96
84************ 97************
85* Voltages * 98* Voltages *
@@ -104,18 +117,17 @@ in[0-*]_input Voltage input value.
104 by the chip driver, and must be done by the application. 117 by the chip driver, and must be done by the application.
105 However, some drivers (notably lm87 and via686a) 118 However, some drivers (notably lm87 and via686a)
106 do scale, because of internal resistors built into a chip. 119 do scale, because of internal resistors built into a chip.
107 These drivers will output the actual voltage. 120 These drivers will output the actual voltage. Rule of
108 121 thumb: drivers should report the voltage values at the
109 Typical usage: 122 "pins" of the chip.
110 in0_* CPU #1 voltage (not scaled) 123
111 in1_* CPU #2 voltage (not scaled) 124in[0-*]_label Suggested voltage channel label.
112 in2_* 3.3V nominal (not scaled) 125 Text string
113 in3_* 5.0V nominal (scaled) 126 Should only be created if the driver has hints about what
114 in4_* 12.0V nominal (scaled) 127 this voltage channel is being used for, and user-space
115 in5_* -12.0V nominal (scaled) 128 doesn't. In all other cases, the label is provided by
116 in6_* -5.0V nominal (scaled) 129 user-space.
117 in7_* varies 130 RO
118 in8_* varies
119 131
120cpu[0-*]_vid CPU core reference voltage. 132cpu[0-*]_vid CPU core reference voltage.
121 Unit: millivolt 133 Unit: millivolt
@@ -159,6 +171,13 @@ fan[1-*]_target
159 Only makes sense if the chip supports closed-loop fan speed 171 Only makes sense if the chip supports closed-loop fan speed
160 control based on the measured fan speed. 172 control based on the measured fan speed.
161 173
174fan[1-*]_label Suggested fan channel label.
175 Text string
176 Should only be created if the driver has hints about what
177 this fan channel is being used for, and user-space doesn't.
178 In all other cases, the label is provided by user-space.
179 RO
180
162Also see the Alarms section for status flags associated with fans. 181Also see the Alarms section for status flags associated with fans.
163 182
164 183
@@ -260,18 +279,19 @@ temp[1-*]_crit_hyst
260 from the critical value. 279 from the critical value.
261 RW 280 RW
262 281
263temp[1-4]_offset 282temp[1-*]_offset
264 Temperature offset which is added to the temperature reading 283 Temperature offset which is added to the temperature reading
265 by the chip. 284 by the chip.
266 Unit: millidegree Celsius 285 Unit: millidegree Celsius
267 Read/Write value. 286 Read/Write value.
268 287
269 If there are multiple temperature sensors, temp1_* is 288temp[1-*]_label Suggested temperature channel label.
270 generally the sensor inside the chip itself, 289 Text string
271 reported as "motherboard temperature". temp2_* to 290 Should only be created if the driver has hints about what
272 temp4_* are generally sensors external to the chip 291 this temperature channel is being used for, and user-space
273 itself, for example the thermal diode inside the CPU or 292 doesn't. In all other cases, the label is provided by
274 a thermistor nearby. 293 user-space.
294 RO
275 295
276Some chips measure temperature using external thermistors and an ADC, and 296Some chips measure temperature using external thermistors and an ADC, and
277report the temperature measurement as a voltage. Converting this voltage 297report the temperature measurement as a voltage. Converting this voltage
@@ -391,16 +411,3 @@ beep_mask Bitmask for beep.
391 use discouraged for the same reason. Use individual 411 use discouraged for the same reason. Use individual
392 *_beep files instead. 412 *_beep files instead.
393 RW 413 RW
394
395
396*********
397* Other *
398*********
399
400eeprom Raw EEPROM data in binary form.
401 RO
402
403pec Enable or disable PEC (SMBus only)
404 0: disable
405 1: enable
406 RW