xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/hwmon/ltc2990.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunltc2990: Linear Technology LTC2990 power monitor
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: Must be "lltc,ltc2990"
5*4882a593Smuzhiyun- reg: I2C slave address
6*4882a593Smuzhiyun- lltc,meas-mode:
7*4882a593Smuzhiyun	An array of two integers for configuring the chip measurement mode.
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun	The first integer defines the bits 2..0 in the control register. In all
10*4882a593Smuzhiyun	cases the internal temperature and supply voltage are measured. In
11*4882a593Smuzhiyun	addition the following input measurements are enabled per mode:
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun		0: V1, V2, TR2
14*4882a593Smuzhiyun		1: V1-V2, TR2
15*4882a593Smuzhiyun		2: V1-V2, V3, V4
16*4882a593Smuzhiyun		3: TR1, V3, V4
17*4882a593Smuzhiyun		4: TR1, V3-V4
18*4882a593Smuzhiyun		5: TR1, TR2
19*4882a593Smuzhiyun		6: V1-V2, V3-V4
20*4882a593Smuzhiyun		7: V1, V2, V3, V4
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun	The second integer defines the bits 4..3 in the control register. This
23*4882a593Smuzhiyun	allows a subset of the measurements to be enabled:
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun		0: Internal temperature and supply voltage only
26*4882a593Smuzhiyun		1: TR1, V1 or V1-V2 only per mode
27*4882a593Smuzhiyun		2: TR2, V3 or V3-V4 only per mode
28*4882a593Smuzhiyun		3: All measurements per mode
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunExample:
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunltc2990@4c {
33*4882a593Smuzhiyun	compatible = "lltc,ltc2990";
34*4882a593Smuzhiyun	reg = <0x4c>;
35*4882a593Smuzhiyun	lltc,meas-mode = <7 3>;	/* V1, V2, V3, V4 */
36*4882a593Smuzhiyun};
37