From ce3f85aace66af8e50d6bcd834b9f03cfe9e2fc8 Mon Sep 17 00:00:00 2001 From: Bjarki Arge Andreasen Date: Thu, 21 Nov 2024 21:46:22 +0100 Subject: [PATCH] [nrf fromlist] samples: boards: nordic: clock_control: support global hsfll Extend sample to support global hsfll clock control. Upstream PR #: 81735 Signed-off-by: Bjarki Arge Andreasen --- .../nordic/clock_control/configs/global_hsfll.conf | 6 ++++++ .../nordic/clock_control/configs/global_hsfll.overlay | 11 +++++++++++ samples/boards/nordic/clock_control/sample.yaml | 5 +++++ 3 files changed, 22 insertions(+) create mode 100644 samples/boards/nordic/clock_control/configs/global_hsfll.conf create mode 100644 samples/boards/nordic/clock_control/configs/global_hsfll.overlay diff --git a/samples/boards/nordic/clock_control/configs/global_hsfll.conf b/samples/boards/nordic/clock_control/configs/global_hsfll.conf new file mode 100644 index 00000000000..53eebac30be --- /dev/null +++ b/samples/boards/nordic/clock_control/configs/global_hsfll.conf @@ -0,0 +1,6 @@ +# Copyright (c) 2024 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_CLOCK_CONTROL=y + +CONFIG_SAMPLE_CLOCK_FREQUENCY_HZ=320000000 diff --git a/samples/boards/nordic/clock_control/configs/global_hsfll.overlay b/samples/boards/nordic/clock_control/configs/global_hsfll.overlay new file mode 100644 index 00000000000..24585f5a5c6 --- /dev/null +++ b/samples/boards/nordic/clock_control/configs/global_hsfll.overlay @@ -0,0 +1,11 @@ +/* + * Copyright (c) 2024 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/{ + aliases { + sample-clock = &hsfll120; + }; +}; diff --git a/samples/boards/nordic/clock_control/sample.yaml b/samples/boards/nordic/clock_control/sample.yaml index dd2cfe86c41..cc923ba2ab6 100644 --- a/samples/boards/nordic/clock_control/sample.yaml +++ b/samples/boards/nordic/clock_control/sample.yaml @@ -29,3 +29,8 @@ tests: extra_args: - CONF_FILE="configs/cpuapp_hsfll.conf" - DTC_OVERLAY_FILE="configs/cpuapp_hsfll.overlay" + sample.boards.nrf.clock_control.global_hsfll: + filter: dt_nodelabel_enabled("hsfll120") + extra_args: + - CONF_FILE="configs/global_hsfll.conf" + - DTC_OVERLAY_FILE="configs/global_hsfll.overlay"