[PATCH v2 2/7] ASoC: dt-bindings: update tdm-slot.txt references to tdm-slot.yaml
Rob Herring
robh at kernel.org
Mon Dec 29 17:32:25 PST 2025
On Sun, Dec 21, 2025 at 07:35:58PM +1000, James Calligeros wrote:
> Ensure that all references to tdm-slot.txt have been updated to
> tdm-slot.yaml, and are schema-compliant.
>
> Signed-off-by: James Calligeros <jcalligeros99 at gmail.com>
> ---
> .../bindings/sound/imx-audio-card.yaml | 14 ++++++--------
> .../bindings/sound/simple-card.yaml | 14 ++------------
> 2 files changed, 8 insertions(+), 20 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/sound/imx-audio-card.yaml b/Documentation/devicetree/bindings/sound/imx-audio-card.yaml
> index 3c75c8c78987..eb702f48d694 100644
> --- a/Documentation/devicetree/bindings/sound/imx-audio-card.yaml
> +++ b/Documentation/devicetree/bindings/sound/imx-audio-card.yaml
> @@ -31,6 +31,12 @@ patternProperties:
> $ref: /schemas/types.yaml#/definitions/string
> maxItems: 1
>
> + dai-tdm-slot-num:
> + $ref: tdm-slot.yaml#/$defs/dai-tdm-slot-num
> +
> + dai-tdm-slot-width:
> + $ref: tdm-slot.yaml#/$defs/dai-tdm-slot-width
Drop these and add just '$ref: tdm-slot.yaml#' up a level (with
'properties').
You may need 'unevaluatedProperties' or you can put
'dai-tdm-slot-num: true' here if you want to define which properties are
used.
> +
> format:
> description: audio format.
> items:
> @@ -38,14 +44,6 @@ patternProperties:
> - i2s
> - dsp_b
>
> - dai-tdm-slot-num:
> - description: see tdm-slot.txt.
> - $ref: /schemas/types.yaml#/definitions/uint32
> -
> - dai-tdm-slot-width:
> - description: see tdm-slot.txt.
> - $ref: /schemas/types.yaml#/definitions/uint32
> -
> playback-only:
> description: link is used only for playback
> $ref: /schemas/types.yaml#/definitions/flag
> diff --git a/Documentation/devicetree/bindings/sound/simple-card.yaml b/Documentation/devicetree/bindings/sound/simple-card.yaml
> index 533d0a1da56e..a14716b2732f 100644
> --- a/Documentation/devicetree/bindings/sound/simple-card.yaml
> +++ b/Documentation/devicetree/bindings/sound/simple-card.yaml
> @@ -27,14 +27,6 @@ definitions:
> description: dai-link uses bit clock inversion
> $ref: /schemas/types.yaml#/definitions/flag
>
> - dai-tdm-slot-num:
> - description: see tdm-slot.txt.
> - $ref: /schemas/types.yaml#/definitions/uint32
> -
> - dai-tdm-slot-width:
> - description: see tdm-slot.txt.
> - $ref: /schemas/types.yaml#/definitions/uint32
> -
> system-clock-frequency:
> description: |
> If a clock is specified and a multiplication factor is given with
> @@ -115,6 +107,8 @@ definitions:
>
> dai:
> type: object
> + $ref: tdm-slot.yaml#
> +
> properties:
> sound-dai:
> maxItems: 1
> @@ -133,10 +127,6 @@ definitions:
> bitclock-master:
> $ref: /schemas/types.yaml#/definitions/flag
>
> - dai-tdm-slot-num:
> - $ref: "#/definitions/dai-tdm-slot-num"
> - dai-tdm-slot-width:
> - $ref: "#/definitions/dai-tdm-slot-width"
> clocks:
> maxItems: 1
> system-clock-frequency:
>
> --
> 2.52.0
>
More information about the linux-arm-kernel
mailing list