Skip to content

Commit 9a4b1d5

Browse files
committed
tests: zephyr: drivers: clock_control: Run nrf_clock_control on nrf9251dk
Copy the nrf_clock_control test from sdk-zephyr to sdk-nrf and enable it on nrf9251dk target. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
1 parent 33fea8d commit 9a4b1d5

8 files changed

Lines changed: 56 additions & 0 deletions

File tree

scripts/quarantine.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@
9999
- nrf7120dk/nrf7120/cpuapp
100100
comment: "https://nordicsemi.atlassian.net/browse/NCSDK-39364"
101101

102+
- scenarios:
103+
- nrf.extended.drivers.clock.nrf_clock_control
104+
platforms:
105+
- nrf9251dk@0.1.0/nrf9251/cpuapp
106+
comment: "https://nordicsemi.atlassian.net/browse/NRFX-9455"
107+
102108
- scenarios:
103109
- nrf.extended.sample.ipc.icmsg.nrf54h_nrf92_no_multithreading
104110
- drivers.grtc.test_mcuboot_grtc_no_uninit
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
cmake_minimum_required(VERSION 3.20.0)
8+
9+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10+
project(nrf_clock_control)
11+
12+
target_sources(app PRIVATE ${ZEPHYR_BASE}/tests/drivers/clock_control/nrf_clock_control/src/main.c)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source "tests/drivers/clock_control/nrf_clock_control/Kconfig"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This test extends the same-named Zephyr test to verify it with Nordic development kits.
2+
3+
Source code and basic configuration files can be found in the corresponding folder structure in zephyr/tests/drivers/clock_control/nrf_clock_control.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_TEST_FLL16M=y
2+
CONFIG_TEST_HSFLL_APP=y
3+
CONFIG_TEST_DVFS_INIT=y
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
&fll16m {
8+
status = "okay";
9+
};
10+
11+
&hsfll120 {
12+
status = "okay";
13+
};
14+
15+
&lfclk {
16+
status = "okay";
17+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CONFIG_ZTEST=y
2+
3+
CONFIG_CLOCK_CONTROL=y
4+
CONFIG_LOG=y
5+
CONFIG_CLOCK_CONTROL_LOG_LEVEL_DBG=y
6+
CONFIG_LOCAL_DOMAIN_DVFS_LIB_LOG_LEVEL_DBG=y
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tests:
2+
nrf.extended.drivers.clock.nrf_clock_control:
3+
tags:
4+
- drivers
5+
- clock_control
6+
- ci_tests_zephyr_drivers_clock_control
7+
platform_allow:
8+
- nrf9251dk/nrf9251/cpuapp

0 commit comments

Comments
 (0)