summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorKamil Debski <k.debski@samsung.com>2014-07-08 16:30:17 +0200
committerMarek Szyprowski <m.szyprowski@samsung.com>2014-07-18 07:15:26 +0200
commitb4a4983dca20a934ccf0f44c84c1296f0fc41997 (patch)
tree28468bb92d9cdfc95359f9cf67b5f6d45c0e81ae /Documentation
parent268570986965375ea7d83b552a8b10e7551c7400 (diff)
downloadlinux-3.10-b4a4983dca20a934ccf0f44c84c1296f0fc41997.tar.gz
linux-3.10-b4a4983dca20a934ccf0f44c84c1296f0fc41997.tar.bz2
linux-3.10-b4a4983dca20a934ccf0f44c84c1296f0fc41997.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.