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