]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
arm64: dts: mediatek: mt8186-corsola: Specify sound DAI links and routing
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 16 Apr 2024 07:14:10 +0000 (09:14 +0200)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 27 Jun 2024 08:10:21 +0000 (10:10 +0200)
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.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi

index 1807e9d6cb0e4123329c5b369fc83a61f7677721..afdab5724eaaac2da889ba93d018f349b78d5d5f 100644 (file)
@@ -42,7 +42,7 @@
                default-brightness-level = <576>;
        };
 
-       bt-sco-codec {
+       bt-sco {
                compatible = "linux,bt-sco";
                #sound-dai-cells = <0>;
        };
                mediatek,adsp = <&adsp>;
                mediatek,platform = <&afe>;
 
-               playback-codecs {
-                       sound-dai = <&it6505dptx>, <&rt1019p>;
+               audio-routing =
+                       "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 {
-                       sound-dai = <&rt5682s 0>;
+               spk-share-dai-link {
+                       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>;
+                       };
                };
        };