* [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards
@ 2026-10-26 11:44 Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 1/7] arm64: dts: qcom: shikra: Add QAIF CPU node for audio Mohammad Rafi Shaik
` (8 more replies)
0 siblings, 9 replies; 12+ messages in thread
From: Mohammad Rafi Shaik @ 2026-10-26 11:44 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Mohammad Rafi Shaik, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio, Harendra Gautam, Ajay Kumar Nandam
This series enables the Shikra audio path on EVK targets by adding the QAIF
CPU endpoint, GPR/APM/PRM services, SoundWire and LPASS macro nodes, and
board-level sound card wiring for CQM, CQS and IQS variants.
Shikra EVK variants use different audio components and processing
architectures:
- CQM/CQS use an I2S-based path with WSA885x amplifiers and
PM4125 + Rouleur codec components.
- CQS uses modem-DSP based audio processing.
- IQS uses a third-party MAX98091 codec with modem-DSP support.
The series depends on the following upstream patch sets:
- Machine driver compatible support for Shikra (v2) [binding patch got reviewed-by]
https://lore.kernel.org/all/20260910-shikra-machine-v2-v2-0-9bf6bad589d8@oss.qualcomm.com/
- RX/VA Macro codec compatible support (v5) [binding patch got reviewed-by]
https://lore.kernel.org/all/20261014-add_shikra_support_v5-v5-0-fb9f0667e613@oss.qualcomm.com/
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
Changes in v4:
- Rebased onto the latest tip, as the SoundWire changes and new QAIF DAI IDs have been merged.
- Added Reviewed-by tags from v2.
- Fixed need-pick issues reported by Konrad.
- Updated the commit description as suggested by Abel.
- Link to v3: https://lore.kernel.org/all/20260917-shikra_audio_dts-v3-0-9a49e1ca6370@oss.qualcomm.com/
Changes in v3:
- Rebased on top of AudioCoreCC/CSR dependency series (v5)
- Dropped v2 patch 2 and moved it to the driver series.
- Updated the defconfig patch description for better clarity.
- Link to v2: https://patch.msgid.link/20260910231642.1794948-1-mohammad.rafi.shaik@oss.qualcomm.com
Changes in v2:
- Added GPR node for audio IPC
- Added QAIF CPU node
- Link to v1: https://patch.msgid.link/20260910231642.1794948-1-mohammad.rafi.shaik@oss.qualcomm.com
To: Bjorn Andersson <andersson@kernel.org>
To: Konrad Dybcio <konradybcio@kernel.org>
To: Abel Vesa <abelvesa@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
Mohammad Rafi Shaik (7):
arm64: dts: qcom: shikra: Add QAIF CPU node for audio
arm64: dts: qcom: shikra: Add gpr node
arm64: dts: qcom: shikra: Add soundwire and macro nodes
arm64: dts: qcom: shikra-cqm-evk: Enable sound card support
arm64: dts: qcom: shikra-cqs-evk: Enable sound card support
arm64: dts: qcom: shikra-iqs-evk: Enable sound card support
arm64: defconfig: Enable Qualcomm PM4125 and WSA885X drivers
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 196 ++++++++++++++++++++
arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi | 5 +
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 224 +++++++++++++++++++++++
arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 159 +++++++++++++++++
arch/arm64/boot/dts/qcom/shikra.dtsi | 256 ++++++++++++++++++++++++++-
arch/arm64/configs/defconfig | 2 +
6 files changed, 841 insertions(+), 1 deletion(-)
---
base-commit: 20a33c6b6cbe7e4805dfb6cd68816937443aa148
change-id: 20261026-shikra_audio_dts-v4-af3e23be38ba
prerequisite-message-id:20261014-add_shikra_support_v5-v5-0-fb9f0667e613@oss.qualcomm.com
prerequisite-patch-id: 69a6b9ed1cce6ce328f833eba9c5f8b4fe6f66a1
prerequisite-patch-id: ac7bc5ad958bb392a57871dde1f79c2fc520d482
prerequisite-patch-id: 332b888996b9d6c58e8c90eada37dc14137755ea
prerequisite-patch-id: a2a20bdd51ea3f44449b116d7c9408e0cd90a7fd
prerequisite-patch-id: 47582404c535e0239542882bf07d6c8161cdd50f
prerequisite-patch-id: 2d76098fec23a279054b2f580e42cb90f82dc4d1
prerequisite-patch-id: 48c82d6e40f27205cd1f36b38bde19ba3186f6b4
prerequisite-patch-id: ef06195615929d1e6cd58cf84aeac18968d3f872
prerequisite-patch-id: 83ef9658644923ad9f4e6a095f8b262c6ebfe295
prerequisite-message-id:20260910-shikra-machine-v2-v2-0-9bf6bad589d8@oss.qualcomm.com
prerequisite-patch-id: 99245529321cadedd30d9e38845b53dba3725de8
prerequisite-patch-id: ec6621f8f392aa46f365eae91a3a0f66b1628d0b
prerequisite-patch-id: 3da6653022d716bb81b440cd472bd464082eae24
prerequisite-patch-id: eb9cd5e7ba7fc4ea86f758e127775c70dfda59c0
prerequisite-patch-id: 648c31f694cc711154d2cf2137259f39a398be74
Best regards,
--
Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v4 v4 1/7] arm64: dts: qcom: shikra: Add QAIF CPU node for audio
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
@ 2026-10-26 11:44 ` Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 2/7] arm64: dts: qcom: shikra: Add gpr node Mohammad Rafi Shaik
` (7 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Mohammad Rafi Shaik @ 2026-10-26 11:44 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Mohammad Rafi Shaik, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio, Harendra Gautam
Add the QAIF CPU endpoint in shikra.dtsi so board files can connect LPASS
front-end links to backend codecs.
Describe the MMIO region, interrupt, IOMMU mapping and required clocks for
the QAIF block.
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Co-developed-by: Harendra Gautam <harendra.gautam@oss.qualcomm.com>
Signed-off-by: Harendra Gautam <harendra.gautam@oss.qualcomm.com>
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra.dtsi | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
index 2623e139196f..c010dd7b92cf 100644
--- a/arch/arm64/boot/dts/qcom/shikra.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
@@ -16,6 +16,7 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/phy/phy-qcom-qmp.h>
#include <dt-bindings/power/qcom-rpmpd.h>
+#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>
#include <dt-bindings/thermal/thermal.h>
/ {
@@ -4007,6 +4008,40 @@ cti@9900000 {
label = "cti_apss_2";
};
+ qaif_cpu: audio@a000000 {
+ compatible = "qcom,shikra-qaif-cpu";
+ reg = <0x0 0x0a000000 0x0 0x20000>;
+
+ interrupts = <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH 0>;
+
+ clocks = <&gcc GCC_LPASS_CONFIG_CLK>,
+ <&gcc GCC_LPASS_CORE_AXIM_CLK>,
+ <&audiocorecc AUDIO_CORE_CC_AUD_DMA_CLK>,
+ <&audiocorecc AUDIO_CORE_CC_AUD_DMA_MEM_CLK>,
+ <&audiocorecc AUDIO_CORE_CC_BUS_CLK>,
+ <&audiocorecc AUDIO_CORE_CC_AIF_IF0_IBIT_CLK>,
+ <&audiocorecc AUDIO_CORE_CC_AIF_IF1_IBIT_CLK>,
+ <&audiocorecc AUDIO_CORE_CC_AIF_IF2_IBIT_CLK>,
+ <&audiocorecc AUDIO_CORE_CC_AIF_IF3_IBIT_CLK>;
+ clock-names = "lpass_config",
+ "lpass_core_axim",
+ "aud_dma",
+ "aud_dma_mem",
+ "bus",
+ "aif_if0_ibit",
+ "aif_if1_ibit",
+ "aif_if2_ibit",
+ "aif_if3_ibit";
+
+ iommus = <&apps_smmu 0x1c0 0x0>;
+
+ #sound-dai-cells = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ status = "disabled";
+ };
+
audiocorecc: clock-controller@a0a0000 {
compatible = "qcom,shikra-audiocorecc";
reg = <0x0 0x0a0a0000 0x0 0x10000>;
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v4 v4 2/7] arm64: dts: qcom: shikra: Add gpr node
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 1/7] arm64: dts: qcom: shikra: Add QAIF CPU node for audio Mohammad Rafi Shaik
@ 2026-10-26 11:44 ` Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 3/7] arm64: dts: qcom: shikra: Add soundwire and macro nodes Mohammad Rafi Shaik
` (6 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Mohammad Rafi Shaik @ 2026-10-26 11:44 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Mohammad Rafi Shaik, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio, Ajay Kumar Nandam
Add GPR (Generic Packet Router) node along with APM (Audio Process
Manager) and PRM (Proxy Resource Manager) audio services.
Add a dedicated MDSP carveout memory region for audio usecases on
Shikra and mark both existing audio heap and MDSP carveout regions
as shared DMA pools.
Update the Q6 APM DAI node to reference multiple memory regions,
where index 0 is used for control path buffers and index 1 is used
for MDSP data path buffers. This separation ensures proper memory
allocation and access for APM communication between APSS and MDSP.
Also add shared-dma-pool compatibility to the existing audio heap
region to align with upstream DMA pool usage.
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Co-developed-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
Signed-off-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra.dtsi | 49 +++++++++++++++++++++++++++++++++++-
1 file changed, 48 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
index c010dd7b92cf..67ad6c3e34db 100644
--- a/arch/arm64/boot/dts/qcom/shikra.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
@@ -8,6 +8,7 @@
#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/clock/qcom,shikra-audiocorecc.h>
#include <dt-bindings/clock/qcom,shikra-gcc.h>
+#include <dt-bindings/firmware/qcom,scm.h>
#include <dt-bindings/interconnect/qcom,icc.h>
#include <dt-bindings/interconnect/qcom,osm-l3.h>
#include <dt-bindings/dma/qcom-gpi.h>
@@ -16,6 +17,7 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/phy/phy-qcom-qmp.h>
#include <dt-bindings/power/qcom-rpmpd.h>
+#include <dt-bindings/soc/qcom,gpr.h>
#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>
#include <dt-bindings/thermal/thermal.h>
@@ -476,7 +478,14 @@ smem_mem: smem@86000000 {
};
audio_heap_mem: audio-heap@86200000 {
- reg = <0x0 0x86200000 0x0 0x100000>;
+ compatible = "shared-dma-pool";
+ reg = <0x0 0x86200000 0x0 0x40000>;
+ no-map;
+ };
+
+ audio_mdsp_carveout_mem: audio-mdsp-carveout@86240000 {
+ compatible = "shared-dma-pool";
+ reg = <0x0 0x86240000 0x0 0x100000>;
no-map;
};
@@ -2395,6 +2404,44 @@ glink-edge {
mboxes = <&apcs_glb 12>;
qcom,remote-pid = <1>;
label = "mpss";
+
+ gpr: gpr {
+ compatible = "qcom,gpr";
+ qcom,glink-channels = "modem_apps";
+ qcom,domain = <GPR_DOMAIN_ID_MODEM>;
+ qcom,intents = <200 20>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ status = "disabled";
+
+ q6apm: service@1 {
+ compatible = "qcom,q6apm";
+ reg = <GPR_APM_MODULE_IID>;
+ #sound-dai-cells = <0>;
+
+ q6apmbedai: bedais {
+ compatible = "qcom,q6apm-lpass-dais";
+ #sound-dai-cells = <1>;
+ };
+
+ q6apmdai: dais {
+ compatible = "qcom,q6apm-dais";
+ memory-region = <&audio_heap_mem
+ &audio_mdsp_carveout_mem>;
+ };
+ };
+
+ q6prm: service@2 {
+ compatible = "qcom,q6prm";
+ reg = <GPR_PRM_MODULE_IID>;
+
+ q6prmcc: clock-controller {
+ compatible = "qcom,q6prm-lpass-clocks";
+ #clock-cells = <2>;
+ };
+ };
+ };
};
};
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v4 v4 3/7] arm64: dts: qcom: shikra: Add soundwire and macro nodes
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 1/7] arm64: dts: qcom: shikra: Add QAIF CPU node for audio Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 2/7] arm64: dts: qcom: shikra: Add gpr node Mohammad Rafi Shaik
@ 2026-10-26 11:44 ` Mohammad Rafi Shaik
2026-12-04 19:20 ` Bjorn Andersson
2026-10-26 11:44 ` [PATCH v4 v4 4/7] arm64: dts: qcom: shikra-cqm-evk: Enable sound card support Mohammad Rafi Shaik
` (5 subsequent siblings)
8 siblings, 1 reply; 12+ messages in thread
From: Mohammad Rafi Shaik @ 2026-10-26 11:44 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Mohammad Rafi Shaik, linux-arm-msm, devicetree, linux-kernel
Add SoC-level SoundWire masters and LPASS RX/VA macro nodes, along with
DMIC and SWR pinctrl states required by the audio data path.
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra.dtsi | 172 +++++++++++++++++++++++++++++++++++
1 file changed, 172 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
index 67ad6c3e34db..f234dcdb9785 100644
--- a/arch/arm64/boot/dts/qcom/shikra.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
@@ -1060,6 +1060,70 @@ sdc2_card_det_n: sd-card-det-n-state {
drive-strength = <2>;
bias-pull-up;
};
+
+ dmic01_default: dmic01-default-state {
+ clk-pins {
+ pins = "gpio96";
+ function = "dmic";
+ drive-strength = <8>;
+ output-high;
+ };
+
+ data-pins {
+ pins = "gpio97";
+ function = "dmic";
+ drive-strength = <8>;
+ bias-disable;
+ };
+ };
+
+ dmic23_default: dmic23-default-state {
+ clk-pins {
+ pins = "gpio98";
+ function = "dmic";
+ drive-strength = <8>;
+ output-high;
+ };
+
+ data-pins {
+ pins = "gpio99";
+ function = "dmic";
+ drive-strength = <8>;
+ bias-disable;
+ };
+ };
+
+ tx_swr_active: tx-swr-active-state {
+ clk-pins {
+ pins = "gpio105";
+ function = "swr0_tx";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
+ data-pins {
+ pins = "gpio106";
+ function = "swr0_tx";
+ drive-strength = <8>;
+ bias-bus-hold;
+ };
+ };
+
+ rx_swr_active: rx-swr-active-state {
+ clk-pins {
+ pins = "gpio107";
+ function = "swr0_rx";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
+ data-pins {
+ pins = "gpio108", "gpio109";
+ function = "swr0_rx";
+ drive-strength = <8>;
+ bias-bus-hold;
+ };
+ };
};
pmu@c91000 {
@@ -4089,6 +4153,114 @@ qaif_cpu: audio@a000000 {
status = "disabled";
};
+ rxmacro: codec@a040000 {
+ compatible = "qcom,shikra-lpass-rx-macro";
+ reg = <0x0 0x0a040000 0x0 0x1000>;
+
+ clocks = <&audiocorecc AUDIO_CORE_CC_RX_MCLK_CLK>,
+ <&audiocorecc AUDIO_CORE_CC_RX_MCLK_2X_CLK>,
+ <&vamacro>;
+ clock-names = "mclk",
+ "npl",
+ "fsgen";
+
+ #clock-cells = <0>;
+ clock-output-names = "mclk";
+ #sound-dai-cells = <1>;
+
+ status = "disabled";
+ };
+
+ swr0: soundwire@a060000 {
+ compatible = "qcom,shikra-soundwire";
+ reg = <0x0 0x0a060000 0x0 0x10000>;
+
+ interrupts = <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH 0>;
+
+ clocks = <&rxmacro>;
+ clock-names = "iface";
+ label = "RX";
+
+ pinctrl-0 = <&rx_swr_active>;
+ pinctrl-names = "default";
+
+ qcom,din-ports = <0>;
+ qcom,dout-ports = <5>;
+
+ resets = <&audiocore_csr AUDIO_CORE_CSR_RX_SWR_CGCR>;
+ reset-names = "swr_audio_cgcr";
+
+ qcom,ports-sinterval-low = /bits/ 8 <0x03 0x1f 0x1f 0x07 0x00>;
+ qcom,ports-offset1 = /bits/ 8 <0x00 0x00 0x0b 0x01 0x00>;
+ qcom,ports-offset2 = /bits/ 8 <0x00 0x00 0x0b 0x00 0x00>;
+ qcom,ports-hstart = /bits/ 8 <0xff 0x03 0xff 0xff 0xff>;
+ qcom,ports-hstop = /bits/ 8 <0xff 0x06 0xff 0xff 0xff>;
+ qcom,ports-word-length = /bits/ 8 <0x01 0x07 0x04 0xff 0xff>;
+ qcom,ports-block-pack-mode = /bits/ 8 <0xff 0x00 0x01 0xff 0xff>;
+ qcom,ports-block-group-count = /bits/ 8 <0xff 0xff 0xff 0xff 0x00>;
+ qcom,ports-lane-control = /bits/ 8 <0x01 0x00 0x00 0x00 0x00>;
+
+ #sound-dai-cells = <1>;
+ #address-cells = <2>;
+ #size-cells = <0>;
+
+ status = "disabled";
+ };
+
+ vamacro: codec@a078000 {
+ compatible = "qcom,shikra-lpass-va-macro";
+ reg = <0x0 0x0a078000 0x0 0x2000>;
+
+ clocks = <&audiocorecc AUDIO_CORE_CC_TX_MCLK_CLK>,
+ <&audiocorecc AUDIO_CORE_CC_TX_MCLK_2X_CLK>;
+ clock-names = "mclk",
+ "npl";
+
+ #clock-cells = <0>;
+ clock-output-names = "fsgen";
+ #sound-dai-cells = <1>;
+
+ status = "disabled";
+ };
+
+ swr1: soundwire@a080000 {
+ compatible = "qcom,shikra-soundwire";
+ reg = <0x0 0x0a080000 0x0 0x10000>;
+
+ interrupts = <GIC_SPI 328 IRQ_TYPE_LEVEL_HIGH 0>,
+ <GIC_SPI 406 IRQ_TYPE_LEVEL_HIGH 0>;
+ interrupt-names = "core", "wakeup";
+
+ clocks = <&vamacro>;
+ clock-names = "iface";
+ label = "VA_TX";
+
+ pinctrl-0 = <&tx_swr_active>;
+ pinctrl-names = "default";
+
+ qcom,din-ports = <4>;
+ qcom,dout-ports = <0>;
+
+ resets = <&audiocore_csr AUDIO_CORE_CSR_TX_SWR_CGCR>;
+ reset-names = "swr_audio_cgcr";
+
+ qcom,ports-sinterval-low = /bits/ 8 <0x01 0x03 0x03 0x03>;
+ qcom,ports-offset1 = /bits/ 8 <0x00 0x01 0x01 0x01>;
+ qcom,ports-offset2 = /bits/ 8 <0x00 0x00 0x00 0x00>;
+ qcom,ports-hstart = /bits/ 8 <0xff 0xff 0xff 0xff>;
+ qcom,ports-hstop = /bits/ 8 <0xff 0xff 0xff 0xff>;
+ qcom,ports-word-length = /bits/ 8 <0xff 0xff 0xff 0xff>;
+ qcom,ports-block-pack-mode = /bits/ 8 <0xff 0xff 0xff 0xff>;
+ qcom,ports-block-group-count = /bits/ 8 <0xff 0xff 0xff 0xff>;
+ qcom,ports-lane-control = /bits/ 8 <0x01 0x00 0x00 0x00>;
+
+ #sound-dai-cells = <1>;
+ #address-cells = <2>;
+ #size-cells = <0>;
+
+ status = "disabled";
+ };
+
audiocorecc: clock-controller@a0a0000 {
compatible = "qcom,shikra-audiocorecc";
reg = <0x0 0x0a0a0000 0x0 0x10000>;
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v4 v4 4/7] arm64: dts: qcom: shikra-cqm-evk: Enable sound card support
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
` (2 preceding siblings ...)
2026-10-26 11:44 ` [PATCH v4 v4 3/7] arm64: dts: qcom: shikra: Add soundwire and macro nodes Mohammad Rafi Shaik
@ 2026-10-26 11:44 ` Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 5/7] arm64: dts: qcom: shikra-cqs-evk: " Mohammad Rafi Shaik
` (4 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Mohammad Rafi Shaik @ 2026-10-26 11:44 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Mohammad Rafi Shaik, linux-arm-msm, devicetree, linux-kernel
Enable the sound card on the shikra-cqm-evk platform, including
the PM4125 (Rouleur) headset codec, WSA885x external speaker path,
and QAIF backend links.
Also enable the required LPASS macro and SoundWire nodes, along with
the necessary pinctrl configurations for DMIC and I2S interfaces.
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts | 196 +++++++++++++++++++++++++++
arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi | 5 +
2 files changed, 201 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
index bde3b7d81ace..aaac14f43649 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
@@ -23,12 +23,112 @@ aliases {
chosen {
stdout-path = "serial0:115200n8";
};
+
+ sound: sound {
+ compatible = "qcom,shikra-cqm-sndcard";
+ model = "shikra-cqm-evk";
+
+ audio-routing = "IN1_HPHL", "HPHL_OUT",
+ "IN2_HPHR", "HPHR_OUT",
+ "AMIC1", "MIC BIAS1",
+ "AMIC2", "MIC BIAS2",
+ "AMIC3", "MIC BIAS3",
+ "VA SWR_ADC0", "ADC1_OUTPUT",
+ "VA SWR_ADC1", "ADC2_OUTPUT",
+ "VA DMIC0", "vdd-micb",
+ "VA DMIC1", "vdd-micb",
+ "VA DMIC2", "vdd-micb",
+ "VA DMIC3", "vdd-micb";
+
+ pinctrl-0 = <&i2s2_default>, <&dmic_eldo_en_default>;
+ pinctrl-names = "default";
+
+ headset-capture-dai-link {
+ link-name = "Headphones Capture";
+
+ codec {
+ sound-dai = <&pmic4125_codec 1>,
+ <&swr1 0>,
+ <&vamacro 0>;
+ };
+
+ cpu {
+ sound-dai = <&qaif_cpu VA_CODEC_DMA_TX_1>;
+ };
+ };
+
+ headset-playback-dai-link {
+ link-name = "Headphones Playback";
+
+ codec {
+ sound-dai = <&pmic4125_codec 0>,
+ <&swr0 0>,
+ <&rxmacro 0>;
+ };
+
+ cpu {
+ sound-dai = <&qaif_cpu RX_CODEC_DMA_RX_1>;
+ };
+ };
+
+ wsa-speaker-dai-link {
+ link-name = "WSA Speaker Playback";
+
+ codec {
+ sound-dai = <&wsa8855>;
+ dai-tdm-slot-num = <2>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1>;
+ };
+
+ cpu {
+ sound-dai = <&qaif_cpu AIF_TDM_RX_2>;
+ dai-tdm-slot-num = <2>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1>;
+ dai-tdm-slot-tx-mask = <1 1>;
+ };
+ };
+
+ va-dmic-dai-link {
+ link-name = "VA DMIC Capture";
+
+ codec {
+ sound-dai = <&vamacro 0>;
+ };
+
+ cpu {
+ sound-dai = <&qaif_cpu VA_CODEC_DMA_TX_0>;
+ };
+ };
+ };
};
&audiocorecc {
status = "okay";
};
+&i2c3 {
+ status = "okay";
+
+ wsa8855: speaker@c {
+ compatible = "qcom,wsa8855";
+ reg = <0x0c>;
+
+ pinctrl-0 = <&wsa8855_spkr_sd_n>;
+ pinctrl-names = "default";
+
+ powerdown-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
+ interrupt-parent = <&tlmm>;
+ interrupts = <77 IRQ_TYPE_EDGE_FALLING>;
+ vdd-1p8-supply = <&pm4125_l15>;
+ vdd-io-supply = <&pm4125_l15>;
+ qcom,battery-config = "1s";
+
+ #sound-dai-cells = <0>;
+ };
+};
+
&pm4125_hs_in {
remote-endpoint = <&usb_1_dwc3_hs>;
};
@@ -37,6 +137,20 @@ &pm4125_ss_in {
remote-endpoint = <&usb_qmpphy_out>;
};
+&qaif_cpu {
+ status = "okay";
+
+ aif@b5 {
+ reg = <AIF_TDM_RX_2>;
+ dai-format = "dsp_a";
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-num = <2>;
+ dai-tdm-slot-rx-mask = <1 1>;
+ dai-tdm-slot-tx-mask = <1 1>;
+ qcom,qaif-aif-lane-map = <1 0>;
+ };
+};
+
&remoteproc_cdsp {
firmware-name = "qcom/shikra/cdsp.mbn";
@@ -56,6 +170,10 @@ &remoteproc_mpss {
status = "okay";
};
+&rxmacro {
+ status = "okay";
+};
+
&sdhc_1 {
vmmc-supply = <&pm4125_l20>;
vqmmc-supply = <&pm4125_l14>;
@@ -113,3 +231,81 @@ &usb_2_hsphy {
status = "okay";
};
+
+&spmi_bus {
+ pmic@0 {
+ pmic4125_codec: audio-codec@f000 {
+ compatible = "qcom,pm4125-codec";
+ reg = <0xf000>;
+ vdd-io-supply = <&pm4125_l15>;
+ vdd-cp-supply = <&pm4125_s1>;
+ vdd-pa-vpos-supply = <&pm4125_s1>;
+
+ vdd-mic-bias-supply = <&pm4125_l22>;
+ qcom,micbias1-microvolt = <1800000>;
+ qcom,micbias2-microvolt = <1800000>;
+ qcom,micbias3-microvolt = <1800000>;
+
+ qcom,rx-device = <&pm4125_rx>;
+ qcom,tx-device = <&pm4125_tx>;
+ #sound-dai-cells = <1>;
+
+ status = "okay";
+ };
+ };
+};
+
+&swr0 {
+ status = "okay";
+
+ pm4125_rx: codec@0,4 {
+ compatible = "sdw20217010c00";
+ reg = <0 4>;
+ qcom,rx-port-mapping = <1 2 3 4 5>;
+ };
+};
+
+&swr1 {
+ status = "okay";
+
+ pm4125_tx: codec@0,3 {
+ compatible = "sdw20217010c00";
+ reg = <0 3>;
+ qcom,tx-port-mapping = <2 3>;
+ };
+};
+
+&tlmm {
+ dmic_eldo_en_default: dmic-eldo-default-active-state {
+ pins = "gpio71";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-disable;
+ output-high;
+ };
+
+ i2s2_default: i2s2-default-active-state {
+ pins = "gpio100", "gpio101", "gpio102", "gpio103";
+ function = "i2s2";
+ drive-strength = <8>;
+ output-high;
+ bias-disable;
+ };
+
+ wsa8855_spkr_sd_n: wsa8855-spkr-sd-n-active-state {
+ pins = "gpio2";
+ function = "gpio";
+ input-disable;
+ output-enable;
+ };
+};
+
+&vamacro {
+ pinctrl-0 = <&dmic01_default>, <&dmic23_default>;
+ pinctrl-names = "default";
+
+ qcom,dmic-sample-rate = <4800000>;
+
+ status = "okay";
+};
+
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
index 95eb7255fb22..ad894249e2c6 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
@@ -254,6 +254,11 @@ &rpm_requests {
regulators {
compatible = "qcom,rpm-pm2250-regulators";
+ pm4125_s1: s1 {
+ regulator-min-microvolt = <1396000>;
+ regulator-max-microvolt = <1396000>;
+ };
+
pm4125_s2: s2 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1200000>;
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v4 v4 5/7] arm64: dts: qcom: shikra-cqs-evk: Enable sound card support
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
` (3 preceding siblings ...)
2026-10-26 11:44 ` [PATCH v4 v4 4/7] arm64: dts: qcom: shikra-cqm-evk: Enable sound card support Mohammad Rafi Shaik
@ 2026-10-26 11:44 ` Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 6/7] arm64: dts: qcom: shikra-iqs-evk: " Mohammad Rafi Shaik
` (3 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Mohammad Rafi Shaik @ 2026-10-26 11:44 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Mohammad Rafi Shaik, linux-arm-msm, devicetree, linux-kernel
Enable the sound card on the shikra-cqs-evk platform, including
the PM4125 (Rouleur) headset codec, WSA885x speaker amp.
Also enable the required LPASS macro and SoundWire nodes, along with
the necessary pinctrl configurations for DMIC and I2S interfaces.
Also enable the required LPASS macro along with the necessary
pinctrl configurations for DMIC and I2S interfaces.
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts | 224 ++++++++++++++++++++++++++++
1 file changed, 224 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
index 2ded25c4304e..ac1f55ecc7af 100644
--- a/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
@@ -23,6 +23,125 @@ aliases {
chosen {
stdout-path = "serial0:115200n8";
};
+
+ sound {
+ compatible = "qcom,shikra-cqs-sndcard";
+ model = "shikra-cqs-evk";
+
+ pinctrl-0 = <&i2s2_default>, <&dmic_eldo_en_default>;
+ pinctrl-names = "default";
+
+ audio-routing = "VA DMIC0", "vdd-micb",
+ "VA DMIC1", "vdd-micb",
+ "VA DMIC2", "vdd-micb",
+ "VA DMIC3", "vdd-micb",
+ "VA SWR_ADC0", "ADC1_OUTPUT",
+ "VA SWR_ADC1", "ADC2_OUTPUT",
+ "AMIC1", "MIC BIAS1",
+ "AMIC2", "MIC BIAS2",
+ "AMIC3", "MIC BIAS3",
+ "IN1_HPHL", "HPHL_OUT",
+ "IN2_HPHR", "HPHR_OUT";
+
+ wcd-playback-dai-link {
+ link-name = "Headphones Playback";
+
+ codec {
+ sound-dai = <&pmic4125_codec 0>,
+ <&swr0 0>,
+ <&rxmacro 0>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_1>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ wcd-capture-dai-link {
+ link-name = "Headphones capture";
+
+ codec {
+ sound-dai = <&pmic4125_codec 1>,
+ <&swr1 0>,
+ <&vamacro 0>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_1>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ va-dmic-dai-link {
+ link-name = "VA DMIC Capture";
+
+ codec {
+ sound-dai = <&vamacro 0>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ wsa-playback-dai-link {
+ link-name = "WSA Playback";
+
+ codec {
+ sound-dai = <&wsa8855>;
+ dai-tdm-slot-num = <2>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai AIF_TDM_RX_2>;
+ dai-tdm-slot-num = <2>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+ };
+};
+
+&gpr {
+ status = "okay";
+};
+
+&i2c3 {
+ status = "okay";
+
+ wsa8855: speaker@c {
+ compatible = "qcom,wsa8855";
+ reg = <0x0c>;
+
+ pinctrl-0 = <&wsa8855_spkr_sd_n>;
+ pinctrl-names = "default";
+
+ powerdown-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
+ interrupt-parent = <&tlmm>;
+ interrupts = <77 IRQ_TYPE_EDGE_FALLING>;
+ vdd-1p8-supply = <&pm4125_l15>;
+ vdd-io-supply = <&pm4125_l15>;
+ qcom,battery-config = "1s";
+
+ #sound-dai-cells = <0>;
+ };
};
&pm4125_hs_in {
@@ -33,6 +152,16 @@ &pm4125_ss_in {
remote-endpoint = <&usb_qmpphy_out>;
};
+&q6apmbedai {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ dai@183 {
+ reg = <AIF_TDM_RX_2>;
+ clocks = <&q6prmcc LPASS_CLK_ID_QAIF_IF2_IBIT LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "bclk";
+ };
+};
+
&remoteproc_cdsp {
firmware-name = "qcom/shikra/cdsp.mbn";
@@ -52,6 +181,18 @@ &remoteproc_mpss {
status = "okay";
};
+&rxmacro {
+ clocks = <&q6prmcc LPASS_CLK_ID_RX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_CLK_ID_RX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&vamacro>;
+
+ clock-names = "mclk",
+ "npl",
+ "fsgen";
+
+ status = "okay";
+};
+
&sdhc_1 {
vmmc-supply = <&pm4125_l20>;
vqmmc-supply = <&pm4125_l14>;
@@ -109,3 +250,86 @@ &usb_2_hsphy {
status = "okay";
};
+
+&spmi_bus {
+ pmic@0 {
+ pmic4125_codec: audio-codec@f000 {
+ compatible = "qcom,pm4125-codec";
+ reg = <0xf000>;
+ vdd-io-supply = <&pm4125_l15>;
+ vdd-cp-supply = <&pm4125_s1>;
+ vdd-pa-vpos-supply = <&pm4125_s1>;
+
+ vdd-mic-bias-supply = <&pm4125_l22>;
+ qcom,micbias1-microvolt = <1800000>;
+ qcom,micbias2-microvolt = <1800000>;
+ qcom,micbias3-microvolt = <1800000>;
+
+ qcom,rx-device = <&pm4125_rx>;
+ qcom,tx-device = <&pm4125_tx>;
+ #sound-dai-cells = <1>;
+
+ status = "okay";
+ };
+ };
+};
+
+&swr0 {
+ status = "okay";
+
+ pm4125_rx: codec@0,4 {
+ compatible = "sdw20217010c00";
+ reg = <0 4>;
+ qcom,rx-port-mapping = <1 2 3 4 5 >;
+ };
+};
+
+&swr1 {
+ status = "okay";
+
+ pm4125_tx: codec@0,3 {
+ compatible = "sdw20217010c00";
+ reg = <0 3>;
+ qcom,tx-port-mapping = <2 3>;
+ };
+};
+
+&tlmm {
+ dmic_eldo_en_default: dmic-eldo-default-active-state {
+ pins = "gpio71";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-disable;
+ output-high;
+ };
+
+ i2s2_default: i2s2-default-active-state {
+ pins = "gpio100", "gpio101", "gpio102", "gpio103";
+ function = "i2s2";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
+ wsa8855_spkr_sd_n: wsa8855-spkr-sd-n-active-state {
+ pins = "gpio2";
+ function = "gpio";
+ drive-strength = <8>;
+ input-disable;
+ output-enable;
+ };
+};
+
+&vamacro {
+ pinctrl-0 = <&dmic01_default>, <&dmic23_default>;
+ pinctrl-names = "default";
+
+ clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "mclk",
+ "npl";
+
+ qcom,dmic-sample-rate = <4800000>;
+
+ status = "okay";
+};
+
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v4 v4 6/7] arm64: dts: qcom: shikra-iqs-evk: Enable sound card support
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
` (4 preceding siblings ...)
2026-10-26 11:44 ` [PATCH v4 v4 5/7] arm64: dts: qcom: shikra-cqs-evk: " Mohammad Rafi Shaik
@ 2026-10-26 11:44 ` Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 7/7] arm64: defconfig: Enable Qualcomm PM4125 and WSA885X drivers Mohammad Rafi Shaik
` (2 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Mohammad Rafi Shaik @ 2026-10-26 11:44 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Mohammad Rafi Shaik, linux-arm-msm, devicetree, linux-kernel,
Ajay Kumar Nandam
Enable the IQS EVK audio card using MAX98091 on I2S0 for primary
playback/capture and VA DMIC capture through q6apm backend links.
Add board clock and pinctrl states required for codec IRQ, external
mclk and digital mic routing.
Co-developed-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
Signed-off-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts | 159 ++++++++++++++++++++++++++++
1 file changed, 159 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
index 5df30ad8211f..473dc18b7958 100644
--- a/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
+++ b/arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
@@ -23,6 +23,120 @@ aliases {
chosen {
stdout-path = "serial0:115200n8";
};
+
+ sound {
+ compatible = "qcom,shikra-iqs-sndcard";
+ model = "shikra-iqs-evk";
+
+ pinctrl-0 = <&i2s0_default>, <&ext_mclk2_active>;
+ pinctrl-names = "default";
+
+ audio-routing = "IN34", "Headset Mic",
+ "Headset Mic", "MICBIAS",
+ "DMICL", "Int Mic",
+ "Int Mic", "MICBIAS",
+ "Headphone", "HPL",
+ "Headphone", "HPR",
+ "Speaker", "SPKL",
+ "Speaker", "SPKR",
+ "VA DMIC0", "vdd-micb",
+ "VA DMIC1", "vdd-micb",
+ "VA DMIC2", "vdd-micb",
+ "VA DMIC3", "vdd-micb";
+
+ pri-i2s-playback-dai-link {
+ link-name = "Analog Playback";
+
+ codec {
+ sound-dai = <&max98091>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai AIF_MI2S_RX_0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ pri-i2s-capture-dai-link {
+ link-name = "Analog Capture";
+
+ codec {
+ sound-dai = <&max98091>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai AIF_MI2S_TX_0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ va-dmic-dai-link {
+ link-name = "VA DMIC Capture";
+
+ codec {
+ sound-dai = <&vamacro 0>;
+ };
+
+ cpu {
+ sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+ };
+};
+
+&gpr {
+ status = "okay";
+};
+
+&i2c3 {
+ status = "okay";
+
+ max98091: audio-codec@10 {
+ compatible = "maxim,max98091";
+ reg = <0x10>;
+
+ pinctrl-0 = <&max98091_default>;
+ pinctrl-names = "default";
+
+ interrupts-extended = <&tlmm 28 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&q6prmcc LPASS_CLK_ID_MCLK_2 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "mclk";
+ assigned-clocks = <&q6prmcc LPASS_CLK_ID_MCLK_2 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ assigned-clock-rates = <12288000>;
+ #sound-dai-cells = <0>;
+ };
+};
+
+&q6apmbedai {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dai@153 {
+ reg = <AIF_MI2S_RX_0>;
+ clocks = <&q6prmcc LPASS_CLK_ID_QAIF_IF0_IBIT LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "bclk";
+ };
+};
+
+&q6apmbedai {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dai@154 {
+ reg = <AIF_MI2S_TX_0>;
+ clocks = <&q6prmcc LPASS_CLK_ID_QAIF_IF0_IBIT LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "bclk";
+ };
};
&remoteproc_cdsp {
@@ -89,3 +203,48 @@ &usb_2_hsphy {
status = "okay";
};
+
+&tlmm {
+ dmic_eldo_en_default: dmic-eldo-default-active-state {
+ pins = "gpio71";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-disable;
+ output-high;
+ };
+
+ ext_mclk2_active: ext-mclk2-state {
+ pins = "gpio110";
+ function = "ext_mclk";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
+ i2s0_default: i2s0-default-active-state {
+ pins = "gpio105", "gpio106", "gpio107", "gpio108", "gpio109";
+ function = "i2s0";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
+ max98091_default: max98091-default-state {
+ pins = "gpio28";
+ function = "gpio";
+ bias-pull-up;
+ };
+};
+
+&vamacro {
+ clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "mclk",
+ "npl";
+
+ pinctrl-0 = <&dmic01_default>, <&dmic23_default>, <&dmic_eldo_en_default>;
+ pinctrl-names = "default";
+
+ qcom,dmic-sample-rate = <4800000>;
+
+ status = "okay";
+};
+
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v4 v4 7/7] arm64: defconfig: Enable Qualcomm PM4125 and WSA885X drivers
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
` (5 preceding siblings ...)
2026-10-26 11:44 ` [PATCH v4 v4 6/7] arm64: dts: qcom: shikra-iqs-evk: " Mohammad Rafi Shaik
@ 2026-10-26 11:44 ` Mohammad Rafi Shaik
2026-11-08 20:20 ` (subset) " Bjorn Andersson
2026-10-26 16:12 ` [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Abel Vesa
2026-11-08 20:20 ` Bjorn Andersson
8 siblings, 1 reply; 12+ messages in thread
From: Mohammad Rafi Shaik @ 2026-10-26 11:44 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Mohammad Rafi Shaik, linux-arm-msm, devicetree, linux-kernel
Qualcomm Shikra CQM and CQS EVK boards use the PM4125 audio codec for
headphone playback and capture, and the WSA8855 amplifier for speaker
playback. Enable both drivers as modules in arm64_defconfig so that
audio functionality is available on these boards with the default arm64
configuration.
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
---
arch/arm64/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 7b4985b29b21..bfc3ec713ecd 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1175,6 +1175,7 @@ CONFIG_SND_SOC_GTM601=m
CONFIG_SND_SOC_MAX98090=m
CONFIG_SND_SOC_MSM8916_WCD_ANALOG=m
CONFIG_SND_SOC_MSM8916_WCD_DIGITAL=m
+CONFIG_SND_SOC_PM4125_SDW=m
CONFIG_SND_SOC_RK3308=m
CONFIG_SND_SOC_RK817=m
CONFIG_SND_SOC_RT5640=m
@@ -1197,6 +1198,7 @@ CONFIG_SND_SOC_WM8978=m
CONFIG_SND_SOC_WSA881X=m
CONFIG_SND_SOC_WSA883X=m
CONFIG_SND_SOC_WSA884X=m
+CONFIG_SND_SOC_WSA885X=m
CONFIG_SND_SOC_NAU8822=m
CONFIG_SND_SOC_LPASS_WSA_MACRO=m
CONFIG_SND_SOC_LPASS_VA_MACRO=m
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
` (6 preceding siblings ...)
2026-10-26 11:44 ` [PATCH v4 v4 7/7] arm64: defconfig: Enable Qualcomm PM4125 and WSA885X drivers Mohammad Rafi Shaik
@ 2026-10-26 16:12 ` Abel Vesa
2026-11-08 20:20 ` Bjorn Andersson
8 siblings, 0 replies; 12+ messages in thread
From: Abel Vesa @ 2026-10-26 16:12 UTC (permalink / raw)
To: Mohammad Rafi Shaik
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
linux-kernel, Konrad Dybcio, Harendra Gautam, Ajay Kumar Nandam
On Mon, 26 Oct 2026 17:14:28 +0530, Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com> wrote:
> arm64: dts: qcom: shikra: Enable audio on EVK boards
>
> This series enables the Shikra audio path on EVK targets by adding the QAIF
> CPU endpoint, GPR/APM/PRM services, SoundWire and LPASS macro nodes, and
> board-level sound card wiring for CQM, CQS and IQS variants.
>
> Shikra EVK variants use different audio components and processing
> architectures:
> - CQM/CQS use an I2S-based path with WSA885x amplifiers and
> PM4125 + Rouleur codec components.
> - CQS uses modem-DSP based audio processing.
> - IQS uses a third-party MAX98091 codec with modem-DSP support.
>
> [...]
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
--
Abel Vesa <abel.vesa@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
` (7 preceding siblings ...)
2026-10-26 16:12 ` [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Abel Vesa
@ 2026-11-08 20:20 ` Bjorn Andersson
8 siblings, 0 replies; 12+ messages in thread
From: Bjorn Andersson @ 2026-11-08 20:20 UTC (permalink / raw)
To: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Mohammad Rafi Shaik
Cc: linux-arm-msm, devicetree, linux-kernel, Konrad Dybcio,
Harendra Gautam, Ajay Kumar Nandam
On Mon, 26 Oct 2026 17:14:28 +0530, Mohammad Rafi Shaik wrote:
> This series enables the Shikra audio path on EVK targets by adding the QAIF
> CPU endpoint, GPR/APM/PRM services, SoundWire and LPASS macro nodes, and
> board-level sound card wiring for CQM, CQS and IQS variants.
>
> Shikra EVK variants use different audio components and processing
> architectures:
> - CQM/CQS use an I2S-based path with WSA885x amplifiers and
> PM4125 + Rouleur codec components.
> - CQS uses modem-DSP based audio processing.
> - IQS uses a third-party MAX98091 codec with modem-DSP support.
>
> [...]
Applied, thanks!
[1/7] arm64: dts: qcom: shikra: Add QAIF CPU node for audio
commit: 65039c993039ba7903b01a1b08ae78889da0d719
[2/7] arm64: dts: qcom: shikra: Add gpr node
commit: 388834e31ed2170756c26321620f38b61a9d657d
[3/7] arm64: dts: qcom: shikra: Add soundwire and macro nodes
(no commit info)
[4/7] arm64: dts: qcom: shikra-cqm-evk: Enable sound card support
(no commit info)
[5/7] arm64: dts: qcom: shikra-cqs-evk: Enable sound card support
(no commit info)
[6/7] arm64: dts: qcom: shikra-iqs-evk: Enable sound card support
(no commit info)
[7/7] arm64: defconfig: Enable Qualcomm PM4125 and WSA885X drivers
commit: 6f769d4e24a6b8280edbd0da410183e39f33c25c
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: (subset) [PATCH v4 v4 7/7] arm64: defconfig: Enable Qualcomm PM4125 and WSA885X drivers
2026-10-26 11:44 ` [PATCH v4 v4 7/7] arm64: defconfig: Enable Qualcomm PM4125 and WSA885X drivers Mohammad Rafi Shaik
@ 2026-11-08 20:20 ` Bjorn Andersson
0 siblings, 0 replies; 12+ messages in thread
From: Bjorn Andersson @ 2026-11-08 20:20 UTC (permalink / raw)
To: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Mohammad Rafi Shaik
Cc: linux-arm-msm, devicetree, linux-kernel
On Mon, 26 Oct 2026 17:14:35 +0530, Mohammad Rafi Shaik wrote:
> Qualcomm Shikra CQM and CQS EVK boards use the PM4125 audio codec for
> headphone playback and capture, and the WSA8855 amplifier for speaker
> playback. Enable both drivers as modules in arm64_defconfig so that
> audio functionality is available on these boards with the default arm64
> configuration.
>
>
> [...]
Applied, thanks!
[7/7] arm64: defconfig: Enable Qualcomm PM4125 and WSA885X drivers
commit: 6f769d4e24a6b8280edbd0da410183e39f33c25c
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v4 v4 3/7] arm64: dts: qcom: shikra: Add soundwire and macro nodes
2026-10-26 11:44 ` [PATCH v4 v4 3/7] arm64: dts: qcom: shikra: Add soundwire and macro nodes Mohammad Rafi Shaik
@ 2026-12-04 19:20 ` Bjorn Andersson
0 siblings, 0 replies; 12+ messages in thread
From: Bjorn Andersson @ 2026-12-04 19:20 UTC (permalink / raw)
To: Mohammad Rafi Shaik
Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel
On Mon, Oct 26, 2026 at 05:14:31PM +0530, Mohammad Rafi Shaik wrote:
> Add SoC-level SoundWire masters and LPASS RX/VA macro nodes, along with
> DMIC and SWR pinctrl states required by the audio data path.
>
> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
This still doens't pass dt-validate, dropping them from my queue.
Resubmit once they can be merged.
Thanks,
Bjorn
> ---
> arch/arm64/boot/dts/qcom/shikra.dtsi | 172 +++++++++++++++++++++++++++++++++++
> 1 file changed, 172 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
> index 67ad6c3e34db..f234dcdb9785 100644
> --- a/arch/arm64/boot/dts/qcom/shikra.dtsi
> +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
> @@ -1060,6 +1060,70 @@ sdc2_card_det_n: sd-card-det-n-state {
> drive-strength = <2>;
> bias-pull-up;
> };
> +
> + dmic01_default: dmic01-default-state {
> + clk-pins {
> + pins = "gpio96";
> + function = "dmic";
> + drive-strength = <8>;
> + output-high;
> + };
> +
> + data-pins {
> + pins = "gpio97";
> + function = "dmic";
> + drive-strength = <8>;
> + bias-disable;
> + };
> + };
> +
> + dmic23_default: dmic23-default-state {
> + clk-pins {
> + pins = "gpio98";
> + function = "dmic";
> + drive-strength = <8>;
> + output-high;
> + };
> +
> + data-pins {
> + pins = "gpio99";
> + function = "dmic";
> + drive-strength = <8>;
> + bias-disable;
> + };
> + };
> +
> + tx_swr_active: tx-swr-active-state {
> + clk-pins {
> + pins = "gpio105";
> + function = "swr0_tx";
> + drive-strength = <8>;
> + bias-disable;
> + };
> +
> + data-pins {
> + pins = "gpio106";
> + function = "swr0_tx";
> + drive-strength = <8>;
> + bias-bus-hold;
> + };
> + };
> +
> + rx_swr_active: rx-swr-active-state {
> + clk-pins {
> + pins = "gpio107";
> + function = "swr0_rx";
> + drive-strength = <8>;
> + bias-disable;
> + };
> +
> + data-pins {
> + pins = "gpio108", "gpio109";
> + function = "swr0_rx";
> + drive-strength = <8>;
> + bias-bus-hold;
> + };
> + };
> };
>
> pmu@c91000 {
> @@ -4089,6 +4153,114 @@ qaif_cpu: audio@a000000 {
> status = "disabled";
> };
>
> + rxmacro: codec@a040000 {
> + compatible = "qcom,shikra-lpass-rx-macro";
> + reg = <0x0 0x0a040000 0x0 0x1000>;
> +
> + clocks = <&audiocorecc AUDIO_CORE_CC_RX_MCLK_CLK>,
> + <&audiocorecc AUDIO_CORE_CC_RX_MCLK_2X_CLK>,
> + <&vamacro>;
> + clock-names = "mclk",
> + "npl",
> + "fsgen";
> +
> + #clock-cells = <0>;
> + clock-output-names = "mclk";
> + #sound-dai-cells = <1>;
> +
> + status = "disabled";
> + };
> +
> + swr0: soundwire@a060000 {
> + compatible = "qcom,shikra-soundwire";
> + reg = <0x0 0x0a060000 0x0 0x10000>;
> +
> + interrupts = <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH 0>;
> +
> + clocks = <&rxmacro>;
> + clock-names = "iface";
> + label = "RX";
> +
> + pinctrl-0 = <&rx_swr_active>;
> + pinctrl-names = "default";
> +
> + qcom,din-ports = <0>;
> + qcom,dout-ports = <5>;
> +
> + resets = <&audiocore_csr AUDIO_CORE_CSR_RX_SWR_CGCR>;
> + reset-names = "swr_audio_cgcr";
> +
> + qcom,ports-sinterval-low = /bits/ 8 <0x03 0x1f 0x1f 0x07 0x00>;
> + qcom,ports-offset1 = /bits/ 8 <0x00 0x00 0x0b 0x01 0x00>;
> + qcom,ports-offset2 = /bits/ 8 <0x00 0x00 0x0b 0x00 0x00>;
> + qcom,ports-hstart = /bits/ 8 <0xff 0x03 0xff 0xff 0xff>;
> + qcom,ports-hstop = /bits/ 8 <0xff 0x06 0xff 0xff 0xff>;
> + qcom,ports-word-length = /bits/ 8 <0x01 0x07 0x04 0xff 0xff>;
> + qcom,ports-block-pack-mode = /bits/ 8 <0xff 0x00 0x01 0xff 0xff>;
> + qcom,ports-block-group-count = /bits/ 8 <0xff 0xff 0xff 0xff 0x00>;
> + qcom,ports-lane-control = /bits/ 8 <0x01 0x00 0x00 0x00 0x00>;
> +
> + #sound-dai-cells = <1>;
> + #address-cells = <2>;
> + #size-cells = <0>;
> +
> + status = "disabled";
> + };
> +
> + vamacro: codec@a078000 {
> + compatible = "qcom,shikra-lpass-va-macro";
> + reg = <0x0 0x0a078000 0x0 0x2000>;
> +
> + clocks = <&audiocorecc AUDIO_CORE_CC_TX_MCLK_CLK>,
> + <&audiocorecc AUDIO_CORE_CC_TX_MCLK_2X_CLK>;
> + clock-names = "mclk",
> + "npl";
> +
> + #clock-cells = <0>;
> + clock-output-names = "fsgen";
> + #sound-dai-cells = <1>;
> +
> + status = "disabled";
> + };
> +
> + swr1: soundwire@a080000 {
> + compatible = "qcom,shikra-soundwire";
> + reg = <0x0 0x0a080000 0x0 0x10000>;
> +
> + interrupts = <GIC_SPI 328 IRQ_TYPE_LEVEL_HIGH 0>,
> + <GIC_SPI 406 IRQ_TYPE_LEVEL_HIGH 0>;
> + interrupt-names = "core", "wakeup";
> +
> + clocks = <&vamacro>;
> + clock-names = "iface";
> + label = "VA_TX";
> +
> + pinctrl-0 = <&tx_swr_active>;
> + pinctrl-names = "default";
> +
> + qcom,din-ports = <4>;
> + qcom,dout-ports = <0>;
> +
> + resets = <&audiocore_csr AUDIO_CORE_CSR_TX_SWR_CGCR>;
> + reset-names = "swr_audio_cgcr";
> +
> + qcom,ports-sinterval-low = /bits/ 8 <0x01 0x03 0x03 0x03>;
> + qcom,ports-offset1 = /bits/ 8 <0x00 0x01 0x01 0x01>;
> + qcom,ports-offset2 = /bits/ 8 <0x00 0x00 0x00 0x00>;
> + qcom,ports-hstart = /bits/ 8 <0xff 0xff 0xff 0xff>;
> + qcom,ports-hstop = /bits/ 8 <0xff 0xff 0xff 0xff>;
> + qcom,ports-word-length = /bits/ 8 <0xff 0xff 0xff 0xff>;
> + qcom,ports-block-pack-mode = /bits/ 8 <0xff 0xff 0xff 0xff>;
> + qcom,ports-block-group-count = /bits/ 8 <0xff 0xff 0xff 0xff>;
> + qcom,ports-lane-control = /bits/ 8 <0x01 0x00 0x00 0x00>;
> +
> + #sound-dai-cells = <1>;
> + #address-cells = <2>;
> + #size-cells = <0>;
> +
> + status = "disabled";
> + };
> +
> audiocorecc: clock-controller@a0a0000 {
> compatible = "qcom,shikra-audiocorecc";
> reg = <0x0 0x0a0a0000 0x0 0x10000>;
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2026-12-04 19:20 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-26 11:44 [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 1/7] arm64: dts: qcom: shikra: Add QAIF CPU node for audio Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 2/7] arm64: dts: qcom: shikra: Add gpr node Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 3/7] arm64: dts: qcom: shikra: Add soundwire and macro nodes Mohammad Rafi Shaik
2026-12-04 19:20 ` Bjorn Andersson
2026-10-26 11:44 ` [PATCH v4 v4 4/7] arm64: dts: qcom: shikra-cqm-evk: Enable sound card support Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 5/7] arm64: dts: qcom: shikra-cqs-evk: " Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 6/7] arm64: dts: qcom: shikra-iqs-evk: " Mohammad Rafi Shaik
2026-10-26 11:44 ` [PATCH v4 v4 7/7] arm64: defconfig: Enable Qualcomm PM4125 and WSA885X drivers Mohammad Rafi Shaik
2026-11-08 20:20 ` (subset) " Bjorn Andersson
2026-10-26 16:12 ` [PATCH v4 0/7] arm64: dts: qcom: shikra: Enable audio on EVK boards Abel Vesa
2026-11-08 20:20 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox