From: sashiko-bot@kernel.org
To: "Esteban Urrutia" <esteuwu@proton.me>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 3/4] dt-bindings: pinctrl: qcom,sm8450-tlmm: Add compatible for SM8475
Date: Sun, 02 Aug 2026 07:40:43 +0000 [thread overview]
Message-ID: <20260802074043.97C021F00AC4@smtp.kernel.org> (raw)
In-Reply-To: <20260802-sm8475-tlmm-v2-3-a93e1d1cb53b@proton.me>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The binding unconditionally applies SM8450-specific pin and function constraints to the SM8475 compatible string.
--
--- Patch [3]: [PATCH v2 3/4] dt-bindings: pinctrl: qcom,sm8450-tlmm: Add compatible for SM8475 ---
commit 2182c26c092a1652eaae869b76b2b59cec9ca7fc
Author: Esteban Urrutia <esteuwu@proton.me>
dt-bindings: pinctrl: qcom,sm8450-tlmm: Add compatible for SM8475
SM8450 and SM8475 have different pinctrl drivers, which are incompatible
with each other. Add compatible string for the SM8475 pinctrl driver.
> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-tlmm.yaml
> index 16fd2c5e23393..c790ab851bc73 100644
> --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-tlmm.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm8450-tlmm.yaml
> @@ -17,7 +17,9 @@ allOf:
>
> properties:
> compatible:
> - const: qcom,sm8450-tlmm
> + enum:
> + - qcom,sm8450-tlmm
> + - qcom,sm8475-tlmm
[Severity: Medium]
Since the commit message notes these drivers are incompatible with each other,
will SM8475 have different pin counts and multiplexing functions?
By adding the SM8475 compatible string here without any conditional blocks,
the schema unconditionally applies the SM8450-specific constraints defined
in qcom-sm8450-tlmm-state:
qcom-sm8450-tlmm-state:
type: object
...
properties:
pins:
...
function:
description:
Specify the alternative function to be configured...
enum: [ aon_cam, atest_char, atest_usb, ... ]
Will this cause dtbs_check to incorrectly reject valid SM8475 device trees
that use different pins or functions, and incorrectly allow SM8450 functions
on SM8475 nodes?
Should these constraints be split using if-then blocks, or is it better to
split this binding into a separate schema document for the SM8475 variant?
>
> reg:
> maxItems: 1
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260802-sm8475-tlmm-v2-0-a93e1d1cb53b@proton.me?part=3
next prev parent reply other threads:[~2026-08-02 7:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-02 7:30 [PATCH v2 0/4] Pinctrl support for SM8475 Esteban Urrutia via B4 Relay
2026-08-02 7:30 ` [PATCH v2 1/4] pinctrl: qcom: sm8450: Remove duplicate reference to gpio81 Esteban Urrutia via B4 Relay
2026-08-02 7:30 ` [PATCH v2 2/4] pinctrl: qcom: Commonize pinctrl-sm8450 headers Esteban Urrutia via B4 Relay
2026-08-02 7:44 ` sashiko-bot
2026-08-02 7:30 ` [PATCH v2 3/4] dt-bindings: pinctrl: qcom,sm8450-tlmm: Add compatible for SM8475 Esteban Urrutia via B4 Relay
2026-08-02 7:40 ` sashiko-bot [this message]
2026-08-02 7:30 ` [PATCH v2 4/4] pinctrl: qcom: Add SM8475 pinctrl driver Esteban Urrutia via B4 Relay
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=20260802074043.97C021F00AC4@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=esteuwu@proton.me \
--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