summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/hwmon
diff options
context:
space:
mode:
authorKamil Debski <k.debski@samsung.com>2014-07-16 17:46:42 +0200
committerGuenter Roeck <linux@roeck-us.net>2014-08-04 16:01:38 +0200
commitd82d57767c85984132cde4efaf89ad6db290cda3 (patch)
treeeb22ad9c566ea5c4818125134fa3775e4b831e8a /Documentation/devicetree/bindings/hwmon
parenthwmon: (asc7621) Make map tables const (diff)
downloadlinux-d82d57767c85984132cde4efaf89ad6db290cda3.tar.xz
linux-d82d57767c85984132cde4efaf89ad6db290cda3.zip
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 <k.debski@samsung.com> Reviewed-by: Varka Bhadram <varkabhadram@gmail.com> Reviewed-by: Tobias Klauser <tklauser@distanz.ch> [Guenter Roeck: Last argument to devm_of_pwm_get is pointer, use NULL] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/devicetree/bindings/hwmon')
-rw-r--r--Documentation/devicetree/bindings/hwmon/pwm-fan.txt12
1 files changed, 12 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 000000000000..610757ce4492
--- /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>;
+ };