]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mediatek: cherry: Add Audio Front End (AFE) support
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 22 Sep 2022 09:49:05 +0000 (11:49 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 9 Jan 2023 16:16:50 +0000 (17:16 +0100)
In preparation for adding audio support, enable the AFE HW with
the appropriate eTDM configuration and memory region.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220922094908.41623-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi

index 560103e29017f805ee412b242fa5a61a0bc1def0..be218fade91a2c7f1a3630b1753b6cd660350482 100644 (file)
                        reg = <0 0x50000000 0 0x2900000>;
                        no-map;
                };
+
+               afe_mem: memory@60d80000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0 0x60d80000 0 0x100000>;
+                       no-map;
+               };
        };
 };
 
+&afe {
+       status = "okay";
+
+       mediatek,etdm-in2-cowork-source = <2>;
+       mediatek,etdm-out2-cowork-source = <0>;
+       memory-region = <&afe_mem>;
+};
+
 &dp_intf0 {
        status = "okay";