1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/hwmon/gpio-fan.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Fan connected to GPIO lines
10 - Rob Herring <robh@kernel.org>
18 Specifies the pins that map to bits in the control value,
27 $ref: /schemas/types.yaml#/definitions/uint32-matrix
32 - description: fan speed in RPMs
33 - description: control value
35 A mapping of possible fan RPM speeds and the
36 control value that should be set to achieve them. This array
37 must have the RPM values in ascending order.
47 additionalProperties: false
52 compatible = "gpio-fan";
55 gpio-fan,speed-map = < 0 0>,
58 alarm-gpios = <&gpio2 15 1>;
59 #cooling-cells = <2>; /* min followed by max */