Back to home page

OSCL-LXR

 
 

    


0001 GMT G762/G763 PWM Fan controller
0002 
0003 Required node properties:
0004 
0005  - "compatible": must be either "gmt,g762" or "gmt,g763"
0006  - "reg": I2C bus address of the device
0007  - "clocks": a fixed clock providing input clock frequency
0008              on CLK pin of the chip.
0009 
0010 Optional properties:
0011 
0012  - "fan_startv": fan startup voltage. Accepted values are 0, 1, 2 and 3.
0013                The higher the more.
0014 
0015  - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty)
0016                and 1 (negative duty).
0017 
0018  - "fan_gear_mode": fan gear mode. Supported values are 0, 1 and 2.
0019 
0020 If an optional property is not set in .dts file, then current value is kept
0021 unmodified (e.g. u-boot installed value).
0022 
0023 Additional information on operational parameters for the device is available
0024 in Documentation/hwmon/g762.rst. A detailed datasheet for the device is available
0025 at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf.
0026 
0027 Example g762 node:
0028 
0029    clocks {
0030         #address-cells = <1>;
0031         #size-cells = <0>;
0032 
0033         g762_clk: fixedclk {
0034                  compatible = "fixed-clock";
0035                  #clock-cells = <0>;
0036                  clock-frequency = <8192>;
0037         }
0038    }
0039 
0040    g762: g762@3e {
0041         compatible = "gmt,g762";
0042         reg = <0x3e>;
0043         clocks = <&g762_clk>
0044         fan_gear_mode = <0>; /* chip default */
0045         fan_startv = <1>;    /* chip default */
0046         pwm_polarity = <0>;  /* chip default */
0047    };