Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Jerome Brunet and committed by
Mark Brown
cdff9112 05f5504b

+55 -22
-22
Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.txt
··· 1 - * Amlogic Audio TDM Interfaces 2 - 3 - Required properties: 4 - - compatible: 'amlogic,axg-tdm-iface' 5 - - clocks: list of clock phandle, one for each entry clock-names. 6 - - clock-names: should contain the following: 7 - * "sclk" : bit clock. 8 - * "lrclk": sample clock 9 - * "mclk" : master clock 10 - -> optional if the interface is in clock slave mode. 11 - - #sound-dai-cells: must be 0. 12 - 13 - Example of TDM_A on the A113 SoC: 14 - 15 - tdmif_a: audio-controller@0 { 16 - compatible = "amlogic,axg-tdm-iface"; 17 - #sound-dai-cells = <0>; 18 - clocks = <&clkc_audio AUD_CLKID_MST_A_MCLK>, 19 - <&clkc_audio AUD_CLKID_MST_A_SCLK>, 20 - <&clkc_audio AUD_CLKID_MST_A_LRCLK>; 21 - clock-names = "mclk", "sclk", "lrclk"; 22 - };
+55
Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/amlogic,axg-tdm-iface.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Amlogic Audio TDM Interfaces 8 + 9 + maintainers: 10 + - Jerome Brunet <jbrunet@baylibre.com> 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: amlogic,axg-tdm-iface 18 + 19 + "#sound-dai-cells": 20 + const: 0 21 + 22 + clocks: 23 + minItems: 2 24 + items: 25 + - description: Bit clock 26 + - description: Sample clock 27 + - description: Master clock #optional 28 + 29 + clock-names: 30 + minItems: 2 31 + items: 32 + - const: sclk 33 + - const: lrclk 34 + - const: mclk 35 + 36 + required: 37 + - compatible 38 + - "#sound-dai-cells" 39 + - clocks 40 + - clock-names 41 + 42 + unevaluatedProperties: false 43 + 44 + examples: 45 + - | 46 + #include <dt-bindings/clock/axg-audio-clkc.h> 47 + 48 + audio-controller { 49 + compatible = "amlogic,axg-tdm-iface"; 50 + #sound-dai-cells = <0>; 51 + clocks = <&clkc_audio AUD_CLKID_MST_A_SCLK>, 52 + <&clkc_audio AUD_CLKID_MST_A_LRCLK>, 53 + <&clkc_audio AUD_CLKID_MST_A_MCLK>; 54 + clock-names = "sclk", "lrclk", "mclk"; 55 + };