[PATCH v3 5/7] dt-bindings: sound: qcom,sm8250: allow TDM slot properties

From: Prasad Kumpatla

Date: Tue Jul 07 2026 - 15:05:07 EST


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@xxxxxxxxxxxxxxxx>
---
.../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