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