18c2ecf20Sopenharmony_ciGMT G762/G763 PWM Fan controller 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired node properties: 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci - "compatible": must be either "gmt,g762" or "gmt,g763" 68c2ecf20Sopenharmony_ci - "reg": I2C bus address of the device 78c2ecf20Sopenharmony_ci - "clocks": a fixed clock providing input clock frequency 88c2ecf20Sopenharmony_ci on CLK pin of the chip. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciOptional properties: 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci - "fan_startv": fan startup voltage. Accepted values are 0, 1, 2 and 3. 138c2ecf20Sopenharmony_ci The higher the more. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty) 168c2ecf20Sopenharmony_ci and 1 (negative duty). 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci - "fan_gear_mode": fan gear mode. Supported values are 0, 1 and 2. 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciIf an optional property is not set in .dts file, then current value is kept 218c2ecf20Sopenharmony_ciunmodified (e.g. u-boot installed value). 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciAdditional information on operational parameters for the device is available 248c2ecf20Sopenharmony_ciin Documentation/hwmon/g762.rst. A detailed datasheet for the device is available 258c2ecf20Sopenharmony_ciat http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf. 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciExample g762 node: 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci clocks { 308c2ecf20Sopenharmony_ci #address-cells = <1>; 318c2ecf20Sopenharmony_ci #size-cells = <0>; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci g762_clk: fixedclk { 348c2ecf20Sopenharmony_ci compatible = "fixed-clock"; 358c2ecf20Sopenharmony_ci #clock-cells = <0>; 368c2ecf20Sopenharmony_ci clock-frequency = <8192>; 378c2ecf20Sopenharmony_ci } 388c2ecf20Sopenharmony_ci } 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci g762: g762@3e { 418c2ecf20Sopenharmony_ci compatible = "gmt,g762"; 428c2ecf20Sopenharmony_ci reg = <0x3e>; 438c2ecf20Sopenharmony_ci clocks = <&g762_clk> 448c2ecf20Sopenharmony_ci fan_gear_mode = <0>; /* chip default */ 458c2ecf20Sopenharmony_ci fan_startv = <1>; /* chip default */ 468c2ecf20Sopenharmony_ci pwm_polarity = <0>; /* chip default */ 478c2ecf20Sopenharmony_ci }; 48