Skip to content

Commit 63e3bef

Browse files
[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 <[email protected]>
1 parent 73ce645 commit 63e3bef

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: |
5+
Nordic Global HSFLL clock.
6+
7+
The lowest supported clock frequency is the default
8+
clock frequency.
9+
10+
Example:
11+
12+
global_hsfll: global_hsfll {
13+
compatible = "nordic,nrf-global-hsfll";
14+
clocks = <&fll16>;
15+
#clock-cells = <0>;
16+
supported-clock-frequencies = <64000000
17+
128000000
18+
320000000>;
19+
};
20+
21+
compatible: "nordic,nrf-global-hsfll"
22+
23+
include:
24+
- "base.yaml"
25+
- "clock-controller.yaml"
26+
27+
properties:
28+
clocks:
29+
required: true
30+
31+
"#clock-cells":
32+
const: 0
33+
34+
supported-clock-frequencies:
35+
type: array
36+
description: Supported clock frequencies in ascending order

dts/common/nordic/nrf54h20.dtsi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,12 @@
180180
};
181181

182182
hsfll120: hsfll120 {
183-
compatible = "fixed-clock";
183+
compatible = "nordic,nrf-global-hsfll";
184184
clocks = <&fll16m>;
185185
#clock-cells = <0>;
186-
clock-frequency = <DT_FREQ_M(320)>;
186+
supported-clock-frequencies = <64000000
187+
128000000
188+
320000000>;
187189
};
188190

189191
lfclk: lfclk {

0 commit comments

Comments
 (0)