Skip to content

Commit 222c6dc

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 e8ba113 commit 222c6dc

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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-hsfll-global";
14+
clocks = <&fll16>;
15+
#clock-cells = <0>;
16+
clock-frequency = <320000000>;
17+
supported-clock-frequencies = <64000000
18+
128000000
19+
256000000
20+
320000000>;
21+
};
22+
23+
compatible: "nordic,nrf-hsfll-global"
24+
25+
include:
26+
- "base.yaml"
27+
- "clock-controller.yaml"
28+
29+
properties:
30+
clocks:
31+
required: true
32+
33+
"#clock-cells":
34+
const: 0
35+
36+
supported-clock-frequencies:
37+
type: array
38+
description: Supported clock frequencies in ascending order
39+
40+
clock-frequency:
41+
type: int
42+
description: |
43+
Optional fixed frequency specified if used in fixed
44+
frequency mode.

dts/common/nordic/nrf54h20.dtsi

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

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

189193
lfclk: lfclk {

0 commit comments

Comments
 (0)