xref: /linux/Documentation/devicetree/bindings/hwmon/maxim,max6650.yaml (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4
5$id: http://devicetree.org/schemas/hwmon/maxim,max6650.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Maxim MAX6650 and MAX6651 I2C Fan Controllers
9
10maintainers:
11  - Javier Carrasco <javier.carrasco.cruz@gmail.com>
12
13description: |
14  The MAX6650 and MAX6651 regulate and monitor the speed
15  of 5VDC/12VDC burshless fans with built-in tachometers.
16
17  Datasheets:
18    https://datasheets.maximintegrated.com/en/ds/MAX6650-MAX6651.pdf
19
20properties:
21  compatible:
22    enum:
23      - maxim,max6650
24      - maxim,max6651
25
26  reg:
27    maxItems: 1
28
29  maxim,fan-microvolt:
30    description:
31      The supply voltage of the fan, either 5000000 uV or
32      12000000 uV.
33    enum: [5000000, 12000000]
34
35  maxim,fan-prescale:
36    description:
37      Pre-scaling value, as per datasheet. Lower values
38      allow more fine-grained control of slower fans.
39    $ref: /schemas/types.yaml#/definitions/uint32
40    enum: [1, 2, 4, 8, 16]
41
42  maxim,fan-target-rpm:
43    description:
44      Initial requested fan rotation speed. If specified, the
45      driver selects closed-loop mode and the requested speed.
46      This ensures the fan is already running before userspace
47      takes over.
48    $ref: /schemas/types.yaml#/definitions/uint32
49    maximum: 30000
50
51required:
52  - compatible
53  - reg
54
55additionalProperties: false
56
57examples:
58  - |
59    i2c {
60        #address-cells = <1>;
61        #size-cells = <0>;
62
63        fan-controller@1b {
64            compatible = "maxim,max6650";
65            reg = <0x1b>;
66            maxim,fan-microvolt = <12000000>;
67            maxim,fan-prescale = <4>;
68            maxim,fan-target-rpm = <1200>;
69        };
70    };
71