]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mediatek: mt8188-geralt: Enable first SCP core
authorChen-Yu Tsai <wenst@chromium.org>
Thu, 14 Aug 2025 09:25:08 +0000 (17:25 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 12 Sep 2025 07:10:33 +0000 (09:10 +0200)
The first SCP core is used to drive the video decoder and encoders.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Fei Shao <fshao@chromium.org>
Link: https://lore.kernel.org/r/20250814092510.211672-1-wenst@chromium.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi

index c5254ae0bb99421c31f0d2630b86e0e2e406e6a5..7fedbacdac44c69a7e2d27bc409c45d4b7fbe3b6 100644 (file)
                #size-cells = <2>;
                ranges;
 
+               scp_mem_reserved: memory@50000000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0 0x50000000 0 0x800000>;
+                       no-map;
+               };
+
                apu_mem: memory@55000000 {
                        compatible = "shared-dma-pool";
                        reg = <0 0x55000000 0 0x1400000>;
                };
        };
 
+       scp_pins: scp-pins {
+               pins-scp-vreq {
+                       pinmux = <PINMUX_GPIO98__FUNC_O_SCP_VREQ_VAO>;
+                       bias-disable;
+               };
+       };
+
        spi0_pins: spi0-pins {
                pins-bus {
                        pinmux = <PINMUX_GPIO69__FUNC_O_SPIM0_CSB>,
        remote-endpoint = <&dither0_in>;
 };
 
+&scp_cluster {
+       status = "okay";
+};
+
+&scp_c0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&scp_pins>;
+       firmware-name = "mediatek/mt8188/scp.img";
+       memory-region = <&scp_mem_reserved>;
+       status = "okay";
+};
+
 &sound {
        pinctrl-names = "aud_etdm_hp_on", "aud_etdm_hp_off",
                        "aud_etdm_spk_on", "aud_etdm_spk_off",