Skip to content

Commit

Permalink
ASoC: dt-bindings: meson: convert axg tdm interface to schema
Browse files Browse the repository at this point in the history
Convert the DT binding documentation for the Amlogic tdm interface to
schema.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230206153449.596326-2-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
jbrun3t authored and broonie committed Feb 7, 2023
1 parent 05f5504 commit cdff911
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.txt

This file was deleted.

55 changes: 55 additions & 0 deletions Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/amlogic,axg-tdm-iface.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Amlogic Audio TDM Interfaces

maintainers:
- Jerome Brunet <jbrunet@baylibre.com>

allOf:
- $ref: dai-common.yaml#

properties:
compatible:
const: amlogic,axg-tdm-iface

"#sound-dai-cells":
const: 0

clocks:
minItems: 2
items:
- description: Bit clock
- description: Sample clock
- description: Master clock #optional

clock-names:
minItems: 2
items:
- const: sclk
- const: lrclk
- const: mclk

required:
- compatible
- "#sound-dai-cells"
- clocks
- clock-names

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/clock/axg-audio-clkc.h>
audio-controller {
compatible = "amlogic,axg-tdm-iface";
#sound-dai-cells = <0>;
clocks = <&clkc_audio AUD_CLKID_MST_A_SCLK>,
<&clkc_audio AUD_CLKID_MST_A_LRCLK>,
<&clkc_audio AUD_CLKID_MST_A_MCLK>;
clock-names = "sclk", "lrclk", "mclk";
};

0 comments on commit cdff911

Please sign in to comment.