-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromlist] samples: nordic: system_off: use retained_mem on all t…
…argets Using bare-metal approach for retention configuration is no longer compatible with sys_poweroff() implementation. Upstream PR #: 82262 Signed-off-by: Nikodem Kastelik <[email protected]>
- Loading branch information
1 parent
13aa9ab
commit 017f77a
Showing
11 changed files
with
72 additions
and
181 deletions.
There are no files selected for viewing
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
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
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
22 changes: 22 additions & 0 deletions
22
samples/boards/nordic/system_off/boards/nrf52840dk_nrf52840.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@2003f000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x2003f000 DT_SIZE_K(4)>; | ||
zephyr,memory-region = "RetainedMem"; | ||
status = "okay"; | ||
|
||
retainedmem0: retainedmem { | ||
compatible = "zephyr,retained-ram"; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
aliases { | ||
retainedmemdevice = &retainedmem0; | ||
}; | ||
}; | ||
|
||
&sram0 { | ||
/* Shrink SRAM size to avoid overlap with retained memory region */ | ||
reg = <0x20000000 DT_SIZE_K(252)>; | ||
}; |
22 changes: 22 additions & 0 deletions
22
samples/boards/nordic/system_off/boards/nrf52dk_nrf52832.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@20007000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x20007000 DT_SIZE_K(4)>; | ||
zephyr,memory-region = "RetainedMem"; | ||
status = "okay"; | ||
|
||
retainedmem0: retainedmem { | ||
compatible = "zephyr,retained-ram"; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
aliases { | ||
retainedmemdevice = &retainedmem0; | ||
}; | ||
}; | ||
|
||
&sram0 { | ||
/* Shrink SRAM size to avoid overlap with retained memory region */ | ||
reg = <0x20000000 DT_SIZE_K(28)>; | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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