Skip to content

Commit 5d4a116

Browse files
Ayush1325cfriedt
authored andcommitted
boards: pocketbeagle_2: a53: Use RAM from 0x80200000
First 2MiB is reserved for Arm Trusted Firmware-A according the TI docs [0]. An update bb-zephyr-image [1] provides a custom boot script for u-boot which allows the old instructions to work (as opposed to having to load and execute the binary manually). Tested using tests/arch/arm64/arm64_smc_call. [0]: https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/latest/exports/docs/api_guide_am62x/MEMORY_MAP.html [1]:https://github.com/beagleboard/bb-zephyr-images Signed-off-by: Ayush Singh <[email protected]>
1 parent e761db3 commit 5d4a116

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

boards/beagle/pocketbeagle_2/pocketbeagle_2_am62_a53-common.dtsi

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,28 @@
1313
chosen {
1414
zephyr,console = &uart6;
1515
zephyr,shell-uart = &uart6;
16-
zephyr,sram = &ddr0;
16+
zephyr,sram = &a53_ddr_section;
1717
};
1818

1919
aliases {
2020
led0 = &led1;
2121
};
2222

2323
ddr0: memory@80000000 {
24+
device_type = "memory";
2425
reg = <0x80000000 DT_SIZE_M(512)>;
26+
#address-cells = <0x1>;
27+
#size-cells = <0x1>;
28+
29+
/* Loading and starting code at RAM start will cause any calls to
30+
* Arm Trusted Firmware-A (TFA) to fail. This is because as described
31+
* in the docs [0], the first 2MiB is reserved for TFA.
32+
*
33+
* [0]: https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/latest/exports/docs/api_guide_am62x/MEMORY_MAP.html
34+
*/
35+
a53_ddr_section: memory@80200000 {
36+
reg = <0x80200000 DT_SIZE_M(512 - 2)>;
37+
};
2538
};
2639

2740
leds: leds {

0 commit comments

Comments
 (0)