* [PATCH 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards
@ 2026-11-26 18:37 Srinivas Kandagatla
2026-11-26 18:38 ` [PATCH 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire Srinivas Kandagatla
` (6 more replies)
0 siblings, 7 replies; 10+ messages in thread
From: Srinivas Kandagatla @ 2026-11-26 18:37 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
Wire up the WCD9378 (Tambora) SDCA headset codec and the DisplayPort
audio DAI links on three Glymur boards: the reference CRD, the
Lenovo ThinkPad T14s Gen 7 (Mahua) and the ASUS Zenbook A16.
On all three boards swr2 is the SDCA primary and swr1 is a DATA-only
multi-master dependent (lanes 2/3); playback and capture run through
the LPASS RX/TX macros. The WCD9378 SoundWire port-shaping arrays
live on the SoC swr2 node in glymur.dtsi since every Glymur-based
laptop uses the same codec wiring.
Dependencies:
- SoundWire multi-master support and the Glymur LPASS clock
controllers are already in linux-next.
- WCD9378 SDCA codec changes are posted separately and must be
applied first:
https://lore.kernel.org/all/20261125171831.1458954-1-srinivas.kandagatla@oss.qualcomm.com/
Layout:
1/7 adds the Glymur SoC-level LPASS glue (RX/TX macros, LPASS
AUDIOCC and LPASSCC, swr1/swr2 controllers with the WCD9378
port-shaping arrays).
2/7 enables WCD9378 headset on Glymur CRD.
3/7 enables WCD9378 headset on Mahua T14s.
4/7 adds DP0/DP1 audio DAI links on Glymur CRD.
5/7 enables WCD9378 headset on ASUS Zenbook A16.
6/7 adds DP0/DP1/DP2 audio DAI links on ASUS Zenbook A16.
7/7 turns on the SDCA class driver and the WCD9378 codec in the
arm64 defconfig.
Tested on CRD, T14s and A16.
Srinivas Kandagatla (7):
arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire
arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec
arm64: dts: qcom: mahua-t14s: enable WCD9378 headset codec
arm64: dts: qcom: glymur-crd: add DisplayPort audio DAI links
arm64: dts: qcom: glymur-asus-zenbook-a16: enable WCD9378 headset
codec
arm64: dts: qcom: glymur-asus-zenbook-a16: add DisplayPort audio DAI
links
arm64: defconfig: enable SDCA class driver and WCD9378 codec
.../qcom/glymur-asus-zenbook-a16-ux3607oa.dts | 138 +++++++++++++++++-
arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 115 ++++++++++++++-
arch/arm64/boot/dts/qcom/glymur.dtsi | 100 +++++++++++++
.../mahua-lenovo-thinkpad-t14s-gen7-lcd.dts | 83 ++++++++++-
arch/arm64/configs/defconfig | 3 +
5 files changed, 436 insertions(+), 3 deletions(-)
--
2.53.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire
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 ` Srinivas Kandagatla
2026-11-26 18:38 ` [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec Srinivas Kandagatla
` (5 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Srinivas Kandagatla @ 2026-11-26 18:38 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 | 100 +++++++++++++++++++++++++++
1 file changed, 100 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
index 165dfa11f17f..e3bba14bf36c 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>
#include <dt-bindings/clock/qcom,glymur-videocc.h>
#include <dt-bindings/clock/qcom,kaanapali-gxclkctl.h>
#include <dt-bindings/clock/qcom,rpmh.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>;
+ };
+
swr0: soundwire@6c80000 {
compatible = "qcom,soundwire-v3.1.0";
reg = <0x0 0x06c80000 0x0 0x10000>;
@@ -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>;
+
+ #address-cells = <2>;
+ #size-cells = <0>;
+ #sound-dai-cells = <1>;
+
+ status = "disabled";
+ };
+
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 [flat|nested] 10+ messages in thread
* [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec
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:38 ` Srinivas Kandagatla
2026-11-26 18:38 ` [PATCH 3/7] arm64: dts: qcom: mahua-t14s: " Srinivas Kandagatla
` (4 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Srinivas Kandagatla @ 2026-11-26 18:38 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 | 83 +++++++++++++++++++++++-
1 file changed, 82 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..be0a2cf10f54 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,44 @@ right_tweeter: speaker@0,1 {
};
};
+/* WCD9378 multi-master: swr2 primary + swr1 dependent (DATA lanes 2/3). */
+&swr1 {
+ qcom,multi-master-mode = "dependent";
+ qcom,multi-master-peer = <&swr2 0>;
+ num-lanes = <2>;
+
+ status = "okay";
+};
+
+&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>;
+
+ 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;
+ };
+
wcn_sw_en: wcn-sw-en-state {
pins = "gpio94";
function = "gpio";
--
2.53.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/7] arm64: dts: qcom: mahua-t14s: enable WCD9378 headset codec
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:38 ` [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec Srinivas Kandagatla
@ 2026-11-26 18:38 ` Srinivas Kandagatla
2026-11-26 18:38 ` [PATCH 4/7] arm64: dts: qcom: glymur-crd: add DisplayPort audio DAI links Srinivas Kandagatla
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Srinivas Kandagatla @ 2026-11-26 18:38 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 | 83 ++++++++++++++++++-
1 file changed, 82 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..84be12c07f6b 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,44 @@ right_spkr: speaker@0,1 {
};
};
+/* WCD9378 multi-master: swr2 primary + swr1 dependent (DATA lanes 2/3). */
+&swr1 {
+ qcom,multi-master-mode = "dependent";
+ qcom,multi-master-peer = <&swr2 0>;
+ num-lanes = <2>;
+
+ status = "okay";
+};
+
+&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>;
+
+ 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>;
+ };
+};
+
&tlmm {
gpio-reserved-ranges = <4 4>, /* EC TZ Secure I3C */
<10 2>, /* OOB UART */
@@ -881,6 +954,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 [flat|nested] 10+ messages in thread
* [PATCH 4/7] arm64: dts: qcom: glymur-crd: add DisplayPort audio DAI links
2026-11-26 18:37 [PATCH 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
` (2 preceding siblings ...)
2026-11-26 18:38 ` [PATCH 3/7] arm64: dts: qcom: mahua-t14s: " Srinivas Kandagatla
@ 2026-11-26 18:38 ` Srinivas Kandagatla
2026-11-26 18:38 ` [PATCH 5/7] arm64: dts: qcom: glymur-asus-zenbook-a16: enable WCD9378 headset codec Srinivas Kandagatla
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Srinivas Kandagatla @ 2026-11-26 18:38 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 be0a2cf10f54..5428c6a45ad0 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 [flat|nested] 10+ messages in thread
* [PATCH 5/7] arm64: dts: qcom: glymur-asus-zenbook-a16: enable WCD9378 headset codec
2026-11-26 18:37 [PATCH 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
` (3 preceding siblings ...)
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 ` 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-11-26 18:38 ` [PATCH 7/7] arm64: defconfig: enable SDCA class driver and WCD9378 codec Srinivas Kandagatla
6 siblings, 0 replies; 10+ messages in thread
From: Srinivas Kandagatla @ 2026-11-26 18:38 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 | 90 ++++++++++++++++++-
1 file changed, 89 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..ca035f10dc6c 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,44 @@ right_tweeter: speaker@0,1 {
};
};
+/* WCD9378 multi-master: swr2 primary + swr1 dependent (DATA lanes 2/3). */
+&swr1 {
+ qcom,multi-master-mode = "dependent";
+ qcom,multi-master-peer = <&swr2 0>;
+ num-lanes = <2>;
+
+ status = "okay";
+};
+
+&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>;
+
+ 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>;
+ };
+};
+
&tlmm {
gpio-reserved-ranges = <4 4>, /* EC Secure I3C */
<10 2>, /* OOB UART */
@@ -920,6 +1000,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 [flat|nested] 10+ messages in thread
* [PATCH 6/7] arm64: dts: qcom: glymur-asus-zenbook-a16: add DisplayPort audio DAI links
2026-11-26 18:37 [PATCH 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
` (4 preceding siblings ...)
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 ` Srinivas Kandagatla
2026-11-26 18:38 ` [PATCH 7/7] arm64: defconfig: enable SDCA class driver and WCD9378 codec Srinivas Kandagatla
6 siblings, 0 replies; 10+ messages in thread
From: Srinivas Kandagatla @ 2026-11-26 18:38 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 ca035f10dc6c..70efda9ba2b2 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 [flat|nested] 10+ messages in thread
* [PATCH 7/7] arm64: defconfig: enable SDCA class driver and WCD9378 codec
2026-11-26 18:37 [PATCH 0/7] arm64: qcom: enable WCD9378 headset and DisplayPort audio on Glymur boards Srinivas Kandagatla
` (5 preceding siblings ...)
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 ` Srinivas Kandagatla
2026-11-27 1:42 ` Krzysztof Kozlowski
6 siblings, 1 reply; 10+ messages in thread
From: Srinivas Kandagatla @ 2026-11-26 18:38 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 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 [flat|nested] 10+ messages in thread
* Re: [PATCH 7/7] arm64: defconfig: enable SDCA class driver and WCD9378 codec
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
0 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-27 1:42 UTC (permalink / raw)
To: Srinivas Kandagatla, andersson, konrad.dybcio, abel.vesa, robh,
krzk+dt, conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel
On 26/11/2026 19:38, Srinivas Kandagatla wrote:
> Enable CONFIG_SND_SOC_SDCA, CONFIG_SND_SOC_SDCA_CLASS and
> CONFIG_SND_SOC_WCD9378_SDCA so Qualcomm Glymur-based laptops have
> working headset audio out of the box.
All of them? This is board specific, not SoC, thus please name at least
few upstream examples.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 7/7] arm64: defconfig: enable SDCA class driver and WCD9378 codec
2026-11-27 1:42 ` Krzysztof Kozlowski
@ 2026-11-27 8:49 ` Srinivas Kandagatla
0 siblings, 0 replies; 10+ messages in thread
From: Srinivas Kandagatla @ 2026-11-27 8:49 UTC (permalink / raw)
To: Krzysztof Kozlowski, andersson, konrad.dybcio, abel.vesa, robh,
krzk+dt, conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel
On 11/27/26 1:42 AM, Krzysztof Kozlowski wrote:
> On 26/11/2026 19:38, Srinivas Kandagatla wrote:
>> Enable CONFIG_SND_SOC_SDCA, CONFIG_SND_SOC_SDCA_CLASS and
>> CONFIG_SND_SOC_WCD9378_SDCA so Qualcomm Glymur-based laptops have
>> working headset audio out of the box.
>
> All of them? This is board specific, not SoC, thus please name at least
Yes, this codec using generic sdca class drivers, all the glymur
laptops, like T14s, A16, CRD and other models use this codec for analog
audio.
> few upstream examples.
Sure, WIll add that in next spin.
--srini
>
>
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-11-27 8:49 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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:38 ` [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec Srinivas Kandagatla
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-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
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®