xref: /freebsd/sys/contrib/device-tree/Bindings/sound/mt8173-rt5650.txt (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1MT8173 with RT5650 CODECS and HDMI via I2S
2
3Required properties:
4- compatible : "mediatek,mt8173-rt5650"
5- mediatek,audio-codec: the phandles of rt5650 codecs
6                        and of the hdmi encoder node
7- mediatek,platform: the phandle of MT8173 ASoC platform
8
9Optional subnodes:
10- codec-capture : the subnode of rt5650 codec capture
11Required codec-capture subnode properties:
12- sound-dai: audio codec dai name on capture path
13  <&rt5650 0> : Default setting. Connect rt5650 I2S1 for capture. (dai_name = rt5645-aif1)
14  <&rt5650 1> : Connect rt5650 I2S2 for capture. (dai_name = rt5645-aif2)
15
16- mediatek,mclk: the MCLK source
17  0 : external oscillator, MCLK = 12.288M
18  1 : internal source from mt8173, MCLK = sampling rate*256
19
20Example:
21
22	sound {
23		compatible = "mediatek,mt8173-rt5650";
24		mediatek,audio-codec = <&rt5650 &hdmi0>;
25		mediatek,platform = <&afe>;
26		mediatek,mclk = <0>;
27		codec-capture {
28			sound-dai = <&rt5650 1>;
29		};
30	};
31
32