From 63e3befa7630424d6b7eeb79f228214d177cfbfa Mon Sep 17 00:00:00 2001 From: Bjarki Arge Andreasen Date: Thu, 21 Nov 2024 13:38:40 +0100 Subject: [PATCH] [nrf fromlist] dts: nordic: specify device model of global hsfll clock Add specific device model for global hsfll clock and update dts tree to use specific model. The clock is not fixed, and configurable at runtime to predefined frequencies specified by the platform. Upstream PR #: 81735 Signed-off-by: Bjarki Arge Andreasen --- .../clock/nordic,nrf-global-hsfll.yaml | 36 +++++++++++++++++++ dts/common/nordic/nrf54h20.dtsi | 6 ++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 dts/bindings/clock/nordic,nrf-global-hsfll.yaml diff --git a/dts/bindings/clock/nordic,nrf-global-hsfll.yaml b/dts/bindings/clock/nordic,nrf-global-hsfll.yaml new file mode 100644 index 00000000000..d2fa51db486 --- /dev/null +++ b/dts/bindings/clock/nordic,nrf-global-hsfll.yaml @@ -0,0 +1,36 @@ +# Copyright (c) 2024 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +description: | + Nordic Global HSFLL clock. + + The lowest supported clock frequency is the default + clock frequency. + + Example: + + global_hsfll: global_hsfll { + compatible = "nordic,nrf-global-hsfll"; + clocks = <&fll16>; + #clock-cells = <0>; + supported-clock-frequencies = <64000000 + 128000000 + 320000000>; + }; + +compatible: "nordic,nrf-global-hsfll" + +include: + - "base.yaml" + - "clock-controller.yaml" + +properties: + clocks: + required: true + + "#clock-cells": + const: 0 + + supported-clock-frequencies: + type: array + description: Supported clock frequencies in ascending order diff --git a/dts/common/nordic/nrf54h20.dtsi b/dts/common/nordic/nrf54h20.dtsi index a9523f15465..9bb82897039 100644 --- a/dts/common/nordic/nrf54h20.dtsi +++ b/dts/common/nordic/nrf54h20.dtsi @@ -180,10 +180,12 @@ }; hsfll120: hsfll120 { - compatible = "fixed-clock"; + compatible = "nordic,nrf-global-hsfll"; clocks = <&fll16m>; #clock-cells = <0>; - clock-frequency = ; + supported-clock-frequencies = <64000000 + 128000000 + 320000000>; }; lfclk: lfclk {