Skip to content

Commit

Permalink
[nrf fromtree] tests: drivers: retained_mem: add support for nRF5340 DK
Browse files Browse the repository at this point in the history
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
nika-nordic authored and nordicjm committed Feb 27, 2025
1 parent 9a75fac commit c720f62
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_RETAINED_MEM_NRF_GPREGRET=n
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)>;
};
1 change: 1 addition & 0 deletions tests/drivers/retained_mem/api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tests:
drivers.retained_mem.api.ram:
platform_allow:
- qemu_cortex_m3
- nrf5340dk/nrf5340/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
- nrf54h20dk/nrf54h20/cpurad
- nrf54l09pdk/nrf54l09/cpuapp
Expand Down

0 comments on commit c720f62

Please sign in to comment.