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

ASoC: dt-bindings: meson: convert axg spdif output to schema

Convert the DT binding documentation for the Amlogic axg spdif output 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-7-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jerome Brunet and committed by
Mark Brown
32f7b910 ede6aa40

+79 -25
-25
Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.txt
··· 1 - * Amlogic Audio SPDIF Output 2 - 3 - Required properties: 4 - - compatible: 'amlogic,axg-spdifout' or 5 - 'amlogic,g12a-spdifout' or 6 - 'amlogic,sm1-spdifout' 7 - - clocks: list of clock phandle, one for each entry clock-names. 8 - - clock-names: should contain the following: 9 - * "pclk" : peripheral clock. 10 - * "mclk" : master clock 11 - - #sound-dai-cells: must be 0. 12 - 13 - Optional property: 14 - - resets: phandle to the dedicated reset line of the spdif output. 15 - 16 - Example on the A113 SoC: 17 - 18 - spdifout: audio-controller@480 { 19 - compatible = "amlogic,axg-spdifout"; 20 - reg = <0x0 0x480 0x0 0x50>; 21 - #sound-dai-cells = <0>; 22 - clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>, 23 - <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>; 24 - clock-names = "pclk", "mclk"; 25 - };
+79
Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.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-spdifout.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Amlogic Audio AXG SPDIF Output 8 + 9 + maintainers: 10 + - Jerome Brunet <jbrunet@baylibre.com> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - const: amlogic,axg-spdifout 16 + - items: 17 + - enum: 18 + - amlogic,g12a-spdifout 19 + - amlogic,sm1-spdifout 20 + - const: amlogic,axg-spdifout 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + "#sound-dai-cells": 26 + const: 0 27 + 28 + clocks: 29 + items: 30 + - description: Peripheral clock 31 + - description: SPDIF output master clock 32 + 33 + clock-names: 34 + items: 35 + - const: pclk 36 + - const: mclk 37 + 38 + resets: 39 + maxItems: 1 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - "#sound-dai-cells" 45 + - clocks 46 + - clock-names 47 + 48 + allOf: 49 + - $ref: dai-common.yaml# 50 + 51 + - if: 52 + properties: 53 + compatible: 54 + contains: 55 + enum: 56 + - amlogic,g12a-spdifout 57 + - amlogic,sm1-spdifout 58 + then: 59 + required: 60 + - resets 61 + 62 + else: 63 + properties: 64 + resets: false 65 + 66 + unevaluatedProperties: false 67 + 68 + examples: 69 + - | 70 + #include <dt-bindings/clock/axg-audio-clkc.h> 71 + 72 + audio-controller@480 { 73 + compatible = "amlogic,axg-spdifout"; 74 + reg = <0x480 0x50>; 75 + #sound-dai-cells = <0>; 76 + clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>, 77 + <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>; 78 + clock-names = "pclk", "mclk"; 79 + };