mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
dt-bindings: sound: qcom,sm8250: allow TDM slot properties
Allow standard dai-tdm-slot-* properties in the CPU and codec child nodes of a DAI link. The QCOM machine driver parses these child nodes to configure TDM slots on the active CPU and codec DAIs. The properties are already defined by the common tdm-slot binding, but qcom,sm8250.yaml currently rejects them because the CPU and codec child nodes set additionalProperties: false. Permit dai-tdm-slot-num, dai-tdm-slot-width and dai-tdm-slot-[rt]x-mask there so boards using TDM backends can describe the slot layout without schema warnings. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com> Link: https://patch.msgid.link/20260804070307.117119-6-prasad.kumpatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d6a4a2e190
commit
269b23d513
|
|
@ -95,6 +95,19 @@ patternProperties:
|
|||
sound-dai:
|
||||
maxItems: 1
|
||||
|
||||
dai-tdm-slot-num:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: Number of slots in use
|
||||
|
||||
dai-tdm-slot-width:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: Width, in bits, of each slot
|
||||
|
||||
patternProperties:
|
||||
'^dai-tdm-slot-[rt]x-mask$':
|
||||
$ref: /schemas/types.yaml#/definitions/uint32-array
|
||||
description: Slot mask for active TDM slots
|
||||
|
||||
platform:
|
||||
description: Holds subnode which indicates platform dai.
|
||||
type: object
|
||||
|
|
@ -114,6 +127,19 @@ patternProperties:
|
|||
minItems: 1
|
||||
maxItems: 8
|
||||
|
||||
dai-tdm-slot-num:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: Number of slots in use
|
||||
|
||||
dai-tdm-slot-width:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: Width, in bits, of each slot
|
||||
|
||||
patternProperties:
|
||||
'^dai-tdm-slot-[rt]x-mask$':
|
||||
$ref: /schemas/types.yaml#/definitions/uint32-array
|
||||
description: Slot mask for active TDM slots
|
||||
|
||||
required:
|
||||
- link-name
|
||||
- cpu
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user