-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
benchmarks: system_off: align to new RAM retention in system_off sample
Zephyr system_off sample changed how RAM retention is handled. Signed-off-by: Nikodem Kastelik <[email protected]>
- Loading branch information
1 parent
fab3fd4
commit 0d21333
Showing
6 changed files
with
111 additions
and
26 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
tests/benchmarks/current_consumption/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
tests/benchmarks/current_consumption/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)>; | ||
}; |
25 changes: 25 additions & 0 deletions
25
tests/benchmarks/current_consumption/system_off/boards/nrf54l15dk_nrf54l05_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,25 @@ | ||
/ { | ||
cpuapp_sram@20017000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x20017000 DT_SIZE_K(4)>; | ||
zephyr,memory-region = "RetainedMem"; | ||
status = "okay"; | ||
|
||
retainedmem0: retainedmem { | ||
compatible = "zephyr,retained-ram"; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
aliases { | ||
retainedmemdevice = &retainedmem0; | ||
}; | ||
}; | ||
|
||
&cpuapp_sram { | ||
/* Shrink SRAM size to avoid overlap with retained memory region: | ||
* 96 - 4 = 92KB = 0x17000 | ||
*/ | ||
reg = <0x20000000 0x17000>; | ||
ranges = <0x0 0x20000000 0x17000>; | ||
}; |
25 changes: 25 additions & 0 deletions
25
tests/benchmarks/current_consumption/system_off/boards/nrf54l15dk_nrf54l10_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,25 @@ | ||
/ { | ||
cpuapp_sram@2002f000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x2002f000 DT_SIZE_K(4)>; | ||
zephyr,memory-region = "RetainedMem"; | ||
status = "okay"; | ||
|
||
retainedmem0: retainedmem { | ||
compatible = "zephyr,retained-ram"; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
aliases { | ||
retainedmemdevice = &retainedmem0; | ||
}; | ||
}; | ||
|
||
&cpuapp_sram { | ||
/* Shrink SRAM size to avoid overlap with retained memory region: | ||
* 192 - 4 = 188KB = 0x2f000 | ||
*/ | ||
reg = <0x20000000 0x2f000>; | ||
ranges = <0x0 0x20000000 0x2f000>; | ||
}; |
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