Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 23fc6ba

Browse files
committedJan 8, 2025·
[nrf fromtree] tests: drivers: retained_mem: Run test on nrf54l20pdk
Add overlays to execute retained_mem test on nrf54l20pdk. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no> (cherry picked from commit eaf9992)
1 parent 9761d26 commit 23fc6ba

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_POWEROFF=y
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/ {
2+
cpuapp_sram@2007ec00 {
3+
compatible = "zephyr,memory-region", "mmio-sram";
4+
reg = <0x2007ec00 DT_SIZE_K(4)>;
5+
zephyr,memory-region = "RetainedMem";
6+
status = "okay";
7+
8+
retainedmem0: retainedmem {
9+
compatible = "zephyr,retained-ram";
10+
status = "okay";
11+
};
12+
};
13+
14+
aliases {
15+
retainedmemtestdevice = &retainedmem0;
16+
};
17+
};
18+
19+
&cpuapp_sram {
20+
/* Shrink SRAM size to avoid overlap with retained memory region:
21+
* 511 - 4 = 507KB = 0x7ec00
22+
*/
23+
reg = <0x20000000 DT_SIZE_K(507)>;
24+
ranges = <0x0 0x20000000 0x7ec00>;
25+
};

‎tests/drivers/retained_mem/api/testcase.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ tests:
1212
- nrf54l15dk/nrf54l05/cpuapp
1313
- nrf54l15dk/nrf54l10/cpuapp
1414
- nrf54l15dk/nrf54l15/cpuapp
15+
- nrf54l20pdk/nrf54l20/cpuapp
1516
tags:
1617
- drivers
1718
- retained_mem

0 commit comments

Comments
 (0)
Please sign in to comment.