[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250915170819.126668-2-flaviu.nistor@gmail.com>
Date: Mon, 15 Sep 2025 20:08:19 +0300
From: Flaviu Nistor <flaviu.nistor@...il.com>
To: Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: linux-hwmon@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Flaviu Nistor <flaviu.nistor@...il.com>
Subject: [PATCH 2/2] hwmon: tmp102: Add support for TMP110 and TMP113 devices
TMP110 and TMP113 temperature sensors are software compatible
with TMP102 sensor but have different accuracy (maximum error).
Signed-off-by: Flaviu Nistor <flaviu.nistor@...il.com>
---
Documentation/hwmon/tmp102.rst | 21 +++++++++++++++++++++
drivers/hwmon/Kconfig | 4 ++--
drivers/hwmon/tmp102.c | 4 ++++
3 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/Documentation/hwmon/tmp102.rst b/Documentation/hwmon/tmp102.rst
index b1f585531a88..3c2cb5bab1e9 100644
--- a/Documentation/hwmon/tmp102.rst
+++ b/Documentation/hwmon/tmp102.rst
@@ -11,6 +11,22 @@ Supported chips:
Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp102.html
+ * Texas Instruments TMP110
+
+ Prefix: 'tmp110'
+
+ Addresses scanned: none
+
+ Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp110.html
+
+ * Texas Instruments TMP113
+
+ Prefix: 'tmp113'
+
+ Addresses scanned: none
+
+ Datasheet: http://focus.ti.com/docs/prod/folders/print/tmp113.html
+
Author:
Steven King <sfking@...dc.com>
@@ -27,5 +43,10 @@ operating temperature has a minimum of -55 C and a maximum of +150 C.
The TMP102 has a programmable update rate that can select between 8, 4, 1, and
0.5 Hz. (Currently the driver only supports the default of 4 Hz).
+The TMP110 and TMP113 are software compatible with TMP102, but have different
+accuracy (maximum error) specifications. The TMP110 has an accuracy (maximum error)
+of 1.0 degree, TMP113 has an accuracy (maximum error) of 0.3 degree, while TMP102
+has an accuracy (maximum error) of 2.0 degree.
+
The driver provides the common sysfs-interface for temperatures (see
Documentation/hwmon/sysfs-interface.rst under Temperatures).
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index d6769288a76e..a5626277c95e 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -2341,8 +2341,8 @@ config SENSORS_TMP102
depends on I2C
select REGMAP_I2C
help
- If you say yes here you get support for Texas Instruments TMP102
- sensor chips.
+ If you say yes here you get support for Texas Instruments
+ TMP102, TMP110, TMP113 sensor chips.
This driver can also be built as a module. If so, the module
will be called tmp102.
diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c
index 376e0eac8cc1..0df245d220d7 100644
--- a/drivers/hwmon/tmp102.c
+++ b/drivers/hwmon/tmp102.c
@@ -312,12 +312,16 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tmp102_dev_pm_ops, tmp102_suspend, tmp102_resume
static const struct i2c_device_id tmp102_id[] = {
{ "tmp102" },
+ { "tmp110" },
+ { "tmp113" },
{ }
};
MODULE_DEVICE_TABLE(i2c, tmp102_id);
static const struct of_device_id __maybe_unused tmp102_of_match[] = {
{ .compatible = "ti,tmp102" },
+ { .compatible = "ti,tmp110" },
+ { .compatible = "ti,tmp113" },
{ },
};
MODULE_DEVICE_TABLE(of, tmp102_of_match);
--
2.43.0
Powered by blists - more mailing lists