diff --git a/samples/boards/nordic/system_off/boards/nrf5340dk_nrf5340_cpuapp.overlay b/samples/boards/nordic/system_off/boards/nrf5340dk_nrf5340_cpuapp.overlay new file mode 100644 index 00000000000..383d9896bea --- /dev/null +++ b/samples/boards/nordic/system_off/boards/nrf5340dk_nrf5340_cpuapp.overlay @@ -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)>; +}; diff --git a/samples/boards/nordic/system_off/sample.yaml b/samples/boards/nordic/system_off/sample.yaml index 47328714741..35483a81373 100644 --- a/samples/boards/nordic/system_off/sample.yaml +++ b/samples/boards/nordic/system_off/sample.yaml @@ -29,6 +29,7 @@ tests: platform_allow: - nrf52840dk/nrf52840 - nrf52dk/nrf52832 + - nrf5340dk/nrf5340/cpuapp - nrf54l15dk/nrf54l05/cpuapp - nrf54l15dk/nrf54l10/cpuapp - nrf54l15dk/nrf54l15/cpuapp