* [PATCH v2 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire
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 ` Srinivas Kandagatla
2026-11-27 16:20 ` sashiko-bot
2026-11-27 15:55 ` [PATCH v2 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec Srinivas Kandagatla
` (5 subsequent siblings)
6 siblings, 1 reply; 9+ messages in thread
From: Srinivas Kandagatla @ 2026-11-27 15:55 UTC (permalink / raw)
To: andersson, konrad.dybcio, abel.vesa, robh, krzk+dt, conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel,
Srinivas Kandagatla
Add the LPASS pieces needed to bring up analog audio on Glymur:
lpass_rxmacro and lpass_txmacro codec nodes, lpass_audiocc and
lpasscc clock controllers for the SoundWire RX/TX CGCR resets, and
the swr1 (RX) and swr2 (TX) SoundWire controllers (disabled by
default). The swr2 port-shaping arrays describe the WCD9378 slave
topology shared by all Glymur-based laptops. Boards enable swr1/swr2
and wire the WCD9378 codec on top.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/glymur.dtsi | 98 ++++++++++++++++++++++++++++
1 file changed, 98 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
index 165dfa11f17f..9cb7506656fb 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>;
+ };
+
+ 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";
+ 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>;
+ };
+
swr0: soundwire@6c80000 {
compatible = "qcom,soundwire-v3.1.0";
reg = <0x0 0x06c80000 0x0 0x10000>;
@@ -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";
+
+ 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>;
+
+ #address-cells = <2>;
+ #size-cells = <0>;
+ #sound-dai-cells = <1>;
+
+ status = "disabled";
+ };
+
lpass_vamacro: codec@7660000 {
compatible = "qcom,glymur-lpass-va-macro", "qcom,sm8550-lpass-va-macro";
reg = <0x0 0x07660000 0x0 0x2000>;
@@ -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>;
+ };
+
lpass_tlmm: pinctrl@7760000 {
compatible = "qcom,glymur-lpass-lpi-pinctrl", "qcom,sm8650-lpass-lpi-pinctrl";
reg = <0x0 0x07760000 0x0 0x20000>;
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH v2 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire
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
0 siblings, 0 replies; 9+ messages in thread
From: sashiko-bot @ 2026-11-27 16:20 UTC (permalink / raw)
To: Srinivas Kandagatla; +Cc: devicetree, linux-sound, robh, conor+dt
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec
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 15:55 ` Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 3/7] arm64: dts: qcom: mahua-t14s: " Srinivas Kandagatla
` (4 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Srinivas Kandagatla @ 2026-11-27 15:55 UTC (permalink / raw)
To: andersson, konrad.dybcio, abel.vesa, robh, krzk+dt, conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel,
Srinivas Kandagatla
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>
---
arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 84 +++++++++++++++++++++++-
1 file changed, 83 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
index 3a9cd5f3ec2b..8e0dd2956882 100644
--- a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
@@ -242,7 +242,10 @@ sound {
"VA DMIC2", "vdd-micb",
"VA DMIC3", "vdd-micb",
"VA DMIC4", "vdd-micb",
- "VA DMIC5", "vdd-micb";
+ "VA DMIC5", "vdd-micb",
+ "IT 41 Playback", "HPHL_OUT",
+ "IT 41 Playback", "HPHR_OUT",
+ "TX SWR_INPUT1", "OT 36 Capture";
wsa-dai-link {
link-name = "WSA Playback";
@@ -263,6 +266,38 @@ platform {
};
};
+ 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";
+
+ cpu {
+ sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
+ };
+
+ codec {
+ sound-dai = <&wcd9378c 18>, <&swr2 1>, <&lpass_txmacro 0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
va-dai-link {
link-name = "VA Capture";
@@ -791,6 +826,45 @@ right_tweeter: speaker@0,1 {
};
};
+/* WCD9378 multi-master: swr2 primary + swr1 dependent (DATA lanes 2/3). */
+&swr1 {
+ num-lanes = <2>;
+
+ qcom,multi-master-mode = "dependent";
+ qcom,multi-master-peer = <&swr2 0>;
+
+ status = "okay";
+};
+
+&swr2 {
+ num-lanes = <2>;
+
+ qcom,multi-master-mode = "primary";
+ qcom,multi-master-peer = <&swr1 5>;
+
+ status = "okay";
+
+ wcd9378c: codec@0,3 {
+ compatible = "sdw20217011000";
+ reg = <0 3>;
+
+ pinctrl-0 = <&wcd_default>;
+ pinctrl-names = "default";
+
+ 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>;
+
+ qcom,sdca-compliant;
+ qcom,port-mapping = <2 2 3 4 5 6 7 8>;
+ };
+};
+
&remoteproc_soccp {
firmware-name = "qcom/glymur/soccp.mbn",
"qcom/glymur/soccp_dtb.mbn";
@@ -961,6 +1035,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;
+ };
+
wcn_sw_en: wcn-sw-en-state {
pins = "gpio94";
function = "gpio";
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v2 3/7] arm64: dts: qcom: mahua-t14s: enable WCD9378 headset codec
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 15:55 ` [PATCH v2 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec Srinivas Kandagatla
@ 2026-11-27 15:55 ` Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 4/7] arm64: dts: qcom: glymur-crd: add DisplayPort audio DAI links Srinivas Kandagatla
` (3 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Srinivas Kandagatla @ 2026-11-27 15:55 UTC (permalink / raw)
To: andersson, konrad.dybcio, abel.vesa, robh, krzk+dt, conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel,
Srinivas Kandagatla
Enable the WCD9378 SDCA-compliant headset codec on SoundWire,
matching the Glymur CRD wiring. 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>
---
.../mahua-lenovo-thinkpad-t14s-gen7-lcd.dts | 84 ++++++++++++++++++-
1 file changed, 83 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts b/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts
index bad49ba5443f..34ec5a52aa02 100644
--- a/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts
+++ b/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts
@@ -254,7 +254,10 @@ sound {
audio-routing = "SpkrLeft IN", "WSA WSA_SPK1 OUT",
"SpkrRight IN", "WSA WSA_SPK2 OUT",
"VA DMIC0", "vdd-micb",
- "VA DMIC1", "vdd-micb";
+ "VA DMIC1", "vdd-micb",
+ "IT 41 Playback", "HPHL_OUT",
+ "IT 41 Playback", "HPHR_OUT",
+ "TX SWR_INPUT1", "OT 36 Capture";
wsa-dai-link {
link-name = "WSA Playback";
@@ -273,6 +276,38 @@ platform {
};
};
+ 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";
+
+ cpu {
+ sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
+ };
+
+ codec {
+ sound-dai = <&wcd9378c 18>, <&swr2 1>, <&lpass_txmacro 0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
va-dai-link {
link-name = "VA Capture";
@@ -760,6 +795,45 @@ right_spkr: speaker@0,1 {
};
};
+/* WCD9378 multi-master: swr2 primary + swr1 dependent (DATA lanes 2/3). */
+&swr1 {
+ num-lanes = <2>;
+
+ qcom,multi-master-mode = "dependent";
+ qcom,multi-master-peer = <&swr2 0>;
+
+ status = "okay";
+};
+
+&swr2 {
+ num-lanes = <2>;
+
+ qcom,multi-master-mode = "primary";
+ qcom,multi-master-peer = <&swr1 5>;
+
+ status = "okay";
+
+ wcd9378c: codec@0,3 {
+ compatible = "sdw20217011000";
+ reg = <0 3>;
+
+ pinctrl-0 = <&wcd_default>;
+ pinctrl-names = "default";
+
+ 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>;
+
+ qcom,sdca-compliant;
+ qcom,port-mapping = <2 2 3 4 5 6 7 8>;
+ };
+};
+
&tlmm {
gpio-reserved-ranges = <4 4>, /* EC TZ Secure I3C */
<10 2>, /* OOB UART */
@@ -881,6 +955,14 @@ tpad_default: tpad-default-state {
bias-disable;
};
+ wcd_default: wcd-reset-n-active-state {
+ pins = "gpio191";
+ function = "gpio";
+ drive-strength = <16>;
+ bias-disable;
+ output-low;
+ };
+
wcn_wlan_bt_en: wcn-wlan-bt-en-state {
pins = "gpio116", "gpio117";
function = "gpio";
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v2 4/7] arm64: dts: qcom: glymur-crd: add DisplayPort audio DAI links
2026-11-27 15:55 [PATCH v2 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
` (2 preceding siblings ...)
2026-11-27 15:55 ` [PATCH v2 3/7] arm64: dts: qcom: mahua-t14s: " Srinivas Kandagatla
@ 2026-11-27 15:55 ` Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 5/7] arm64: dts: qcom: glymur-asus-zenbook-a16: enable WCD9378 headset codec Srinivas Kandagatla
` (2 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: Srinivas Kandagatla @ 2026-11-27 15:55 UTC (permalink / raw)
To: andersson, konrad.dybcio, abel.vesa, robh, krzk+dt, conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel,
Srinivas Kandagatla
Enable DisplayPort0 and DisplayPort1 playback DAIs on Glymur CRD,
matching how Mahua T14s already exposes DP audio. DP2 is not wired
on CRD; DP3 is the eDP panel and does not carry audio.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 32 ++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
index 8e0dd2956882..cdc24b273877 100644
--- a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
@@ -298,6 +298,38 @@ platform {
};
};
+ displayport-0-dai-link {
+ link-name = "DisplayPort0 Playback";
+
+ cpu {
+ sound-dai = <&q6apmbedai DISPLAY_PORT_RX_0>;
+ };
+
+ codec {
+ sound-dai = <&mdss_dp0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ displayport-1-dai-link {
+ link-name = "DisplayPort1 Playback";
+
+ cpu {
+ sound-dai = <&q6apmbedai DISPLAY_PORT_RX_1>;
+ };
+
+ codec {
+ sound-dai = <&mdss_dp1>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
va-dai-link {
link-name = "VA Capture";
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v2 5/7] arm64: dts: qcom: glymur-asus-zenbook-a16: enable WCD9378 headset codec
2026-11-27 15:55 [PATCH v2 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
` (3 preceding siblings ...)
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 ` 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
6 siblings, 0 replies; 9+ messages in thread
From: Srinivas Kandagatla @ 2026-11-27 15:55 UTC (permalink / raw)
To: andersson, konrad.dybcio, abel.vesa, robh, krzk+dt, conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel,
Srinivas Kandagatla
Enable the WCD9378 SDCA-compliant headset codec on SoundWire,
matching the Glymur CRD wiring. Adds vreg_bob1_e0 as the MICBIAS
rail.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
---
.../qcom/glymur-asus-zenbook-a16-ux3607oa.dts | 91 ++++++++++++++++++-
1 file changed, 90 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts b/arch/arm64/boot/dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts
index c253597b5a5a..3922d3eebdf9 100644
--- a/arch/arm64/boot/dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts
+++ b/arch/arm64/boot/dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts
@@ -272,7 +272,10 @@ sound {
"WooferRight IN", "WSA2 WSA_SPK1 OUT",
"TweeterRight IN", "WSA2 WSA_SPK2 OUT",
"VA DMIC0", "vdd-micb",
- "VA DMIC1", "vdd-micb";
+ "VA DMIC1", "vdd-micb",
+ "IT 41 Playback", "HPHL_OUT",
+ "IT 41 Playback", "HPHR_OUT",
+ "TX SWR_INPUT1", "OT 36 Capture";
va-dai-link {
link-name = "VA Capture";
@@ -308,6 +311,38 @@ platform {
sound-dai = <&q6apm>;
};
};
+
+ 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";
+
+ cpu {
+ sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
+ };
+
+ codec {
+ sound-dai = <&wcd9378c 18>, <&swr2 1>, <&lpass_txmacro 0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
};
wlan-connector {
@@ -351,6 +386,13 @@ m2_e_uart_ep: endpoint@0 {
};
&rpmh_vregs_b_e0 {
+ vreg_bob1_e0: bob1 {
+ regulator-name = "vreg_bob1_e0";
+ regulator-min-microvolt = <2200000>;
+ regulator-max-microvolt = <4224000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
+ };
+
/* Unused */
vreg_l2b0: ldo2 {
regulator-name = "vreg_l2b0";
@@ -763,6 +805,45 @@ right_tweeter: speaker@0,1 {
};
};
+/* WCD9378 multi-master: swr2 primary + swr1 dependent (DATA lanes 2/3). */
+&swr1 {
+ num-lanes = <2>;
+
+ qcom,multi-master-mode = "dependent";
+ qcom,multi-master-peer = <&swr2 0>;
+
+ status = "okay";
+};
+
+&swr2 {
+ num-lanes = <2>;
+
+ qcom,multi-master-mode = "primary";
+ qcom,multi-master-peer = <&swr1 5>;
+
+ status = "okay";
+
+ wcd9378c: codec@0,3 {
+ compatible = "sdw20217011000";
+ reg = <0 3>;
+
+ pinctrl-0 = <&wcd_default>;
+ pinctrl-names = "default";
+
+ 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>;
+
+ qcom,sdca-compliant;
+ qcom,port-mapping = <2 2 3 4 5 6 7 8>;
+ };
+};
+
&tlmm {
gpio-reserved-ranges = <4 4>, /* EC Secure I3C */
<10 2>, /* OOB UART */
@@ -920,6 +1001,14 @@ wake-n-pins {
bias-pull-up;
};
};
+
+ wcd_default: wcd-reset-n-active-state {
+ pins = "gpio191";
+ function = "gpio";
+ drive-strength = <16>;
+ bias-disable;
+ output-low;
+ };
};
&uart14 {
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v2 6/7] arm64: dts: qcom: glymur-asus-zenbook-a16: add DisplayPort audio DAI links
2026-11-27 15:55 [PATCH v2 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
` (4 preceding siblings ...)
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 ` Srinivas Kandagatla
2026-11-27 15:55 ` [PATCH v2 7/7] arm64: defconfig: enable SDCA class driver and WCD9378 codec Srinivas Kandagatla
6 siblings, 0 replies; 9+ messages in thread
From: Srinivas Kandagatla @ 2026-11-27 15:55 UTC (permalink / raw)
To: andersson, konrad.dybcio, abel.vesa, robh, krzk+dt, conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel,
Srinivas Kandagatla
Enable DisplayPort0/1/2 playback DAIs on the ASUS Zenbook A16. All
three DP controllers are already enabled on this board.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
---
.../qcom/glymur-asus-zenbook-a16-ux3607oa.dts | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts b/arch/arm64/boot/dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts
index 3922d3eebdf9..64740ee1e3f9 100644
--- a/arch/arm64/boot/dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts
+++ b/arch/arm64/boot/dts/qcom/glymur-asus-zenbook-a16-ux3607oa.dts
@@ -343,6 +343,54 @@ platform {
sound-dai = <&q6apm>;
};
};
+
+ displayport-0-dai-link {
+ link-name = "DisplayPort0 Playback";
+
+ cpu {
+ sound-dai = <&q6apmbedai DISPLAY_PORT_RX_0>;
+ };
+
+ codec {
+ sound-dai = <&mdss_dp0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ displayport-1-dai-link {
+ link-name = "DisplayPort1 Playback";
+
+ cpu {
+ sound-dai = <&q6apmbedai DISPLAY_PORT_RX_1>;
+ };
+
+ codec {
+ sound-dai = <&mdss_dp1>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ displayport-2-dai-link {
+ link-name = "DisplayPort2 Playback";
+
+ cpu {
+ sound-dai = <&q6apmbedai DISPLAY_PORT_RX_2>;
+ };
+
+ codec {
+ sound-dai = <&mdss_dp2>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
};
wlan-connector {
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH v2 7/7] arm64: defconfig: enable SDCA class driver and WCD9378 codec
2026-11-27 15:55 [PATCH v2 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
` (5 preceding siblings ...)
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 ` Srinivas Kandagatla
6 siblings, 0 replies; 9+ messages in thread
From: Srinivas Kandagatla @ 2026-11-27 15:55 UTC (permalink / raw)
To: andersson, konrad.dybcio, abel.vesa, robh, krzk+dt, conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel,
Srinivas Kandagatla
Enable CONFIG_SND_SOC_SDCA, CONFIG_SND_SOC_SDCA_CLASS and
CONFIG_SND_SOC_WCD9378_SDCA so Qualcomm Glymur-based laptops such as
the Qualcomm Glymur CRD, the Lenovo ThinkPad T14s Gen 7 and the ASUS
Zenbook A16 have working headset audio out of the box.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
---
arch/arm64/configs/defconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 9c5b64f34a22..86b33019eaa0 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1184,6 +1184,8 @@ CONFIG_SND_SOC_RK3308=m
CONFIG_SND_SOC_RK817=m
CONFIG_SND_SOC_RT5640=m
CONFIG_SND_SOC_RT5659=m
+CONFIG_SND_SOC_SDCA=m
+CONFIG_SND_SOC_SDCA_CLASS=m
CONFIG_SND_SOC_SIMPLE_AMPLIFIER=m
CONFIG_SND_SOC_SIMPLE_MUX=m
CONFIG_SND_SOC_TAS2552=m
@@ -1194,6 +1196,7 @@ CONFIG_SND_SOC_WCD9335=m
CONFIG_SND_SOC_WCD934X=m
CONFIG_SND_SOC_WCD937X_SDW=m
CONFIG_SND_SOC_WCD939X_SDW=m
+CONFIG_SND_SOC_WCD9378_SDCA=m
CONFIG_SND_SOC_WM8524=m
CONFIG_SND_SOC_WM8904=m
CONFIG_SND_SOC_WM8960=m
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread