mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mohit Sharma <mohit.sharma@oss.qualcomm.com>
To: Srinivas Kandagatla <srini@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Mark Brown <broonie@kernel.org>
Cc: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Rob Clark <robin.clark@oss.qualcomm.com>,
	Will Deacon <will@kernel.org>,
	Robin Murphy <robin.murphy@arm.com>,
	Joerg Roedel <joro@8bytes.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
	Takashi Iwai <tiwai@suse.com>,
	linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org, iommu@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Mohit Sharma <mohit.sharma@oss.qualcomm.com>
Subject: [PATCH v2 1/4] ASoC: dt-bindings: qcom,q6apm-dai: Add Shikra support
Date: Fri, 27 Nov 2026 14:18:23 +0530	[thread overview]
Message-ID: <20261127084826.916361-2-mohit.sharma@oss.qualcomm.com> (raw)
In-Reply-To: <20261127084826.916361-1-mohit.sharma@oss.qualcomm.com>

Shikra's q6apm DAI needs a SoC-specific compatible so that the Qualcomm
SMMU implementation can select the identity domain required by its
firmware ABI. The ASoC driver continues to bind using the generic
fallback compatible.

Shikra uses a reserved-memory carveout as the backing pool for its
audio DMA heap. When Linux runs under KVM/EL2, it also owns the apps SMMU
and the EL2 overlay adds an iommus property to the DAI node. The resulting
tree contains both memory-region and iommus, describing the allocation
pool and the mDSP address translation respectively.

Allow the Shikra compatible followed by the existing generic compatible.
Replace oneOf with anyOf so at least one memory description remains
required while permitting both properties in the Shikra EL2 tree.

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: Mohit Sharma <mohit.sharma@oss.qualcomm.com>
---
 .../devicetree/bindings/sound/qcom,q6apm-dai.yaml         | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml
index c1f9fc9eab64..8ad20f95c814 100644
--- a/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml
@@ -14,7 +14,11 @@ description: |
 
 properties:
   compatible:
-    const: qcom,q6apm-dais
+    oneOf:
+      - const: qcom,q6apm-dais
+      - items:
+          - const: qcom,shikra-q6apm-dais
+          - const: qcom,q6apm-dais
 
   iommus:
     minItems: 1
@@ -33,7 +37,7 @@ properties:
 required:
   - compatible
 
-oneOf:
+anyOf:
   - required:
       - iommus
   - required:
-- 
2.34.1

  reply	other threads:[~2026-11-27  8:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 16:47 [PATCH 0/4] Fix Shikra q6apm DAI under KVM/EL2 Mohit Sharma
2026-11-19 16:47 ` [PATCH 1/4] dt-bindings: sound: qcom,q6apm-dai: allow Shikra compatible Mohit Sharma
2026-11-19 23:08   ` Mark Brown
2026-11-19 16:47 ` [PATCH 2/4] iommu: arm-smmu-qcom: use identity domain for Shikra q6apm DAI Mohit Sharma
2026-11-19 16:47 ` [PATCH 3/4] arm64: dts: qcom: shikra: add q6apm DAI compatible Mohit Sharma
2026-11-19 16:47 ` [PATCH 4/4] ASoC: qcom: q6apm-dai: allow the mDSP IOMMU path Mohit Sharma
2026-11-27  8:48 ` [PATCH v2 0/4] Fix Shikra q6apm DAI under KVM/EL2 Mohit Sharma
2026-11-27  8:48   ` Mohit Sharma [this message]
2026-11-27  8:48   ` [PATCH v2 2/4] iommu/arm-smmu-qcom: Use identity domain for Shikra q6apm DAI Mohit Sharma
2026-11-27  8:48   ` [PATCH v2 3/4] arm64: dts: qcom: shikra: Add q6apm DAI compatible Mohit Sharma
2026-11-27  8:48   ` [PATCH v2 4/4] ASoC: qcom: q6apm-dai: Allow the mDSP IOMMU path Mohit Sharma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261127084826.916361-2-mohit.sharma@oss.qualcomm.com \
    --to=mohit.sharma@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=ajay.nandam@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=robin.clark@oss.qualcomm.com \
    --cc=robin.murphy@arm.com \
    --cc=srini@kernel.org \
    --cc=tiwai@suse.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®