Path: blob/master/Documentation/devicetree/bindings/hwmon/gmt,g762.yaml
26308 views
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/gmt,g762.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: GMT G761/G762/G763 PWM Fan controller78maintainers:9- Christian Marangi <ansuelsmth@gmail.com>1011description: |12GMT G761/G762/G763 PWM Fan controller.1314G761 supports an internal-clock hence the clocks property is optional.15If not defined, internal-clock will be used. (31KHz is the clock of16the internal crystal oscillator)1718If an optional property is not set in DT, then current value is kept19unmodified (e.g. bootloader installed value).2021Additional information on operational parameters for the device is available22in Documentation/hwmon/g762.rst. A detailed datasheet for the device is available23at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf.2425properties:26compatible:27enum:28- gmt,g76129- gmt,g76230- gmt,g7633132reg:33maxItems: 13435clocks:36description: a fixed clock providing input clock frequency on CLK37pin of the chip.38maxItems: 13940fan_startv:41description: Fan startup voltage step42$ref: /schemas/types.yaml#/definitions/uint3243enum: [0, 1, 2, 3]4445pwm_polarity:46description: PWM polarity (positive or negative duty)47$ref: /schemas/types.yaml#/definitions/uint3248enum: [0, 1]4950fan_gear_mode:51description: FAN gear mode. Configure High speed fan setting factor52$ref: /schemas/types.yaml#/definitions/uint3253enum: [0, 1, 2]5455required:56- compatible57- reg5859if:60properties:61compatible:62contains:63enum:64- gmt,g76265- gmt,g76366then:67required:68- clocks6970additionalProperties: false7172examples:73- |74i2c {75#address-cells = <1>;76#size-cells = <0>;7778g762@3e {79compatible = "gmt,g762";80reg = <0x3e>;81clocks = <&g762_clk>;82fan_gear_mode = <0>;83fan_startv = <1>;84pwm_polarity = <0>;85};8687g761@1e {88compatible = "gmt,g761";89reg = <0x1e>;90fan_gear_mode = <0>;91fan_startv = <1>;92pwm_polarity = <0>;93};94};959697