Commit b10e80b1 authored by Nícolas F. R. A. Prado's avatar Nícolas F. R. A. Prado Committed by Matthias Brugger

arm64: dts: mediatek: asurada: Enable SCP

Enable support for the SCP co-processor present on MT8192. It is used
as part of the video encoding and decoding processes.

A region of memory is carved out for its use, and remoteproc setup for
communication with the ChromeOS EC.
Signed-off-by: default avatarNícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: default avatarChen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20220629155956.1138955-19-nfraprado@collabora.comSigned-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 15306b90
...@@ -105,6 +105,12 @@ reserved_memory: reserved-memory { ...@@ -105,6 +105,12 @@ reserved_memory: reserved-memory {
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
scp_mem_reserved: scp@50000000 {
compatible = "shared-dma-pool";
reg = <0 0x50000000 0 0x2900000>;
no-map;
};
wifi_restricted_dma_region: wifi@c0000000 { wifi_restricted_dma_region: wifi@c0000000 {
compatible = "restricted-dma-pool"; compatible = "restricted-dma-pool";
reg = <0 0xc0000000 0 0x4000000>; reg = <0 0xc0000000 0 0x4000000>;
...@@ -680,6 +686,12 @@ pins-pcie-en-pp3300-wlan { ...@@ -680,6 +686,12 @@ pins-pcie-en-pp3300-wlan {
}; };
}; };
scp_pins: scp-pins {
pins-vreq-vao {
pinmux = <PINMUX_GPIO195__FUNC_SCP_VREQ_VAO>;
};
};
spi1_pins: spi1-default-pins { spi1_pins: spi1-default-pins {
pins-cs-mosi-clk { pins-cs-mosi-clk {
pinmux = <PINMUX_GPIO157__FUNC_SPI1_A_CSB>, pinmux = <PINMUX_GPIO157__FUNC_SPI1_A_CSB>,
...@@ -735,6 +747,20 @@ &pmic { ...@@ -735,6 +747,20 @@ &pmic {
interrupts-extended = <&pio 214 IRQ_TYPE_LEVEL_HIGH>; interrupts-extended = <&pio 214 IRQ_TYPE_LEVEL_HIGH>;
}; };
&scp {
status = "okay";
firmware-name = "mediatek/mt8192/scp.img";
memory-region = <&scp_mem_reserved>;
pinctrl-names = "default";
pinctrl-0 = <&scp_pins>;
cros-ec {
compatible = "google,cros-ec-rpmsg";
mediatek,rpmsg-name = "cros-ec-rpmsg";
};
};
&spi1 { &spi1 {
status = "okay"; status = "okay";
......
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