Skip to content

Commit 6f98b8c

Browse files
ozersakartben
authored andcommitted
tests: subsysm: pm: Enable power_mgmt_soc for MAX32690
This commit enables power_mgmt_soc test for MAX32690 board Low power timer is used as idle timer that will wakeup device from sleep modes. Lowpower timer clocked with RTC clock which always on. RTC can be used as idle clock timer too, in that case below line need to be added in overlay file / { chosen { zephyr,cortex-m-idle-timer = &rtc; }; }; &rtc { status = okay; wakeup-source; }; Signed-off-by: Sadik Ozer <[email protected]>
1 parent 4e85806 commit 6f98b8c

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2024 Analog Devices, Inc.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
6+
CONFIG_COUNTER=y
7+
8+
# Disable CONFIG_MAX32_ON_ENTER_CPU_IDLE_HOOK
9+
# To device goes to low power mode in idle state
10+
CONFIG_MAX32_ON_ENTER_CPU_IDLE_HOOK=n
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,cortex-m-idle-timer = &counter0;
10+
};
11+
};
12+
13+
&clk_ertco {
14+
status = "okay";
15+
};
16+
17+
&lptimer0 {
18+
status = "okay";
19+
clock-source = <ADI_MAX32_PRPH_CLK_SRC_ERTCO>;
20+
wakeup-source;
21+
counter0: counter {
22+
status = "okay";
23+
};
24+
};

tests/subsys/pm/power_mgmt_soc/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ tests:
1414
- frdm_ke17z
1515
- frdm_ke17z512
1616
- xg29_rb4412a
17+
- max32690evkit/max32690/m4
1718
tags: pm
1819
integration_platforms:
1920
- mec15xxevb_assy6853

0 commit comments

Comments
 (0)