mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>,
	andersson@kernel.org, abel.vesa@linaro.org, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	alsa-devel@alsa-project.org, linux-sound@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec
Date: Tue, 1 Dec 2026 13:52:05 +0100	[thread overview]
Message-ID: <bda97e0c-2fe8-449e-9c73-1951c03fcc13@oss.qualcomm.com> (raw)
In-Reply-To: <20261126183806.172485-3-srinivas.kandagatla@oss.qualcomm.com>

On 11/26/26 7:38 PM, Srinivas Kandagatla wrote:
> Enable the WCD9378 SDCA-compliant headset codec on SoundWire.  swr2
> is the SDCA primary and swr1 is a DATA-only multi-master dependent
> (lanes 2/3); the WCD Playback and WCD Capture DAI links run through
> the LPASS RX/TX macros.
> 
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
> ---

[...]

> +		wcd-playback-dai-link {
> +			link-name = "WCD Playback";
> +
> +			cpu {
> +				sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
> +			};
> +
> +			codec {
> +				sound-dai = <&wcd9378c 0>, <&swr2 0>, <&lpass_rxmacro 0>;
> +			};
> +
> +			platform {
> +				sound-dai = <&q6apm>;
> +			};
> +		};
> +
> +		wcd-capture-dai-link {
> +			link-name = "WCD Capture";

'c'apture < 'p'layback

[...]

> +&swr2 {
> +	qcom,multi-master-mode = "primary";
> +	qcom,multi-master-peer = <&swr1 5>;
> +	num-lanes = <2>;
> +
> +	status = "okay";
> +
> +	wcd9378c: codec@3,0 {
> +		compatible = "sdw20217011000";
> +		reg = <0 3>;

The unit address suggests <3 0>, but I assume 'reg' carries the
actually-correct value

> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&wcd_default>;
> +
> +		qcom,sdca-compliant;
> +
> +		qcom,port-mapping = <2 2 3 4 5 6 7 8>;
> +
> +		reset-gpios = <&tlmm 191 GPIO_ACTIVE_LOW>;
> +
> +		vdd-buck-supply = <&vreg_l15b0>;
> +		vdd-rxtx-supply = <&vreg_l15b0>;
> +		vdd-io-supply = <&vreg_l18b0>;
> +		vdd-mic-bias-supply = <&vreg_bob1_e0>;
> +
> +		#sound-dai-cells = <1>;
> +	};
> +};
> +
>  &remoteproc_soccp {
>  	firmware-name = "qcom/glymur/soccp.mbn",
>  			"qcom/glymur/soccp_dtb.mbn";
> @@ -961,6 +1034,14 @@ wcn_wlan_bt_en: wcn-wlan-bt-en-state {
>  		bias-disable;
>  	};
>  
> +	wcd_default: wcd-reset-n-active-state {
> +		pins = "gpio191";
> +		function = "gpio";
> +		drive-strength = <16>;
> +		bias-disable;
> +		output-low;

Drop output-low, the driver will do this for you

Konrad

  reply	other threads:[~2026-12-01 12:52 UTC|newest]

Thread overview: 13+ 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-12-01 13:03   ` Konrad Dybcio
2026-11-26 18:38 ` [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec Srinivas Kandagatla
2026-12-01 12:52   ` Konrad Dybcio [this message]
2026-11-26 18:38 ` [PATCH 3/7] arm64: dts: qcom: mahua-t14s: " Srinivas Kandagatla
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:38 ` [PATCH 6/7] arm64: dts: qcom: glymur-asus-zenbook-a16: add DisplayPort audio DAI links Srinivas Kandagatla
2026-12-01 12:52   ` Konrad Dybcio
2026-11-26 18:38 ` [PATCH 7/7] arm64: defconfig: enable SDCA class driver and WCD9378 codec Srinivas Kandagatla
2026-11-27  1:42   ` Krzysztof Kozlowski
2026-11-27  8:49     ` 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=bda97e0c-2fe8-449e-9c73-1951c03fcc13@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.com \
    --cc=abel.vesa@linaro.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=robh@kernel.org \
    --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

all inboxes | Powered by JetHome®