[PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support
From: Romain Gantois
Date: Fri Jun 05 2026 - 05:16:39 EST
From: Wil Stark <wil_stark@xxxxxxxxxxxx>
Add support for the TMP119 temperature sensor, which has the same
programming model as the TMP117.
Signed-off-by: Wil Stark <wil_stark@xxxxxxxxxxxx>
[rgantois: Rebased from v6.6.58 to v7.1.0-rc6]
[rgantois: Commit log]
Signed-off-by: Romain Gantois <romain.gantois@xxxxxxxxxxx>
---
drivers/iio/temperature/tmp117.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/iio/temperature/tmp117.c b/drivers/iio/temperature/tmp117.c
index 8972083d903a2..8e9621171c516 100644
--- a/drivers/iio/temperature/tmp117.c
+++ b/drivers/iio/temperature/tmp117.c
@@ -38,6 +38,7 @@
#define TMP116_DEVICE_ID 0x1116
#define TMP117_DEVICE_ID 0x0117
+#define TMP119_DEVICE_ID 0x2117
struct tmp117_data {
struct i2c_client *client;
@@ -170,6 +171,7 @@ static int tmp117_probe(struct i2c_client *client)
match_data = &tmp116_channels_info;
break;
case TMP117_DEVICE_ID:
+ case TMP119_DEVICE_ID:
match_data = &tmp117_channels_info;
break;
default:
@@ -204,6 +206,7 @@ static int tmp117_probe(struct i2c_client *client)
static const struct of_device_id tmp117_of_match[] = {
{ .compatible = "ti,tmp116", .data = &tmp116_channels_info },
{ .compatible = "ti,tmp117", .data = &tmp117_channels_info },
+ { .compatible = "ti,tmp119", .data = &tmp117_channels_info },
{ }
};
MODULE_DEVICE_TABLE(of, tmp117_of_match);
@@ -211,6 +214,7 @@ MODULE_DEVICE_TABLE(of, tmp117_of_match);
static const struct i2c_device_id tmp117_id[] = {
{ "tmp116", (kernel_ulong_t)&tmp116_channels_info },
{ "tmp117", (kernel_ulong_t)&tmp117_channels_info },
+ { "tmp119", (kernel_ulong_t)&tmp117_channels_info },
{ }
};
MODULE_DEVICE_TABLE(i2c, tmp117_id);
--
2.54.0