hwmon: Add pwm-fan driver

The pwm-fan driver enables control of fans connected to PWM lines.
This driver uses the PWM framework, so it is compatible with all
PWM devices that provide drivers through the PWM framework.

Signed-off-by: Kamil Debski <[email protected]>
Reviewed-by: Varka Bhadram <[email protected]>
Reviewed-by: Tobias Klauser <[email protected]>
[Guenter Roeck: Last argument to devm_of_pwm_get is pointer, use NULL]
Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
Kamil Debski 2014-07-16 17:46:42 +02:00 • committed by Guenter Roeck
commit d82d57767c
5 changed files with 235 additions and 0 deletions

View file

@ -0,0 +1,17 @@
Kernel driver pwm-fan
=====================
This driver enables the use of a PWM module to drive a fan. It uses the
generic PWM interface thus it is hardware independent. It can be used on
many SoCs, as long as the SoC supplies a PWM line driver that exposes
the generic PWM API.
Author: Kamil Debski <[email protected]>
Description
-----------
The driver implements a simple interface for driving a fan connected to
a PWM output. It uses the generic PWM interface, thus it can be used with
a range of SoCs. The driver exposes the fan to the user space through
the hwmon's sysfs interface.