1*c66ec88fSEmmanuel VadotGMT G762/G763 PWM Fan controller 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired node properties: 4*c66ec88fSEmmanuel Vadot 5*c66ec88fSEmmanuel Vadot - "compatible": must be either "gmt,g762" or "gmt,g763" 6*c66ec88fSEmmanuel Vadot - "reg": I2C bus address of the device 7*c66ec88fSEmmanuel Vadot - "clocks": a fixed clock providing input clock frequency 8*c66ec88fSEmmanuel Vadot on CLK pin of the chip. 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel VadotOptional properties: 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadot - "fan_startv": fan startup voltage. Accepted values are 0, 1, 2 and 3. 13*c66ec88fSEmmanuel Vadot The higher the more. 14*c66ec88fSEmmanuel Vadot 15*c66ec88fSEmmanuel Vadot - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty) 16*c66ec88fSEmmanuel Vadot and 1 (negative duty). 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel Vadot - "fan_gear_mode": fan gear mode. Supported values are 0, 1 and 2. 19*c66ec88fSEmmanuel Vadot 20*c66ec88fSEmmanuel VadotIf an optional property is not set in .dts file, then current value is kept 21*c66ec88fSEmmanuel Vadotunmodified (e.g. u-boot installed value). 22*c66ec88fSEmmanuel Vadot 23*c66ec88fSEmmanuel VadotAdditional information on operational parameters for the device is available 24*c66ec88fSEmmanuel Vadotin Documentation/hwmon/g762.rst. A detailed datasheet for the device is available 25*c66ec88fSEmmanuel Vadotat http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf. 26*c66ec88fSEmmanuel Vadot 27*c66ec88fSEmmanuel VadotExample g762 node: 28*c66ec88fSEmmanuel Vadot 29*c66ec88fSEmmanuel Vadot clocks { 30*c66ec88fSEmmanuel Vadot #address-cells = <1>; 31*c66ec88fSEmmanuel Vadot #size-cells = <0>; 32*c66ec88fSEmmanuel Vadot 33*c66ec88fSEmmanuel Vadot g762_clk: fixedclk { 34*c66ec88fSEmmanuel Vadot compatible = "fixed-clock"; 35*c66ec88fSEmmanuel Vadot #clock-cells = <0>; 36*c66ec88fSEmmanuel Vadot clock-frequency = <8192>; 37*c66ec88fSEmmanuel Vadot } 38*c66ec88fSEmmanuel Vadot } 39*c66ec88fSEmmanuel Vadot 40*c66ec88fSEmmanuel Vadot g762: g762@3e { 41*c66ec88fSEmmanuel Vadot compatible = "gmt,g762"; 42*c66ec88fSEmmanuel Vadot reg = <0x3e>; 43*c66ec88fSEmmanuel Vadot clocks = <&g762_clk> 44*c66ec88fSEmmanuel Vadot fan_gear_mode = <0>; /* chip default */ 45*c66ec88fSEmmanuel Vadot fan_startv = <1>; /* chip default */ 46*c66ec88fSEmmanuel Vadot pwm_polarity = <0>; /* chip default */ 47*c66ec88fSEmmanuel Vadot }; 48