xref: /linux/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml (revision 955abe0a1b41de5ba61fe4cd614ebc123084d499)
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,max6639.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Maxim max6639
9
10maintainers:
11  - Naresh Solanki <naresh.solanki@9elements.com>
12
13description: |
14  The MAX6639 is a 2-channel temperature monitor with dual, automatic, PWM
15  fan-speed controller.  It monitors its own temperature and one external
16  diode-connected transistor or the temperatures of two external diode-connected
17  transistors, typically available in CPUs, FPGAs, or GPUs.
18
19  Datasheets:
20    https://datasheets.maximintegrated.com/en/ds/MAX6639-MAX6639F.pdf
21
22properties:
23  compatible:
24    enum:
25      - maxim,max6639
26
27  reg:
28    maxItems: 1
29
30  '#address-cells':
31    const: 1
32
33  '#size-cells':
34    const: 0
35
36  '#pwm-cells':
37    const: 3
38
39required:
40  - compatible
41  - reg
42
43patternProperties:
44  "^fan@[0-1]$":
45    type: object
46    description:
47      Represents the two fans and their specific configuration.
48
49    $ref: fan-common.yaml#
50
51    unevaluatedProperties: false
52
53    properties:
54      reg:
55        description:
56          The fan number.
57
58    required:
59      - reg
60
61additionalProperties: false
62
63examples:
64  - |
65    i2c {
66        #address-cells = <1>;
67        #size-cells = <0>;
68
69        fan1: fan-controller@10 {
70            compatible = "maxim,max6639";
71            reg = <0x10>;
72            #address-cells = <1>;
73            #size-cells = <0>;
74            #pwm-cells = <3>;
75
76            fan@0 {
77                reg = <0x0>;
78                pulses-per-revolution = <2>;
79                max-rpm = <4000>;
80                target-rpm = <1000>;
81                pwms = <&fan1 0 25000 0>;
82            };
83
84            fan@1 {
85                reg = <0x1>;
86                pulses-per-revolution = <2>;
87                max-rpm = <8000>;
88                pwms = <&fan1 1 25000 0>;
89            };
90        };
91    };
92...
93