From: sashiko-bot@kernel.org
To: "Colin Huang" <colin.huang2@amd.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v3 1/2] dt-bindings: hwmon: pmbus: Add Infineon tda38740 and tda38725
Date: Thu, 10 Sep 2026 06:25:53 +0000 [thread overview]
Message-ID: <20260910062553.CAB651F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260910-add-tda38740-and-tda38725-v3-1-3e87637da3d6@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The `compatible` property description advises violating Devicetree hardware description principles, and the schema incorrectly restricts standard fallback usage.
- [Low] The generic node name in the example does not reflect the primary function of the device.
--
commit 082d97c0bf8403a18b54faadfc2b22f3ff1da139
Author: Colin Huang <u8813345@gmail.com>
dt-bindings: hwmon: pmbus: Add Infineon tda38740 and tda38725
Add devicetree bindings for the Infineon TDA38740 and TDA38725
single-voltage synchronous buck regulators with PMBus interface.
> diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38740.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38740.yaml
> new file mode 100644
> index 0000000000000..28e6ff9d9d9c1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38740.yaml
> @@ -0,0 +1,87 @@
[ ... ]
> +properties:
> + compatible:
> + oneOf:
> + - const: infineon,tda38740
> + - const: infineon,tda38725
> + description: |
> + The Infineon TDA38740 and TDA38725 share the same PMBus programming
> + model. Use infineon,tda38740 as the preferred compatible string;
> + infineon,tda38725 is kept as a compatibility alias.
[Severity: Medium]
Is the guidance to use infineon,tda38740 for TDA38725 hardware correct?
Devicetree typically requires accurately describing the specific hardware
present.
Also, does this oneOf with const restrict standard compatible string
fallbacks? If an author tries to use a standard fallback like:
compatible = "infineon,tda38725", "infineon,tda38740";
it would fail schema validation because it restricts the property to a
single string instead of an array.
Shouldn't a simple list of allowed single strings use enum instead of oneOf
per dt-schema rules?
[ ... ]
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + sensor@40 {
[Severity: Low]
Does the generic node name sensor@40 reflect the primary function of this
synchronous buck regulator? According to the Devicetree Specification, the
node name should describe the primary function (e.g., regulator@40).
> + compatible = "infineon,tda38740";
> + reg = <0x40>;
> + infineon,vout-scale-micro = <1071000>;
> + };
> + };
> +
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260910-add-tda38740-and-tda38725-v3-0-3e87637da3d6@gmail.com?part=1
next prev parent reply other threads:[~2026-09-10 6:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 6:18 [PATCH v3 0/2] Add driver for Infineon TDA38740/TDA38725 Colin Huang
2026-09-10 6:18 ` [PATCH v3 1/2] dt-bindings: hwmon: pmbus: Add Infineon tda38740 and tda38725 Colin Huang
2026-09-10 6:25 ` sashiko-bot [this message]
2026-09-10 11:24 ` Conor Dooley
2026-09-10 6:18 ` [PATCH v3 2/2] hwmon: (pmbus/tda38740) Add driver for Infineon TDA38740/TDA38725 Colin Huang
2026-09-10 6:31 ` sashiko-bot
2026-09-10 8:55 ` Guenter Roeck
2026-09-10 12:35 ` Colin Huang
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=20260910062553.CAB651F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=colin.huang2@amd.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.