Skip to content

Commit 2b9ea42

Browse files
amiclausgroeck
authored andcommitted
hwmon: Add driver for ltc2991
Add support for LTC2991 Octal I2C Voltage, Current, and Temperature Monitor. The LTC2991 is used to monitor system temperatures, voltages and currents. Through the I2C serial interface, the eight monitors can individually measure supply voltages and can be paired for differential measurements of current sense resistors or temperature sensing transistors. Additional measurements include internal temperature and internal VCC. Signed-off-by: Antoniu Miclaus <[email protected]> Link: https://lore.kernel.org/r/[email protected] [groeck: Fixed up documentation warning] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 4bac088 commit 2b9ea42

File tree

6 files changed

+501
-0
lines changed

6 files changed

+501
-0
lines changed

Documentation/hwmon/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Hardware Monitoring Kernel Drivers
121121
ltc2947
122122
ltc2978
123123
ltc2990
124+
ltc2991
124125
ltc3815
125126
ltc4151
126127
ltc4215

Documentation/hwmon/ltc2991.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
Kernel driver ltc2991
4+
=====================
5+
6+
Supported chips:
7+
8+
* Analog Devices LTC2991
9+
10+
Prefix: 'ltc2991'
11+
12+
Addresses scanned: I2C 0x48 - 0x4f
13+
14+
Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/2991ff.pdf
15+
16+
Authors:
17+
18+
- Antoniu Miclaus <[email protected]>
19+
20+
21+
Description
22+
-----------
23+
24+
This driver supports hardware monitoring for Analog Devices LTC2991 Octal I2C
25+
Voltage, Current and Temperature Monitor.
26+
27+
The LTC2991 is used to monitor system temperatures, voltages and currents.
28+
Through the I2C serial interface, the eight monitors can individually measure
29+
supply voltages and can be paired for differential measurements of current sense
30+
resistors or temperature sensing transistors. Additional measurements include
31+
internal temperatureand internal VCC.
32+
33+
34+
sysfs-Interface
35+
---------------
36+
37+
The following attributes are supported. Limits are read-only.
38+
39+
=============== =================
40+
inX_input: voltage input
41+
currX_input: current input
42+
tempX_input: temperature input
43+
=============== =================

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12458,6 +12458,14 @@ F: drivers/hwmon/ltc2947-i2c.c
1245812458
F: drivers/hwmon/ltc2947-spi.c
1245912459
F: drivers/hwmon/ltc2947.h
1246012460

12461+
LTC2991 HARDWARE MONITOR DRIVER
12462+
M: Antoniu Miclaus <[email protected]>
12463+
12464+
S: Supported
12465+
W: https://ez.analog.com/linux-software-drivers
12466+
F: Documentation/devicetree/bindings/hwmon/adi,ltc2991.yaml
12467+
F: drivers/hwmon/ltc2991.c
12468+
1246112469
LTC2983 IIO TEMPERATURE DRIVER
1246212470
M: Nuno Sá <[email protected]>
1246312471

drivers/hwmon/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,17 @@ config SENSORS_LTC2990
942942
This driver can also be built as a module. If so, the module will
943943
be called ltc2990.
944944

945+
config SENSORS_LTC2991
946+
tristate "Analog Devices LTC2991"
947+
depends on I2C
948+
help
949+
If you say yes here you get support for Analog Devices LTC2991
950+
Octal I2C Voltage, Current, and Temperature Monitor. The LTC2991
951+
supports a combination of voltage, current and temperature monitoring.
952+
953+
This driver can also be built as a module. If so, the module will
954+
be called ltc2991.
955+
945956
config SENSORS_LTC2992
946957
tristate "Linear Technology LTC2992"
947958
depends on I2C

drivers/hwmon/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ obj-$(CONFIG_SENSORS_LTC2947) += ltc2947-core.o
127127
obj-$(CONFIG_SENSORS_LTC2947_I2C) += ltc2947-i2c.o
128128
obj-$(CONFIG_SENSORS_LTC2947_SPI) += ltc2947-spi.o
129129
obj-$(CONFIG_SENSORS_LTC2990) += ltc2990.o
130+
obj-$(CONFIG_SENSORS_LTC2991) += ltc2991.o
130131
obj-$(CONFIG_SENSORS_LTC2992) += ltc2992.o
131132
obj-$(CONFIG_SENSORS_LTC4151) += ltc4151.o
132133
obj-$(CONFIG_SENSORS_LTC4215) += ltc4215.o

0 commit comments

Comments
 (0)