Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Richard Acayan" <mailingradian@gmail.com>, devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 8/9] arm64: dts: qcom: sdm670: add digital audio codec
Date: Mon, 09 Nov 2026 20:55:50 +0000	[thread overview]
Message-ID: <sashiko-outbox-205616@kernel.org> (raw)
In-Reply-To: <20261107022453.159341-9-mailingradian@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: qcom: sdm670: dummy fixed-clock lpass-cdc-bclk
  used for ahbix-clk
--

commit b9856161fbdcddf34face16a0ba725a6845da3f8
Author: Richard Acayan <mailingradian@gmail.com>

arm64: dts: qcom: sdm670: add digital audio codec

This commit adds the LPASS digital WCD audio codec node and its clocks to
the SDM670 SoC device tree.

> diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
> index e99183c222083..3e5ca16e30565 100644
> --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
[ ... ]
> @@ -33,6 +34,12 @@ / {
>  	chosen { };
>  
>  	clocks {
> +		lpass_cdc_bclk: lpass-cdc-bclk {
> +			compatible = "fixed-clock";
> +			#clock-cells = <0>;
> +			clock-frequency = <1536000>;
> +		};
> +
>  		sleep_clk: sleep-clk {
>  			compatible = "fixed-clock";
>  			#clock-cells = <0>;
> @@ -2822,5 +2829,20 @@ data2-pins {
>  				};
>  			};
>  		};
> +
> +		lpass_codec: audio-codec@62ec0000 {
> +			compatible = "qcom,sdm670-wcd-digital-codec",
> +				     "qcom,msm8916-wcd-digital-codec";
> +			reg = <0 0x62ec0000 0 0x400>;
> +
> +			clocks = <&lpass_cdc_bclk>,
> +				 <&q6afecc LPASS_CLK_ID_INT_MCLK_0 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
> +			clock-names = "ahbix-clk", "mclk";

[Severity: Medium]
As reported by Konrad Dybcio on v2 [1], should ahbix-clk be wired to
q6afecc (or made optional in the binding and driver if HLOS does not vote
for it on SDM670) instead of a dummy 1.536 MHz fixed-clock under /clocks?

In Qualcomm SoC devicetrees, /clocks is reserved for board-level reference
clocks, and ahbix-clk is the LPASS AHB interface clock for codec register
access rather than a bit clock.  Wiring it to a fixed-clock puts a fake
clock in the devicetree and bypasses Q6AFE LPASS digital codec clock
voting (such as LPASS_CLK_ID_INTERNAL_DIGITAL_CODEC_CORE or
LPASS_HW_DCODEC_VOTE).

[1] https://lore.kernel.org/r/87839ad6-c489-40b3-bfcc-60c436cd1a6f@oss.qualcomm.com

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261107022453.159341-1-mailingradian@gmail.com?part=8

  reply	other threads:[~2026-11-09 20:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-07  2:24 [PATCH v3 0/9] ADSP for SDM670 and sound on Google Pixel 3a Richard Acayan
2026-11-07  2:24 ` [PATCH v3 1/9] dt-bindings: soc: qcom,smp2p: add sleepstate support Richard Acayan
2026-11-07  2:24 ` [PATCH v3 2/9] dt-bindings: soc: qcom: aoss: Add compatible for SDM670 Richard Acayan
2026-11-07  2:24 ` [PATCH v3 3/9] dt-bindings: remoteproc: qcom: adsp: Add SDM670 ADSP compatible Richard Acayan
2026-11-09 20:04   ` sashiko-bot
2026-11-07  2:24 ` [PATCH v3 4/9] remoteproc: qcom: pas: Add SDM670 ADSP support Richard Acayan
2026-11-07  2:24 ` [PATCH v3 5/9] arm64: dts: qcom: sdm670: add adsp Richard Acayan
2026-11-09 20:22   ` sashiko-bot
2026-11-07  2:24 ` [PATCH v3 6/9] arm64: dts: qcom: sdm670-google: enable adsp Richard Acayan
2026-11-07  2:24 ` [PATCH v3 7/9] arm64: dts: qcom: pm660l: add analog audio codec Richard Acayan
2026-11-09 13:25   ` Konrad Dybcio
2026-11-09 20:34   ` sashiko-bot
2026-11-07  2:24 ` [PATCH v3 8/9] arm64: dts: qcom: sdm670: add digital " Richard Acayan
2026-11-09 20:55   ` sashiko-bot [this message]
2026-11-07  2:24 ` [PATCH v3 9/9] arm64: dts: qcom: sdm670-google: add sound card Richard Acayan
2026-11-08 20:08 ` (subset) [PATCH v3 0/9] ADSP for SDM670 and sound on Google Pixel 3a Bjorn Andersson
2026-11-09 13:23 ` Konrad Dybcio
2026-11-11  2:18   ` Richard Acayan
2026-11-10  4:34 ` (subset) " Bjorn Andersson

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-205616@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=mailingradian@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