tests: counter: Add LPC RTC 1KHZ counter

Add counter test support for the RTC 1KHz counter

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2023-11-06 12:24:27 -06:00 committed by Carles Cufí
parent 008b5027a6
commit 37158ebf15
3 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,7 @@
&rtc {
status = "disabled";
};
&rtc_highres {
status = "okay";
};

View file

@ -69,9 +69,12 @@ static const struct device *const devices[] = {
#ifdef CONFIG_COUNTER_NXP_MRT
DEVS_FOR_DT_COMPAT(nxp_mrt_channel)
#endif
#ifdef CONFIG_COUNTER_MCUX_LPC_RTC
#ifdef CONFIG_COUNTER_MCUX_LPC_RTC_1HZ
DEVS_FOR_DT_COMPAT(nxp_lpc_rtc)
#endif
#ifdef CONFIG_COUNTER_MCUX_LPC_RTC_HIGHRES
DEVS_FOR_DT_COMPAT(nxp_lpc_rtc_highres)
#endif
#ifdef CONFIG_COUNTER_GECKO_RTCC
DEVS_FOR_DT_COMPAT(silabs_gecko_rtcc)
#endif

View file

@ -27,3 +27,12 @@ tests:
timeout: 600
extra_configs:
- CONFIG_COUNTER_RTC_STM32_SUBSECONDS=y
drivers.counter.basic_api.rtc_1khz:
tags:
- drivers
- counter
depends_on: counter
platform_allow: mimxrt685_evk_cm33
timeout: 400
extra_args:
DTC_OVERLAY_FILE="boards/mimxrt685_evk_cm33_rtc_1khz.overlay"