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