* [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:53 ` sashiko-bot
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
` (5 subsequent siblings)
6 siblings, 2 replies; 18+ 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 related [flat|nested] 18+ messages in thread* Re: [PATCH 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire
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
2026-11-27 8:46 ` Srinivas Kandagatla
2026-12-01 13:03 ` Konrad Dybcio
1 sibling, 1 reply; 18+ messages in thread
From: sashiko-bot @ 2026-11-26 18:53 UTC (permalink / raw)
To: Srinivas Kandagatla; +Cc: devicetree, linux-sound, robh, conor+dt
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
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire
2026-11-26 18:53 ` sashiko-bot
@ 2026-11-27 8:46 ` Srinivas Kandagatla
0 siblings, 0 replies; 18+ messages in thread
From: Srinivas Kandagatla @ 2026-11-27 8:46 UTC (permalink / raw)
To: sashiko-reviews; +Cc: devicetree, linux-sound, robh, conor+dt
On 11/26/26 6:53 PM, sashiko-bot@kernel.org wrote:
> 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
There is a dependeny of
https://lore.kernel.org/all/20261125131757.1163466-1-srinivas.kandagatla@oss.qualcomm.com/
patches that are acked, I will add that explicity in next version.
> 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
nope, we should remove it, will fix that in next spin.
--srini
> (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.
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire
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
@ 2026-12-01 13:03 ` Konrad Dybcio
1 sibling, 0 replies; 18+ messages in thread
From: Konrad Dybcio @ 2026-12-01 13:03 UTC (permalink / raw)
To: Srinivas Kandagatla, andersson, abel.vesa, robh, krzk+dt,
conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel
On 11/26/26 7:38 PM, Srinivas Kandagatla wrote:
> 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>;
Please match the style of other nodes - 0x0 for zeroes in reg,
one compatible a line
[...]
> + swr2: soundwire@7630000 {
> + compatible = "qcom,soundwire-v3.1.0";
> + reg = <0 0x07630000 0 0x10000>;
> + interrupts = <GIC_SPI 761 IRQ_TYPE_LEVEL_HIGH>;
My robot claims this should be <&pdc 16 IRQ_TYPE_LEVEL_HIGH> in case
we need to wake up the system
Konrad
^ permalink raw reply [flat|nested] 18+ 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:49 ` sashiko-bot
2026-12-01 12:52 ` Konrad Dybcio
2026-11-26 18:38 ` [PATCH 3/7] arm64: dts: qcom: mahua-t14s: " Srinivas Kandagatla
` (4 subsequent siblings)
6 siblings, 2 replies; 18+ 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 related [flat|nested] 18+ messages in thread* Re: [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec
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-12-01 12:52 ` Konrad Dybcio
1 sibling, 0 replies; 18+ messages in thread
From: sashiko-bot @ 2026-11-26 18:49 UTC (permalink / raw)
To: Srinivas Kandagatla; +Cc: devicetree, linux-sound, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] arm64: dts: qcom: glymur-crd: reversed unit-address in codec@3,0
for reg <0 3>
- [Low] arm64: dts: qcom: glymur-crd: non-standard property order in swr
and wcd nodes
--
commit 89daa162b345f778b119d25e91fe91d54941becc
Author: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec
This commit enables the WCD9378 SDCA headset codec over SoundWire (swr2
primary and swr1 dependent) along with the playback/capture DAI links and
reset GPIO pinctrl state on Glymur CRD.
> diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
> index 3a9cd5f3ec2b8..be0a2cf10f543 100644
> --- a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
> +++ b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi
[ ... ]
> @@ -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>;
[Severity: Low]
Should the unit-address on wcd9378c be codec@0,3 (or audio-codec@0,3) to
match reg = <0 3>? SoundWire slave reg cells are <link_id instance_id>,
so @3,0 reverses the link ID and instance ID relative to reg and the
qcom,wcd9378-sdw.yaml binding example.
> +
> + 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>;
> + };
> +};
[Severity: Low]
This isn't a bug, but per the DTS coding style, standard properties should
precede vendor-specific qcom,* properties (num-lanes before
qcom,multi-master-* in &swr1 and &swr2, and reset-gpios, vdd-*-supply and
#sound-dai-cells before qcom,sdca-compliant and qcom,port-mapping in
wcd9378c), with pinctrl-0 placed before pinctrl-names.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126183806.172485-1-srinivas.kandagatla@oss.qualcomm.com?part=2
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH 2/7] arm64: dts: qcom: glymur-crd: enable WCD9378 headset codec
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-12-01 12:52 ` Konrad Dybcio
1 sibling, 0 replies; 18+ messages in thread
From: Konrad Dybcio @ 2026-12-01 12:52 UTC (permalink / raw)
To: Srinivas Kandagatla, andersson, abel.vesa, robh, krzk+dt,
conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel
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
^ permalink raw reply [flat|nested] 18+ 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:50 ` sashiko-bot
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, 1 reply; 18+ 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 related [flat|nested] 18+ messages in thread* Re: [PATCH 3/7] arm64: dts: qcom: mahua-t14s: enable WCD9378 headset codec
2026-11-26 18:38 ` [PATCH 3/7] arm64: dts: qcom: mahua-t14s: " Srinivas Kandagatla
@ 2026-11-26 18:50 ` sashiko-bot
0 siblings, 0 replies; 18+ messages in thread
From: sashiko-bot @ 2026-11-26 18:50 UTC (permalink / raw)
To: Srinivas Kandagatla; +Cc: devicetree, linux-sound, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] arm64: dts: qcom: reversed unit address codec@3,0 on wcd9378c
node
- [Low] arm64: dts: qcom: non-canonical property order in swr1, swr2,
and wcd9378c
--
commit d90cb139af676ea03da26198b6708de77cb64730
Author: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
arm64: dts: qcom: mahua-t14s: enable WCD9378 headset codec
This commit enables the WCD9378 SDCA-compliant headset codec over SoundWire
on the Lenovo ThinkPad T14s Gen 7, configuring the swr1 and swr2 SoundWire
controllers, TLMM reset pin, and audio DAI links.
> 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 2d6578edcc823..42e2ecb569928 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
[ ... ]
> @@ -742,6 +777,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>;
[Severity: Low]
Should the unit address on wcd9378c be codec@0,3 instead of codec@3,0 to
match the Link ID and Instance ID cell order in 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>;
> + };
> +};
[Severity: Low]
This isn't a bug, but per the DTS coding style, standard properties should
precede vendor-specific qcom,* properties, and pinctrl-0 should come before
pinctrl-names. In &swr1 and &swr2, num-lanes is placed after
qcom,multi-master-*, and in wcd9378c, pinctrl-names precedes pinctrl-0 while
qcom,sdca-compliant and qcom,port-mapping are placed before reset-gpios, the
vdd-*-supply properties, and #sound-dai-cells.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126183806.172485-1-srinivas.kandagatla@oss.qualcomm.com?part=3
^ permalink raw reply [flat|nested] 18+ 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; 18+ 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 related [flat|nested] 18+ 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: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
6 siblings, 1 reply; 18+ 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 related [flat|nested] 18+ messages in thread* Re: [PATCH 5/7] arm64: dts: qcom: glymur-asus-zenbook-a16: enable WCD9378 headset codec
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
0 siblings, 0 replies; 18+ messages in thread
From: sashiko-bot @ 2026-11-26 18:47 UTC (permalink / raw)
To: Srinivas Kandagatla; +Cc: devicetree, linux-sound, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] arm64: dts: qcom: reversed unit-address in wcd9378c codec@3,0
node
--
commit 07e647dd9ed11b2ee7570b697d9090d52a74d29b
Author: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
arm64: dts: qcom: glymur-asus-zenbook-a16: enable WCD9378 headset codec
This commit enables the WCD9378 SoundWire headset codec, its DAI links, and
the vreg_bob1_e0 MICBIAS rail on the Asus Zenbook A16 (UX3607OA).
> 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 c253597b5a5ae..ca035f10dc6cc 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
[ ... ]
> @@ -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>;
[Severity: Low]
Should the unit-address on wcd9378c be @0,3 instead of @3,0 to match
reg = <0 3> (link ID 0, instance ID 3) and the qcom,wcd9378-sdw.yaml
binding?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126183806.172485-1-srinivas.kandagatla@oss.qualcomm.com?part=5
^ permalink raw reply [flat|nested] 18+ 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-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
6 siblings, 1 reply; 18+ 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 related [flat|nested] 18+ messages in thread* Re: [PATCH 6/7] arm64: dts: qcom: glymur-asus-zenbook-a16: add DisplayPort audio DAI links
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
0 siblings, 0 replies; 18+ messages in thread
From: Konrad Dybcio @ 2026-12-01 12:52 UTC (permalink / raw)
To: Srinivas Kandagatla, andersson, abel.vesa, robh, krzk+dt,
conor+dt
Cc: linux-arm-msm, devicetree, alsa-devel, linux-sound, linux-kernel
On 11/26/26 7:38 PM, Srinivas Kandagatla wrote:
> 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 {
Please keep the entries sorted
Konrad
^ permalink raw reply [flat|nested] 18+ 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; 18+ 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 related [flat|nested] 18+ 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; 18+ 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] 18+ 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; 18+ 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] 18+ messages in thread