forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: dt-bindings: meson: convert axg tdm interface to schema
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
Showing
2 changed files
with
55 additions
and
22 deletions.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.txt
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; |