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

ASoC: meson: add tohdmitx DT bindings

Add the bindings and the related documentation for the audio hdmitx
control glue of the Amlogic g12a SoC family

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jerome Brunet and committed by
Mark Brown
e35f5ad6 c3456a4b

+68
+55
Documentation/devicetree/bindings/sound/amlogic,g12a-tohdmitx.txt
··· 1 + * Amlogic HDMI Tx control glue 2 + 3 + Required properties: 4 + - compatible: "amlogic,g12a-tohdmitx" 5 + - reg: physical base address of the controller and length of memory 6 + mapped region. 7 + - #sound-dai-cells: should be 1. 8 + 9 + Example on the S905X2 SoC: 10 + 11 + tohdmitx: audio-controller@744 { 12 + compatible = "amlogic,g12a-tohdmitx"; 13 + reg = <0x0 0x744 0x0 0x4>; 14 + #sound-dai-cells = <1>; 15 + }; 16 + 17 + Example of an 'amlogic,axg-sound-card': 18 + 19 + sound { 20 + compatible = "amlogic,axg-sound-card"; 21 + 22 + [...] 23 + 24 + dai-link-x { 25 + sound-dai = <&tdmif_a>; 26 + dai-format = "i2s"; 27 + dai-tdm-slot-tx-mask-0 = <1 1>; 28 + 29 + codec-0 { 30 + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>; 31 + }; 32 + 33 + codec-1 { 34 + sound-dai = <&external_dac>; 35 + }; 36 + }; 37 + 38 + dai-link-y { 39 + sound-dai = <&tdmif_c>; 40 + dai-format = "i2s"; 41 + dai-tdm-slot-tx-mask-0 = <1 1>; 42 + 43 + codec { 44 + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>; 45 + }; 46 + }; 47 + 48 + dai-link-z { 49 + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; 50 + 51 + codec { 52 + sound-dai = <&hdmi_tx>; 53 + }; 54 + }; 55 + };
+13
include/dt-bindings/sound/meson-g12a-tohdmitx.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef __DT_MESON_G12A_TOHDMITX_H 3 + #define __DT_MESON_G12A_TOHDMITX_H 4 + 5 + #define TOHDMITX_I2S_IN_A 0 6 + #define TOHDMITX_I2S_IN_B 1 7 + #define TOHDMITX_I2S_IN_C 2 8 + #define TOHDMITX_I2S_OUT 3 9 + #define TOHDMITX_SPDIF_IN_A 4 10 + #define TOHDMITX_SPDIF_IN_B 5 11 + #define TOHDMITX_SPDIF_OUT 6 12 + 13 + #endif /* __DT_MESON_G12A_TOHDMITX_H */