-
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] tests: drivers: retained_mem: add support for nRF5340 DK
nRF5340 SoC supports retained_mem driver. Add test configuration confirming this. Signed-off-by: Nikodem Kastelik <[email protected]> (cherry picked from commit 34b14bbc4835461466038e793be005a732406f26)
- Loading branch information
1 parent
9a75fac
commit c720f62
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
tests/drivers/retained_mem/api/boards/nrf5340dk_nrf5340_cpuapp.conf
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 @@ | ||
CONFIG_RETAINED_MEM_NRF_GPREGRET=n |
29 changes: 29 additions & 0 deletions
29
tests/drivers/retained_mem/api/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,29 @@ | ||
/ { | ||
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 { | ||
retainedmemtestdevice = &retainedmem0; | ||
}; | ||
}; | ||
|
||
&gpregret1 { | ||
status = "disabled"; | ||
}; | ||
|
||
&gpregret2 { | ||
status = "disabled"; | ||
}; | ||
|
||
&sram0_image { | ||
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