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