xref: /freebsd/sys/contrib/device-tree/Bindings/sound/amlogic,g12a-tohdmitx.txt (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1* Amlogic HDMI Tx control glue
2
3Required 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
11Example on the S905X2 SoC:
12
13tohdmitx: 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
20Example of an 'amlogic,axg-sound-card':
21
22sound {
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};
59