Skip to content

Commit ec9ac23

Browse files
ozersakartben
authored andcommitted
tests: subsysm: pm: Enable power_mgmt_soc for MAX32655
This commit enables power_mgmt_soc test for MAX32655 boards - max32655evkit - max32655fthr RTC clocked in most low power modes so that this timer is linked with idle timer. By this way device able to wakeup from low power modes. Signed-off-by: Sadik Ozer <[email protected]>
1 parent 6f98b8c commit ec9ac23

File tree

5 files changed

+54
-0
lines changed

5 files changed

+54
-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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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 = &rtc_counter;
10+
};
11+
};
12+
13+
&rtc_counter {
14+
status = "okay";
15+
wakeup-source;
16+
};
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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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 = &rtc_counter;
10+
};
11+
};
12+
13+
&rtc_counter {
14+
status = "okay";
15+
wakeup-source;
16+
};

tests/subsys/pm/power_mgmt_soc/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ tests:
1515
- frdm_ke17z512
1616
- xg29_rb4412a
1717
- max32690evkit/max32690/m4
18+
- max32655evkit/max32655/m4
19+
- max32655fthr/max32655/m4
1820
tags: pm
1921
integration_platforms:
2022
- mec15xxevb_assy6853

0 commit comments

Comments
 (0)