-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] 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]> (cherry picked from commit 50f6142497770e9b6d84112ef11dcb6115c01dcb)
- Loading branch information
1 parent
c720f62
commit 83d751b
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
samples/boards/nordic/system_off/boards/nrf5340dk_nrf5340_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters