drivers: power: report battery voltage in AOSP compatible format
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / Documentation / hwmon / ltc2978
CommitLineData
c3ff9a67
GR
1Kernel driver ltc2978
2=====================
3
4Supported chips:
fd9175d2
GR
5 * Linear Technology LTC2974
6 Prefix: 'ltc2974'
7 Addresses scanned: -
8 Datasheet: http://www.linear.com/product/ltc2974
c3ff9a67
GR
9 * Linear Technology LTC2978
10 Prefix: 'ltc2978'
11 Addresses scanned: -
6d21a416 12 Datasheet: http://www.linear.com/product/ltc2978
ddfb41ca
GR
13 * Linear Technology LTC3880
14 Prefix: 'ltc3880'
15 Addresses scanned: -
6d21a416 16 Datasheet: http://www.linear.com/product/ltc3880
fd9175d2
GR
17 * Linear Technology LTC3883
18 Prefix: 'ltc3883'
19 Addresses scanned: -
20 Datasheet: http://www.linear.com/product/ltc3883
c3ff9a67 21
e3333e57 22Author: Guenter Roeck <linux@roeck-us.net>
c3ff9a67
GR
23
24
25Description
26-----------
27
fd9175d2
GR
28LTC2974 is a quad digital power supply manager. LTC2978 is an octal power supply
29monitor. LTC3880 is a dual output poly-phase step-down DC/DC controller. LTC3883
30is a single phase step-down DC/DC controller.
c3ff9a67
GR
31
32
33Usage Notes
34-----------
35
36This driver does not probe for PMBus devices. You will have to instantiate
37devices explicitly.
38
39Example: the following commands will load the driver for an LTC2978 at address
400x60 on I2C bus #1:
41
42# modprobe ltc2978
43# echo ltc2978 0x60 > /sys/bus/i2c/devices/i2c-1/new_device
44
45
46Sysfs attributes
47----------------
48
49in1_label "vin"
50in1_input Measured input voltage.
51in1_min Minimum input voltage.
fd9175d2
GR
52in1_max Maximum input voltage. LTC2974 and LTC2978 only.
53in1_lcrit Critical minimum input voltage. LTC2974 and LTC2978
54 only.
c3ff9a67
GR
55in1_crit Critical maximum input voltage.
56in1_min_alarm Input voltage low alarm.
fd9175d2
GR
57in1_max_alarm Input voltage high alarm. LTC2974 and LTC2978 only.
58in1_lcrit_alarm Input voltage critical low alarm. LTC2974 and LTC2978
59 only.
c3ff9a67 60in1_crit_alarm Input voltage critical high alarm.
fd9175d2 61in1_lowest Lowest input voltage. LTC2974 and LTC2978 only.
c3ff9a67 62in1_highest Highest input voltage.
8c770f3a 63in1_reset_history Reset input voltage history.
c3ff9a67 64
fd9175d2
GR
65in[N]_label "vout[1-8]".
66 LTC2974: N=2-5
67 LTC2978: N=2-9
68 LTC3880: N=2-3
69 LTC3883: N=2
70in[N]_input Measured output voltage.
71in[N]_min Minimum output voltage.
72in[N]_max Maximum output voltage.
73in[N]_lcrit Critical minimum output voltage.
74in[N]_crit Critical maximum output voltage.
75in[N]_min_alarm Output voltage low alarm.
76in[N]_max_alarm Output voltage high alarm.
77in[N]_lcrit_alarm Output voltage critical low alarm.
78in[N]_crit_alarm Output voltage critical high alarm.
79in[N]_lowest Lowest output voltage. LTC2974 and LTC2978 only.
80in[N]_highest Highest output voltage.
81in[N]_reset_history Reset output voltage history.
82
83temp[N]_input Measured temperature.
84 On LTC2974, temp[1-4] report external temperatures,
85 and temp5 reports the chip temperature.
ddfb41ca 86 On LTC2978, only one temperature measurement is
8c770f3a 87 supported and reports the chip temperature.
ddfb41ca 88 On LTC3880, temp1 and temp2 report external
fd9175d2
GR
89 temperatures, and temp3 reports the chip temperature.
90 On LTC3883, temp1 reports an external temperature,
91 and temp2 reports the chip temperature.
92temp[N]_min Mimimum temperature. LTC2974 and LTC2978 only.
93temp[N]_max Maximum temperature.
94temp[N]_lcrit Critical low temperature.
95temp[N]_crit Critical high temperature.
96temp[N]_min_alarm Temperature low alarm. LTC2974 and LTC2978 only.
97temp[N]_max_alarm Temperature high alarm.
98temp[N]_lcrit_alarm Temperature critical low alarm.
99temp[N]_crit_alarm Temperature critical high alarm.
100temp[N]_lowest Lowest measured temperature. LTC2974 and LTC2978 only.
101 Not supported for chip temperature sensor on LTC2974.
102temp[N]_highest Highest measured temperature. Not supported for chip
103 temperature sensor on LTC2974.
104temp[N]_reset_history Reset temperature history. Not supported for chip
105 temperature sensor on LTC2974.
106
107power1_label "pin". LTC3883 only.
108power1_input Measured input power.
109
110power[N]_label "pout[1-4]".
111 LTC2974: N=1-4
112 LTC2978: Not supported
113 LTC3880: N=1-2
114 LTC3883: N=2
115power[N]_input Measured output power.
116
117curr1_label "iin". LTC3880 and LTC3883 only.
ddfb41ca
GR
118curr1_input Measured input current.
119curr1_max Maximum input current.
120curr1_max_alarm Input current high alarm.
fd9175d2
GR
121curr1_highest Highest input current. LTC3883 only.
122curr1_reset_history Reset input current history. LTC3883 only.
123
124curr[N]_label "iout[1-4]".
125 LTC2974: N=1-4
126 LTC2978: not supported
127 LTC3880: N=2-3
128 LTC3883: N=2
129curr[N]_input Measured output current.
130curr[N]_max Maximum output current.
131curr[N]_crit Critical high output current.
132curr[N]_lcrit Critical low output current. LTC2974 only.
133curr[N]_max_alarm Output current high alarm.
134curr[N]_crit_alarm Output current critical high alarm.
135curr[N]_lcrit_alarm Output current critical low alarm. LTC2974 only.
136curr[N]_lowest Lowest output current. LTC2974 only.
137curr[N]_highest Highest output current.
138curr[N]_reset_history Reset output current history.