From 43a1e68b566fd721ef191ea8deb25e42f3257742 Mon Sep 17 00:00:00 2001 From: Furkan Akkiz Date: Fri, 23 Aug 2024 11:58:42 +0300 Subject: [PATCH] tests: subsys: pm: Enable power_mgmt_soc for MAX78002EVKIT Enables power management test for MAX78002EVKIT. Signed-off-by: Furkan Akkiz --- .../boards/max78002evkit_max78002_m4.conf | 6 ++++++ .../boards/max78002evkit_max78002_m4.overlay | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 tests/subsys/pm/power_mgmt_soc/boards/max78002evkit_max78002_m4.conf create mode 100644 tests/subsys/pm/power_mgmt_soc/boards/max78002evkit_max78002_m4.overlay diff --git a/tests/subsys/pm/power_mgmt_soc/boards/max78002evkit_max78002_m4.conf b/tests/subsys/pm/power_mgmt_soc/boards/max78002evkit_max78002_m4.conf new file mode 100644 index 00000000000..f4b735eb385 --- /dev/null +++ b/tests/subsys/pm/power_mgmt_soc/boards/max78002evkit_max78002_m4.conf @@ -0,0 +1,6 @@ +# Copyright (c) 2024 Analog Devices, Inc. +# +# SPDX-License-Identifier: Apache-2.0 +# + +CONFIG_COUNTER=y diff --git a/tests/subsys/pm/power_mgmt_soc/boards/max78002evkit_max78002_m4.overlay b/tests/subsys/pm/power_mgmt_soc/boards/max78002evkit_max78002_m4.overlay new file mode 100644 index 00000000000..ff73704412a --- /dev/null +++ b/tests/subsys/pm/power_mgmt_soc/boards/max78002evkit_max78002_m4.overlay @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2024 Analog Devices, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + chosen { + zephyr,cortex-m-idle-timer = &rtc_counter; + }; +}; + +&rtc_counter { + status = "okay"; + wakeup-source; +};