Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] iio: temperature: tmp117: Support the TMP119 sensor
@ 2026-06-30  9:26 Romain Gantois
  2026-06-30  9:26 ` [PATCH v3 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Romain Gantois @ 2026-06-30  9:26 UTC (permalink / raw)
  To: Puranjay Mohan, Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Thomas Petazzoni, Wil Stark, linux-iio, linux-kernel, devicetree,
	Romain Gantois

Hello everyone,

This is version three of my series which adds support for the TMP119, which
has an identical programming model to the TMP117, but slightly different
specs and electrical characteristics.

Best Regards,

Romain

Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
---
Changes in v3:
- Corrected indentation in device tree bindings
- Added an explicit inclusion of array_size.h
- Made sure the correct IIO device name was exposed to userspace
- Link to v2: https://patch.msgid.link/20260608-tmp119-v2-0-30c3537d5097@bootlin.com

Changes in v2:
- Used ti,tmp117 as a fallback compatible
- Made sure the correct IIO device name was exposed to userspace
- Link to v1: https://patch.msgid.link/20260605-tmp119-v1-0-349f45f17d12@bootlin.com

To: Puranjay Mohan <puranjay@kernel.org>
To: Jonathan Cameron <jic23@kernel.org>
To: David Lechner <dlechner@baylibre.com>
To: Nuno Sá <nuno.sa@analog.com>
To: Andy Shevchenko <andy@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: linux-iio@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
Romain Gantois (1):
      dt-bindings: iio: ti,tmp117: add binding for the TMP119

Wil Stark (1):
      iio: temperature: tmp117: add TI TMP119 support

 .../devicetree/bindings/iio/temperature/ti,tmp117.yaml   | 16 +++++++++++-----
 drivers/iio/temperature/tmp117.c                         | 13 +++++++++++++
 2 files changed, 24 insertions(+), 5 deletions(-)
---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260605-tmp119-662d21e4d317

Best regards,
--  
Romain Gantois <romain.gantois@bootlin.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v3 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119
  2026-06-30  9:26 [PATCH v3 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois
@ 2026-06-30  9:26 ` Romain Gantois
  2026-06-30 16:58   ` Conor Dooley
  2026-06-30  9:26 ` [PATCH v3 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois
  2026-06-30 23:53 ` [PATCH v3 0/2] iio: temperature: tmp117: Support the TMP119 sensor Jonathan Cameron
  2 siblings, 1 reply; 6+ messages in thread
From: Romain Gantois @ 2026-06-30  9:26 UTC (permalink / raw)
  To: Puranjay Mohan, Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Thomas Petazzoni, Wil Stark, linux-iio, linux-kernel, devicetree,
	Romain Gantois

The TMP119 has the same register layout as the TMP117, and a better local
sensor accuracy. Add a compatible for it.

Use ti,tmp117 as a fallback compatible for ti,tmp119.

Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
---
 .../devicetree/bindings/iio/temperature/ti,tmp117.yaml   | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
index fbba5e934861c..7fb3e68207919 100644
--- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
+++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
@@ -7,19 +7,25 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
 title: TI TMP117 - Digital temperature sensor with integrated NV memory
 
 description: |
-    TI TMP116/117 - Digital temperature sensor with integrated NV memory that
-    supports I2C interface.
+    TI TMP116/117/119 - Digital temperature sensor with integrated NV memory
+    that supports I2C interface.
       https://www.ti.com/lit/gpn/tmp116
       https://www.ti.com/lit/gpn/tmp117
+      https://www.ti.com/lit/gpn/tmp119
 
 maintainers:
   - Puranjay Mohan <puranjay12@gmail.com>
 
 properties:
   compatible:
-    enum:
-      - ti,tmp116
-      - ti,tmp117
+    oneOf:
+      - enum:
+          - ti,tmp116
+          - ti,tmp117
+      - items:
+          - enum:
+              - ti,tmp119
+          - const: ti,tmp117
 
   reg:
     maxItems: 1

-- 
2.54.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v3 2/2] iio: temperature: tmp117: add TI TMP119 support
  2026-06-30  9:26 [PATCH v3 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois
  2026-06-30  9:26 ` [PATCH v3 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
@ 2026-06-30  9:26 ` Romain Gantois
  2026-06-30 12:10   ` Andy Shevchenko
  2026-06-30 23:53 ` [PATCH v3 0/2] iio: temperature: tmp117: Support the TMP119 sensor Jonathan Cameron
  2 siblings, 1 reply; 6+ messages in thread
From: Romain Gantois @ 2026-06-30  9:26 UTC (permalink / raw)
  To: Puranjay Mohan, Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Thomas Petazzoni, Wil Stark, linux-iio, linux-kernel, devicetree,
	Romain Gantois

From: Wil Stark <wil_stark@keysight.com>

Add support for the TMP119 temperature sensor, which has the same
programming model as the TMP117.

Signed-off-by: Wil Stark <wil_stark@keysight.com>
[rgantois: Rebased from v6.6.58 to v7.2-rc1]
[rgantois: Commit log]
Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
---
 drivers/iio/temperature/tmp117.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/iio/temperature/tmp117.c b/drivers/iio/temperature/tmp117.c
index 6bc18616ad15e..74cb8d62bef3c 100644
--- a/drivers/iio/temperature/tmp117.c
+++ b/drivers/iio/temperature/tmp117.c
@@ -9,6 +9,7 @@
  * Note: This driver assumes that the sensor has been calibrated beforehand.
  */
 
+#include <linux/array_size.h>
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/i2c.h>
@@ -38,6 +39,7 @@
 
 #define TMP116_DEVICE_ID		0x1116
 #define TMP117_DEVICE_ID		0x0117
+#define TMP119_DEVICE_ID		0x2117
 
 struct tmp117_data {
 	struct i2c_client *client;
@@ -139,6 +141,12 @@ static const struct tmp11x_info tmp117_channels_info = {
 	.num_channels = ARRAY_SIZE(tmp117_channels)
 };
 
+static const struct tmp11x_info tmp119_channels_info = {
+	.name = "tmp119",
+	.channels = tmp117_channels,
+	.num_channels = ARRAY_SIZE(tmp117_channels)
+};
+
 static const struct iio_info tmp117_info = {
 	.read_raw = tmp117_read_raw,
 	.write_raw = tmp117_write_raw,
@@ -172,6 +180,9 @@ static int tmp117_probe(struct i2c_client *client)
 	case TMP117_DEVICE_ID:
 		match_data = &tmp117_channels_info;
 		break;
+	case TMP119_DEVICE_ID:
+		match_data = &tmp119_channels_info;
+		break;
 	default:
 		dev_info(&client->dev,
 			 "Unknown device id (0x%x), use fallback compatible\n",
@@ -204,6 +215,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 = &tmp119_channels_info },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, tmp117_of_match);
@@ -211,6 +223,7 @@ MODULE_DEVICE_TABLE(of, tmp117_of_match);
 static const struct i2c_device_id tmp117_id[] = {
 	{ .name = "tmp116", .driver_data = (kernel_ulong_t)&tmp116_channels_info },
 	{ .name = "tmp117", .driver_data = (kernel_ulong_t)&tmp117_channels_info },
+	{ .name = "tmp119", .driver_data = (kernel_ulong_t)&tmp119_channels_info },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, tmp117_id);

-- 
2.54.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v3 2/2] iio: temperature: tmp117: add TI TMP119 support
  2026-06-30  9:26 ` [PATCH v3 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois
@ 2026-06-30 12:10   ` Andy Shevchenko
  0 siblings, 0 replies; 6+ messages in thread
From: Andy Shevchenko @ 2026-06-30 12:10 UTC (permalink / raw)
  To: Romain Gantois
  Cc: Puranjay Mohan, Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thomas Petazzoni, Wil Stark, linux-iio, linux-kernel, devicetree

On Tue, Jun 30, 2026 at 11:26:35AM +0200, Romain Gantois wrote:

> Add support for the TMP119 temperature sensor, which has the same
> programming model as the TMP117.

Fine with me,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119
  2026-06-30  9:26 ` [PATCH v3 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
@ 2026-06-30 16:58   ` Conor Dooley
  0 siblings, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2026-06-30 16:58 UTC (permalink / raw)
  To: Romain Gantois
  Cc: Puranjay Mohan, Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thomas Petazzoni, Wil Stark, linux-iio, linux-kernel, devicetree

[-- Attachment #1: Type: text/plain, Size: 75 bytes --]

Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v3 0/2] iio: temperature: tmp117: Support the TMP119 sensor
  2026-06-30  9:26 [PATCH v3 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois
  2026-06-30  9:26 ` [PATCH v3 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
  2026-06-30  9:26 ` [PATCH v3 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois
@ 2026-06-30 23:53 ` Jonathan Cameron
  2 siblings, 0 replies; 6+ messages in thread
From: Jonathan Cameron @ 2026-06-30 23:53 UTC (permalink / raw)
  To: Romain Gantois
  Cc: Puranjay Mohan, David Lechner, Nuno Sá, Andy Shevchenko,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thomas Petazzoni,
	Wil Stark, linux-iio, linux-kernel, devicetree

On Tue, 30 Jun 2026 11:26:33 +0200
Romain Gantois <romain.gantois@bootlin.com> wrote:

> Hello everyone,
> 
> This is version three of my series which adds support for the TMP119, which
> has an identical programming model to the TMP117, but slightly different
> specs and electrical characteristics.
> 
> Best Regards,
> 
> Romain
> 
> Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>

Applied to the testing branch of iio.git. I'll push it out as togreg
for linux-next to pick up once I've caught up with my rather large
review backlog and anything applied has been through a bit of bot
testing!

Thanks,

Jonathan

> ---
> Changes in v3:
> - Corrected indentation in device tree bindings
> - Added an explicit inclusion of array_size.h
> - Made sure the correct IIO device name was exposed to userspace
> - Link to v2: https://patch.msgid.link/20260608-tmp119-v2-0-30c3537d5097@bootlin.com
> 
> Changes in v2:
> - Used ti,tmp117 as a fallback compatible
> - Made sure the correct IIO device name was exposed to userspace
> - Link to v1: https://patch.msgid.link/20260605-tmp119-v1-0-349f45f17d12@bootlin.com
> 
> To: Puranjay Mohan <puranjay@kernel.org>
> To: Jonathan Cameron <jic23@kernel.org>
> To: David Lechner <dlechner@baylibre.com>
> To: Nuno Sá <nuno.sa@analog.com>
> To: Andy Shevchenko <andy@kernel.org>
> To: Rob Herring <robh@kernel.org>
> To: Krzysztof Kozlowski <krzk+dt@kernel.org>
> To: Conor Dooley <conor+dt@kernel.org>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: linux-iio@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> 
> ---
> Romain Gantois (1):
>       dt-bindings: iio: ti,tmp117: add binding for the TMP119
> 
> Wil Stark (1):
>       iio: temperature: tmp117: add TI TMP119 support
> 
>  .../devicetree/bindings/iio/temperature/ti,tmp117.yaml   | 16 +++++++++++-----
>  drivers/iio/temperature/tmp117.c                         | 13 +++++++++++++
>  2 files changed, 24 insertions(+), 5 deletions(-)
> ---
> base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
> change-id: 20260605-tmp119-662d21e4d317
> 
> Best regards,
> --  
> Romain Gantois <romain.gantois@bootlin.com>
> 
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-30 23:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30  9:26 [PATCH v3 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois
2026-06-30  9:26 ` [PATCH v3 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
2026-06-30 16:58   ` Conor Dooley
2026-06-30  9:26 ` [PATCH v3 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois
2026-06-30 12:10   ` Andy Shevchenko
2026-06-30 23:53 ` [PATCH v3 0/2] iio: temperature: tmp117: Support the TMP119 sensor Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox