From: sashiko-bot@kernel.org
To: "Neil Armstrong" <neil.armstrong@linaro.org>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: clock: qcom: add SM8650 LPASS core & audio clock controllers
Date: Tue, 24 Nov 2026 17:08:34 +0000 [thread overview]
Message-ID: <sashiko-outbox-231657@kernel.org> (raw)
In-Reply-To: <20261124-topic-sm8650-el2-clks-v2-1-8086440e2c09@linaro.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: clock: qcom: unwieldy per-compatible conditionals
in schema
--
commit 297b8c34e5283dd199c1d471466b7d1c33ecdd81
Author: Neil Armstrong <neil.armstrong@linaro.org>
dt-bindings: clock: qcom: add SM8650 LPASS core & audio clock controllers
This commit adds the DT binding schema and clock and power domain header
definitions for the SM8650 LPASS HM, core, audio, and AON clock
controllers.
> diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8650-lpasscorecc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8650-lpasscorecc.yaml
> new file mode 100644
> index 0000000000000..c26d16b4ea3ad
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/qcom,sm8650-lpasscorecc.yaml
> @@ -0,0 +1,178 @@
[ ... ]
> +properties:
> + compatible:
> + enum:
> + - qcom,sm8650-lpassaoncc
> + - qcom,sm8650-lpassaudiocc
> + - qcom,sm8650-lpasscorecc
> + - qcom,sm8650-lpasshm
[ ... ]
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: qcom,sm8650-lpasshm
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Board XO source
> + clock-names:
> + items:
> + - const: bi_tcxo
> + required:
> + - power-domains
> + - '#power-domain-cells'
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: qcom,sm8650-lpasscorecc
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Board XO source
> + clock-names:
> + items:
> + - const: bi_tcxo
> + required-opps: false
> + required:
> + - power-domains
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: qcom,sm8650-lpassaoncc
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Board XO source
> + - description: LPASS_CORE_CC_CORE_CLK
> + clock-names:
> + items:
> + - const: bi_tcxo
> + - const: iface
> + power-domains: false
> + required-opps: false
> + required:
> + - '#power-domain-cells'
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: qcom,sm8650-lpassaudiocc
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Board XO source
> + - description: LPASS_AON_CC_MAIN_RCG_CLK_SRC
> + clock-names:
> + items:
> + - const: bi_tcxo
> + - const: iface
> + required-opps: false
> + required:
> + - power-domains
[Severity: Low]
Could this schema be split into separate binding documents rather than
combining all four LPASS clock controllers into one file?
Each of the four compatibles has different clocks, clock-names,
power-domains, required-opps, and #power-domain-cells requirements, so
every compatible needs its own if/then block under allOf (and
#power-domain-cells is left allowed on qcom,sm8650-lpasscorecc and
qcom,sm8650-lpassaudiocc).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-topic-sm8650-el2-clks-v2-0-8086440e2c09@linaro.org?part=1
next prev parent reply other threads:[~2026-11-24 17:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 17:01 [PATCH v2 0/2] clk: qcom: add SM8650 LPASS core & audio clock controllers Neil Armstrong
2026-11-24 17:01 ` [PATCH v2 1/2] dt-bindings: clock: " Neil Armstrong
2026-11-24 17:08 ` sashiko-bot [this message]
2026-11-24 17:01 ` [PATCH v2 2/2] clk: " Neil Armstrong
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-231657@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=neil.armstrong@linaro.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