Skip to content

Commit

Permalink
[nrf fromtree] samples: nordic: system_off: add retained_mem variant …
Browse files Browse the repository at this point in the history
…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]>
(cherry picked from commit 50f6142497770e9b6d84112ef11dcb6115c01dcb)
  • Loading branch information
nika-nordic authored and nordicjm committed Feb 27, 2025
1 parent c720f62 commit 83d751b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/ {
sram0_image@2006f000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x2006f000 DT_SIZE_K(4)>;
zephyr,memory-region = "RetainedMem";
status = "okay";

retainedmem0: retainedmem {
compatible = "zephyr,retained-ram";
status = "okay";
};
};

aliases {
retainedmemdevice = &retainedmem0;
};
};

&sram0_image {
/* Shrink SRAM size to avoid overlap with retained memory region */
reg = <0x20000000 DT_SIZE_K(444)>;
};
1 change: 1 addition & 0 deletions samples/boards/nordic/system_off/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ tests:
platform_allow:
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
- nrf5340dk/nrf5340/cpuapp
- nrf54l15dk/nrf54l05/cpuapp
- nrf54l15dk/nrf54l10/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
Expand Down

0 comments on commit 83d751b

Please sign in to comment.