Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Srinivas Kandagatla" <srinivas.kandagatla@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, linux-sound@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire
Date: Fri, 27 Nov 2026 16:20:16 +0000	[thread overview]
Message-ID: <sashiko-outbox-237869@kernel.org> (raw)
In-Reply-To: <20261127155520.358909-2-srinivas.kandagatla@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] arm64: dts: qcom: glymur: unmatched lpasscc compatibles defer
  swr1 and swr2
- [High] arm64: dts: qcom: glymur: lpass_rxmacro fails probe due to
  unhandled codec version 2.9
- [Low] arm64: dts: qcom: glymur: undocumented lpass-rx-macro and
  lpass-tx-macro compatibles
--

commit 8d403c82a4073e4e3d1e793a05a1ce2568c6a1a7
Author: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>

arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire

This commit adds the LPASS RX/TX macro codecs, the LPASS audio and reset
clock controllers, and the swr1 and swr2 SoundWire controller nodes to
glymur.dtsi.

> diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
> index 165dfa11f17f5..9cb7506656fba 100644
> --- a/arch/arm64/boot/dts/qcom/glymur.dtsi
> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
> @@ -4669,6 +4669,66 @@ q6prmcc: clock-controller {
>  			};
>  		};
>  
> +		lpass_rxmacro: codec@6a70000 {
> +			compatible = "qcom,glymur-lpass-rx-macro", "qcom,sm8550-lpass-rx-macro";
> +			reg = <0 0x06a70000 0 0x1000>;
> +			clocks = <&q6prmcc LPASS_CLK_ID_RX_CORE_TX_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
> +				 <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
> +				 <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
> +				 <&lpass_vamacro>;
> +			clock-names = "mclk",
> +				      "macro",
> +				      "dcodec",
> +				      "fsgen";
> +
> +			#clock-cells = <0>;
> +			clock-output-names = "mclk";
> +			#sound-dai-cells = <1>;
> +		};

[Severity: High]
Will lpass_rxmacro fail to probe with -EINVAL on Glymur?

When lpass_vamacro probes first as the fsgen clock provider,
va_macro_set_lpass_codec_version() sets the global LPASS codec version to
LPASS_CODEC_VERSION_2_9.  Unlike the VA and WSA macro drivers,
rx_macro_probe() in sound/soc/codecs/lpass-rx-macro.c does not handle
LPASS_CODEC_VERSION_2_9 in its switch (rx->codec_version) statement and
falls into the default branch, returning -EINVAL before registering the
lpass_rxmacro DAI or the iface clock needed by swr1.

> +
> +		swr1: soundwire@6a80000 {
> +			compatible = "qcom,soundwire-v3.1.0";
> +			reg = <0 0x06a80000 0 0x10000>;
> +			clocks = <&lpass_rxmacro>;
> +			clock-names = "iface";
> +			interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
> +			label = "RX";
> +
> +			pinctrl-0 = <&rx_swr_active>;
> +			pinctrl-names = "default";
> +
> +			resets = <&lpass_audiocc 0>;
> +			reset-names = "swr_audio_cgcr";
> +
> +			#address-cells = <2>;
> +			#size-cells = <0>;
> +			status = "disabled";
> +		};
> +
> +		lpass_txmacro: codec@6a90000 {
> +			compatible = "qcom,glymur-lpass-tx-macro", "qcom,sm8550-lpass-tx-macro";

[Severity: Low]
Are "qcom,glymur-lpass-rx-macro" and "qcom,glymur-lpass-tx-macro"
documented in the Devicetree bindings?  Neither compatible appears in
Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml or
Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml, which
will cause dtbs_check warnings.

[ ... ]

> +		lpass_audiocc: clock-controller@6a94000 {
> +			compatible = "qcom,glymur-lpassaudiocc";
> +			reg = <0 0x06a94000 0 0x1000>;
> +			#clock-cells = <1>;
> +			#reset-cells = <1>;
> +		};

[ ... ]

> @@ -4772,6 +4832,37 @@ lpass_lpicx_noc: interconnect@7420000 {
>  			#interconnect-cells = <2>;
>  		};
>  
> +		swr2: soundwire@7630000 {
> +			compatible = "qcom,soundwire-v3.1.0";
> +			reg = <0 0x07630000 0 0x10000>;
> +			interrupts = <GIC_SPI 761 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&lpass_txmacro>;
> +			clock-names = "iface";
> +			label = "TX";
> +
> +			resets = <&lpasscc 0>;
> +			reset-names = "swr_audio_cgcr";

[ ... ]

> @@ -4787,6 +4878,13 @@ lpass_vamacro: codec@7660000 {
>  			#sound-dai-cells = <1>;
>  		};
>  
> +		lpasscc: clock-controller@7680000 {
> +			compatible = "qcom,glymur-lpasscc";
> +			reg = <0 0x07680000 0 0x10000>;
> +			#clock-cells = <1>;
> +			#reset-cells = <1>;
> +		};

[Severity: High]
Should lpass_audiocc and lpasscc include "qcom,sc8280xp-lpassaudiocc" and
"qcom,sc8280xp-lpasscc" fallback compatibles (and be documented in
Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml)?

No driver matches "qcom,glymur-lpassaudiocc" or "qcom,glymur-lpasscc"
(drivers/clk/qcom/lpasscc-sc8280xp.c only matches the sc8280xp compatibles).
When a board enables swr1 and swr2, qcom_swrm_probe() requests the
"swr_audio_cgcr" reset from lpass_audiocc and lpasscc, and
__fwnode_reset_control_get() will return -EPROBE_DEFER indefinitely because
neither reset provider ever binds.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127155520.358909-1-srinivas.kandagatla@oss.qualcomm.com?part=1

  reply	other threads:[~2026-11-27 16:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 15:55 [PATCH v2 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire Srinivas Kandagatla
2026-11-27 16:20   ` sashiko-bot [this message]
2026-11-27 15:55 ` [PATCH v2 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 3/7] arm64: dts: qcom: mahua-t14s: " Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 4/7] arm64: dts: qcom: glymur-crd: add DisplayPort audio DAI links Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 5/7] arm64: dts: qcom: glymur-asus-zenbook-a16: enable WCD9378 headset codec Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 6/7] arm64: dts: qcom: glymur-asus-zenbook-a16: add DisplayPort audio DAI links Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 7/7] arm64: defconfig: enable SDCA class driver and WCD9378 codec Srinivas Kandagatla

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-237869@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=srinivas.kandagatla@oss.qualcomm.com \
    /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