[PATCH v10 15/15] arm64: dts: qcom: sa8775p: add a dedicated memory carveout for TZ

Bartosz Golaszewski brgl at bgdev.pl
Mon May 27 05:55:05 PDT 2024


From: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>

Add a 20MB reserved memory region for use by SCM calls.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
---
 arch/arm64/boot/dts/qcom/sa8775p.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
index 31de73594839..c183527452d7 100644
--- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
+++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
@@ -208,6 +208,7 @@ core3 {
 	firmware {
 		scm {
 			compatible = "qcom,scm-sa8775p", "qcom,scm";
+			memory-region = <&tz_ffi_mem>;
 		};
 	};
 
@@ -418,6 +419,12 @@ cdt_data_backup_mem: cdt-data-backup at 91ba0000 {
 			no-map;
 		};
 
+		tz_ffi_mem: tz-ffi at 91c00000 {
+			compatible = "shared-dma-pool";
+			reg = <0x0 0x91c00000 0x0 0x1400000>;
+			no-map;
+		};
+
 		lpass_machine_learning_mem: lpass-machine-learning at 93b00000 {
 			reg = <0x0 0x93b00000 0x0 0xf00000>;
 			no-map;

-- 
2.43.0




More information about the linux-arm-kernel mailing list