From: sashiko-bot@kernel.org
To: "Bhargav Joshi" <j.bhargav.u@gmail.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2] dt-bindings: pinctrl: ti,pinctrl-palmas: Convert to DT schema
Date: Sat, 22 Aug 2026 16:17:38 +0000 [thread overview]
Message-ID: <20260822161738.C06381F00ACA@smtp.kernel.org> (raw)
In-Reply-To: <20260822-ti-pinctrl-palmas-v2-1-501c9c670e4f@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Top-level `additionalProperties: false` incorrectly rejects properties from `$ref`.
- [Low] The dt-schema example fails to compile with dtc due to a missing node label referenced by a phandle.
--
--- Patch [1]: [PATCH v2] dt-bindings: pinctrl: ti,pinctrl-palmas: Convert to DT schema ---
commit c7d2f1369b4c397f6cd83791ed0ce6eb90fe3adf
Author: Bhargav Joshi <j.bhargav.u@gmail.com>
dt-bindings: pinctrl: ti,pinctrl-palmas: Convert to DT schema
Convert TI Palmas pin control text binding to DT schema. The legacy
binding allowed any subnode name. Restrict them to standard prefixes to
prevent the validator from accidentally evaluating standard integer
properties (like phandle) as child nodes.
Link: https://lore.kernel.org/r/20260822-ti-pinctrl-palmas-v1-1-a4d49e7f2dab@gmail.com
> diff --git a/Documentation/devicetree/bindings/pinctrl/ti,palmas-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/ti,palmas-pinctrl.yaml
> new file mode 100644
> index 0000000000000..c07e3a782ef07
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/ti,palmas-pinctrl.yaml
[ ... ]
> +required:
> + - compatible
> +
> +additionalProperties: false
[Severity: Medium]
Since this binding includes allOf: - $ref: pinctrl.yaml#, won't
additionalProperties: false incorrectly reject standard pinctrl properties?
Should this be unevaluatedProperties: false instead so that the schema
properly accounts for the inherited $ref properties?
> +
> +examples:
> + - |
> + pmic {
> + pinctrl {
> + compatible = "ti,tps65913-pinctrl";
> + ti,palmas-enable-dvfs1;
> + pinctrl-names = "default";
> + pinctrl-0 = <&palmas_pins_state>;
> +
> + pinmux {
[Severity: Low]
The phandle <&palmas_pins_state> is referenced here, but the corresponding
label palmas_pins_state: appears to have been omitted from the pinmux node
during the text-to-yaml conversion.
Will this cause the dt-schema example to fail compilation with dtc due to
the unresolvable phandle?
> + gpio0 {
> + pins = "gpio0";
> + function = "id";
> + bias-pull-up;
> + };
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260822-ti-pinctrl-palmas-v2-1-501c9c670e4f@gmail.com?part=1
prev parent reply other threads:[~2026-08-22 16:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-22 16:09 [PATCH v2] dt-bindings: pinctrl: ti,pinctrl-palmas: Convert to DT schema Bhargav Joshi
2026-08-22 16:17 ` sashiko-bot [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=20260822161738.C06381F00ACA@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=j.bhargav.u@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox