xref: /linux/Documentation/devicetree/bindings/hwmon/gmt,g762.yaml (revision 3d8e253724170ae9c8948c36801204fc2aa53682)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwmon/gmt,g762.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: GMT G762/G763 PWM Fan controller
8
9maintainers:
10  - Christian Marangi <ansuelsmth@gmail.com>
11
12description: |
13  GMT G762/G763 PWM Fan controller.
14
15  If an optional property is not set in DT, then current value is kept
16  unmodified (e.g. bootloader installed value).
17
18  Additional information on operational parameters for the device is available
19  in Documentation/hwmon/g762.rst. A detailed datasheet for the device is available
20  at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf.
21
22properties:
23  compatible:
24    enum:
25      - gmt,g762
26      - gmt,g763
27
28  reg:
29    maxItems: 1
30
31  clocks:
32    description: a fixed clock providing input clock frequency on CLK
33      pin of the chip.
34    maxItems: 1
35
36  fan_startv:
37    description: Fan startup voltage step
38    $ref: /schemas/types.yaml#/definitions/uint32
39    enum: [0, 1, 2, 3]
40
41  pwm_polarity:
42    description: PWM polarity (positive or negative duty)
43    $ref: /schemas/types.yaml#/definitions/uint32
44    enum: [0, 1]
45
46  fan_gear_mode:
47    description: FAN gear mode. Configure High speed fan setting factor
48    $ref: /schemas/types.yaml#/definitions/uint32
49    enum: [0, 1, 2]
50
51required:
52  - compatible
53  - reg
54  - clocks
55
56additionalProperties: false
57
58examples:
59  - |
60    i2c {
61        #address-cells = <1>;
62        #size-cells = <0>;
63
64        g762@3e {
65            compatible = "gmt,g762";
66            reg = <0x3e>;
67            clocks = <&g762_clk>;
68            fan_gear_mode = <0>;
69            fan_startv = <1>;
70            pwm_polarity = <0>;
71        };
72    };
73