GMT G761/G762/G763 PWM Fan controller

Schema identifier ($id): "http://devicetree.org/schemas/hwmon/gmt,g762.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"

GMT G761/G762/G763 PWM Fan controller.

G761 supports an internal-clock hence the clocks property is optional. If not defined, internal-clock will be used. (31KHz is the clock of the internal crystal oscillator)

If an optional property is not set in DT, then current value is kept unmodified (e.g. bootloader installed value).

Additional information on operational parameters for the device is available in Documentation/hwmon/g762.rst. A detailed datasheet for the device is available at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "gmt,g761", "gmt,g762", "gmt,g763"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

a fixed clock providing input clock frequency on CLK pin of the chip.

Maximum number of items (maxItems): 1

fan_startv — not listed as required here #

Fan startup voltage step

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

pwm_polarity — not listed as required here #

PWM polarity (positive or negative duty)

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

fan_gear_mode — not listed as required here #

FAN gear mode. Configure High speed fan setting factor

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

Required in this object (required): "compatible", "reg"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "gmt,g762", "gmt,g763"

When the condition matches (then) #

Required in this object (required): "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    g762@3e {
        compatible = "gmt,g762";
        reg = <0x3e>;
        clocks = <&g762_clk>;
        fan_gear_mode = <0>;
        fan_startv = <1>;
        pwm_polarity = <0>;
    };

    g761@1e {
        compatible = "gmt,g761";
        reg = <0x1e>;
        fan_gear_mode = <0>;
        fan_startv = <1>;
        pwm_polarity = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page