[PATCH v2 29/33] ARM: dts: k3-am62l: reserve memory for TF-A and OP-TEE

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Jun 16 05:01:08 PDT 2025



On 6/5/25 14:42, Sascha Hauer wrote:
> On the AM62l the TF-A is placed at the start of the DRAM. Reserve space
> for it. For now put it into the SoC dtsi file in the hope that the
> values are suitable for all boards.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  arch/arm/dts/k3-am62l-barebox.dtsi | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/arch/arm/dts/k3-am62l-barebox.dtsi b/arch/arm/dts/k3-am62l-barebox.dtsi
> index 9fe44a67ee7374e6c6d9052dc8ea0f31d2e8f4a1..fa253dd08ee9c117bedff9f981aa76e024d3cca8 100644
> --- a/arch/arm/dts/k3-am62l-barebox.dtsi
> +++ b/arch/arm/dts/k3-am62l-barebox.dtsi
> @@ -14,3 +14,22 @@ &gpio2 {
>  &wkup_gpio0 {
>  	status = "okay";
>  };
> +
> +/ {
> +	reserved-memory {
> +		#address-cells = <2>;
> +		#size-cells = <2>;
> +		ranges;
> +
> +		tfa at 80000000 {
> +			reg = <0x0 0x80000000 0x0 0x80000>;
> +			alignment = <0x1000>;

Not sure alignment makes sense if you already have reg.

> +			no-map;
> +		};
> +
> +		secure_ddr: optee at 80200000 {
> +			reg = <0x00 0x80200000 0x00 0x400000>;
> +			no-map;
> +		};
> +	};
> +};
> 

-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list