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>
16 Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml
17 min and max states are derived from the speed-map of the fan.
19 Note: At least one the "gpios" or "alarm-gpios" properties must be set.
24 compatible = "gpio-fan";
27 gpio-fan,speed-map = <0 0
30 alarm-gpios = <&gpio1 15 1>;
32 gpio_fan_cool: gpio_fan {
33 compatible = "gpio-fan";
36 gpio-fan,speed-map = <0 0>,
39 alarm-gpios = <&gpio2 15 1>;
40 #cooling-cells = <2>; /* min followed by max */