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