]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: ipq5424: Add reserved memory for TF-A
authorVignesh Viswanathan <quic_viswanat@quicinc.com>
Tue, 12 Aug 2025 04:52:12 +0000 (10:22 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 1 Sep 2025 18:03:33 +0000 (13:03 -0500)
IPQ5424 supports both TZ and TF-A as secure software options and various
DDR sizes. In most cases, TF-A or TZ is loaded at the same memory
location, but in the 256MB DDR configuration TF-A is loaded at a different
region.

So, add the reserved memory node for TF-A and keep it disabled by default.
During bootup, U-Boot will detect which secure software is running and
enable or disable the node accordingly.

Signed-off-by: Vignesh Viswanathan <quic_viswanat@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250812-atf-reserved-mem-v2-1-1adb94a998c1@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/ipq5424.dtsi

index 67877fbbdf3a0dcb587e696ed4241f1075000366..ef2b52f3597d9bf218ce7b73d8a65e6745bb26d5 100644 (file)
 
                        hwlocks = <&tcsr_mutex 3>;
                };
+
+               tfa@8a832000 {
+                       reg = <0x0 0x8a832000 0x0 0x7d000>;
+                       no-map;
+                       status = "disabled";
+               };
        };
 
        soc@0 {