Skip to content

Commit 9c00288

Browse files
committed
lpcomp: added support for nrf54h20
Low power comparator can be used as wake up source for nrf54h20. Using LPCOMP as wakeup needs global power force when entering system off, this is handled in sysctrl. Signed-off-by: Łukasz Stępnicki <[email protected]>
1 parent 5809883 commit 9c00288

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

samples/boards/nordic/system_off/sample.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ tests:
1515
- nrf54l15dk/nrf54l10/cpuapp
1616
- nrf54l15dk/nrf54l15/cpuapp
1717
- nrf54lm20dk/nrf54lm20a/cpuapp
18+
- nrf54h20dk/nrf54h20/cpuapp
1819
harness: console
1920
harness_config:
2021
type: multi_line
@@ -53,6 +54,7 @@ tests:
5354
- nrf54l15dk/nrf54l10/cpuapp
5455
- nrf54l15dk/nrf54l15/cpuapp
5556
- nrf54lm20dk/nrf54lm20a/cpuapp
57+
- nrf54h20dk/nrf54h20/cpuapp
5658
extra_configs:
5759
- CONFIG_GRTC_WAKEUP_ENABLE=y
5860
- CONFIG_GPIO_WAKEUP_ENABLE=n
@@ -100,9 +102,10 @@ tests:
100102
- "Entering system off; wait 2 seconds to restart"
101103
- "Wakeup from System OFF by GRTC."
102104
sample.boards.nrf.system_off.lpcomp_wakeup:
103-
extra_args: DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuapp_comparator.overlay"
105+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/low_power_comparator.overlay"
104106
platform_allow:
105107
- nrf54l15dk/nrf54l15/cpuapp
108+
- nrf54h20dk/nrf54h20/cpuapp
106109
extra_configs:
107110
- CONFIG_LPCOMP_WAKEUP_ENABLE=y
108111
- CONFIG_GPIO_WAKEUP_ENABLE=n
@@ -116,10 +119,7 @@ tests:
116119
- "Retained data not supported"
117120
- "Entering system off; change signal level at comparator input to restart"
118121
sample.boards.nrf.system_off.retained_mem.lpcomp_wakeup:
119-
extra_args:
120-
- "DTC_OVERLAY_FILE=
121-
boards/nrf54l15dk_nrf54l15_cpuapp_comparator.overlay;
122-
boards/nrf54l15dk_nrf54l15_cpuapp.overlay"
122+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/low_power_comparator.overlay"
123123
platform_allow:
124124
- nrf54l15dk/nrf54l15/cpuapp
125125
extra_configs:

samples/boards/nordic/system_off/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ int main(void)
185185
}
186186

187187
if (IS_ENABLED(CONFIG_PM_DEVICE) && IS_ENABLED(CONFIG_SERIAL)) {
188-
static const struct device *dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
188+
static const struct device *cons = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
189189
int err;
190190
enum pm_device_state state;
191191

192-
if (dev) {
192+
if (cons) {
193193
do {
194-
err = pm_device_state_get(dev, &state);
194+
err = pm_device_state_get(cons, &state);
195195
} while ((err == 0) && (state == PM_DEVICE_STATE_ACTIVE));
196196
}
197197
}

0 commit comments

Comments
 (0)