From f8140e3f0c32c77262183e6e1fdb6584f825f7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20G=C5=82=C4=85b?= Date: Thu, 12 Dec 2024 13:26:39 +0100 Subject: [PATCH] [nrf fromtree] samples: boards: nordic: system_off: Run on nrf54l20pdk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add overlays to execute system_off tests on nrf54l20pdk. Signed-off-by: Sebastian Głąb (cherry picked from commit d8f0787ab5a323d7a0594f4a41eea2830f4dfa33) --- .../nrf54l20pdk_nrf54l20_cpuapp.overlay | 25 +++++++++++++++++++ samples/boards/nordic/system_off/sample.yaml | 4 +++ 2 files changed, 29 insertions(+) create mode 100644 samples/boards/nordic/system_off/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay diff --git a/samples/boards/nordic/system_off/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay b/samples/boards/nordic/system_off/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay new file mode 100644 index 00000000000..3a79636a483 --- /dev/null +++ b/samples/boards/nordic/system_off/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay @@ -0,0 +1,25 @@ +/ { + cpuapp_sram@2007ec00 { + compatible = "zephyr,memory-region", "mmio-sram"; + reg = <0x2007ec00 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: + * 511 - 4 = 507KB = 0x7ec00 + */ + reg = <0x20000000 DT_SIZE_K(507)>; + ranges = <0x0 0x20000000 0x7ec00>; +}; diff --git a/samples/boards/nordic/system_off/sample.yaml b/samples/boards/nordic/system_off/sample.yaml index fcc96f6c44d..a85a204c859 100644 --- a/samples/boards/nordic/system_off/sample.yaml +++ b/samples/boards/nordic/system_off/sample.yaml @@ -14,6 +14,7 @@ tests: - nrf54l15dk/nrf54l05/cpuapp - nrf54l15dk/nrf54l10/cpuapp - nrf54l15dk/nrf54l15/cpuapp + - nrf54l20pdk/nrf54l20/cpuapp harness: console harness_config: type: multi_line @@ -31,6 +32,7 @@ tests: - nrf54l15dk/nrf54l15/cpuapp - nrf54l15dk/nrf54l10/cpuapp - nrf54l15dk/nrf54l05/cpuapp + - nrf54l20pdk/nrf54l20/cpuapp extra_configs: - CONFIG_APP_USE_RETAINED_MEM=y harness: console @@ -49,6 +51,7 @@ tests: - nrf54l15dk/nrf54l15/cpuapp - nrf54l15dk/nrf54l10/cpuapp - nrf54l15dk/nrf54l05/cpuapp + - nrf54l20pdk/nrf54l20/cpuapp extra_configs: - CONFIG_GRTC_WAKEUP_ENABLE=y harness: console @@ -70,6 +73,7 @@ tests: - nrf54l15dk/nrf54l15/cpuapp - nrf54l15dk/nrf54l10/cpuapp - nrf54l15dk/nrf54l05/cpuapp + - nrf54l20pdk/nrf54l20/cpuapp extra_configs: - CONFIG_APP_USE_RETAINED_MEM=y - CONFIG_GRTC_WAKEUP_ENABLE=y