From: Krzysztof Kozlowski <krzk@kernel.org>
To: Mayank Mahajan <mayankmahajan.x@nxp.com>,
linux@roeck-us.net, corbet@lwn.net, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: priyanka.jain@nxp.com, vikash.bansal@nxp.com
Subject: Re: [PATCH v3 1/3] dt-bindings: hwmon: ti,tmp108: Add P3T1035,P3T2030
Date: Fri, 16 Jan 2026 08:22:25 +0100 [thread overview]
Message-ID: <21d080bf-8938-42ea-8870-f9959c332b18@kernel.org> (raw)
In-Reply-To: <20260115111418.1851-1-mayankmahajan.x@nxp.com>
On 15/01/2026 12:14, Mayank Mahajan wrote:
> Document the NXP P3T1035 and P3T2030 compatibles in TMP108.
>
> Signed-off-by: Mayank Mahajan <mayankmahajan.x@nxp.com>
> ---
> V1 -> V2:
> - No changes in v2.
> V2 -> V3:
> - Add P3T1035 fallback for P3T2030 as they are functionally identical.
> - Add comment in the description explaining the use of P3T2030.
>
> .../devicetree/bindings/hwmon/ti,tmp108.yaml | 24 ++++++++++++-------
> 1 file changed, 16 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
> index a6f9319e068d..1f540c623de6 100644
> --- a/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp108.yaml
> @@ -4,27 +4,35 @@
> $id: http://devicetree.org/schemas/hwmon/ti,tmp108.yaml#
> $schema: http://devicetree.org/meta-schemas/core.yaml#
>
> -title: TMP108/P3T1085(NXP) temperature sensor
> +title: TMP108/P3T1035/P3T1085/P3T2030 temperature sensor
>
> maintainers:
> - Krzysztof Kozlowski <krzk@kernel.org>
>
> description: |
> - The TMP108/P3T1085(NXP) is a digital-output temperature sensor with a
> - dynamically-programmable limit window, and under- and overtemperature
> - alert functions.
> + The TMP108 or NXP P3T Family (P3T1035, P3T1085 and P3T2030) is a digital-
> + output temperature sensor with a dynamically-programmable limit window,
> + and under- and over-temperature alert functions.
>
> - P3T1085(NXP) support I3C.
> + NXP P3T Family (P3T1035, P3T1085 and P3T2030) supports I3C.
>
> Datasheets:
> https://www.ti.com/product/TMP108
> https://www.nxp.com/docs/en/data-sheet/P3T1085UK.pdf
> + https://www.nxp.com/docs/en/data-sheet/P3T1035XUK_P3T2030XUK.pdf
> +
> + P3T2030 is functionally identical to P3T1035. Hence, device tree nodes that
> + use the P3T2030 must provide a fallback compatible string of "nxp,p3t1035"
Drop the sentence. Schema already tells that. Never repeat the schema in
free text. It's like adding comments to code:
ptr = kzalloc()
/* Check for null pointer after allocation */
if (!ptr)
return -ENOMEM
This is worse coding. Write concise, clearly readable code.
With this fixed:
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
prev parent reply other threads:[~2026-01-16 7:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 11:14 [PATCH v3 1/3] dt-bindings: hwmon: ti,tmp108: Add P3T1035,P3T2030 Mayank Mahajan
2026-01-15 11:14 ` [PATCH v3 2/3] hwmon: (tmp108) Add support for P3T1035 and P3T2030 Mayank Mahajan
2026-01-16 4:31 ` kernel test robot
2026-01-16 6:11 ` Guenter Roeck
2026-01-15 11:14 ` [PATCH v3 3/3] hwmon: (tmp108) Add P3T1035 and P3T2030 support Mayank Mahajan
2026-01-16 7:22 ` Krzysztof Kozlowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=21d080bf-8938-42ea-8870-f9959c332b18@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mayankmahajan.x@nxp.com \
--cc=priyanka.jain@nxp.com \
--cc=robh@kernel.org \
--cc=vikash.bansal@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox