treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / hwmon / ltc2978.rst
blob01a24fd6d5fe5165ea785227b1b2962de4f16359
1 Kernel driver ltc2978
2 =====================
4 Supported chips:
6   * Linear Technology LTC2974
8     Prefix: 'ltc2974'
10     Addresses scanned: -
12     Datasheet: http://www.linear.com/product/ltc2974
14   * Linear Technology LTC2975
16     Prefix: 'ltc2975'
18     Addresses scanned: -
20     Datasheet: http://www.linear.com/product/ltc2975
22   * Linear Technology LTC2977
24     Prefix: 'ltc2977'
26     Addresses scanned: -
28     Datasheet: http://www.linear.com/product/ltc2977
30   * Linear Technology LTC2978, LTC2978A
32     Prefix: 'ltc2978'
34     Addresses scanned: -
36     Datasheet: http://www.linear.com/product/ltc2978
38                http://www.linear.com/product/ltc2978a
40   * Linear Technology LTC2980
42     Prefix: 'ltc2980'
44     Addresses scanned: -
46     Datasheet: http://www.linear.com/product/ltc2980
48   * Linear Technology LTC3880
50     Prefix: 'ltc3880'
52     Addresses scanned: -
54     Datasheet: http://www.linear.com/product/ltc3880
56   * Linear Technology LTC3882
58     Prefix: 'ltc3882'
60     Addresses scanned: -
62     Datasheet: http://www.linear.com/product/ltc3882
64   * Linear Technology LTC3883
66     Prefix: 'ltc3883'
68     Addresses scanned: -
70     Datasheet: http://www.linear.com/product/ltc3883
72   * Linear Technology LTC3886
74     Prefix: 'ltc3886'
76     Addresses scanned: -
78     Datasheet: http://www.linear.com/product/ltc3886
80   * Linear Technology LTC3887
82     Prefix: 'ltc3887'
84     Addresses scanned: -
86     Datasheet: http://www.linear.com/product/ltc3887
88   * Linear Technology LTM2987
90     Prefix: 'ltm2987'
92     Addresses scanned: -
94     Datasheet: http://www.linear.com/product/ltm2987
96   * Linear Technology LTM4675
98     Prefix: 'ltm4675'
100     Addresses scanned: -
102     Datasheet: http://www.linear.com/product/ltm4675
104   * Linear Technology LTM4676
106     Prefix: 'ltm4676'
108     Addresses scanned: -
110     Datasheet: http://www.linear.com/product/ltm4676
112   * Analog Devices LTM4686
114     Prefix: 'ltm4686'
116     Addresses scanned: -
118     Datasheet: http://www.analog.com/ltm4686
121 Author: Guenter Roeck <linux@roeck-us.net>
124 Description
125 -----------
127 - LTC2974 and LTC2975 are quad digital power supply managers.
128 - LTC2978 is an octal power supply monitor.
129 - LTC2977 is a pin compatible replacement for LTC2978.
130 - LTC2980 is a 16-channel Power System Manager, consisting of two LTC2977
131 - in a single die. The chip is instantiated and reported as two separate chips
132 - on two different I2C bus addresses.
133 - LTC3880, LTC3882, LTC3886, and LTC3887 are dual output poly-phase step-down
134 - DC/DC controllers.
135 - LTC3883 is a single phase step-down DC/DC controller.
136 - LTM2987 is a 16-channel Power System Manager with two LTC2977 plus
137 - additional components on a single die. The chip is instantiated and reported
138 - as two separate chips on two different I2C bus addresses.
139 - LTM4675 is a dual 9A or single 18A μModule regulator
140 - LTM4676 is a dual 13A or single 26A uModule regulator.
141 - LTM4686 is a dual 10A or single 20A uModule regulator.
144 Usage Notes
145 -----------
147 This driver does not probe for PMBus devices. You will have to instantiate
148 devices explicitly.
150 Example: the following commands will load the driver for an LTC2978 at address
151 0x60 on I2C bus #1::
153         # modprobe ltc2978
154         # echo ltc2978 0x60 > /sys/bus/i2c/devices/i2c-1/new_device
157 Sysfs attributes
158 ----------------
160 ======================= ========================================================
161 in1_label               "vin"
163 in1_input               Measured input voltage.
165 in1_min                 Minimum input voltage.
167 in1_max                 Maximum input voltage.
169                         LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
170                         LTM2987 only.
172 in1_lcrit               Critical minimum input voltage.
174                         LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
175                         LTM2987 only.
177 in1_crit                Critical maximum input voltage.
179 in1_min_alarm           Input voltage low alarm.
181 in1_max_alarm           Input voltage high alarm.
183                         LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
184                         LTM2987 only.
185 in1_lcrit_alarm         Input voltage critical low alarm.
187                         LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
188                         LTM2987 only.
189 in1_crit_alarm          Input voltage critical high alarm.
191 in1_lowest              Lowest input voltage.
193                         LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
194                         LTM2987 only.
195 in1_highest             Highest input voltage.
197 in1_reset_history       Reset input voltage history.
199 in[N]_label             "vout[1-8]".
201                         - LTC2974, LTC2975: N=2-5
202                         - LTC2977, LTC2980, LTM2987: N=2-9
203                         - LTC2978: N=2-9
204                         - LTC3880, LTC3882, LTC23886 LTC3887, LTM4675, LTM4676:
205                           N=2-3
206                         - LTC3883: N=2
208 in[N]_input             Measured output voltage.
210 in[N]_min               Minimum output voltage.
212 in[N]_max               Maximum output voltage.
214 in[N]_lcrit             Critical minimum output voltage.
216 in[N]_crit              Critical maximum output voltage.
218 in[N]_min_alarm         Output voltage low alarm.
220 in[N]_max_alarm         Output voltage high alarm.
222 in[N]_lcrit_alarm       Output voltage critical low alarm.
224 in[N]_crit_alarm        Output voltage critical high alarm.
226 in[N]_lowest            Lowest output voltage.
229                         LTC2974, LTC2975,and LTC2978 only.
231 in[N]_highest           Highest output voltage.
233 in[N]_reset_history     Reset output voltage history.
235 temp[N]_input           Measured temperature.
237                         - On LTC2974 and LTC2975, temp[1-4] report external
238                           temperatures, and temp5 reports the chip temperature.
239                         - On LTC2977, LTC2980, LTC2978, and LTM2987, only one
240                           temperature measurement is supported and reports
241                           the chip temperature.
242                         - On LTC3880, LTC3882, LTC3887, LTM4675, and LTM4676,
243                           temp1 and temp2 report external temperatures, and
244                           temp3 reports the chip temperature.
245                         - On LTC3883, temp1 reports an external temperature,
246                           and temp2 reports the chip temperature.
248 temp[N]_min             Mimimum temperature.
250                         LTC2974, LCT2977, LTM2980, LTC2978, and LTM2987 only.
252 temp[N]_max             Maximum temperature.
254 temp[N]_lcrit           Critical low temperature.
256 temp[N]_crit            Critical high temperature.
258 temp[N]_min_alarm       Temperature low alarm.
260                         LTC2974, LTC2975, LTC2977, LTM2980, LTC2978, and
261                         LTM2987 only.
263 temp[N]_max_alarm       Temperature high alarm.
266 temp[N]_lcrit_alarm     Temperature critical low alarm.
268 temp[N]_crit_alarm      Temperature critical high alarm.
270 temp[N]_lowest          Lowest measured temperature.
272                         - LTC2974, LTC2975, LTC2977, LTM2980, LTC2978, and
273                           LTM2987 only.
274                         - Not supported for chip temperature sensor on LTC2974
275                           and LTC2975.
277 temp[N]_highest         Highest measured temperature.
279                         Not supported for chip temperature sensor on
280                         LTC2974 and LTC2975.
282 temp[N]_reset_history   Reset temperature history.
284                         Not supported for chip temperature sensor on
285                         LTC2974 and LTC2975.
287 power1_label            "pin". LTC3883 and LTC3886 only.
289 power1_input            Measured input power.
291 power[N]_label          "pout[1-4]".
293                         - LTC2974, LTC2975: N=1-4
294                         - LTC2977, LTC2980, LTM2987: Not supported
295                         - LTC2978: Not supported
296                         - LTC3880, LTC3882, LTC3886, LTC3887, LTM4675, LTM4676:
297                           N=1-2
298                         - LTC3883: N=2
300 power[N]_input          Measured output power.
302 curr1_label             "iin".
304                         LTC3880, LTC3883, LTC3886, LTC3887, LTM4675,
305                         and LTM4676 only.
307 curr1_input             Measured input current.
309 curr1_max               Maximum input current.
311 curr1_max_alarm         Input current high alarm.
313 curr1_highest           Highest input current.
315                         LTC3883 and LTC3886 only.
317 curr1_reset_history     Reset input current history.
319                         LTC3883 and LTC3886 only.
321 curr[N]_label           "iout[1-4]".
323                         - LTC2974, LTC2975: N=1-4
324                         - LTC2977, LTC2980, LTM2987: not supported
325                         - LTC2978: not supported
326                         - LTC3880, LTC3882, LTC3886, LTC3887, LTM4675, LTM4676:
327                           N=2-3
328                         - LTC3883: N=2
330 curr[N]_input           Measured output current.
332 curr[N]_max             Maximum output current.
334 curr[N]_crit            Critical high output current.
336 curr[N]_lcrit           Critical low output current.
338                         LTC2974 and LTC2975 only.
340 curr[N]_max_alarm       Output current high alarm.
342 curr[N]_crit_alarm      Output current critical high alarm.
344 curr[N]_lcrit_alarm     Output current critical low alarm.
346                         LTC2974 and LTC2975 only.
348 curr[N]_lowest          Lowest output current.
350                         LTC2974 and LTC2975 only.
352 curr[N]_highest         Highest output current.
354 curr[N]_reset_history   Reset output current history.
355 ======================= ========================================================