Skip to content

Commit fffd80c

Browse files
Alexander SteinGuenter Roeck
authored andcommitted
hwmon: LM95245 driver
A hwmon driver for the National Semiconductor LM95245 dual temperature sensors chip. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
1 parent 2ef0179 commit fffd80c

4 files changed

Lines changed: 586 additions & 0 deletions

File tree

‎Documentation/hwmon/lm95245‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Kernel driver lm95245
2+
==================
3+
4+
Supported chips:
5+
* National Semiconductor LM95245
6+
Addresses scanned: I2C 0x18, 0x19, 0x29, 0x4c, 0x4d
7+
Datasheet: Publicly available at the National Semiconductor website
8+
http://www.national.com/mpf/LM/LM95245.html
9+
10+
11+
Author: Alexander Stein <alexander.stein@systec-electronic.com>
12+
13+
Description
14+
-----------
15+
16+
The LM95245 is an 11-bit digital temperature sensor with a 2-wire System
17+
Management Bus (SMBus) interface and TruTherm technology that can monitor
18+
the temperature of a remote diode as well as its own temperature.
19+
The LM95245 can be used to very accurately monitor the temperature of
20+
external devices such as microprocessors.
21+
22+
All temperature values are given in millidegrees Celsius. Local temperature
23+
is given within a range of -127 to +127.875 degrees. Remote temperatures are
24+
given within a range of -127 to +255 degrees. Resolution depends on
25+
temperature input and range.
26+
27+
Each sensor has its own critical limit, but the hysteresis is common to all
28+
two channels.
29+
30+
The lm95245 driver can change its update interval to a fixed set of values.
31+
It will round up to the next selectable interval. See the datasheet for exact
32+
values. Reading sensor values more often will do no harm, but will return
33+
'old' values.

‎drivers/hwmon/Kconfig‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,15 @@ config SENSORS_LM95241
702702
This driver can also be built as a module. If so, the module
703703
will be called lm95241.
704704

705+
config SENSORS_LM95245
706+
tristate "National Semiconductor LM95245 sensor chip"
707+
depends on I2C && EXPERIMENTAL
708+
help
709+
If you say yes here you get support for LM95245 sensor chip.
710+
711+
This driver can also be built as a module. If so, the module
712+
will be called lm95245.
713+
705714
config SENSORS_MAX1111
706715
tristate "Maxim MAX1111 Multichannel, Serial 8-bit ADC chip"
707716
depends on SPI_MASTER

‎drivers/hwmon/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ obj-$(CONFIG_SENSORS_LM90) += lm90.o
8080
obj-$(CONFIG_SENSORS_LM92) += lm92.o
8181
obj-$(CONFIG_SENSORS_LM93) += lm93.o
8282
obj-$(CONFIG_SENSORS_LM95241) += lm95241.o
83+
obj-$(CONFIG_SENSORS_LM95245) += lm95245.o
8384
obj-$(CONFIG_SENSORS_LTC4151) += ltc4151.o
8485
obj-$(CONFIG_SENSORS_LTC4215) += ltc4215.o
8586
obj-$(CONFIG_SENSORS_LTC4245) += ltc4245.o

0 commit comments

Comments
 (0)