diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2017-11-20 15:12:04 +1030 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-01-02 15:05:34 -0800 |
commit | 56ad86b4b16e4b7154300d71f8e93cca64b98e92 (patch) | |
tree | 63c230c464b68ca3de3eeaa538c6bc2058fded49 /Documentation | |
parent | d206636e7697f47332774f29b90b92f6047d265d (diff) | |
download | linux-56ad86b4b16e4b7154300d71f8e93cca64b98e92.tar.bz2 |
hwmon: (pmbus/max31785) Add fan control
The implementation makes use of the new fan control virtual registers
exposed by the pmbus core. It mixes use of the default implementations
with some overrides via the read/write handlers to handle FAN_COMMAND_1
on the MAX31785, whose definition breaks the value range into various
control bands dependent on RPM or PWM mode.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/hwmon/max31785 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/hwmon/max31785 b/Documentation/hwmon/max31785 index 45fb6093dec2..7b0a0a8cdb6b 100644 --- a/Documentation/hwmon/max31785 +++ b/Documentation/hwmon/max31785 @@ -32,6 +32,7 @@ Sysfs attributes fan[1-4]_alarm Fan alarm. fan[1-4]_fault Fan fault. fan[1-4]_input Fan RPM. +fan[1-4]_target Fan input target in[1-6]_crit Critical maximum output voltage in[1-6]_crit_alarm Output voltage critical high alarm @@ -44,6 +45,12 @@ in[1-6]_max_alarm Output voltage high alarm in[1-6]_min Minimum output voltage in[1-6]_min_alarm Output voltage low alarm +pwm[1-4] Fan target duty cycle (0..255) +pwm[1-4]_enable 0: Full-speed + 1: Manual PWM control + 2: Automatic PWM (tach-feedback RPM fan-control) + 3: Automatic closed-loop (temp-feedback fan-control) + temp[1-11]_crit Critical high temperature temp[1-11]_crit_alarm Chip temperature critical high alarm temp[1-11]_input Measured temperature |