Skip to content

Commit c0a11f9

Browse files
committed
samples: zephyr: system_off: Add support for nRF7120pdk
Add support for the nRF7120pdk for the systemoff samples: - grtc_wakeup - grtc_wakeup (memory retained) Signed-off-by: Dhanoo Surasarang <[email protected]>
1 parent e715696 commit c0a11f9

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Disable RC Oscillator so that LFXO will be used
2+
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=n
3+
4+
# Output log immediately
5+
CONFIG_LOG_MODE_IMMEDIATE=y
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/ {
2+
cpuapp_sram@2007ec00 {
3+
compatible = "zephyr,memory-region", "mmio-sram";
4+
reg = <0x2007ec00 DT_SIZE_K(4)>;
5+
zephyr,memory-region = "RetainedMem";
6+
status = "okay";
7+
8+
retainedmem0: retainedmem {
9+
compatible = "zephyr,retained-ram";
10+
status = "okay";
11+
};
12+
};
13+
14+
aliases {
15+
retainedmemdevice = &retainedmem0;
16+
};
17+
};
18+
19+
&cpuapp_sram {
20+
/* Shrink SRAM size to avoid overlap with retained memory region:
21+
* 511 - 4 = 507KB = 0x7ec00
22+
*/
23+
reg = <0x20000000 DT_SIZE_K(507)>;
24+
ranges = <0x0 0x20000000 0x7ec00>;
25+
};

samples/zephyr/boards/nordic/system_off/sample.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sample:
2-
name: Low Power State Sample for nRF5x
2+
name: Low Power State Sample for nRF5x and nRF71
33
common:
44
tags:
55
- power
@@ -59,6 +59,7 @@ tests:
5959
- [email protected]/nrf54lm20a/cpuapp
6060
- [email protected]/nrf54lm20a/cpuapp
6161
- [email protected]/nrf54lm20a/cpuapp
62+
- nrf7120pdk/nrf7120/cpuapp/emu
6263
extra_configs:
6364
- CONFIG_GRTC_WAKEUP_ENABLE=y
6465
- CONFIG_GPIO_WAKEUP_ENABLE=n
@@ -85,6 +86,7 @@ tests:
8586
- [email protected]/nrf54lm20a/cpuapp
8687
- [email protected]/nrf54lm20a/cpuapp
8788
- [email protected]/nrf54lm20a/cpuapp
89+
- nrf7120pdk/nrf7120/cpuapp/emu
8890
extra_configs:
8991
- CONFIG_APP_USE_RETAINED_MEM=y
9092
- CONFIG_GRTC_WAKEUP_ENABLE=y

0 commit comments

Comments
 (0)