Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Fabricio Akio" <fabricioakio@gmail.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: slimbus: qcom,slim-ngd: Add the SDM630's controller
Date: Fri, 04 Dec 2026 02:11:30 +0000	[thread overview]
Message-ID: <sashiko-outbox-248955@kernel.org> (raw)
In-Reply-To: <20261203-sdm630-slimbus-v1-1-deea19192b3e@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: slimbus: qcom,slim-ngd: older v2.0.0 falls back
  to newer v2.1.0
--

commit 54813d5a6ccad4714dd739dbf0575002f101e98e
Author: Fabricio Akio <fabricioakio@gmail.com>

dt-bindings: slimbus: qcom,slim-ngd: Add the SDM630's controller

This commit adds the qcom,slim-ngd-v2.0.0 compatible for the SDM630
SLIMbus controller to qcom,slim-ngd.yaml, with qcom,slim-ngd-v2.1.0 as
its fallback.

> diff --git a/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml b/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml
> index 27a92b79c7241..4dd479bd762d6 100644
> --- a/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml
> +++ b/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml
> @@ -18,9 +18,13 @@ description:
>  
>  properties:
>    compatible:
> -    enum:
> -      - qcom,slim-ngd-v1.5.0        # for MSM8996
> -      - qcom,slim-ngd-v2.1.0        # for SDM845
> +    oneOf:
> +      - enum:
> +          - qcom,slim-ngd-v1.5.0        # for MSM8996
> +          - qcom,slim-ngd-v2.1.0        # for SDM845
> +      - items:
> +          - const: qcom,slim-ngd-v2.0.0 # for SDM630
> +          - const: qcom,slim-ngd-v2.1.0

[Severity: Medium]
Should the older qcom,slim-ngd-v2.0.0 revision declare the newer
qcom,slim-ngd-v2.1.0 revision as its fallback compatible?

Per Documentation/devicetree/bindings/writing-bindings.rst, fallback
compatibles represent backwards compatibility with a prior implementation,
so newer IP revisions fall back to older ones rather than the reverse (as
in Documentation/devicetree/bindings/soundwire/qcom,soundwire.yaml).

qcom_slim_ngd_dt_match[] in drivers/slimbus/qcom-ngd-ctrl.c currently maps
both v1.5.0 and v2.1.0 to ngd_v1_5_offset_info, but any future driver
change keying a v2.1.0-only register or quirk off qcom,slim-ngd-v2.1.0
would misprogram the v2.0.0 hardware on SDM630.

If v2.0.0 is backwards-compatible with v1.5.0, qcom,slim-ngd-v1.5.0 would
be the proper fallback; otherwise qcom,slim-ngd-v2.0.0 should be added as a
standalone entry in the enum with a driver match entry.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-sdm630-slimbus-v1-0-deea19192b3e@gmail.com?part=1

  reply	other threads:[~2026-12-04  2:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  2:01 [PATCH 0/2] SDM630: Add the SLIMbus controller Fabricio Akio via B4 Relay
2026-12-04  2:01 ` [PATCH 1/2] dt-bindings: slimbus: qcom,slim-ngd: Add the SDM630's controller Fabricio Akio via B4 Relay
2026-12-04  2:11   ` sashiko-bot [this message]
2026-12-04  2:01 ` [PATCH 2/2] arm64: dts: qcom: sdm630: Add the SLIMbus controller Fabricio Akio 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=sashiko-outbox-248955@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fabricioakio@gmail.com \
    --cc=linux-sound@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox