* [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119
2026-06-08 16:00 [PATCH v2 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois
@ 2026-06-08 16:00 ` Romain Gantois
2026-06-08 17:12 ` Conor Dooley
2026-06-08 17:22 ` Rob Herring (Arm)
2026-06-08 16:00 ` [PATCH v2 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois
2026-06-08 17:24 ` [PATCH v2 0/2] iio: temperature: tmp117: Support the TMP119 sensor Jonathan Cameron
2 siblings, 2 replies; 10+ messages in thread
From: Romain Gantois @ 2026-06-08 16:00 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..d12dfef315b6c 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] 10+ messages in thread* Re: [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119
2026-06-08 16:00 ` [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
@ 2026-06-08 17:12 ` Conor Dooley
2026-06-08 17:13 ` Conor Dooley
2026-06-08 17:22 ` Rob Herring (Arm)
1 sibling, 1 reply; 10+ messages in thread
From: Conor Dooley @ 2026-06-08 17:12 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: 1815 bytes --]
On Mon, Jun 08, 2026 at 06:00:24PM +0200, Romain Gantois wrote:
> 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..d12dfef315b6c 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
Indent here looks undersized, is that just the diff being weird?
>
> reg:
> maxItems: 1
>
> --
> 2.54.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119
2026-06-08 17:12 ` Conor Dooley
@ 2026-06-08 17:13 ` Conor Dooley
0 siblings, 0 replies; 10+ messages in thread
From: Conor Dooley @ 2026-06-08 17:13 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: 2093 bytes --]
On Mon, Jun 08, 2026 at 06:12:06PM +0100, Conor Dooley wrote:
> On Mon, Jun 08, 2026 at 06:00:24PM +0200, Romain Gantois wrote:
> > 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..d12dfef315b6c 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
>
> Indent here looks undersized, is that just the diff being weird?
It's not just the diff. Testing the binding would show you what's wrong.
pw-bot: changes-requested
>
> >
> > reg:
> > maxItems: 1
> >
> > --
> > 2.54.0
> >
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119
2026-06-08 16:00 ` [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
2026-06-08 17:12 ` Conor Dooley
@ 2026-06-08 17:22 ` Rob Herring (Arm)
1 sibling, 0 replies; 10+ messages in thread
From: Rob Herring (Arm) @ 2026-06-08 17:22 UTC (permalink / raw)
To: Romain Gantois
Cc: linux-iio, David Lechner, Wil Stark, Nuno Sá,
Krzysztof Kozlowski, linux-kernel, Jonathan Cameron, Conor Dooley,
Thomas Petazzoni, Andy Shevchenko, Puranjay Mohan, devicetree
On Mon, 08 Jun 2026 18:00:24 +0200, Romain Gantois wrote:
> 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(-)
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
./Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml:23:9: [warning] wrong indentation: expected 10 but found 8 (indentation)
./Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml:26:9: [warning] wrong indentation: expected 10 but found 8 (indentation)
./Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml:27:11: [warning] wrong indentation: expected 12 but found 10 (indentation)
dtschema/dtc warnings/errors:
doc reference errors (make refcheckdocs):
See https://patchwork.kernel.org/project/devicetree/patch/20260608-tmp119-v2-1-30c3537d5097@bootlin.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 2/2] iio: temperature: tmp117: add TI TMP119 support
2026-06-08 16:00 [PATCH v2 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois
2026-06-08 16:00 ` [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
@ 2026-06-08 16:00 ` Romain Gantois
2026-06-09 14:53 ` Andy Shevchenko
2026-06-08 17:24 ` [PATCH v2 0/2] iio: temperature: tmp117: Support the TMP119 sensor Jonathan Cameron
2 siblings, 1 reply; 10+ messages in thread
From: Romain Gantois @ 2026-06-08 16:00 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.1.0-rc6]
[rgantois: Commit log]
Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
---
drivers/iio/temperature/tmp117.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/iio/temperature/tmp117.c b/drivers/iio/temperature/tmp117.c
index 8972083d903a2..18ad40f3e7361 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;
@@ -139,6 +140,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,
@@ -170,6 +177,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 +212,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 +220,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)&tmp119_channels_info },
{ }
};
MODULE_DEVICE_TABLE(i2c, tmp117_id);
--
2.54.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH v2 2/2] iio: temperature: tmp117: add TI TMP119 support
2026-06-08 16:00 ` [PATCH v2 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois
@ 2026-06-09 14:53 ` Andy Shevchenko
0 siblings, 0 replies; 10+ messages in thread
From: Andy Shevchenko @ 2026-06-09 14:53 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 Mon, Jun 08, 2026 at 06:00:25PM +0200, Romain Gantois wrote:
> Add support for the TMP119 temperature sensor, which has the same
> programming model as the TMP117.
...
> +static const struct tmp11x_info tmp119_channels_info = {
> + .name = "tmp119",
> + .channels = tmp117_channels,
> + .num_channels = ARRAY_SIZE(tmp117_channels)
You want to include array_size.h.
> +};
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 0/2] iio: temperature: tmp117: Support the TMP119 sensor
2026-06-08 16:00 [PATCH v2 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois
2026-06-08 16:00 ` [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
2026-06-08 16:00 ` [PATCH v2 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois
@ 2026-06-08 17:24 ` Jonathan Cameron
2026-06-09 14:54 ` Andy Shevchenko
2 siblings, 1 reply; 10+ messages in thread
From: Jonathan Cameron @ 2026-06-08 17:24 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 Mon, 08 Jun 2026 18:00:23 +0200
Romain Gantois <romain.gantois@bootlin.com> wrote:
> Hello everyone,
>
> This is version two 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>
Hi Romain
Other than the DT indent thing Conor calls out this looks fine to me.
However, unless the cycle is extended IIO is effectively closed for this
kernel cycle. Anything I queue up now will be targeting 7.3 now.
On the plus side no rush for v3!
Thanks,
Jonathan
> ---
> 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 | 10 ++++++++++
> 2 files changed, 21 insertions(+), 5 deletions(-)
> ---
> base-commit: ddd664bbff63e09e7a7f9acae9c43605d4cf185f
> change-id: 20260605-tmp119-662d21e4d317
>
> Best regards,
> --
> Romain Gantois <romain.gantois@bootlin.com>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 0/2] iio: temperature: tmp117: Support the TMP119 sensor
2026-06-08 17:24 ` [PATCH v2 0/2] iio: temperature: tmp117: Support the TMP119 sensor Jonathan Cameron
@ 2026-06-09 14:54 ` Andy Shevchenko
2026-06-10 13:20 ` Romain Gantois
0 siblings, 1 reply; 10+ messages in thread
From: Andy Shevchenko @ 2026-06-09 14:54 UTC (permalink / raw)
To: Jonathan Cameron
Cc: Romain Gantois, Puranjay Mohan, David Lechner, Nuno Sá,
Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Thomas Petazzoni, Wil Stark, linux-iio, linux-kernel, devicetree
On Mon, Jun 08, 2026 at 06:24:12PM +0100, Jonathan Cameron wrote:
> On Mon, 08 Jun 2026 18:00:23 +0200
> Romain Gantois <romain.gantois@bootlin.com> wrote:
>
> > This is version two 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.
>
> Other than the DT indent thing Conor calls out this looks fine to me.
> However, unless the cycle is extended IIO is effectively closed for this
> kernel cycle. Anything I queue up now will be targeting 7.3 now.
> On the plus side no rush for v3!
Please, incorporate what I commented on. Id est add #include <linux/array_size.h>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 0/2] iio: temperature: tmp117: Support the TMP119 sensor
2026-06-09 14:54 ` Andy Shevchenko
@ 2026-06-10 13:20 ` Romain Gantois
0 siblings, 0 replies; 10+ messages in thread
From: Romain Gantois @ 2026-06-10 13:20 UTC (permalink / raw)
To: Jonathan Cameron, Andy Shevchenko
Cc: Puranjay Mohan, 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: 892 bytes --]
On Tuesday, 9 June 2026 16:54:47 CEST Andy Shevchenko wrote:
> On Mon, Jun 08, 2026 at 06:24:12PM +0100, Jonathan Cameron wrote:
> > On Mon, 08 Jun 2026 18:00:23 +0200
> >
> > Romain Gantois <romain.gantois@bootlin.com> wrote:
> > > This is version two 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.
> >
> > Other than the DT indent thing Conor calls out this looks fine to me.
> > However, unless the cycle is extended IIO is effectively closed for this
> > kernel cycle. Anything I queue up now will be targeting 7.3 now.
> > On the plus side no rush for v3!
>
> Please, incorporate what I commented on. Id est add #include
> <linux/array_size.h>
ACK, I will.
Thanks,
--
Romain Gantois, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread