Skip to content

samples: zephyr: system_off: Add support for nRF7120pdk #22279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Disable RC Oscillator so that LFXO will be used
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=n

# Output log immediately
CONFIG_LOG_MODE_IMMEDIATE=y
Original file line number Diff line number Diff line change
@@ -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>;
};
4 changes: 3 additions & 1 deletion samples/zephyr/boards/nordic/system_off/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sample:
name: Low Power State Sample for nRF5x
name: Low Power State Sample for nRF5x and nRF71
common:
tags:
- ci_samples_zephyr_boards_nordic_system_off
Expand Down Expand Up @@ -45,6 +45,7 @@ tests:
- nrf54lv10dk/nrf54lv10a/cpuapp
- [email protected]/nrf54lv10a/cpuapp
- [email protected]/nrf54lv10a/cpuapp
- nrf7120pdk/nrf7120/cpuapp
extra_configs:
- CONFIG_GRTC_WAKEUP_ENABLE=y
- CONFIG_GPIO_WAKEUP_ENABLE=n
Expand All @@ -68,6 +69,7 @@ tests:
- nrf54lv10dk/nrf54lv10a/cpuapp
- [email protected]/nrf54lv10a/cpuapp
- [email protected]/nrf54lv10a/cpuapp
- nrf7120pdk/nrf7120/cpuapp
extra_configs:
- CONFIG_APP_USE_RETAINED_MEM=y
- CONFIG_GRTC_WAKEUP_ENABLE=y
Expand Down