Path: blob/master/Documentation/devicetree/bindings/hwmon/gpio-fan.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/gpio-fan.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Fan connected to GPIO lines78maintainers:9- Rob Herring <robh@kernel.org>1011properties:12compatible:13const: gpio-fan1415gpios:16description: |17Specifies the pins that map to bits in the control value,18ordered MSB-->LSB.19minItems: 120maxItems: 72122alarm-gpios:23maxItems: 12425fan-supply:26description: Power supply for fan2728gpio-fan,speed-map:29$ref: /schemas/types.yaml#/definitions/uint32-matrix30minItems: 231maxItems: 12732items:33items:34- description: fan speed in RPMs35- description: control value36description: |37A mapping of possible fan RPM speeds and the38control value that should be set to achieve them. This array39must have the RPM values in ascending order.4041'#cooling-cells':42const: 24344required:45- compatible46- gpios47- gpio-fan,speed-map4849additionalProperties: false5051examples:52- |53gpio-fan {54compatible = "gpio-fan";55gpios = <&gpio2 14 156&gpio2 13 1>;57gpio-fan,speed-map = < 0 0>,58<3000 1>,59<6000 2>;60alarm-gpios = <&gpio2 15 1>;61#cooling-cells = <2>; /* min followed by max */62};636465