Skip to content

Commit

Permalink
hwmon: (pmbus/ltc2978) add support for more parts.
Browse files Browse the repository at this point in the history
LTC2972, LTC2979, LTC3884, LTC3889, LTC7880, LTM4664, LTM4677,
LTM4678, LTM4680, LTM4700.

Signed-off-by: Mike Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[groeck: Fixed checkpatch issues (long lines, whitespace)]
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
adimike authored and groeck committed Mar 9, 2020
1 parent 50b6ced commit ee44faf
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 47 deletions.
170 changes: 132 additions & 38 deletions Documentation/hwmon/ltc2978.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ Kernel driver ltc2978

Supported chips:

* Linear Technology LTC2972

Prefix: 'ltc2972'

Addresses scanned: -

Datasheet: https://www.analog.com/en/products/ltc2972.html

* Linear Technology LTC2974

Prefix: 'ltc2974'
Expand Down Expand Up @@ -37,6 +45,14 @@ Supported chips:

https://www.analog.com/en/products/ltc2978a

* Linear Technology LTC2979

Prefix: 'ltc2979'

Addresses scanned: -

Datasheet: https://www.analog.com/en/products/ltc2979

* Linear Technology LTC2980

Prefix: 'ltc2980'
Expand Down Expand Up @@ -69,6 +85,14 @@ Supported chips:

Datasheet: https://www.analog.com/en/products/ltc3883

* Linear Technology LTC3884

Prefix: 'ltc3884'

Addresses scanned: -

Datasheet: https://www.analog.com/en/products/ltc3884

* Linear Technology LTC3886

Prefix: 'ltc3886'
Expand All @@ -85,6 +109,22 @@ Supported chips:

Datasheet: https://www.analog.com/en/products/ltc3887

* Linear Technology LTC3889

Prefix: 'ltc3889'

Addresses scanned: -

Datasheet: https://www.analog.com/en/products/ltc3889

* Linear Technology LTC7880

Prefix: 'ltc7880'

Addresses scanned: -

Datasheet: https://www.analog.com/en/products/ltc7880

* Linear Technology LTM2987

Prefix: 'ltm2987'
Expand All @@ -93,7 +133,15 @@ Supported chips:

Datasheet: https://www.analog.com/en/products/ltm2987

* Linear Technology LTM4675
* Linear Technology LTM4644

Prefix: 'ltm4644'

Addresses scanned: -

Datasheet: https://www.analog.com/en/products/ltm4644

* Linear Technology LTM4675

Prefix: 'ltm4675'

Expand All @@ -109,6 +157,30 @@ Supported chips:

Datasheet: https://www.analog.com/en/products/ltm4676

* Linear Technology LTM4677

Prefix: 'ltm4677'

Addresses scanned: -

Datasheet: https://www.analog.com/en/products/ltm4677

* Linear Technology LTM4678

Prefix: 'ltm4678'

Addresses scanned: -

Datasheet: https://www.analog.com/en/products/ltm4678

* Analog Devices LTM4680

Prefix: 'ltm4680'

Addresses scanned: -

Datasheet: http://www.analog.com/ltm4680

* Analog Devices LTM4686

Prefix: 'ltm4686'
Expand All @@ -117,6 +189,15 @@ Supported chips:

Datasheet: http://www.analog.com/ltm4686

* Analog Devices LTM4700

Prefix: 'ltm4700'

Addresses scanned: -

Datasheet: http://www.analog.com/ltm4700



Author: Guenter Roeck <[email protected]>

Expand Down Expand Up @@ -166,43 +247,48 @@ in1_min Minimum input voltage.

in1_max Maximum input voltage.

LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
LTM2987 only.
LTC2974, LTC2975, LTC2977, LTC2980, LTC2978,
LTC2979 and LTM2987 only.

in1_lcrit Critical minimum input voltage.

LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
LTM2987 only.
LTC2972, LTC2974, LTC2975, LTC2977, LTC2980, LTC2978,
LTC2979 and LTM2987 only.

in1_crit Critical maximum input voltage.

in1_min_alarm Input voltage low alarm.

in1_max_alarm Input voltage high alarm.

LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
LTM2987 only.
LTC2972, LTC2974, LTC2975, LTC2977, LTC2980, LTC2978,
LTC2979 and LTM2987 only.

in1_lcrit_alarm Input voltage critical low alarm.

LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
LTM2987 only.
LTC2972, LTC2974, LTC2975, LTC2977, LTC2980, LTC2978,
LTC2979 and LTM2987 only.

in1_crit_alarm Input voltage critical high alarm.

in1_lowest Lowest input voltage.

LTC2974, LTC2975, LTC2977, LTC2980, LTC2978, and
LTM2987 only.
LTC2972, LTC2974, LTC2975, LTC2977, LTC2980, LTC2978,
and LTM2987 only.

in1_highest Highest input voltage.

in1_reset_history Reset input voltage history.

in[N]_label "vout[1-8]".

- LTC2972: N=2-3
- LTC2974, LTC2975: N=2-5
- LTC2977, LTC2980, LTM2987: N=2-9
- LTC2977, LTC2979, LTC2980, LTM2987: N=2-9
- LTC2978: N=2-9
- LTC3880, LTC3882, LTC23886 LTC3887, LTM4675, LTM4676:
N=2-3
- LTC3880, LTC3882, LTC3884, LTC23886 LTC3887, LTC3889,
LTC7880, LTM4644, LTM4675, LTM4676, LTM4677, LTM4678,
LTM4680, LTM4700: N=2-3
- LTC3883: N=2

in[N]_input Measured output voltage.
Expand All @@ -225,29 +311,32 @@ in[N]_crit_alarm Output voltage critical high alarm.

in[N]_lowest Lowest output voltage.


LTC2974, LTC2975,and LTC2978 only.
LTC2972, LTC2974, LTC2975,and LTC2978 only.

in[N]_highest Highest output voltage.

in[N]_reset_history Reset output voltage history.

temp[N]_input Measured temperature.

- On LTC2972, temp[1-2] report external temperatures,
and temp 3 reports the chip temperature.
- On LTC2974 and LTC2975, temp[1-4] report external
temperatures, and temp5 reports the chip temperature.
- On LTC2977, LTC2980, LTC2978, and LTM2987, only one
temperature measurement is supported and reports
the chip temperature.
- On LTC3880, LTC3882, LTC3887, LTM4675, and LTM4676,
temp1 and temp2 report external temperatures, and
temp3 reports the chip temperature.
- On LTC2977, LTC2979, LTC2980, LTC2978, and LTM2987,
only one temperature measurement is supported and
reports the chip temperature.
- On LTC3880, LTC3882, LTC3886, LTC3887, LTC3889,
LTM4664, LTM4675, LTM4676, LTM4677, LTM4678, LTM4680,
and LTM4700, temp1 and temp2 report external
temperatures, and temp3 reports the chip temperature.
- On LTC3883, temp1 reports an external temperature,
and temp2 reports the chip temperature.

temp[N]_min Mimimum temperature.

LTC2974, LCT2977, LTM2980, LTC2978, and LTM2987 only.
LTC2972, LTC2974, LCT2977, LTM2980, LTC2978,
LTC2979, and LTM2987 only.

temp[N]_max Maximum temperature.

Expand All @@ -257,8 +346,8 @@ temp[N]_crit Critical high temperature.

temp[N]_min_alarm Temperature low alarm.

LTC2974, LTC2975, LTC2977, LTM2980, LTC2978, and
LTM2987 only.
LTC2972, LTC2974, LTC2975, LTC2977, LTM2980, LTC2978,
LTC2979, and LTM2987 only.

temp[N]_max_alarm Temperature high alarm.

Expand All @@ -269,8 +358,8 @@ temp[N]_crit_alarm Temperature critical high alarm.

temp[N]_lowest Lowest measured temperature.

- LTC2974, LTC2975, LTC2977, LTM2980, LTC2978, and
LTM2987 only.
- LTC2972, LTC2974, LTC2975, LTC2977, LTM2980, LTC2978,
LTC2979, and LTM2987 only.
- Not supported for chip temperature sensor on LTC2974
and LTC2975.

Expand All @@ -290,19 +379,22 @@ power1_input Measured input power.

power[N]_label "pout[1-4]".

- LTC2972: N=1-2
- LTC2974, LTC2975: N=1-4
- LTC2977, LTC2980, LTM2987: Not supported
- LTC2977, LTC2979, LTC2980, LTM2987: Not supported
- LTC2978: Not supported
- LTC3880, LTC3882, LTC3886, LTC3887, LTM4675, LTM4676:
N=1-2
- LTC3880, LTC3882, LTC3884, LTC3886, LTC3887, LTC3889,
LTM4664, LTM4675, LTM4676, LTM4677, LTM4678, LTM4680,
LTM4700: N=1-2
- LTC3883: N=2

power[N]_input Measured output power.

curr1_label "iin".

LTC3880, LTC3883, LTC3886, LTC3887, LTM4675,
and LTM4676 only.
LTC3880, LTC3883, LTC3884, LTC3886, LTC3887, LTC3889,
LTM4644, LTM4675, LTM4676, LTM4677, LTM4678, LTM4680,
and LTM4700 only.

curr1_input Measured input current.

Expand All @@ -320,11 +412,13 @@ curr1_reset_history Reset input current history.

curr[N]_label "iout[1-4]".

- LTC2972: N-1-2
- LTC2974, LTC2975: N=1-4
- LTC2977, LTC2980, LTM2987: not supported
- LTC2977, LTC2979, LTC2980, LTM2987: not supported
- LTC2978: not supported
- LTC3880, LTC3882, LTC3886, LTC3887, LTM4675, LTM4676:
N=2-3
- LTC3880, LTC3882, LTC3884, LTC3886, LTC3887, LTC3889,
LTM4664, LTM4675, LTM4676, LTM4677, LTM4678, LTM4680,
LTM4700: N=2-3
- LTC3883: N=2

curr[N]_input Measured output current.
Expand All @@ -335,19 +429,19 @@ curr[N]_crit Critical high output current.

curr[N]_lcrit Critical low output current.

LTC2974 and LTC2975 only.
LTC2972, LTC2974 and LTC2975 only.

curr[N]_max_alarm Output current high alarm.

curr[N]_crit_alarm Output current critical high alarm.

curr[N]_lcrit_alarm Output current critical low alarm.

LTC2974 and LTC2975 only.
LTC2972, LTC2974 and LTC2975 only.

curr[N]_lowest Lowest output current.

LTC2974 and LTC2975 only.
LTC2972, LTC2974 and LTC2975 only.

curr[N]_highest Highest output current.

Expand Down
11 changes: 6 additions & 5 deletions drivers/hwmon/pmbus/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ config SENSORS_LTC2978
tristate "Linear Technologies LTC2978 and compatibles"
help
If you say yes here you get hardware monitoring support for Linear
Technology LTC2974, LTC2975, LTC2977, LTC2978, LTC2980, LTC3880,
LTC3883, LTC3886, LTC3887, LTCM2987, LTM4675, and LTM4676.
Technology LTC2972, LTC2974, LTC2975, LTC2977, LTC2978, LTC2979,
LTC2980, and LTM2987.

This driver can also be built as a module. If so, the module will
be called ltc2978.
Expand All @@ -123,9 +123,10 @@ config SENSORS_LTC2978_REGULATOR
bool "Regulator support for LTC2978 and compatibles"
depends on SENSORS_LTC2978 && REGULATOR
help
If you say yes here you get regulator support for Linear
Technology LTC2974, LTC2977, LTC2978, LTC3880, LTC3883, LTM4676
and LTM4686.
If you say yes here you get regulator support for Linear Technology
LTC3880, LTC3883, LTC3884, LTC3886, LTC3887, LTC3889, LTC7880,
LTM4644, LTM4675, LTM4676, LTM4677, LTM4678, LTM4680, LTM4686,
and LTM4700.

config SENSORS_LTC3815
tristate "Linear Technologies LTC3815"
Expand Down
Loading

0 comments on commit ee44faf

Please sign in to comment.