[PATCH v2 0/2] soundwire: qcom: Add Shikra soundwire support

From: Mohammad Rafi Shaik

Date: Thu Sep 10 2026 - 02:22:34 EST


This series adds support for the Shikra SoundWire controller.

Unlike existing Qualcomm platforms, Shikra assigns the SoundWire master
controller to EE0 instead of EE1. On SoundWire v2.0 and later hardware,
FIFO, and status registers are banked per Execution Environment (EE),
making the register layout dependent on the EE assignment.

To support this difference, the series introduces a dedicated
qcom,shikra-soundwire compatible and updates the driver to select
the appropriate register layout based on SoC match data. Existing
Soc's continue to use the default EE1 configuration without any
functional changes.

Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@xxxxxxxxxxxxxxxx>
---
Changes in v2:
- Drop qcom,swr-master-ee-val DT property; the EE assignment is a
fixed SoC integration detail, not a board-level property. Encode
it in qcom_swrm_data match data instead and introduce a dedicated
qcom,shikra-soundwire compatible to select EE0 at probe time.
- Remove the dt-bindings patch for qcom,swr-master-ee-val (no longer needed).
- Apply EE stride offset to SWRM_V2_0_CLK_CTRL in qcom_swrm_init()
and swrm_runtime_resume() for correctness on EE0.
- Remove the mmio guard from the INTERRUPT_CPU_EN write; always enable
CPU IRQs for the selected EE window.
- Link to v1: https://patch.msgid.link/20260608175345.3118060-1-mohammad.rafi.shaik@xxxxxxxxxxxxxxxx

To: Rob Herring <robh@xxxxxxxxxx>
To: Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>
To: Conor Dooley <conor+dt@xxxxxxxxxx>
To: Srinivas Kandagatla <srini@xxxxxxxxxx>
To: Rao Mandadapu <quic_srivasam@xxxxxxxxxxx>
To: Vinod Koul <vkoul@xxxxxxxxxx>
To: Bard Liao <yung-chuan.liao@xxxxxxxxxxxxxxx>
To: Pierre-Louis Bossart <pierre-louis.bossart@xxxxxxxxx>
Cc: linux-arm-msm@xxxxxxxxxxxxxxx
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-sound@xxxxxxxxxxxxxxx

---
Mohammad Rafi Shaik (2):
dt-bindings: soundwire: qcom: add qcom,shikra-soundwire compatible
soundwire: qcom: add EE-aware register layout for Shikra

.../bindings/soundwire/qcom,soundwire.yaml | 1 +
drivers/soundwire/qcom.c | 85 ++++++++++++++++++----
2 files changed, 72 insertions(+), 14 deletions(-)
---
base-commit: c68a982815dcce5464e3bf2a31ac94f5146c04ca
change-id: 20260910-shikra_soundwire_support-96dd8130874a

Best regards,
--
Mohammad Rafi Shaik <mohammad.rafi.shaik@xxxxxxxxxxxxxxxx>