brintos

brintos / linux-shallow public Read only

0
0
Text · 1.3 KiB · 7f30cfc Raw
61 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/hwmon/gpio-fan.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Fan connected to GPIO lines8 9maintainers:10  - Rob Herring <robh@kernel.org>11 12properties:13  compatible:14    const: gpio-fan15 16  gpios:17    description: |18      Specifies the pins that map to bits in the control value,19      ordered MSB-->LSB.20    minItems: 121    maxItems: 722 23  alarm-gpios:24    maxItems: 125 26  gpio-fan,speed-map:27    $ref: /schemas/types.yaml#/definitions/uint32-matrix28    minItems: 229    maxItems: 12730    items:31      items:32        - description: fan speed in RPMs33        - description: control value34    description: |35      A mapping of possible fan RPM speeds and the36      control value that should be set to achieve them. This array37      must have the RPM values in ascending order.38 39  '#cooling-cells':40    const: 241 42required:43  - compatible44  - gpios45  - gpio-fan,speed-map46 47additionalProperties: false48 49examples:50  - |51    gpio-fan {52      compatible = "gpio-fan";53      gpios = <&gpio2 14 154               &gpio2 13 1>;55      gpio-fan,speed-map = <   0 0>,56                           <3000 1>,57                           <6000 2>;58      alarm-gpios = <&gpio2 15 1>;59      #cooling-cells = <2>; /* min followed by max */60    };61