arm64: dts: mediatek: mt8186-corsola: Specify sound DAI links and routing

The drivers and bindings acquired support for specifying audio hardware
and links in device tree: describe and link the sound related HW of this
machine.

Link: https://lore.kernel.org/r/20240416071410.75620-19-angelogioacchino.delregno@collabora.comSigned-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
parent 87728e3c
...@@ -42,7 +42,7 @@ backlight_lcd0: backlight-lcd0 { ...@@ -42,7 +42,7 @@ backlight_lcd0: backlight-lcd0 {
default-brightness-level = <576>; default-brightness-level = <576>;
}; };
bt-sco-codec { bt-sco {
compatible = "linux,bt-sco"; compatible = "linux,bt-sco";
#sound-dai-cells = <0>; #sound-dai-cells = <0>;
}; };
...@@ -223,12 +223,44 @@ sound: sound { ...@@ -223,12 +223,44 @@ sound: sound {
mediatek,adsp = <&adsp>; mediatek,adsp = <&adsp>;
mediatek,platform = <&afe>; mediatek,platform = <&afe>;
playback-codecs { audio-routing =
sound-dai = <&it6505dptx>, <&rt1019p>; "Headphone", "HPOL",
"Headphone", "HPOR",
"IN1P", "Headset Mic",
"Speakers", "Speaker",
"HDMI1", "TX";
hs-playback-dai-link {
link-name = "I2S0";
dai-format = "i2s";
mediatek,clk-provider = "cpu";
codec {
sound-dai = <&rt5682s 0>;
};
};
hs-capture-dai-link {
link-name = "I2S1";
dai-format = "i2s";
mediatek,clk-provider = "cpu";
codec {
sound-dai = <&rt5682s 0>;
};
}; };
headset-codec { spk-share-dai-link {
sound-dai = <&rt5682s 0>; link-name = "I2S2";
mediatek,clk-provider = "cpu";
};
spk-hdmi-playback-dai-link {
link-name = "I2S3";
dai-format = "i2s";
mediatek,clk-provider = "cpu";
/* RT1019P and IT6505 connected to the same I2S line */
codec {
sound-dai = <&it6505dptx>, <&rt1019p>;
};
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment