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