linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: ti: k3-am64-main: Update the location of ATF in SRAM and increase its max size
@ 2021-06-04 16:43 Aswath Govindraju
  2021-06-07 13:28 ` Nishanth Menon
  0 siblings, 1 reply; 3+ messages in thread
From: Aswath Govindraju @ 2021-06-04 16:43 UTC (permalink / raw)
  Cc: Lokesh Vutla, Vignesh Raghavendra, Suman Anna,
	Kishon Vijay Abraham I, Aswath Govindraju, Nishanth Menon,
	Tero Kristo, Rob Herring, linux-arm-kernel, devicetree,
	linux-kernel

Due to a limitation for USB DFU boot mode, SPL load address has to be less
than  or equal to 0x70001000. So, load address of SPL and ATF have been
moved to 0x70000000 and 0x701a0000 respectively.

Also, the maximum size of ATF has been increased to 0x1c000 [1].

Therefore, update ATF's location and maximum size accordingly in the device
tree file.

[1] - https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/commit/?id=2fb5312f61a7de8b7a70e1639199c4f14a10b6f9

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
---

Link to corresponding U-Boot series that makes the ATF load address update,
- https://patchwork.ozlabs.org/project/uboot/list/?series=247265

 arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
index ca59d1f711f8..7ae28992097f 100644
--- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
@@ -14,7 +14,7 @@
 		ranges = <0x0 0x00 0x70000000 0x200000>;
 
 		atf-sram@0 {
-			reg = <0x0 0x1a000>;
+			reg = <0x1a0000 0x1c000>;
 		};
 	};
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: ti: k3-am64-main: Update the location of ATF in SRAM and increase its max size
  2021-06-04 16:43 [PATCH] arm64: dts: ti: k3-am64-main: Update the location of ATF in SRAM and increase its max size Aswath Govindraju
@ 2021-06-07 13:28 ` Nishanth Menon
  2021-06-07 13:30   ` Aswath Govindraju
  0 siblings, 1 reply; 3+ messages in thread
From: Nishanth Menon @ 2021-06-07 13:28 UTC (permalink / raw)
  To: Aswath Govindraju
  Cc: Lokesh Vutla, Vignesh Raghavendra, Suman Anna,
	Kishon Vijay Abraham I, Tero Kristo, Rob Herring,
	linux-arm-kernel, devicetree, linux-kernel

On 22:13-20210604, Aswath Govindraju wrote:
> Due to a limitation for USB DFU boot mode, SPL load address has to be less
> than  or equal to 0x70001000. So, load address of SPL and ATF have been
> moved to 0x70000000 and 0x701a0000 respectively.
> 
> Also, the maximum size of ATF has been increased to 0x1c000 [1].
> 
> Therefore, update ATF's location and maximum size accordingly in the device
> tree file.
> 
> [1] - https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/commit/?id=2fb5312f61a7de8b7a70e1639199c4f14a10b6f9
> 
> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
> ---
> 
> Link to corresponding U-Boot series that makes the ATF load address update,
> - https://patchwork.ozlabs.org/project/uboot/list/?series=247265
> 
>  arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
> index ca59d1f711f8..7ae28992097f 100644
> --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
> @@ -14,7 +14,7 @@
>  		ranges = <0x0 0x00 0x70000000 0x200000>;
>  
>  		atf-sram@0 {
	@0 should be @1a0000 ?
> -			reg = <0x0 0x1a000>;
> +			reg = <0x1a0000 0x1c000>;
>  		};
>  	};
>  
> -- 
> 2.17.1
> 

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: ti: k3-am64-main: Update the location of ATF in SRAM and increase its max size
  2021-06-07 13:28 ` Nishanth Menon
@ 2021-06-07 13:30   ` Aswath Govindraju
  0 siblings, 0 replies; 3+ messages in thread
From: Aswath Govindraju @ 2021-06-07 13:30 UTC (permalink / raw)
  To: Nishanth Menon
  Cc: Lokesh Vutla, Vignesh Raghavendra, Suman Anna,
	Kishon Vijay Abraham I, Tero Kristo, Rob Herring,
	linux-arm-kernel, devicetree, linux-kernel

Hi Nishanth,

On 07/06/21 6:58 pm, Nishanth Menon wrote:
> On 22:13-20210604, Aswath Govindraju wrote:
>> Due to a limitation for USB DFU boot mode, SPL load address has to be less
>> than  or equal to 0x70001000. So, load address of SPL and ATF have been
>> moved to 0x70000000 and 0x701a0000 respectively.
>>
>> Also, the maximum size of ATF has been increased to 0x1c000 [1].
>>
>> Therefore, update ATF's location and maximum size accordingly in the device
>> tree file.
>>
>> [1] - https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/commit/?id=2fb5312f61a7de8b7a70e1639199c4f14a10b6f9
>>
>> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
>> ---
>>
>> Link to corresponding U-Boot series that makes the ATF load address update,
>> - https://patchwork.ozlabs.org/project/uboot/list/?series=247265
>>
>>  arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
>> index ca59d1f711f8..7ae28992097f 100644
>> --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
>> +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi
>> @@ -14,7 +14,7 @@
>>  		ranges = <0x0 0x00 0x70000000 0x200000>;
>>  
>>  		atf-sram@0 {
> 	@0 should be @1a0000 ?

Sorry, forgot to make this change. Will correct this in the respin.

Thanks,
Aswath

>> -			reg = <0x0 0x1a000>;
>> +			reg = <0x1a0000 0x1c000>;
>>  		};
>>  	};
>>  
>> -- 
>> 2.17.1
>>
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-07 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 16:43 [PATCH] arm64: dts: ti: k3-am64-main: Update the location of ATF in SRAM and increase its max size Aswath Govindraju
2021-06-07 13:28 ` Nishanth Menon
2021-06-07 13:30   ` Aswath Govindraju

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).