Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209445
b: refs/heads/master
c: 60641aa
h: refs/heads/master
i:
  209443: 88ad621
v: v3
  • Loading branch information
Sam Ravnborg committed Aug 14, 2010
1 parent c02dfd2 commit 507dbaa
Show file tree
Hide file tree
Showing 42 changed files with 585 additions and 2,558 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc58fb180755cdeda3ce58776eef94a01b37a1c1
refs/heads/master: 60641aa1f379820e99ac7f45a38b43795670c741
33 changes: 0 additions & 33 deletions trunk/Documentation/hwmon/emc2103

This file was deleted.

24 changes: 1 addition & 23 deletions trunk/Documentation/hwmon/ltc4245
Original file line number Diff line number Diff line change
Expand Up @@ -72,31 +72,9 @@ in6_min_alarm 5v output undervoltage alarm
in7_min_alarm 3v output undervoltage alarm
in8_min_alarm Vee (-12v) output undervoltage alarm

in9_input GPIO voltage data (see note 1)
in10_input GPIO voltage data (see note 1)
in11_input GPIO voltage data (see note 1)
in9_input GPIO voltage data

power1_input 12v power usage (mW)
power2_input 5v power usage (mW)
power3_input 3v power usage (mW)
power4_input Vee (-12v) power usage (mW)


Note 1
------

If you have NOT configured the driver to sample all GPIO pins as analog
voltages, then the in10_input and in11_input sysfs attributes will not be
created. The driver will sample the GPIO pin that is currently connected to the
ADC as an analog voltage, and report the value in in9_input.

If you have configured the driver to sample all GPIO pins as analog voltages,
then they will be sampled in round-robin fashion. If userspace reads too
slowly, -EAGAIN will be returned when you read the sysfs attribute containing
the sensor reading.

The LTC4245 chip can be configured to sample all GPIO pins with two methods:
1) platform data -- see include/linux/i2c/ltc4245.h
2) OF device tree -- add the "ltc4245,use-extra-gpios" property to each chip

The default mode of operation is to sample a single GPIO pin.
27 changes: 3 additions & 24 deletions trunk/Documentation/hwmon/pc87427
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ Description

The National Semiconductor Super I/O chip includes complete hardware
monitoring capabilities. It can monitor up to 18 voltages, 8 fans and
6 temperature sensors. Only the fans and temperatures are supported at
the moment, voltages aren't.
6 temperature sensors. Only the fans are supported at the moment.

This chip also has fan controlling features (up to 4 PWM outputs),
which are partly supported by this driver.
This chip also has fan controlling features, which are not yet supported
by this driver either.

The driver assumes that no more than one chip is present, which seems
reasonable.
Expand All @@ -37,23 +36,3 @@ signal. Speeds down to 83 RPM can be measured.
An alarm is triggered if the rotation speed drops below a programmable
limit. Another alarm is triggered if the speed is too low to be measured
(including stalled or missing fan).


Fan Speed Control
-----------------

Fan speed can be controlled by PWM outputs. There are 4 possible modes:
always off, always on, manual and automatic. The latter isn't supported
by the driver: you can only return to that mode if it was the original
setting, and the configuration interface is missing.


Temperature Monitoring
----------------------

The PC87427 relies on external sensors (following the SensorPath
standard), so the resolution and range depend on the type of sensor
connected. The integer part can be 8-bit or 9-bit, and can be signed or
not. I couldn't find a way to figure out the external sensor data
temperature format, so user-space adjustment (typically by a factor 2)
may be required.
29 changes: 5 additions & 24 deletions trunk/Documentation/hwmon/sysfs-interface
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,10 @@ in[0-*]_min Voltage min value.
Unit: millivolt
RW

in[0-*]_lcrit Voltage critical min value.
Unit: millivolt
RW
If voltage drops to or below this limit, the system may
take drastic action such as power down or reset. At the very
least, it should report a fault.

in[0-*]_max Voltage max value.
Unit: millivolt
RW

in[0-*]_crit Voltage critical max value.
Unit: millivolt
RW
If voltage reaches or exceeds this limit, the system may
take drastic action such as power down or reset. At the very
least, it should report a fault.

in[0-*]_input Voltage input value.
Unit: millivolt
RO
Expand Down Expand Up @@ -298,7 +284,7 @@ temp[1-*]_input Temperature input value.
Unit: millidegree Celsius
RO

temp[1-*]_crit Temperature critical max value, typically greater than
temp[1-*]_crit Temperature critical value, typically greater than
corresponding temp_max values.
Unit: millidegree Celsius
RW
Expand All @@ -310,11 +296,6 @@ temp[1-*]_crit_hyst
from the critical value.
RW

temp[1-*]_lcrit Temperature critical min value, typically lower than
corresponding temp_min values.
Unit: millidegree Celsius
RW

temp[1-*]_offset
Temperature offset which is added to the temperature reading
by the chip.
Expand Down Expand Up @@ -363,6 +344,9 @@ Also see the Alarms section for status flags associated with temperatures.
* Currents *
************

Note that no known chip provides current measurements as of writing,
so this part is theoretical, so to say.

curr[1-*]_max Current max value
Unit: milliampere
RW
Expand Down Expand Up @@ -487,7 +471,6 @@ limit-related alarms, not both. The driver should just reflect the hardware
implementation.

in[0-*]_alarm
curr[1-*]_alarm
fan[1-*]_alarm
temp[1-*]_alarm
Channel alarm
Expand All @@ -499,8 +482,6 @@ OR

in[0-*]_min_alarm
in[0-*]_max_alarm
curr[1-*]_min_alarm
curr[1-*]_max_alarm
fan[1-*]_min_alarm
fan[1-*]_max_alarm
temp[1-*]_min_alarm
Expand All @@ -516,6 +497,7 @@ to notify open diodes, unconnected fans etc. where the hardware
supports it. When this boolean has value 1, the measurement for that
channel should not be trusted.

in[0-*]_fault
fan[1-*]_fault
temp[1-*]_fault
Input fault condition
Expand All @@ -531,7 +513,6 @@ beep_enable Master beep enable
RW

in[0-*]_beep
curr[1-*]_beep
fan[1-*]_beep
temp[1-*]_beep
Channel beep
Expand Down
15 changes: 5 additions & 10 deletions trunk/Documentation/hwmon/w83627ehf
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ Supported chips:
Prefix: 'w83667hg'
Addresses scanned: ISA address retrieved from Super I/O registers
Datasheet: not available
* Winbond W83667HG-B
Prefix: 'w83667hg'
Addresses scanned: ISA address retrieved from Super I/O registers
Datasheet: Available from Nuvoton upon request

Authors:
Jean Delvare <khali@linux-fr.org>
Expand All @@ -36,8 +32,8 @@ Description
-----------

This driver implements support for the Winbond W83627EHF, W83627EHG,
W83627DHG, W83627DHG-P, W83667HG and W83667HG-B super I/O chips.
We will refer to them collectively as Winbond chips.
W83627DHG, W83627DHG-P and W83667HG super I/O chips. We will refer to them
collectively as Winbond chips.

The chips implement three temperature sensors, five fan rotation
speed sensors, ten analog voltage sensors (only nine for the 627DHG), one
Expand Down Expand Up @@ -72,15 +68,14 @@ follows:
temp1 -> pwm1
temp2 -> pwm2
temp3 -> pwm3
prog -> pwm4 (not on 667HG and 667HG-B; the programmable setting is not
supported by the driver)
prog -> pwm4 (not on 667HG; the programmable setting is not supported by
the driver)

/sys files
----------

name - this is a standard hwmon device entry. For the W83627EHF and W83627EHG,
it is set to "w83627ehf", for the W83627DHG it is set to "w83627dhg",
and for the W83667HG it is set to "w83667hg".
it is set to "w83627ehf" and for the W83627DHG it is set to "w83627dhg"

pwm[1-4] - this file stores PWM duty cycle or DC value (fan speed) in range:
0 (stop) to 255 (full)
Expand Down
Loading

0 comments on commit 507dbaa

Please sign in to comment.