| Bindings for fan connected to GPIO lines |
| - compatible : "gpio-fan" |
| - gpios: Specifies the pins that map to bits in the control value, |
| - gpio-fan,speed-map: A mapping of possible fan RPM speeds and the |
| control value that should be set to achieve them. This array |
| 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> |
| Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml |
| 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. |
| gpio-fan,speed-map = <0 0 |
| alarm-gpios = <&gpio1 15 1>; |
| gpio_fan_cool: gpio_fan { |
| gpio-fan,speed-map = <0 0>, |
| alarm-gpios = <&gpio2 15 1>; |
| #cooling-cells = <2>; /* min followed by max */ |