summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorKamil Debski <k.debski@samsung.com>2014-07-08 16:30:17 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:05 +0900
commite6e72c6e6d1d1a94dde1d2d925dc9307ab105322 (patch)
treece3fc5b98a0fcb87cac1b94de99777febc79cdcd /Documentation
parent7ab0ee781755764e3cea4875531ba83766d2d9b6 (diff)
downloadlinux-3.10-e6e72c6e6d1d1a94dde1d2d925dc9307ab105322.tar.gz
linux-3.10-e6e72c6e6d1d1a94dde1d2d925dc9307ab105322.tar.bz2
linux-3.10-e6e72c6e6d1d1a94dde1d2d925dc9307ab105322.zip
hwmon: pwm-fan: 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. Change-Id: I1e364f8af7c5855adda78e7db34a073b419f8c89 Signed-off-by: Kamil Debski <k.debski@samsung.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/hwmon/pwm-fan.txt12
-rw-r--r--Documentation/hwmon/pwm-fan17
2 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
new file mode 100644
index 00000000000..610757ce449
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
@@ -0,0 +1,12 @@
+Bindings for a fan connected to the PWM lines
+
+Required properties:
+- compatible : "pwm-fan"
+- pwms : the PWM that is used to control the PWM fan
+
+Example:
+ pwm-fan {
+ compatible = "pwm-fan";
+ status = "okay";
+ pwms = <&pwm 0 10000 0>;
+ };
diff --git a/Documentation/hwmon/pwm-fan b/Documentation/hwmon/pwm-fan
new file mode 100644
index 00000000000..18529d2e3bc
--- /dev/null
+++ b/Documentation/hwmon/pwm-fan
@@ -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 <k.debski@samsung.com>
+
+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.