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: convert amlogic,g12a-tohdmitx to dt-schema

Convert text bindings to dt-schema format for the Amlogic TX HDMI
control glue.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://msgid.link/r/20240606-topic-amlogic-upstream-bindings-convert-g12a-tohdmitx-v2-1-70d44fa30790@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Neil Armstrong and committed by
Mark Brown
a1708fda 522f88da

+54 -58
-58
Documentation/devicetree/bindings/sound/amlogic,g12a-tohdmitx.txt
··· 1 - * Amlogic HDMI Tx control glue 2 - 3 - Required properties: 4 - - compatible: "amlogic,g12a-tohdmitx" or 5 - "amlogic,sm1-tohdmitx" 6 - - reg: physical base address of the controller and length of memory 7 - mapped region. 8 - - #sound-dai-cells: should be 1. 9 - - resets: phandle to the dedicated reset line of the hdmitx glue. 10 - 11 - Example on the S905X2 SoC: 12 - 13 - tohdmitx: audio-controller@744 { 14 - compatible = "amlogic,g12a-tohdmitx"; 15 - reg = <0x0 0x744 0x0 0x4>; 16 - #sound-dai-cells = <1>; 17 - resets = <&clkc_audio AUD_RESET_TOHDMITX>; 18 - }; 19 - 20 - Example of an 'amlogic,axg-sound-card': 21 - 22 - sound { 23 - compatible = "amlogic,axg-sound-card"; 24 - 25 - [...] 26 - 27 - dai-link-x { 28 - sound-dai = <&tdmif_a>; 29 - dai-format = "i2s"; 30 - dai-tdm-slot-tx-mask-0 = <1 1>; 31 - 32 - codec-0 { 33 - sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>; 34 - }; 35 - 36 - codec-1 { 37 - sound-dai = <&external_dac>; 38 - }; 39 - }; 40 - 41 - dai-link-y { 42 - sound-dai = <&tdmif_c>; 43 - dai-format = "i2s"; 44 - dai-tdm-slot-tx-mask-0 = <1 1>; 45 - 46 - codec { 47 - sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>; 48 - }; 49 - }; 50 - 51 - dai-link-z { 52 - sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; 53 - 54 - codec { 55 - sound-dai = <&hdmi_tx>; 56 - }; 57 - }; 58 - };
+54
Documentation/devicetree/bindings/sound/amlogic,g12a-tohdmitx.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/amlogic,g12a-tohdmitx.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Amlogic G12a HDMI TX Control Glue 8 + 9 + maintainers: 10 + - Jerome Brunet <jbrunet@baylibre.com> 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + $nodename: 17 + pattern: "^audio-controller@.*" 18 + 19 + compatible: 20 + oneOf: 21 + - items: 22 + - const: amlogic,g12a-tohdmitx 23 + - items: 24 + - enum: 25 + - amlogic,sm1-tohdmitx 26 + - const: amlogic,g12a-tohdmitx 27 + 28 + reg: 29 + maxItems: 1 30 + 31 + resets: 32 + maxItems: 1 33 + 34 + "#sound-dai-cells": 35 + const: 1 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - resets 41 + - "#sound-dai-cells" 42 + 43 + unevaluatedProperties: false 44 + 45 + examples: 46 + - | 47 + #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h> 48 + 49 + tohdmitx: audio-controller@744 { 50 + compatible = "amlogic,g12a-tohdmitx"; 51 + reg = <0x744 0x4>; 52 + resets = <&clkc_audio AUD_RESET_TOHDMITX>; 53 + #sound-dai-cells = <1>; 54 + };