public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor
@ 2026-03-23 16:22 Anshika Gupta
  2026-03-23 16:22 ` [PATCH 2/3] docs: hwmon: Update TMP108 documentation for NXP P3T1084UK support Anshika Gupta
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Anshika Gupta @ 2026-03-23 16:22 UTC (permalink / raw)
  To: linux, corbet, skhan, linux-hwmon, linux-doc, linux-kernel, robh,
	krzk+dt, conor+dt, devicetree
  Cc: lakshaypiplani77, Anshika Gupta

The P3T1084UK is an NXP digital temperature sensor compatible with the
Texas Instruments TMP108 register and protocol specification. This patch
extends the existing DT binding for "ti,tmp108" to document the
compatible string for P3T1084UK so that the hwmon TMP108 driver can
bind to this device.

Signed-off-by: Lakshay Piplani <lakshaypiplani77@gmail.com>
Signed-off-by: Anshika Gupta <guptaanshika.ag@gmail.com>
---
 Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
index 9f6c9f6fa561..47714df5aaff 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
@@ -4,20 +4,21 @@
 $id: http://devicetree.org/schemas/hwmon/ti,tmp108.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: TMP108/P3T1035/P3T1085/P3T2030 temperature sensor
+title: TMP108/P3T1035/P3T1084/P3T1085/P3T2030 temperature sensor
 
 maintainers:
   - Krzysztof Kozlowski <krzk@kernel.org>
 
 description: |
-  The TMP108 or NXP P3T Family (P3T1035, P3T1085 and P3T2030) is a digital-
+  The TMP108 or NXP P3T Family (P3T1035, P3T1084, P3T1085 and P3T2030) is a digital-
   output temperature sensor with a dynamically-programmable limit window,
   and under- and over-temperature alert functions.
 
-  NXP P3T Family (P3T1035, P3T1085 and P3T2030) supports I3C.
+  NXP P3T Family (P3T1035, P3T1084, P3T1085 and P3T2030) supports I3C.
 
   Datasheets:
     https://www.ti.com/product/TMP108
+    https://www.nxp.com/docs/en/data-sheet/P3T1084UK.pdf
     https://www.nxp.com/docs/en/data-sheet/P3T1085UK.pdf
     https://www.nxp.com/docs/en/data-sheet/P3T1035XUK_P3T2030XUK.pdf
 
@@ -28,6 +29,7 @@ properties:
           - const: nxp,p3t2030
           - const: nxp,p3t1035
       - const: nxp,p3t1035
+      - const: nxp,p3t1084
       - const: nxp,p3t1085
       - const: ti,tmp108
 
-- 
2.34.1


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

* [PATCH 2/3] docs: hwmon: Update TMP108 documentation for NXP P3T1084UK support
  2026-03-23 16:22 [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor Anshika Gupta
@ 2026-03-23 16:22 ` Anshika Gupta
  2026-03-24 11:39   ` Guenter Roeck
  2026-03-23 16:22 ` [PATCH 3/3] hwmon: (tmp108) Add support for NXP P3T1084UK Anshika Gupta
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Anshika Gupta @ 2026-03-23 16:22 UTC (permalink / raw)
  To: linux, corbet, skhan, linux-hwmon, linux-doc, linux-kernel, robh,
	krzk+dt, conor+dt, devicetree
  Cc: lakshaypiplani77, Anshika Gupta

Add references to the NXP P3T1084UK temperature sensor in the TMP108
hardware monitoring documentation. The P3T1084UK is compatible with
the TMP108 register interface and protocol, and the hwmon driver now
supports it. Update the .rst document accordingly to reflect the new
compatible device and its expected behavior.

Signed-off-by: Lakshay Piplani <lakshaypiplani77@gmail.com>
Signed-off-by: Anshika Gupta <guptaanshika.ag@gmail.com>
---
 Documentation/hwmon/tmp108.rst | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/hwmon/tmp108.rst b/Documentation/hwmon/tmp108.rst
index c218ea333dd6..cda280032710 100644
--- a/Documentation/hwmon/tmp108.rst
+++ b/Documentation/hwmon/tmp108.rst
@@ -11,6 +11,13 @@ Supported chips:
 
     Datasheet: https://www.nxp.com/docs/en/data-sheet/P3T1035XUK_P3T2030XUK.pdf
 
+ * NXP P3T1084
+
+    Prefix: 'p3t1045'
+
+    Addresses scanned: none
+
+    Datasheet: https://www.nxp.com/docs/en/data-sheet/P3T1084UK.pdf
 
   * NXP P3T1085
 
-- 
2.34.1


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

* [PATCH 3/3] hwmon: (tmp108) Add support for NXP P3T1084UK
  2026-03-23 16:22 [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor Anshika Gupta
  2026-03-23 16:22 ` [PATCH 2/3] docs: hwmon: Update TMP108 documentation for NXP P3T1084UK support Anshika Gupta
@ 2026-03-23 16:22 ` Anshika Gupta
  2026-03-24 12:01   ` Guenter Roeck
  2026-03-23 19:33 ` [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor Conor Dooley
  2026-03-24 12:07 ` Guenter Roeck
  3 siblings, 1 reply; 7+ messages in thread
From: Anshika Gupta @ 2026-03-23 16:22 UTC (permalink / raw)
  To: linux, corbet, skhan, linux-hwmon, linux-doc, linux-kernel, robh,
	krzk+dt, conor+dt, devicetree
  Cc: lakshaypiplani77, Anshika Gupta

The NXP P3T1084UK is a ±0.4°C accurate digital temperature sensor with
a 12-bit temperature register, configuration register, and alert
functionality over I²C/I3C. Its register interface matches the TMP108
programming model, so the existing tmp108 driver can bind it without
functional changes.

Add "nxp,p3t1084uk" to the OF match table and "p3t1084" to the I²C
device-id table so the driver probes the device via both devicetree and
board data.

Datasheet: https://www.nxp.com/part/P3T1084UK
           https://www.nxp.com/docs/en/data-sheet/P3T1084UK.pdf

Signed-off-by: Lakshay Piplani <lakshaypiplani77@gmail.com>
Signed-off-by: Anshika Gupta <guptaanshika.ag@gmail.com>
---
 drivers/hwmon/tmp108.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c
index 3ea5f6485744..db46961a31d3 100644
--- a/drivers/hwmon/tmp108.c
+++ b/drivers/hwmon/tmp108.c
@@ -538,6 +538,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tmp108_dev_pm_ops, tmp108_suspend, tmp108_resume
 
 static const struct i2c_device_id tmp108_i2c_ids[] = {
 	{ "p3t1035", (unsigned long)&p3t1035_data },
+        { "p3t1084", (unsigned long)&tmp108_data },
 	{ "p3t1085", (unsigned long)&tmp108_data },
 	{ "tmp108", (unsigned long)&tmp108_data },
 	{}
@@ -546,6 +547,7 @@ MODULE_DEVICE_TABLE(i2c, tmp108_i2c_ids);
 
 static const struct of_device_id tmp108_of_ids[] = {
 	{ .compatible = "nxp,p3t1035", .data = &p3t1035_data },
+	{ .compatible = "nxp,p3t1084", .data = &tmp108_data },
 	{ .compatible = "nxp,p3t1085", .data = &tmp108_data },
 	{ .compatible = "ti,tmp108", .data = &tmp108_data },
 	{}
-- 
2.34.1


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

* Re: [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor
  2026-03-23 16:22 [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor Anshika Gupta
  2026-03-23 16:22 ` [PATCH 2/3] docs: hwmon: Update TMP108 documentation for NXP P3T1084UK support Anshika Gupta
  2026-03-23 16:22 ` [PATCH 3/3] hwmon: (tmp108) Add support for NXP P3T1084UK Anshika Gupta
@ 2026-03-23 19:33 ` Conor Dooley
  2026-03-24 12:07 ` Guenter Roeck
  3 siblings, 0 replies; 7+ messages in thread
From: Conor Dooley @ 2026-03-23 19:33 UTC (permalink / raw)
  To: Anshika Gupta
  Cc: linux, corbet, skhan, linux-hwmon, linux-doc, linux-kernel, robh,
	krzk+dt, conor+dt, devicetree, lakshaypiplani77

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

On Mon, Mar 23, 2026 at 09:52:50PM +0530, Anshika Gupta wrote:
> The P3T1084UK is an NXP digital temperature sensor compatible with the
> Texas Instruments TMP108 register and protocol specification. This patch

Then why is tmp108 not used as a fallback compatible? Looks from the
driver patch like it would be suitable.

> extends the existing DT binding for "ti,tmp108" to document the
> compatible string for P3T1084UK so that the hwmon TMP108 driver can
> bind to this device.
> 
> Signed-off-by: Lakshay Piplani <lakshaypiplani77@gmail.com>

What did Lakshay do? You're author and submitter, but their sign-off is
here. Are you missing a co-developed-by?

> Signed-off-by: Anshika Gupta <guptaanshika.ag@gmail.com>
> ---
>  Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
> index 9f6c9f6fa561..47714df5aaff 100644
> --- a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
> @@ -4,20 +4,21 @@
>  $id: http://devicetree.org/schemas/hwmon/ti,tmp108.yaml#
>  $schema: http://devicetree.org/meta-schemas/core.yaml#
>  
> -title: TMP108/P3T1035/P3T1085/P3T2030 temperature sensor
> +title: TMP108/P3T1035/P3T1084/P3T1085/P3T2030 temperature sensor
>  
>  maintainers:
>    - Krzysztof Kozlowski <krzk@kernel.org>
>  
>  description: |
> -  The TMP108 or NXP P3T Family (P3T1035, P3T1085 and P3T2030) is a digital-
> +  The TMP108 or NXP P3T Family (P3T1035, P3T1084, P3T1085 and P3T2030) is a digital-
>    output temperature sensor with a dynamically-programmable limit window,
>    and under- and over-temperature alert functions.
>  
> -  NXP P3T Family (P3T1035, P3T1085 and P3T2030) supports I3C.
> +  NXP P3T Family (P3T1035, P3T1084, P3T1085 and P3T2030) supports I3C.
>  
>    Datasheets:
>      https://www.ti.com/product/TMP108
> +    https://www.nxp.com/docs/en/data-sheet/P3T1084UK.pdf
>      https://www.nxp.com/docs/en/data-sheet/P3T1085UK.pdf
>      https://www.nxp.com/docs/en/data-sheet/P3T1035XUK_P3T2030XUK.pdf
>  
> @@ -28,6 +29,7 @@ properties:
>            - const: nxp,p3t2030
>            - const: nxp,p3t1035
>        - const: nxp,p3t1035
> +      - const: nxp,p3t1084
>        - const: nxp,p3t1085
>        - const: ti,tmp108
>  
> -- 
> 2.34.1
> 

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

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

* Re: [PATCH 2/3] docs: hwmon: Update TMP108 documentation for NXP P3T1084UK support
  2026-03-23 16:22 ` [PATCH 2/3] docs: hwmon: Update TMP108 documentation for NXP P3T1084UK support Anshika Gupta
@ 2026-03-24 11:39   ` Guenter Roeck
  0 siblings, 0 replies; 7+ messages in thread
From: Guenter Roeck @ 2026-03-24 11:39 UTC (permalink / raw)
  To: Anshika Gupta, corbet, skhan, linux-hwmon, linux-doc,
	linux-kernel, robh, krzk+dt, conor+dt, devicetree
  Cc: lakshaypiplani77

On 3/23/26 09:22, Anshika Gupta wrote:
> Add references to the NXP P3T1084UK temperature sensor in the TMP108
> hardware monitoring documentation. The P3T1084UK is compatible with
> the TMP108 register interface and protocol, and the hwmon driver now
> supports it. Update the .rst document accordingly to reflect the new
> compatible device and its expected behavior.
> 
> Signed-off-by: Lakshay Piplani <lakshaypiplani77@gmail.com>
> Signed-off-by: Anshika Gupta <guptaanshika.ag@gmail.com>
> ---
>   Documentation/hwmon/tmp108.rst | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/Documentation/hwmon/tmp108.rst b/Documentation/hwmon/tmp108.rst
> index c218ea333dd6..cda280032710 100644
> --- a/Documentation/hwmon/tmp108.rst
> +++ b/Documentation/hwmon/tmp108.rst
> @@ -11,6 +11,13 @@ Supported chips:
>   
>       Datasheet: https://www.nxp.com/docs/en/data-sheet/P3T1035XUK_P3T2030XUK.pdf
>   
> + * NXP P3T1084

Sashiko:

This isn't a bug, but the new bullet point uses a single leading space,
whereas the surrounding list items use two leading spaces. This inconsistent
indentation might cause parsing issues when generating the reStructuredText
documentation.

> +
> +    Prefix: 'p3t1045'
> +

P3T1084 or p3t1045 ?

> +    Addresses scanned: none
> +
> +    Datasheet: https://www.nxp.com/docs/en/data-sheet/P3T1084UK.pdf
>   
>     * NXP P3T1085
>   

Guenter


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

* Re: [PATCH 3/3] hwmon: (tmp108) Add support for NXP P3T1084UK
  2026-03-23 16:22 ` [PATCH 3/3] hwmon: (tmp108) Add support for NXP P3T1084UK Anshika Gupta
@ 2026-03-24 12:01   ` Guenter Roeck
  0 siblings, 0 replies; 7+ messages in thread
From: Guenter Roeck @ 2026-03-24 12:01 UTC (permalink / raw)
  To: Anshika Gupta, corbet, skhan, linux-hwmon, linux-doc,
	linux-kernel, robh, krzk+dt, conor+dt, devicetree
  Cc: lakshaypiplani77

On 3/23/26 09:22, Anshika Gupta wrote:
> The NXP P3T1084UK is a ±0.4°C accurate digital temperature sensor with
> a 12-bit temperature register, configuration register, and alert
> functionality over I²C/I3C. Its register interface matches the TMP108
> programming model, so the existing tmp108 driver can bind it without
> functional changes.
> 
> Add "nxp,p3t1084uk" to the OF match table and "p3t1084" to the I²C

This does not match the code (added "uk").

Also (from Sashiko's review):

The commit message mentions the device supports functionality over I2C/I3C.
However, the driver's I3C device ID match table doesn't seem to be updated
for this new device.

Will the driver be able to bind to the device on an I3C bus without an
entry in p3t1085_i3c_ids?

static const struct i3c_device_id p3t1085_i3c_ids[] = {
	I3C_DEVICE(0x011B, 0x1529, &tmp108_data),
	I3C_DEVICE(0x011B, 0x152B, &p3t1035_data),
	{}
};

... which is actually also a concern/question for P3T1085. As far as
I can see from the datasheet, both use 0x1529. This should be mentioned
somewhere, maybe as comment in p3t1085_i3c_ids.

> device-id table so the driver probes the device via both devicetree and
> board data.
> 
> Datasheet: https://www.nxp.com/part/P3T1084UK
>             https://www.nxp.com/docs/en/data-sheet/P3T1084UK.pdf
> 
> Signed-off-by: Lakshay Piplani <lakshaypiplani77@gmail.com>
> Signed-off-by: Anshika Gupta <guptaanshika.ag@gmail.com>

Per this sequence, Lakshay would be the author, which is not reflected
by the e-mail itself. That suggests that Signed-off-by: Lakshay ... might
not be appropriate.

> ---
>   drivers/hwmon/tmp108.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/hwmon/tmp108.c b/drivers/hwmon/tmp108.c
> index 3ea5f6485744..db46961a31d3 100644
> --- a/drivers/hwmon/tmp108.c
> +++ b/drivers/hwmon/tmp108.c
> @@ -538,6 +538,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tmp108_dev_pm_ops, tmp108_suspend, tmp108_resume
>   
>   static const struct i2c_device_id tmp108_i2c_ids[] = {
>   	{ "p3t1035", (unsigned long)&p3t1035_data },
> +        { "p3t1084", (unsigned long)&tmp108_data },

Indentation seems off here.

>   	{ "p3t1085", (unsigned long)&tmp108_data },
>   	{ "tmp108", (unsigned long)&tmp108_data },
>   	{}
> @@ -546,6 +547,7 @@ MODULE_DEVICE_TABLE(i2c, tmp108_i2c_ids);
>   
>   static const struct of_device_id tmp108_of_ids[] = {
>   	{ .compatible = "nxp,p3t1035", .data = &p3t1035_data },
> +	{ .compatible = "nxp,p3t1084", .data = &tmp108_data },
>   	{ .compatible = "nxp,p3t1085", .data = &tmp108_data },
>   	{ .compatible = "ti,tmp108", .data = &tmp108_data },
>   	{}


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

* Re: [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor
  2026-03-23 16:22 [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor Anshika Gupta
                   ` (2 preceding siblings ...)
  2026-03-23 19:33 ` [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor Conor Dooley
@ 2026-03-24 12:07 ` Guenter Roeck
  3 siblings, 0 replies; 7+ messages in thread
From: Guenter Roeck @ 2026-03-24 12:07 UTC (permalink / raw)
  To: Anshika Gupta, corbet, skhan, linux-hwmon, linux-doc,
	linux-kernel, robh, krzk+dt, conor+dt, devicetree
  Cc: lakshaypiplani77

On 3/23/26 09:22, Anshika Gupta wrote:
> The P3T1084UK is an NXP digital temperature sensor compatible with the
> Texas Instruments TMP108 register and protocol specification. This patch
> extends the existing DT binding for "ti,tmp108" to document the
> compatible string for P3T1084UK so that the hwmon TMP108 driver can
> bind to this device.
> 
> Signed-off-by: Lakshay Piplani <lakshaypiplani77@gmail.com>
> Signed-off-by: Anshika Gupta <guptaanshika.ag@gmail.com>
> ---
>   Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml | 8 +++++---
>   1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
> index 9f6c9f6fa561..47714df5aaff 100644
> --- a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
> @@ -4,20 +4,21 @@
>   $id: http://devicetree.org/schemas/hwmon/ti,tmp108.yaml#
>   $schema: http://devicetree.org/meta-schemas/core.yaml#
>   
> -title: TMP108/P3T1035/P3T1085/P3T2030 temperature sensor
> +title: TMP108/P3T1035/P3T1084/P3T1085/P3T2030 temperature sensor
>   
>   maintainers:
>     - Krzysztof Kozlowski <krzk@kernel.org>
>   
>   description: |
> -  The TMP108 or NXP P3T Family (P3T1035, P3T1085 and P3T2030) is a digital-
> +  The TMP108 or NXP P3T Family (P3T1035, P3T1084, P3T1085 and P3T2030) is a digital-
>     output temperature sensor with a dynamically-programmable limit window,
>     and under- and over-temperature alert functions.
>   
> -  NXP P3T Family (P3T1035, P3T1085 and P3T2030) supports I3C.
> +  NXP P3T Family (P3T1035, P3T1084, P3T1085 and P3T2030) supports I3C.
>   
>     Datasheets:
>       https://www.ti.com/product/TMP108
> +    https://www.nxp.com/docs/en/data-sheet/P3T1084UK.pdf
>       https://www.nxp.com/docs/en/data-sheet/P3T1085UK.pdf
>       https://www.nxp.com/docs/en/data-sheet/P3T1035XUK_P3T2030XUK.pdf
>   
> @@ -28,6 +29,7 @@ properties:
>             - const: nxp,p3t2030
>             - const: nxp,p3t1035
>         - const: nxp,p3t1035
> +      - const: nxp,p3t1084

Indentation seems off here.

Should nxp,p3t1084 be listed as compatible to nxp,p3t1085 instead of
requiring a code change, similar to nxp,p3t2030 and nxp,p3t1035 ?
Unless I am missing something, both use the same I3C device provisional
ID, so I assume they are register compatible.

Thanks,
Guenter

>         - const: nxp,p3t1085
>         - const: ti,tmp108
>   


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

end of thread, other threads:[~2026-03-24 12:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 16:22 [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor Anshika Gupta
2026-03-23 16:22 ` [PATCH 2/3] docs: hwmon: Update TMP108 documentation for NXP P3T1084UK support Anshika Gupta
2026-03-24 11:39   ` Guenter Roeck
2026-03-23 16:22 ` [PATCH 3/3] hwmon: (tmp108) Add support for NXP P3T1084UK Anshika Gupta
2026-03-24 12:01   ` Guenter Roeck
2026-03-23 19:33 ` [PATCH 1/3] dt-bindings: hwmon: Add support for NXP P3T1084UK temperature sensor Conor Dooley
2026-03-24 12:07 ` Guenter Roeck

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