1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*0e8011faSEmmanuel Vadot%YAML 1.2 3*0e8011faSEmmanuel Vadot--- 4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/hwmon/gmt,g762.yaml# 5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*0e8011faSEmmanuel Vadot 7*0e8011faSEmmanuel Vadottitle: GMT G761/G762/G763 PWM Fan controller 8*0e8011faSEmmanuel Vadot 9*0e8011faSEmmanuel Vadotmaintainers: 10*0e8011faSEmmanuel Vadot - Christian Marangi <ansuelsmth@gmail.com> 11*0e8011faSEmmanuel Vadot 12*0e8011faSEmmanuel Vadotdescription: | 13*0e8011faSEmmanuel Vadot GMT G761/G762/G763 PWM Fan controller. 14*0e8011faSEmmanuel Vadot 15*0e8011faSEmmanuel Vadot G761 supports an internal-clock hence the clocks property is optional. 16*0e8011faSEmmanuel Vadot If not defined, internal-clock will be used. (31KHz is the clock of 17*0e8011faSEmmanuel Vadot the internal crystal oscillator) 18*0e8011faSEmmanuel Vadot 19*0e8011faSEmmanuel Vadot If an optional property is not set in DT, then current value is kept 20*0e8011faSEmmanuel Vadot unmodified (e.g. bootloader installed value). 21*0e8011faSEmmanuel Vadot 22*0e8011faSEmmanuel Vadot Additional information on operational parameters for the device is available 23*0e8011faSEmmanuel Vadot in Documentation/hwmon/g762.rst. A detailed datasheet for the device is available 24*0e8011faSEmmanuel Vadot at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf. 25*0e8011faSEmmanuel Vadot 26*0e8011faSEmmanuel Vadotproperties: 27*0e8011faSEmmanuel Vadot compatible: 28*0e8011faSEmmanuel Vadot enum: 29*0e8011faSEmmanuel Vadot - gmt,g761 30*0e8011faSEmmanuel Vadot - gmt,g762 31*0e8011faSEmmanuel Vadot - gmt,g763 32*0e8011faSEmmanuel Vadot 33*0e8011faSEmmanuel Vadot reg: 34*0e8011faSEmmanuel Vadot maxItems: 1 35*0e8011faSEmmanuel Vadot 36*0e8011faSEmmanuel Vadot clocks: 37*0e8011faSEmmanuel Vadot description: a fixed clock providing input clock frequency on CLK 38*0e8011faSEmmanuel Vadot pin of the chip. 39*0e8011faSEmmanuel Vadot maxItems: 1 40*0e8011faSEmmanuel Vadot 41*0e8011faSEmmanuel Vadot fan_startv: 42*0e8011faSEmmanuel Vadot description: Fan startup voltage step 43*0e8011faSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 44*0e8011faSEmmanuel Vadot enum: [0, 1, 2, 3] 45*0e8011faSEmmanuel Vadot 46*0e8011faSEmmanuel Vadot pwm_polarity: 47*0e8011faSEmmanuel Vadot description: PWM polarity (positive or negative duty) 48*0e8011faSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 49*0e8011faSEmmanuel Vadot enum: [0, 1] 50*0e8011faSEmmanuel Vadot 51*0e8011faSEmmanuel Vadot fan_gear_mode: 52*0e8011faSEmmanuel Vadot description: FAN gear mode. Configure High speed fan setting factor 53*0e8011faSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 54*0e8011faSEmmanuel Vadot enum: [0, 1, 2] 55*0e8011faSEmmanuel Vadot 56*0e8011faSEmmanuel Vadotrequired: 57*0e8011faSEmmanuel Vadot - compatible 58*0e8011faSEmmanuel Vadot - reg 59*0e8011faSEmmanuel Vadot 60*0e8011faSEmmanuel Vadotif: 61*0e8011faSEmmanuel Vadot properties: 62*0e8011faSEmmanuel Vadot compatible: 63*0e8011faSEmmanuel Vadot contains: 64*0e8011faSEmmanuel Vadot enum: 65*0e8011faSEmmanuel Vadot - gmt,g762 66*0e8011faSEmmanuel Vadot - gmt,g763 67*0e8011faSEmmanuel Vadotthen: 68*0e8011faSEmmanuel Vadot required: 69*0e8011faSEmmanuel Vadot - clocks 70*0e8011faSEmmanuel Vadot 71*0e8011faSEmmanuel VadotadditionalProperties: false 72*0e8011faSEmmanuel Vadot 73*0e8011faSEmmanuel Vadotexamples: 74*0e8011faSEmmanuel Vadot - | 75*0e8011faSEmmanuel Vadot i2c { 76*0e8011faSEmmanuel Vadot #address-cells = <1>; 77*0e8011faSEmmanuel Vadot #size-cells = <0>; 78*0e8011faSEmmanuel Vadot 79*0e8011faSEmmanuel Vadot g762@3e { 80*0e8011faSEmmanuel Vadot compatible = "gmt,g762"; 81*0e8011faSEmmanuel Vadot reg = <0x3e>; 82*0e8011faSEmmanuel Vadot clocks = <&g762_clk>; 83*0e8011faSEmmanuel Vadot fan_gear_mode = <0>; 84*0e8011faSEmmanuel Vadot fan_startv = <1>; 85*0e8011faSEmmanuel Vadot pwm_polarity = <0>; 86*0e8011faSEmmanuel Vadot }; 87*0e8011faSEmmanuel Vadot 88*0e8011faSEmmanuel Vadot g761@1e { 89*0e8011faSEmmanuel Vadot compatible = "gmt,g761"; 90*0e8011faSEmmanuel Vadot reg = <0x1e>; 91*0e8011faSEmmanuel Vadot fan_gear_mode = <0>; 92*0e8011faSEmmanuel Vadot fan_startv = <1>; 93*0e8011faSEmmanuel Vadot pwm_polarity = <0>; 94*0e8011faSEmmanuel Vadot }; 95*0e8011faSEmmanuel Vadot }; 96