1 Bindings for fan connected to GPIO lines
4 - compatible : "gpio-fan"
7 - gpios: Specifies the pins that map to bits in the control value,
9 - gpio-fan,speed-map: A mapping of possible fan RPM speeds and the
10 control value that should be set to achieve them. This array
11 must have the RPM values in ascending order.
12 - alarm-gpios: This pin going active indicates something is wrong with
13 the fan, and a udev event will be fired.
14 - cooling-cells: If used as a cooling device, must be <2>
15 Also see: Documentation/devicetree/bindings/thermal/thermal.txt
16 min and max states are derived from the speed-map of the fan.
18 Note: At least one the "gpios" or "alarm-gpios" properties must be set.
23 compatible = "gpio-fan";
26 gpio-fan,speed-map = <0 0
29 alarm-gpios = <&gpio1 15 1>;
31 gpio_fan_cool: gpio_fan {
32 compatible = "gpio-fan";
35 gpio-fan,speed-map = <0 0>,
38 alarm-gpios = <&gpio2 15 1>;
39 #cooling-cells = <2>; /* min followed by max */