Path: blob/main/sys/contrib/device-tree/Bindings/hwmon/gpio-fan.yaml
48375 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: 12425gpio-fan,speed-map:26$ref: /schemas/types.yaml#/definitions/uint32-matrix27minItems: 228maxItems: 12729items:30items:31- description: fan speed in RPMs32- description: control value33description: |34A mapping of possible fan RPM speeds and the35control value that should be set to achieve them. This array36must have the RPM values in ascending order.3738'#cooling-cells':39const: 24041required:42- compatible43- gpios44- gpio-fan,speed-map4546additionalProperties: false4748examples:49- |50gpio-fan {51compatible = "gpio-fan";52gpios = <&gpio2 14 153&gpio2 13 1>;54gpio-fan,speed-map = < 0 0>,55<3000 1>,56<6000 2>;57alarm-gpios = <&gpio2 15 1>;58#cooling-cells = <2>; /* min followed by max */59};606162