All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Richard Acayan" <mailingradian@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH 11/11] arm64: dts: qcom: sdm670-google: configure analog and digital codecs
Date: Tue, 22 Sep 2026 02:11:43 +0000	[thread overview]
Message-ID: <20260922021144.018331F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260922015801.32373-12-mailingradian@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: qcom: audio bit clock disguised as AHB interconnect clock
--

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

arm64: dts: qcom: sdm670-google: configure analog and digital codecs

The SDM660 digital and PM660L analog audio codecs control the headphone
jack on the Pixel 3a. Configure them for sound playback.

> diff --git a/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
> index 3abde2cbf7462..48aea5d72092c 100644
> --- a/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
> @@ -53,6 +53,14 @@ framebuffer: framebuffer@9c000000 {
>  		};
>  	};
>  
> +	clocks {
> +		int_cdc_bclk: int-cdc-bclk {
> +			compatible = "fixed-clock";
> +			#clock-cells = <0>;
> +			clock-frequency = <1536000>;
> +		};
> +	};
> +

[ ... ]

> @@ -568,6 +617,17 @@ rmi4_f12: rmi4-f12@12 {
>  	};
>  };
>  
> +&lpass_codec {
> +	clocks = <&int_cdc_bclk>,
> +		 <&q6afecc LPASS_CLK_ID_INT_MCLK_0 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
> +	clock-names = "ahbix-clk", "mclk";

[Severity: Medium]
Is it semantically correct to model an AHB bus clock as an audio bit clock?

The msm8916-wcd-digital codec driver requests an AHB interconnect clock
("ahbix-clk") for its register space. This patch maps that requirement to
int_cdc_bclk, which is configured above as a 1.536MHz fixed clock (which
corresponds exactly to a 48kHz audio BCLK).

While this allows the driver to probe successfully because a dummy fixed-clock
returns 0 on clk_prepare_enable(), it misrepresents the hardware layout.

If the true AHB clock is abstracted, always-on, or managed elsewhere, shouldn't
it be mapped to the board's XO or a generic system clock rather than a fake bit
clock?

> +
> +	assigned-clocks = <&q6afecc LPASS_CLK_ID_INT_MCLK_0 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
> +	assigned-clock-rates = <9600000>;
> +
> +	status = "okay";
> +};

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

  reply	other threads:[~2026-09-22  2:11 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22  1:57 [PATCH 00/11] ADSP for SDM670 and sound on Google Pixel 3a Richard Acayan
2026-09-22  1:57 ` [PATCH 01/11] dt-bindings: soc: qcom,smp2p: add sleepstate support Richard Acayan
2026-09-27 18:08   ` Krzysztof Kozlowski
2026-09-22  1:57 ` [PATCH 02/11] dt-bindings: mailbox: qcom: Add SDM670 APCS compatible Richard Acayan
2026-09-27 18:09   ` Krzysztof Kozlowski
2026-09-22  1:57 ` [PATCH 03/11] dt-bindings: soc: qcom: aoss: Add compatible for SDM670 Richard Acayan
2026-09-27 18:10   ` Krzysztof Kozlowski
2026-09-22  1:57 ` [PATCH 04/11] dt-bindings: remoteproc: qcom: adsp: Add SDM670 ADSP compatible Richard Acayan
2026-09-27 18:10   ` Krzysztof Kozlowski
2026-09-22  1:57 ` [PATCH 05/11] remoteproc: qcom: pas: Add SDM670 ADSP support Richard Acayan
2026-09-22 10:44   ` Konrad Dybcio
2026-09-28 14:55     ` Richard Acayan
2026-09-22  1:57 ` [PATCH 06/11] arm64: dts: qcom: sdm670: add adsp Richard Acayan
2026-09-22  2:08   ` sashiko-bot
2026-10-01  8:38   ` Konrad Dybcio
2026-09-22  1:57 ` [PATCH 07/11] arm64: dts: qcom: sdm670-google: enable adsp Richard Acayan
2026-10-01  8:38   ` Konrad Dybcio
2026-09-22  1:57 ` [PATCH 08/11] arm64: dts: qcom: sdm670-google: add sound card Richard Acayan
2026-09-22  1:57 ` [PATCH 09/11] arm64: dts: qcom: pm660l: add analog audio codec Richard Acayan
2026-09-22  2:05   ` sashiko-bot
2026-09-22  1:58 ` [PATCH 10/11] arm64: dts: qcom: sdm670: add digital " Richard Acayan
2026-10-01  8:39   ` Konrad Dybcio
2026-09-22  1:58 ` [PATCH 11/11] arm64: dts: qcom: sdm670-google: configure analog and digital codecs Richard Acayan
2026-09-22  2:11   ` sashiko-bot [this message]
2026-09-22 10:47   ` Konrad Dybcio
2026-09-25 17:48     ` Richard Acayan

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=20260922021144.018331F000FF@smtp.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.