Skip to content

Commit d1c80f2

Browse files
committed
tests: drivers: grtc: grtc_clk_output: align for ls05 and lv10
Add support for LS05 and LV10. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 0a0ad3d commit d1c80f2

10 files changed

+162
-1
lines changed

boards/nordic/nrf54ls05dk/nrf54ls05dk_nrf54ls05b-pinctrl.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,19 @@
3636
low-power-enable;
3737
};
3838
};
39+
40+
/omit-if-no-ref/ grtc_default: grtc_default {
41+
group1 {
42+
psels = <NRF_PSEL(GRTC_CLKOUT_FAST, 1, 8)>,
43+
<NRF_PSEL(GRTC_CLKOUT_32K, 0, 4)>;
44+
};
45+
};
46+
47+
/omit-if-no-ref/ grtc_sleep: grtc_sleep {
48+
group1 {
49+
psels = <NRF_PSEL(GRTC_CLKOUT_FAST, 1, 8)>,
50+
<NRF_PSEL(GRTC_CLKOUT_32K, 0, 4)>;
51+
low-power-enable;
52+
};
53+
};
3954
};

boards/nordic/nrf54lv10dk/nrf54lv10dk_nrf54lv10a-pinctrl.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,19 @@
4949
low-power-enable;
5050
};
5151
};
52+
53+
/omit-if-no-ref/ grtc_default: grtc_default {
54+
group1 {
55+
psels = <NRF_PSEL(GRTC_CLKOUT_FAST, 1, 8)>,
56+
<NRF_PSEL(GRTC_CLKOUT_32K, 0, 4)>;
57+
};
58+
};
59+
60+
/omit-if-no-ref/ grtc_sleep: grtc_sleep {
61+
group1 {
62+
psels = <NRF_PSEL(GRTC_CLKOUT_FAST, 1, 8)>,
63+
<NRF_PSEL(GRTC_CLKOUT_32K, 0, 4)>;
64+
low-power-enable;
65+
};
66+
};
5267
};

scripts/ci/tags.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,11 @@ ci_tests_drivers_uart:
14591459
- zephyr/dts/vendor/nordic/
14601460
- zephyr/soc/nordic/
14611461

1462+
ci_tests_drivers_grtc:
1463+
files:
1464+
- nrf/tests/drivers/grtc/
1465+
- zephyr/drivers/timer/
1466+
14621467
ci_tests_drivers_sensor_qdec:
14631468
files:
14641469
- nrf/samples/zephyr/sensor/qdec/
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Required loopback between:
8+
* GPIO P1.16 and P0.4 (GRTC 32k; defined @board; no other option)
9+
*/
10+
11+
/ {
12+
zephyr,user {
13+
gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; /* Connect to dedicated GRTC output */
14+
};
15+
};
16+
17+
&gpio1 {
18+
status = "okay";
19+
};
20+
21+
&grtc {
22+
pinctrl-0 = <&grtc_default>;
23+
pinctrl-1 = <&grtc_sleep>;
24+
pinctrl-names = "default", "sleep";
25+
clkout-32k;
26+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_TEST_GRTC_FREQUENCY=32000
2+
CONFIG_TEST_GRTC_TOLERANCE=360
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Required loopback between:
8+
* GPIO P1.9 and P1.8 (GRTC fast; defined @board; no other option)
9+
*/
10+
11+
/ {
12+
zephyr,user {
13+
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; /* Connect to dedicated GRTC output */
14+
};
15+
};
16+
17+
&gpio1 {
18+
status = "okay";
19+
};
20+
21+
&gpiote20 {
22+
status = "okay";
23+
};
24+
25+
&grtc {
26+
pinctrl-0 = <&grtc_default>;
27+
pinctrl-1 = <&grtc_sleep>;
28+
pinctrl-names = "default", "sleep";
29+
clkout-fast-frequency-hz = <32000>; /* 16 MHz / (250 * 2) */
30+
};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Required loopback between:
8+
* GPIO P1.16 and P0.4 (GRTC 32k; defined @board; no other option)
9+
*/
10+
11+
/ {
12+
zephyr,user {
13+
gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; /* Connect to dedicated GRTC output */
14+
};
15+
};
16+
17+
&gpio1 {
18+
status = "okay";
19+
};
20+
21+
&grtc {
22+
pinctrl-0 = <&grtc_default>;
23+
pinctrl-1 = <&grtc_sleep>;
24+
pinctrl-names = "default", "sleep";
25+
clkout-32k;
26+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_TEST_GRTC_FREQUENCY=32000
2+
CONFIG_TEST_GRTC_TOLERANCE=360
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Required loopback between:
8+
* GPIO P1.9 and P1.8 (GRTC fast; defined @board; no other option)
9+
*/
10+
11+
/ {
12+
zephyr,user {
13+
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; /* Connect to dedicated GRTC output */
14+
};
15+
};
16+
17+
&gpio1 {
18+
status = "okay";
19+
};
20+
21+
&gpiote20 {
22+
status = "okay";
23+
};
24+
25+
&grtc {
26+
pinctrl-0 = <&grtc_default>;
27+
pinctrl-1 = <&grtc_sleep>;
28+
pinctrl-names = "default", "sleep";
29+
clkout-fast-frequency-hz = <32000>; /* 16 MHz / (250 * 2) */
30+
};

tests/drivers/grtc/grtc_clk_output/testcase.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ common:
22
tags:
33
- drivers
44
- grtc
5-
- ci_tests_zephyr_drivers_i2s
5+
- ci_tests_drivers_grtc
66
depends_on:
77
- gpio
88
harness: ztest
@@ -15,10 +15,15 @@ tests:
1515
- nrf54h20dk/nrf54h20/cpuapp
1616
- nrf54l15dk/nrf54l15/cpuapp
1717
- nrf54lm20dk/nrf54lm20a/cpuapp
18+
- nrf54ls05dk/nrf54ls05b/cpuapp
19+
- [email protected]/nrf54ls05b/cpuapp
20+
- nrf54lv10dk/nrf54lv10a/cpuapp
1821
integration_platforms:
1922
- nrf54h20dk/nrf54h20/cpuapp
2023
- nrf54l15dk/nrf54l15/cpuapp
2124
- nrf54lm20dk/nrf54lm20a/cpuapp
25+
- nrf54ls05dk/nrf54ls05b/cpuapp
26+
- nrf54lv10dk/nrf54lv10a/cpuapp
2227

2328
drivers.grtc.grtc_clk_out.fast:
2429
harness_config:
@@ -27,9 +32,14 @@ tests:
2732
- nrf54h20dk/nrf54h20/cpuapp
2833
- nrf54l15dk/nrf54l15/cpuapp
2934
- nrf54lm20dk/nrf54lm20a/cpuapp
35+
- nrf54ls05dk/nrf54ls05b/cpuapp
36+
- [email protected]/nrf54ls05b/cpuapp
37+
- nrf54lv10dk/nrf54lv10a/cpuapp
3038
integration_platforms:
3139
- nrf54h20dk/nrf54h20/cpuapp
3240
- nrf54l15dk/nrf54l15/cpuapp
3341
- nrf54lm20dk/nrf54lm20a/cpuapp
42+
- nrf54ls05dk/nrf54ls05b/cpuapp
43+
- nrf54lv10dk/nrf54lv10a/cpuapp
3444
extra_args:
3545
- FILE_SUFFIX=fast

0 commit comments

Comments
 (0)