Linux Sound subsystem development
 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 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire
Date: Thu, 26 Nov 2026 18:53:05 +0000	[thread overview]
Message-ID: <sashiko-outbox-236036@kernel.org> (raw)
In-Reply-To: <20261126183806.172485-2-srinivas.kandagatla@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] arm64: dts: qcom: glymur: missing qcom,glymur-lpasscc.h breaks
  DTB build
- [High] arm64: dts: qcom: glymur: unmatched lpasscc compatibles defer
  swr1/swr2
- [Low] arm64: dts: qcom: glymur: invalid qcom,ports-ch-mask property on
  swr2
- [Low] arm64: dts: qcom: glymur: undocumented macro compatibles and
  node order
--

commit b4bcd1d941eb74e432e52172d9eb6873d424ecc0
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, LPASS audio clock
controllers, and RX/TX 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..e3bba14bf36c7 100644
> --- a/arch/arm64/boot/dts/qcom/glymur.dtsi
> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
> @@ -9,6 +9,7 @@
>  #include <dt-bindings/clock/qcom,glymur-gcc.h>
>  #include <dt-bindings/clock/qcom,glymur-gpucc.h>
>  #include <dt-bindings/clock/qcom,glymur-tcsr.h>
> +#include <dt-bindings/clock/qcom,glymur-lpasscc.h>

[Severity: High]
Does dt-bindings/clock/qcom,glymur-lpasscc.h exist in the tree?  That
header is missing (LPASS_AUDIO_SWR_RX_CGCR and LPASS_AUDIO_SWR_TX_CGCR are
defined in dt-bindings/clock/qcom,sc8280xp-lpasscc.h), which breaks the
DTB build for all Glymur and Mahua boards.  Also, this #include is placed
out of alphabetical order after qcom,glymur-tcsr.h.

> @@ -4669,6 +4670,73 @@ 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>;
> +		};
> +
> +		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 LPASS_AUDIO_SWR_RX_CGCR>;
> +			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";
> +			reg = <0 0x06a90000 0 0x1000>;
> +			clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_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>;
> +		};
> +
> +		lpass_audiocc: clock-controller@6a94000 {
> +			compatible = "qcom,glymur-lpassaudiocc";
> +			reg = <0 0x06a94000 0 0x1000>;
> +			#clock-cells = <1>;
> +			#reset-cells = <1>;
> +		};
> +
> +		lpasscc: clock-controller@7680000 {
> +			compatible = "qcom,glymur-lpasscc";
> +			reg = <0 0x07680000 0 0x10000>;
> +			#clock-cells = <1>;
> +			#reset-cells = <1>;
> +		};

[Severity: High]
Will lpass_audiocc and lpasscc ever bind to a driver without fallback
compatibles such as "qcom,sc8280xp-lpassaudiocc" and
"qcom,sc8280xp-lpasscc"?

Neither "qcom,glymur-lpassaudiocc" nor "qcom,glymur-lpasscc" is matched by
drivers/clk/qcom/lpasscc-sc8280xp.c (or documented in
Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml), so no
reset controller is registered for either node.  When swr1 and swr2 probe
with "qcom,soundwire-v3.1.0" (where sw_clk_gate_required is true),
qcom_swrm_probe() calls devm_reset_control_get_optional_exclusive(dev,
"swr_audio_cgcr"), and __fwnode_reset_control_get() returns -EPROBE_DEFER
indefinitely because the resets phandles resolve to unbound provider
nodes.

> @@ -4787,6 +4855,38 @@ lpass_vamacro: codec@7660000 {
>  			#sound-dai-cells = <1>;
>  		};
>  
> +		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 LPASS_AUDIO_SWR_TX_CGCR>;
> +			reset-names = "swr_audio_cgcr";
> +
> +			pinctrl-0 = <&tx_swr_active>;
> +			pinctrl-names = "default";
> +
> +			qcom,ports-sinterval-low =	/bits/ 8 <0x00 0x01 0x03 0x03 0x00 0x03 0x1f 0x1f 0 0 0 0 0 0>;
> +			qcom,ports-offset1 =		/bits/ 8 <0x00 0x01 0x02 0x00 0x00 0x00 0x00 0x0b 0 0 0 0 0 0>;
> +			qcom,ports-offset2 =		/bits/ 8 <0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x0b 0 0 0 0 0 0>;
> +			qcom,ports-hstart =		/bits/ 8 <0xff 0xff 0xff 0xff 0xff 0x00 0x00 0x00 0xff 0xff 0xff 0xff 0xff 0xff>;
> +			qcom,ports-hstop =		/bits/ 8 <0xff 0x0f 0xff 0xff 0xff 0x0f 0x0f 0x0f 0xff 0xff 0xff 0xff 0xff 0xff>;
> +			qcom,ports-word-length =	/bits/ 8 <0xff 0xff 0xff 0xff 0xff 0x01 0x07 0x04 0xff 0xff 0xff 0xff 0xff 0xff>;
> +			qcom,ports-block-pack-mode =	/bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0x00 0x01 0xff 0xff 0xff 0xff 0xff 0xff>;
> +			qcom,ports-block-group-count =	/bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff>;
> +			qcom,ports-lane-control =	/bits/ 8 <0xff 0x01 0x00 0x01 0xff 0x03 0x02 0x02 0xff 0xff 0xff 0xff 0xff 0xff>;
> +			qcom,ports-ch-mask =		/bits/ 8 <0xff 0x01 0xff 0xff 0xff 0x03 0x01 0x03 0xff 0xff 0xff 0xff 0xff 0xff>;

[Severity: Low]
Is qcom,ports-ch-mask a valid property for qcom,soundwire-v3.1.0?  It is
not defined in Documentation/devicetree/bindings/soundwire/qcom,soundwire.yaml
(which sets unevaluatedProperties: false) and is never parsed by
drivers/soundwire/qcom.c.

> +
> +			#address-cells = <2>;
> +			#size-cells = <0>;
> +			#sound-dai-cells = <1>;
> +
> +			status = "disabled";
> +		};

[Severity: Low]
Are "qcom,glymur-lpass-rx-macro" and "qcom,glymur-lpass-tx-macro"
documented in Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml
and qcom,lpass-tx-macro.yaml?  Neither compatible is in the bindings yet,
which causes dtbs_check warnings.  Also, under /soc@0, lpasscc
(clock-controller@7680000) is placed before soundwire@6c80000 and swr2
(soundwire@7630000) is placed after codec@7660000, out of ascending
unit-address order.

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

  reply	other threads:[~2026-11-26 18:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 18:37 [PATCH 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
2026-11-26 18:38 ` [PATCH 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire Srinivas Kandagatla
2026-11-26 18:53   ` sashiko-bot [this message]
2026-11-26 18:38 ` [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec Srinivas Kandagatla
2026-11-26 18:49   ` sashiko-bot
2026-11-26 18:38 ` [PATCH 3/7] arm64: dts: qcom: mahua-t14s: " Srinivas Kandagatla
2026-11-26 18:50   ` sashiko-bot
2026-11-26 18:38 ` [PATCH 4/7] arm64: dts: qcom: glymur-crd: add DisplayPort audio DAI links Srinivas Kandagatla
2026-11-26 18:38 ` [PATCH 5/7] arm64: dts: qcom: glymur-asus-zenbook-a16: enable WCD9378 headset codec Srinivas Kandagatla
2026-11-26 18:47   ` sashiko-bot
2026-11-26 18:38 ` [PATCH 6/7] arm64: dts: qcom: glymur-asus-zenbook-a16: add DisplayPort audio DAI links Srinivas Kandagatla
2026-11-26 18:38 ` [PATCH 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-236036@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