Skip to content

Commit f1c9799

Browse files
DerekSnellkartben
authored andcommitted
tests: drivers: counter_basic_api: add testcase for NXP FRDM-RW612
New test case enables low-power standby mode, but disables testing the lpc_rtc_highres driver, since it is used to wake the device from standby mode. Signed-off-by: Derek Snell <[email protected]>
1 parent e483b22 commit f1c9799

File tree

5 files changed

+36
-1
lines changed

5 files changed

+36
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright 2025 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config TEST_DRIVER_COUNTER_MCUX_LPC_RTC_HIGHRES
5+
bool "tests the nxp_lpc_rtc_highres compatible driver"
6+
default y if COUNTER_MCUX_LPC_RTC_HIGHRES
7+
help
8+
tests the nxp_lpc_rtc_highres compatible driver
9+
10+
source "Kconfig.zephyr"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Copyright 2025 NXP
3+
#
4+
# SPDX-License-Identifier Apache-2.0
5+
#
6+
CONFIG_PM=y
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* Copyright 2025 NXP
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&standby {
7+
status = "okay";
8+
};

tests/drivers/counter/counter_basic_api/src/test_counter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static const struct device *const devices[] = {
8484
#ifdef CONFIG_COUNTER_MCUX_LPC_RTC_1HZ
8585
DEVS_FOR_DT_COMPAT(nxp_lpc_rtc)
8686
#endif
87-
#ifdef CONFIG_COUNTER_MCUX_LPC_RTC_HIGHRES
87+
#ifdef CONFIG_TEST_DRIVER_COUNTER_MCUX_LPC_RTC_HIGHRES
8888
DEVS_FOR_DT_COMPAT(nxp_lpc_rtc_highres)
8989
#endif
9090
#ifdef CONFIG_COUNTER_GECKO_RTCC

tests/drivers/counter/counter_basic_api/testcase.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,14 @@ tests:
4040
timeout: 400
4141
extra_args:
4242
DTC_OVERLAY_FILE="boards/mimxrt685_evk_rtc_1khz.overlay"
43+
drivers.counter.basic_api.standby.lpc_rtc_highres:
44+
tags:
45+
- drivers
46+
- counter
47+
depends_on: counter
48+
platform_allow: frdm_rw612
49+
timeout: 400
50+
extra_configs:
51+
- CONFIG_TEST_DRIVER_COUNTER_MCUX_LPC_RTC_HIGHRES=n
52+
extra_args:
53+
DTC_OVERLAY_FILE="enable_standby.overlay"

0 commit comments

Comments
 (0)