[PATCH v4 5/7] Asoc: dt-bindings: qcom,sm8250: Add TDM slot properties
From: Prasad Kumpatla
Date: Sun Jul 12 2026 - 09:42:12 EST
Add 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@xxxxxxxxxxxxxxxx>
---
.../devicetree/bindings/sound/qcom,sm8250.yaml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
index dae440eca..28cf9289a 100644
--- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
@@ -85,12 +85,20 @@ patternProperties:
cpu:
description: Holds subnode which indicates cpu dai.
type: object
+ $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
@@ -103,6 +111,8 @@ patternProperties:
codec:
description: Holds subnode which indicates codec dai.
type: object
+ $ref: tdm-slot.yaml#
+
additionalProperties: false
properties:
@@ -110,6 +120,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