* [PATCH 0/2] iio: temperature: tmp117: Support the TMP119 sensor
@ 2026-06-05 9:01 Romain Gantois
2026-06-05 9:01 ` [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois
2026-06-05 9:01 ` [PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois
0 siblings, 2 replies; 9+ messages in thread
From: Romain Gantois @ 2026-06-05 9:01 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 series 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>
---
Romain Gantois (1):
dt-bindings: iio: ti,tmp117: add binding for the TMP119
Wil Stark (1):
iio: temperature: tmp117: add TI TMP119 support
Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml | 6 ++++--
drivers/iio/temperature/tmp117.c | 4 ++++
2 files changed, 8 insertions(+), 2 deletions(-)
---
base-commit: ddd664bbff63e09e7a7f9acae9c43605d4cf185f
change-id: 20260605-tmp119-662d21e4d317
Best regards,
--
Romain Gantois <romain.gantois@bootlin.com>
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 2026-06-05 9:01 [PATCH 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois @ 2026-06-05 9:01 ` Romain Gantois 2026-06-05 11:53 ` Jonathan Cameron 2026-06-05 9:01 ` [PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois 1 sibling, 1 reply; 9+ messages in thread From: Romain Gantois @ 2026-06-05 9:01 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. Signed-off-by: Romain Gantois <romain.gantois@bootlin.com> --- Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml index fbba5e934861c..9f3b74274b16e 100644 --- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml @@ -7,10 +7,11 @@ $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> @@ -20,6 +21,7 @@ properties: enum: - ti,tmp116 - ti,tmp117 + - ti,tmp119 reg: maxItems: 1 -- 2.54.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 2026-06-05 9:01 ` [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois @ 2026-06-05 11:53 ` Jonathan Cameron 2026-06-05 12:24 ` Romain Gantois 0 siblings, 1 reply; 9+ messages in thread From: Jonathan Cameron @ 2026-06-05 11: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 Fri, 05 Jun 2026 11:01:35 +0200 Romain Gantois <romain.gantois@bootlin.com> wrote: > The TMP119 has the same register layout as the TMP117, and a better local > sensor accuracy. Sounds like (and the driver changes pretty much confirm) that this could use a fallback compatible to the tmp117. The second patch then just resolves the print that would happen on older kernels using that fallback due to ID mismatch. That's fine but nice if older kernels can work with this part. Thanks, Jonathan > > Signed-off-by: Romain Gantois <romain.gantois@bootlin.com> > --- > Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > index fbba5e934861c..9f3b74274b16e 100644 > --- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml > @@ -7,10 +7,11 @@ $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> > @@ -20,6 +21,7 @@ properties: > enum: > - ti,tmp116 > - ti,tmp117 > + - ti,tmp119 > > reg: > maxItems: 1 > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 2026-06-05 11:53 ` Jonathan Cameron @ 2026-06-05 12:24 ` Romain Gantois 2026-06-05 14:20 ` Jonathan Cameron 0 siblings, 1 reply; 9+ messages in thread From: Romain Gantois @ 2026-06-05 12:24 UTC (permalink / raw) To: Jonathan Cameron 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: 1184 bytes --] Hi Jonathan, On Friday, 5 June 2026 13:53:32 CEST Jonathan Cameron wrote: > On Fri, 05 Jun 2026 11:01:35 +0200 > > Romain Gantois <romain.gantois@bootlin.com> wrote: > > The TMP119 has the same register layout as the TMP117, and a better local > > sensor accuracy. > > Sounds like (and the driver changes pretty much confirm) that this could > use a fallback compatible to the tmp117. > What do you mean by "fallback compatible" in this case? Do you mean we should do something like this in the bindings: ``` enum: - ti,tmp116 - ti,tmp119 const: - ti,tmp117 ``` But wouldn't this invalidate existing device trees which only have: `compatible = "ti,tmp116";` > The second patch then just resolves the print that would happen on older > kernels using that fallback due to ID mismatch. That's fine but nice > if older kernels can work with this part. Sorry I don't quite understand: since this is a feature patch, I don't expect it would get backported onto older kernels. Therefore why would the second patch resolve the print happening on older kernels? 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] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 2026-06-05 12:24 ` Romain Gantois @ 2026-06-05 14:20 ` Jonathan Cameron 2026-06-05 16:08 ` Conor Dooley 0 siblings, 1 reply; 9+ messages in thread From: Jonathan Cameron @ 2026-06-05 14:20 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 Fri, 05 Jun 2026 14:24:45 +0200 Romain Gantois <romain.gantois@bootlin.com> wrote: > Hi Jonathan, > > On Friday, 5 June 2026 13:53:32 CEST Jonathan Cameron wrote: > > On Fri, 05 Jun 2026 11:01:35 +0200 > > > > Romain Gantois <romain.gantois@bootlin.com> wrote: > > > The TMP119 has the same register layout as the TMP117, and a better local > > > sensor accuracy. > > > > Sounds like (and the driver changes pretty much confirm) that this could > > use a fallback compatible to the tmp117. > > > > What do you mean by "fallback compatible" in this case? Do you mean we should > do something like this in the bindings: > > ``` > enum: > - ti,tmp116 > - ti,tmp119 > const: > - ti,tmp117 > ``` Something like (I can never remember the syntax so this is modified from another binding doc and untested) oneOf: - enum: - ti,tmp116 - ti,tmp117 - items: - enum: #enum here because once we have one we tend to get more ;) - ti,tmp119 - const: ti,tmp117 > > But wouldn't this invalidate existing device trees which only have: > > `compatible = "ti,tmp116";` > > > The second patch then just resolves the print that would happen on older > > kernels using that fallback due to ID mismatch. That's fine but nice > > if older kernels can work with this part. > > Sorry I don't quite understand: since this is a feature patch, I don't expect > it would get backported onto older kernels. Therefore why would the second > patch resolve the print happening on older kernels? > The point of a fallback compatible is that we don't have to backport anything. New device tree comes along that lists compatible = "ti,tmp119", "ti,tmp117" will just work. Older kernel will think it has a tmp117 which is fine as they are register interface compatible. It will print a message to say that it found an unknown ID but then assume it is what the firmware told it, here the tmp117 fallback. With your second patch in place, that harmless message will disappear for new kernels. Jonathan > Thanks, > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 2026-06-05 14:20 ` Jonathan Cameron @ 2026-06-05 16:08 ` Conor Dooley 0 siblings, 0 replies; 9+ messages in thread From: Conor Dooley @ 2026-06-05 16:08 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 [-- Attachment #1: Type: text/plain, Size: 2426 bytes --] On Fri, Jun 05, 2026 at 03:20:05PM +0100, Jonathan Cameron wrote: > On Fri, 05 Jun 2026 14:24:45 +0200 > Romain Gantois <romain.gantois@bootlin.com> wrote: > > > Hi Jonathan, > > > > On Friday, 5 June 2026 13:53:32 CEST Jonathan Cameron wrote: > > > On Fri, 05 Jun 2026 11:01:35 +0200 > > > > > > Romain Gantois <romain.gantois@bootlin.com> wrote: > > > > The TMP119 has the same register layout as the TMP117, and a better local > > > > sensor accuracy. > > > > > > Sounds like (and the driver changes pretty much confirm) that this could > > > use a fallback compatible to the tmp117. > > > > > > > What do you mean by "fallback compatible" in this case? Do you mean we should > > do something like this in the bindings: > > > > ``` > > enum: > > - ti,tmp116 > > - ti,tmp119 > > const: > > - ti,tmp117 > > ``` > Something like (I can never remember the syntax so this is modified from > another binding doc and untested) > > oneOf: > - enum: > - ti,tmp116 > - ti,tmp117 > - items: > - enum: #enum here because once we have one we tend to get more ;) > - ti,tmp119 > - const: ti,tmp117 Other than the cheeky comment, this looks okay. > > > > > But wouldn't this invalidate existing device trees which only have: > > > > `compatible = "ti,tmp116";` > > > > > The second patch then just resolves the print that would happen on older > > > kernels using that fallback due to ID mismatch. That's fine but nice > > > if older kernels can work with this part. > > > > Sorry I don't quite understand: since this is a feature patch, I don't expect > > it would get backported onto older kernels. Therefore why would the second > > patch resolve the print happening on older kernels? > > > The point of a fallback compatible is that we don't have to backport anything. > New device tree comes along that lists > > compatible = "ti,tmp119", "ti,tmp117" > > will just work. Older kernel will think it has a tmp117 which is fine as they > are register interface compatible. It will print a message to say that it > found an unknown ID but then assume it is what the firmware told it, here the > tmp117 fallback. With your second patch in place, that harmless message will > disappear for new kernels. > > Jonathan > > > > Thanks, > > > [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support 2026-06-05 9:01 [PATCH 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois 2026-06-05 9:01 ` [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois @ 2026-06-05 9:01 ` Romain Gantois 2026-06-05 11:08 ` sashiko-bot 1 sibling, 1 reply; 9+ messages in thread From: Romain Gantois @ 2026-06-05 9:01 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 | 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 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support 2026-06-05 9:01 ` [PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois @ 2026-06-05 11:08 ` sashiko-bot 2026-06-05 11:38 ` Romain Gantois 0 siblings, 1 reply; 9+ messages in thread From: sashiko-bot @ 2026-06-05 11:08 UTC (permalink / raw) To: Romain Gantois; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The IIO device name for the TMP119 sensor is incorrectly reported as 'tmp117' to userspace. -- commit 3bc7597d636b9eb1df1b77ad9bb9ab2ab8c85398 Author: Wil Stark <wil_stark@keysight.com> iio: temperature: tmp117: add TI TMP119 support This commit adds support for the TMP119 temperature sensor to the tmp117 driver. It maps the TMP119 device ID and compatible string to the existing tmp117 match data. > 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 [ ... ] > @@ -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; [Severity: Medium] Will this cause the IIO device name exposed to userspace to be incorrectly reported as "tmp117" for TMP119 devices? Since TMP119 maps directly to tmp117_channels_info: static const struct tmp11x_info tmp117_channels_info = { .name = "tmp117", ... }; And indio_dev->name is assigned from match_data->name later in tmp117_probe(): indio_dev->name = match_data->name; Does this break userspace applications or udev rules that rely on reading the correct sensor part name ("tmp119") from sysfs? -- Sashiko AI review · https://sashiko.dev/#/patchset/20260605-tmp119-v1-0-349f45f17d12@bootlin.com?part=2 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support 2026-06-05 11:08 ` sashiko-bot @ 2026-06-05 11:38 ` Romain Gantois 0 siblings, 0 replies; 9+ messages in thread From: Romain Gantois @ 2026-06-05 11:38 UTC (permalink / raw) To: sashiko-reviews; +Cc: devicetree, robh, conor+dt [-- Attachment #1: Type: text/plain, Size: 765 bytes --] On Friday, 5 June 2026 13:08:02 CEST sashiko-bot@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 1 potential > issue(s) to consider: - [Medium] The IIO device name for the TMP119 sensor ... > > And indio_dev->name is assigned from match_data->name later in > > tmp117_probe(): > indio_dev->name = match_data->name; > > Does this break userspace applications or udev rules that rely on reading > the correct sensor part name ("tmp119") from sysfs? While unlikely that userspace applications would need to differentiate between these two sensors, it is preferable that the correct part name appears in sysfs. I'll fix this in version 2. -- 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] 9+ messages in thread
end of thread, other threads:[~2026-06-05 16:08 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-06-05 9:01 [PATCH 0/2] iio: temperature: tmp117: Support the TMP119 sensor Romain Gantois 2026-06-05 9:01 ` [PATCH 1/2] dt-bindings: iio: ti,tmp117: add binding for the TMP119 Romain Gantois 2026-06-05 11:53 ` Jonathan Cameron 2026-06-05 12:24 ` Romain Gantois 2026-06-05 14:20 ` Jonathan Cameron 2026-06-05 16:08 ` Conor Dooley 2026-06-05 9:01 ` [PATCH 2/2] iio: temperature: tmp117: add TI TMP119 support Romain Gantois 2026-06-05 11:08 ` sashiko-bot 2026-06-05 11:38 ` Romain Gantois
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox