summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/gpio/gpio-fan.txt
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2015-01-08 12:05:03 -0600
committerGuenter Roeck <linux@roeck-us.net>2015-03-09 09:59:36 -0700
commitb5cf88e46badea6d600d8515edea23814e03444d (patch)
treee34c800910768dbb574336ba3a9a914d793454fe /Documentation/devicetree/bindings/gpio/gpio-fan.txt
parentb6bddec01932b94a20b6a7bbb7ed9d98e82ec162 (diff)
(gpio-fan): Add thermal control hooks
Allow gpio-fan to be used as thermal cooling device for platforms that use GPIO maps to control fans. As part of this change, we make the shutdown and remove logic the same as well. Signed-off-by: Nishanth Menon <nm@ti.com> Acked-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio/gpio-fan.txt')
-rw-r--r--Documentation/devicetree/bindings/gpio/gpio-fan.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-fan.txt b/Documentation/devicetree/bindings/gpio/gpio-fan.txt
index f996d428f132..439a7430fc68 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-fan.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio-fan.txt
@@ -11,6 +11,9 @@ Optional properties:
must have the RPM values in ascending order.
- alarm-gpios: This pin going active indicates something is wrong with
the fan, and a udev event will be fired.
+- cooling-cells: If used as a cooling device, must be <2>
+ Also see: Documentation/devicetree/bindings/thermal/thermal.txt
+ min and max states are derived from the speed-map of the fan.
Note: At least one the "gpios" or "alarm-gpios" properties must be set.
@@ -25,3 +28,13 @@ Examples:
6000 2>;
alarm-gpios = <&gpio1 15 1>;
};
+ gpio_fan_cool: gpio_fan {
+ compatible = "gpio-fan";
+ gpios = <&gpio2 14 1
+ &gpio2 13 1>;
+ gpio-fan,speed-map = <0 0>,
+ <3000 1>,
+ <6000 2>;
+ alarm-gpios = <&gpio2 15 1>;
+ #cooling-cells = <2>; /* min followed by max */
+ };