Devicetree
 help / color / mirror / Atom feed
From: Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
To: Srinivas Kandagatla <srini@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>
Cc: linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
Subject: [PATCH v3 5/7] dt-bindings: sound: qcom,sm8250: allow TDM slot properties
Date: Wed,  8 Jul 2026 00:31:04 +0530	[thread overview]
Message-ID: <20260707190106.2876465-6-prasad.kumpatla@oss.qualcomm.com> (raw)
In-Reply-To: <20260707190106.2876465-1-prasad.kumpatla@oss.qualcomm.com>

Allow the standard TDM slot properties in CPU and codec endpoint
nodes.

Some audio backends operate in TDM mode and require the slot
configuration to be described in Devicetree. The common TDM binding
defines dai-tdm-slot-num, dai-tdm-slot-width,
dai-tdm-slot-tx-mask and dai-tdm-slot-rx-mask for this purpose.

Permit these standard properties in endpoint nodes so TDM-capable
links can describe their slot configuration using the common binding.

Signed-off-by: Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
---
 .../devicetree/bindings/sound/qcom,sm8250.yaml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
index 15f38622b..a45a1a00f 100644
--- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
@@ -84,12 +84,21 @@ patternProperties:
       cpu:
         description: Holds subnode which indicates cpu dai.
         type: object
+        allOf:
+          - $ref: "tdm-slot.yaml#"
+
         additionalProperties: false
 
         properties:
           sound-dai:
             maxItems: 1
 
+          dai-tdm-slot-num: true
+          dai-tdm-slot-width: true
+
+        patternProperties:
+          '^dai-tdm-slot-[rt]x-mask$': true
+
       platform:
         description: Holds subnode which indicates platform dai.
         type: object
@@ -102,6 +111,9 @@ patternProperties:
       codec:
         description: Holds subnode which indicates codec dai.
         type: object
+        allOf:
+          - $ref: "tdm-slot.yaml#"
+
         additionalProperties: false
 
         properties:
@@ -109,6 +121,12 @@ patternProperties:
             minItems: 1
             maxItems: 8
 
+          dai-tdm-slot-num: true
+          dai-tdm-slot-width: true
+
+        patternProperties:
+          '^dai-tdm-slot-[rt]x-mask$': true
+
     required:
       - link-name
       - cpu
-- 
2.34.1


  parent reply	other threads:[~2026-07-07 19:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 19:00 [PATCH v3 0/7]ASoC: qcom: add AudioReach TDM backend support Prasad Kumpatla
2026-07-07 19:01 ` [PATCH v3 1/7] ASoC: qcom: qdsp6: add topology-driven Audio IF support Prasad Kumpatla
2026-07-07 19:01 ` [PATCH v3 2/7] ASoC: qcom: q6apm-lpass-dais: add TDM DAI operations Prasad Kumpatla
2026-07-07 19:01 ` [PATCH v3 3/7] dt-bindings: sound: qcom,q6dsp-lpass-ports: add Audio IF clocks Prasad Kumpatla
2026-07-08  6:53   ` Krzysztof Kozlowski
2026-07-08  6:54     ` Krzysztof Kozlowski
2026-07-07 19:01 ` [PATCH v3 4/7] ASoC: qcom: q6prm: add Audio IF clock IDs Prasad Kumpatla
2026-07-07 19:01 ` Prasad Kumpatla [this message]
2026-07-07 20:33   ` [PATCH v3 5/7] dt-bindings: sound: qcom,sm8250: allow TDM slot properties Rob Herring (Arm)
2026-07-08 18:34   ` Rob Herring
2026-07-07 19:01 ` [PATCH v3 6/7] ASoC: qcom: common: add DAI-node TDM slot helpers Prasad Kumpatla
2026-07-07 19:01 ` [PATCH v3 7/7] ASoC: qcom: sc8280xp: add TDM hw_params support Prasad Kumpatla

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=20260707190106.2876465-6-prasad.kumpatla@oss.qualcomm.com \
    --to=prasad.kumpatla@oss.qualcomm.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --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=srini@kernel.org \
    --cc=tiwai@suse.com \
    /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