Skip to content

Commit 50f6142

Browse files
nika-nordickartben
authored andcommitted
samples: nordic: system_off: add retained_mem variant for nRF5340 DK
nRF5340 SoC supports retained_mem driver, which can be utilized for RAM retention in System OFF sleep mode. Add sample configuration confirming this. Signed-off-by: Nikodem Kastelik <[email protected]>
1 parent 34b14bb commit 50f6142

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/ {
2+
sram0_image@2006f000 {
3+
compatible = "zephyr,memory-region", "mmio-sram";
4+
reg = <0x2006f000 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+
&sram0_image {
20+
/* Shrink SRAM size to avoid overlap with retained memory region */
21+
reg = <0x20000000 DT_SIZE_K(444)>;
22+
};

samples/boards/nordic/system_off/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ tests:
2929
platform_allow:
3030
- nrf52840dk/nrf52840
3131
- nrf52dk/nrf52832
32+
- nrf5340dk/nrf5340/cpuapp
3233
- nrf54l15dk/nrf54l05/cpuapp
3334
- nrf54l15dk/nrf54l10/cpuapp
3435
- nrf54l15dk/nrf54l15/cpuapp

0 commit comments

Comments
 (0)