aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/hwmon/sysfs-interface98
1 files changed, 73 insertions, 25 deletions
diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
index 2d16e1e4017d..eeb912254db4 100644
--- a/Documentation/hwmon/sysfs-interface
+++ b/Documentation/hwmon/sysfs-interface
@@ -252,9 +252,68 @@ curr[1-n]_input Current input value
252 Read only. 252 Read only.
253 253
254 254
255********* 255**********
256* Other * 256* Alarms *
257********* 257**********
258
259Each channel or limit may have an associated alarm file, containing a
260boolean value. 1 means than an alarm condition exists, 0 means no alarm.
261
262Usually a given chip will either use channel-related alarms, or
263limit-related alarms, not both. The driver should just reflect the hardware
264implementation.
265
266in[0-n]_alarm
267fan[1-n]_alarm
268temp[1-n]_alarm
269 Channel alarm
270 Boolean
271 Read-only
272
273OR
274
275in[0-n]_min_alarm
276in[0-n]_max_alarm
277fan[1-n]_min_alarm
278temp[1-n]_min_alarm
279temp[1-n]_max_alarm
280temp[1-n]_crit_alarm
281 Limit alarm
282 Boolean
283 Read-only
284
285Each input channel may have an associated fault file. This can be used
286to notify open diodes, unconnected fans etc. where the hardware
287supports it. When this boolean has value 1, the measurement for that
288channel should not be trusted.
289
290in[0-n]_input_fault
291fan[1-n]_input_fault
292temp[1-n]_input_fault
293 Input fault condition
294 Boolean
295 Read-only
296
297Some chips also offer the possibility to get beeped when an alarm occurs:
298
299beep_enable Master beep enable
300 Boolean
301 Read/Write
302
303in[0-n]_beep
304fan[1-n]_beep
305temp[1-n]_beep
306 Channel beep
307 0 to disable.
308 1 to enable.
309 Read/write
310
311In theory, a chip could provide per-limit beep masking, but no such chip
312was seen so far.
313
314Old drivers provided a different, non-standard interface to alarms and
315beeps. These interface files are deprecated, but will be kept around
316for compatibility reasons:
258 317
259alarms Alarm bitmask. 318alarms Alarm bitmask.
260 Read only. 319 Read only.
@@ -265,33 +324,22 @@ alarms Alarm bitmask.
265 if it is still valid. 324 if it is still valid.
266 Generally a direct representation of a chip's internal 325 Generally a direct representation of a chip's internal
267 alarm registers; there is no standard for the position 326 alarm registers; there is no standard for the position
268 of individual bits. 327 of individual bits. For this reason, the use of this
328 interface file for new drivers is discouraged. Use
329 individual *_alarm and *_fault files instead.
269 Bits are defined in kernel/include/sensors.h. 330 Bits are defined in kernel/include/sensors.h.
270 331
271alarms_in Alarm bitmask relative to in (voltage) channels
272 Read only
273 A '1' bit means an alarm, LSB corresponds to in0 and so on
274 Prefered to 'alarms' for newer chips
275
276alarms_fan Alarm bitmask relative to fan channels
277 Read only
278 A '1' bit means an alarm, LSB corresponds to fan1 and so on
279 Prefered to 'alarms' for newer chips
280
281alarms_temp Alarm bitmask relative to temp (temperature) channels
282 Read only
283 A '1' bit means an alarm, LSB corresponds to temp1 and so on
284 Prefered to 'alarms' for newer chips
285
286beep_enable Beep/interrupt enable
287 0 to disable.
288 1 to enable.
289 Read/Write
290
291beep_mask Bitmask for beep. 332beep_mask Bitmask for beep.
292 Same format as 'alarms' with the same bit locations. 333 Same format as 'alarms' with the same bit locations,
334 use discouraged for the same reason. Use individual
335 *_beep files instead.
293 Read/Write 336 Read/Write
294 337
338
339*********
340* Other *
341*********
342
295eeprom Raw EEPROM data in binary form. 343eeprom Raw EEPROM data in binary form.
296 Read only. 344 Read only.
297 345