Path: blob/main/sys/contrib/device-tree/Bindings/hwmon/g762.txt
48375 views
GMT G762/G763 PWM Fan controller12Required node properties:34- "compatible": must be either "gmt,g762" or "gmt,g763"5- "reg": I2C bus address of the device6- "clocks": a fixed clock providing input clock frequency7on CLK pin of the chip.89Optional properties:1011- "fan_startv": fan startup voltage. Accepted values are 0, 1, 2 and 3.12The higher the more.1314- "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty)15and 1 (negative duty).1617- "fan_gear_mode": fan gear mode. Supported values are 0, 1 and 2.1819If an optional property is not set in .dts file, then current value is kept20unmodified (e.g. u-boot installed value).2122Additional information on operational parameters for the device is available23in Documentation/hwmon/g762.rst. A detailed datasheet for the device is available24at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf.2526Example g762 node:2728clocks {29#address-cells = <1>;30#size-cells = <0>;3132g762_clk: fixedclk {33compatible = "fixed-clock";34#clock-cells = <0>;35clock-frequency = <8192>;36}37}3839g762: g762@3e {40compatible = "gmt,g762";41reg = <0x3e>;42clocks = <&g762_clk>43fan_gear_mode = <0>; /* chip default */44fan_startv = <1>; /* chip default */45pwm_polarity = <0>; /* chip default */46};474849