Skip to content

Commit dbf1454

Browse files
FelixWang47831MaureenHelm
authored andcommitted
tests: drivers: counter_basic_api: Enable lpit test for mimxrt1180_evk
Enable test for all channels on both cm33 and cm7 core. This test covers following test cases: - test_set_top_value_with_alarm - test_valid_function_without_alarm - test_set_top_value_without_alarm Signed-off-by: Felix Wang <[email protected]>
1 parent 0254658 commit dbf1454

File tree

5 files changed

+129
-4
lines changed

5 files changed

+129
-4
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#
2-
# Copyright 2024 NXP
2+
# Copyright 2024-2025 NXP
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
66
CONFIG_COUNTER_MCUX_QTMR=y
7+
CONFIG_COUNTER_MCUX_LPIT=y

tests/drivers/counter/counter_basic_api/boards/mimxrt1180_evk_mimxrt1189_cm33.overlay

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 NXP
2+
* Copyright 2024-2025 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -9,3 +9,63 @@
99
primary-source = "kQTMR_ClockDivide_128";
1010
mode = "kQTMR_PriSrcRiseEdge";
1111
};
12+
13+
&lpit1 {
14+
status = "okay";
15+
};
16+
17+
&lpit1_channel0 {
18+
status = "okay";
19+
};
20+
21+
&lpit1_channel1 {
22+
status = "okay";
23+
};
24+
25+
&lpit1_channel2 {
26+
status = "okay";
27+
};
28+
29+
&lpit1_channel3 {
30+
status = "okay";
31+
};
32+
33+
&lpit2 {
34+
status = "okay";
35+
};
36+
37+
&lpit2_channel0 {
38+
status = "okay";
39+
};
40+
41+
&lpit2_channel1 {
42+
status = "okay";
43+
};
44+
45+
&lpit2_channel2 {
46+
status = "okay";
47+
};
48+
49+
&lpit2_channel3 {
50+
status = "okay";
51+
};
52+
53+
&lpit3 {
54+
status = "okay";
55+
};
56+
57+
&lpit3_channel0 {
58+
status = "okay";
59+
};
60+
61+
&lpit3_channel1 {
62+
status = "okay";
63+
};
64+
65+
&lpit3_channel2 {
66+
status = "okay";
67+
};
68+
69+
&lpit3_channel3 {
70+
status = "okay";
71+
};
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#
2-
# Copyright 2024 NXP
2+
# Copyright 2024-2025 NXP
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
66
CONFIG_COUNTER_MCUX_QTMR=y
7+
CONFIG_COUNTER_MCUX_LPIT=y

tests/drivers/counter/counter_basic_api/boards/mimxrt1180_evk_mimxrt1189_cm7.overlay

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 NXP
2+
* Copyright 2024-2025 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -9,3 +9,63 @@
99
primary-source = "kQTMR_ClockDivide_128";
1010
mode = "kQTMR_PriSrcRiseEdge";
1111
};
12+
13+
&lpit1 {
14+
status = "okay";
15+
};
16+
17+
&lpit1_channel0 {
18+
status = "okay";
19+
};
20+
21+
&lpit1_channel1 {
22+
status = "okay";
23+
};
24+
25+
&lpit1_channel2 {
26+
status = "okay";
27+
};
28+
29+
&lpit1_channel3 {
30+
status = "okay";
31+
};
32+
33+
&lpit2 {
34+
status = "okay";
35+
};
36+
37+
&lpit2_channel0 {
38+
status = "okay";
39+
};
40+
41+
&lpit2_channel1 {
42+
status = "okay";
43+
};
44+
45+
&lpit2_channel2 {
46+
status = "okay";
47+
};
48+
49+
&lpit2_channel3 {
50+
status = "okay";
51+
};
52+
53+
&lpit3 {
54+
status = "okay";
55+
};
56+
57+
&lpit3_channel0 {
58+
status = "okay";
59+
};
60+
61+
&lpit3_channel1 {
62+
status = "okay";
63+
};
64+
65+
&lpit3_channel2 {
66+
status = "okay";
67+
};
68+
69+
&lpit3_channel3 {
70+
status = "okay";
71+
};

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ static const struct device *const devices[] = {
123123
#ifdef CONFIG_COUNTER_MCUX_LPTMR
124124
DEVS_FOR_DT_COMPAT(nxp_lptmr)
125125
#endif
126+
#ifdef CONFIG_COUNTER_MCUX_LPIT
127+
DEVS_FOR_DT_COMPAT(nxp_lpit_channel)
128+
#endif
126129
#ifdef CONFIG_COUNTER_RENESAS_RZ_GTM
127130
DEVS_FOR_DT_COMPAT(renesas_rz_gtm_counter)
128131
#endif

0 commit comments

Comments
 (0)