Skip to content

Commit c31775a

Browse files
committed
[nrf fromlist] samples: boards: nordic: system_off: Run on nrf54l20pdk
Add overlays to execute system_off tests on nrf54l20pdk. Upstream PR #: 82957 Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 43b638f commit c31775a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 25 additions & 0 deletions
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+
retainedmemdevice = &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+
};

samples/boards/nordic/system_off/sample.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ tests:
1414
- nrf54l15dk/nrf54l05/cpuapp
1515
- nrf54l15dk/nrf54l10/cpuapp
1616
- nrf54l15dk/nrf54l15/cpuapp
17+
- nrf54l20pdk/nrf54l20/cpuapp
1718
harness: console
1819
harness_config:
1920
type: multi_line
@@ -31,6 +32,7 @@ tests:
3132
- nrf54l15dk/nrf54l15/cpuapp
3233
- nrf54l15dk/nrf54l10/cpuapp
3334
- nrf54l15dk/nrf54l05/cpuapp
35+
- nrf54l20pdk/nrf54l20/cpuapp
3436
extra_configs:
3537
- CONFIG_APP_USE_RETAINED_MEM=y
3638
harness: console
@@ -49,6 +51,7 @@ tests:
4951
- nrf54l15dk/nrf54l15/cpuapp
5052
- nrf54l15dk/nrf54l10/cpuapp
5153
- nrf54l15dk/nrf54l05/cpuapp
54+
- nrf54l20pdk/nrf54l20/cpuapp
5255
extra_configs:
5356
- CONFIG_GRTC_WAKEUP_ENABLE=y
5457
harness: console
@@ -70,6 +73,7 @@ tests:
7073
- nrf54l15dk/nrf54l15/cpuapp
7174
- nrf54l15dk/nrf54l10/cpuapp
7275
- nrf54l15dk/nrf54l05/cpuapp
76+
- nrf54l20pdk/nrf54l20/cpuapp
7377
extra_configs:
7478
- CONFIG_APP_USE_RETAINED_MEM=y
7579
- CONFIG_GRTC_WAKEUP_ENABLE=y

0 commit comments

Comments
 (0)