13d8e2537SChristian Marangi# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 23d8e2537SChristian Marangi%YAML 1.2 33d8e2537SChristian Marangi--- 43d8e2537SChristian Marangi$id: http://devicetree.org/schemas/hwmon/gmt,g762.yaml# 53d8e2537SChristian Marangi$schema: http://devicetree.org/meta-schemas/core.yaml# 63d8e2537SChristian Marangi 7*302fdb16SChristian Marangititle: GMT G761/G762/G763 PWM Fan controller 83d8e2537SChristian Marangi 93d8e2537SChristian Marangimaintainers: 103d8e2537SChristian Marangi - Christian Marangi <ansuelsmth@gmail.com> 113d8e2537SChristian Marangi 123d8e2537SChristian Marangidescription: | 13*302fdb16SChristian Marangi GMT G761/G762/G763 PWM Fan controller. 14*302fdb16SChristian Marangi 15*302fdb16SChristian Marangi G761 supports an internal-clock hence the clocks property is optional. 16*302fdb16SChristian Marangi If not defined, internal-clock will be used. (31KHz is the clock of 17*302fdb16SChristian Marangi the internal crystal oscillator) 183d8e2537SChristian Marangi 193d8e2537SChristian Marangi If an optional property is not set in DT, then current value is kept 203d8e2537SChristian Marangi unmodified (e.g. bootloader installed value). 213d8e2537SChristian Marangi 223d8e2537SChristian Marangi Additional information on operational parameters for the device is available 233d8e2537SChristian Marangi in Documentation/hwmon/g762.rst. A detailed datasheet for the device is available 243d8e2537SChristian Marangi at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf. 253d8e2537SChristian Marangi 263d8e2537SChristian Marangiproperties: 273d8e2537SChristian Marangi compatible: 283d8e2537SChristian Marangi enum: 29*302fdb16SChristian Marangi - gmt,g761 303d8e2537SChristian Marangi - gmt,g762 313d8e2537SChristian Marangi - gmt,g763 323d8e2537SChristian Marangi 333d8e2537SChristian Marangi reg: 343d8e2537SChristian Marangi maxItems: 1 353d8e2537SChristian Marangi 363d8e2537SChristian Marangi clocks: 373d8e2537SChristian Marangi description: a fixed clock providing input clock frequency on CLK 383d8e2537SChristian Marangi pin of the chip. 393d8e2537SChristian Marangi maxItems: 1 403d8e2537SChristian Marangi 413d8e2537SChristian Marangi fan_startv: 423d8e2537SChristian Marangi description: Fan startup voltage step 433d8e2537SChristian Marangi $ref: /schemas/types.yaml#/definitions/uint32 443d8e2537SChristian Marangi enum: [0, 1, 2, 3] 453d8e2537SChristian Marangi 463d8e2537SChristian Marangi pwm_polarity: 473d8e2537SChristian Marangi description: PWM polarity (positive or negative duty) 483d8e2537SChristian Marangi $ref: /schemas/types.yaml#/definitions/uint32 493d8e2537SChristian Marangi enum: [0, 1] 503d8e2537SChristian Marangi 513d8e2537SChristian Marangi fan_gear_mode: 523d8e2537SChristian Marangi description: FAN gear mode. Configure High speed fan setting factor 533d8e2537SChristian Marangi $ref: /schemas/types.yaml#/definitions/uint32 543d8e2537SChristian Marangi enum: [0, 1, 2] 553d8e2537SChristian Marangi 563d8e2537SChristian Marangirequired: 573d8e2537SChristian Marangi - compatible 583d8e2537SChristian Marangi - reg 59*302fdb16SChristian Marangi 60*302fdb16SChristian Marangiif: 61*302fdb16SChristian Marangi properties: 62*302fdb16SChristian Marangi compatible: 63*302fdb16SChristian Marangi contains: 64*302fdb16SChristian Marangi enum: 65*302fdb16SChristian Marangi - gmt,g762 66*302fdb16SChristian Marangi - gmt,g763 67*302fdb16SChristian Marangithen: 68*302fdb16SChristian Marangi required: 693d8e2537SChristian Marangi - clocks 703d8e2537SChristian Marangi 713d8e2537SChristian MarangiadditionalProperties: false 723d8e2537SChristian Marangi 733d8e2537SChristian Marangiexamples: 743d8e2537SChristian Marangi - | 753d8e2537SChristian Marangi i2c { 763d8e2537SChristian Marangi #address-cells = <1>; 773d8e2537SChristian Marangi #size-cells = <0>; 783d8e2537SChristian Marangi 793d8e2537SChristian Marangi g762@3e { 803d8e2537SChristian Marangi compatible = "gmt,g762"; 813d8e2537SChristian Marangi reg = <0x3e>; 823d8e2537SChristian Marangi clocks = <&g762_clk>; 833d8e2537SChristian Marangi fan_gear_mode = <0>; 843d8e2537SChristian Marangi fan_startv = <1>; 853d8e2537SChristian Marangi pwm_polarity = <0>; 863d8e2537SChristian Marangi }; 87*302fdb16SChristian Marangi 88*302fdb16SChristian Marangi g761@1e { 89*302fdb16SChristian Marangi compatible = "gmt,g761"; 90*302fdb16SChristian Marangi reg = <0x1e>; 91*302fdb16SChristian Marangi fan_gear_mode = <0>; 92*302fdb16SChristian Marangi fan_startv = <1>; 93*302fdb16SChristian Marangi pwm_polarity = <0>; 94*302fdb16SChristian Marangi }; 953d8e2537SChristian Marangi }; 96