Re: [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec

From: Konrad Dybcio

Date: Tue Dec 01 2026 - 07:52:19 EST


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@xxxxxxxxxxxxxxxx>
> ---

[...]

> + 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