| # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| $id: http://devicetree.org/schemas/hwmon/gpio-fan.yaml# |
| $schema: http://devicetree.org/meta-schemas/core.yaml# |
| title: Fan connected to GPIO lines |
| - Rob Herring <robh@kernel.org> |
| Specifies the pins that map to bits in the control value, |
| $ref: /schemas/types.yaml#/definitions/uint32-matrix |
| - description: fan speed in RPMs |
| - description: control value |
| 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. |
| additionalProperties: false |
| gpio-fan,speed-map = < 0 0>, |
| alarm-gpios = <&gpio2 15 1>; |
| #cooling-cells = <2>; /* min followed by max */ |