* [PATCH v2] arm64: dts: qcom: ipq5424: Add reserved memory for TF-A
@ 2025-08-12 4:52 Kathiravan Thirumoorthy
2025-08-25 12:00 ` Kathiravan Thirumoorthy
2025-09-01 19:45 ` Bjorn Andersson
0 siblings, 2 replies; 3+ messages in thread
From: Kathiravan Thirumoorthy @ 2025-08-12 4:52 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Vignesh Viswanathan,
Konrad Dybcio, Kathiravan Thirumoorthy
From: Vignesh Viswanathan <quic_viswanat@quicinc.com>
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>
---
- Rebased on next-20250812
- Picked up R-b tag
- Link to v1:
https://lore.kernel.org/linux-arm-msm/20250624-atf-reserved-mem-v1-1-43b1940e2853@oss.qualcomm.com/
---
arch/arm64/boot/dts/qcom/ipq5424.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/ipq5424.dtsi b/arch/arm64/boot/dts/qcom/ipq5424.dtsi
index 2eea8a078595103ca2d3912f41e3594820b52771..e31e328bdf0e9aaaec3019e5a7bd71c7126e5fa8 100644
--- a/arch/arm64/boot/dts/qcom/ipq5424.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq5424.dtsi
@@ -163,6 +163,12 @@ smem@8a800000 {
hwlocks = <&tcsr_mutex 3>;
};
+
+ tfa@8a832000 {
+ reg = <0x0 0x8a832000 0x0 0x7d000>;
+ no-map;
+ status = "disabled";
+ };
};
soc@0 {
---
base-commit: 2674d1eadaa2fd3a918dfcdb6d0bb49efe8a8bb9
change-id: 20250812-atf-reserved-mem-bf388e366f75
Best regards,
--
Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] arm64: dts: qcom: ipq5424: Add reserved memory for TF-A
2025-08-12 4:52 [PATCH v2] arm64: dts: qcom: ipq5424: Add reserved memory for TF-A Kathiravan Thirumoorthy
@ 2025-08-25 12:00 ` Kathiravan Thirumoorthy
2025-09-01 19:45 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Kathiravan Thirumoorthy @ 2025-08-25 12:00 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Vignesh Viswanathan,
Konrad Dybcio
On 8/12/2025 10:22 AM, Kathiravan Thirumoorthy wrote:
> From: Vignesh Viswanathan <quic_viswanat@quicinc.com>
>
> 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.
Bjorn, is this change still in your review queue? do you plan to take
this patch for v6.18 or any suggestions on this?
>
> 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>
> ---
> - Rebased on next-20250812
> - Picked up R-b tag
> - Link to v1:
> https://lore.kernel.org/linux-arm-msm/20250624-atf-reserved-mem-v1-1-43b1940e2853@oss.qualcomm.com/
> ---
> arch/arm64/boot/dts/qcom/ipq5424.dtsi | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/ipq5424.dtsi b/arch/arm64/boot/dts/qcom/ipq5424.dtsi
> index 2eea8a078595103ca2d3912f41e3594820b52771..e31e328bdf0e9aaaec3019e5a7bd71c7126e5fa8 100644
> --- a/arch/arm64/boot/dts/qcom/ipq5424.dtsi
> +++ b/arch/arm64/boot/dts/qcom/ipq5424.dtsi
> @@ -163,6 +163,12 @@ smem@8a800000 {
>
> hwlocks = <&tcsr_mutex 3>;
> };
> +
> + tfa@8a832000 {
> + reg = <0x0 0x8a832000 0x0 0x7d000>;
> + no-map;
> + status = "disabled";
> + };
> };
>
> soc@0 {
>
> ---
> base-commit: 2674d1eadaa2fd3a918dfcdb6d0bb49efe8a8bb9
> change-id: 20250812-atf-reserved-mem-bf388e366f75
>
> Best regards,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] arm64: dts: qcom: ipq5424: Add reserved memory for TF-A
2025-08-12 4:52 [PATCH v2] arm64: dts: qcom: ipq5424: Add reserved memory for TF-A Kathiravan Thirumoorthy
2025-08-25 12:00 ` Kathiravan Thirumoorthy
@ 2025-09-01 19:45 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2025-09-01 19:45 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Kathiravan Thirumoorthy
Cc: linux-arm-msm, devicetree, linux-kernel, Vignesh Viswanathan,
Konrad Dybcio
On Tue, 12 Aug 2025 10:22:12 +0530, Kathiravan Thirumoorthy wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] arm64: dts: qcom: ipq5424: Add reserved memory for TF-A
commit: 8517204c982b1b36db766099a38cf752258dcd06
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-01 19:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12 4:52 [PATCH v2] arm64: dts: qcom: ipq5424: Add reserved memory for TF-A Kathiravan Thirumoorthy
2025-08-25 12:00 ` Kathiravan Thirumoorthy
2025-09-01 19:45 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).