Skip to content

Commit 1b14c1f

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 e29512f commit 1b14c1f

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
256000000
19+
320000000>;
20+
};
21+
22+
compatible: "nordic,nrf-global-hsfll"
23+
24+
include:
25+
- "base.yaml"
26+
- "clock-controller.yaml"
27+
28+
properties:
29+
clocks:
30+
required: true
31+
32+
"#clock-cells":
33+
const: 0
34+
35+
supported-clock-frequencies:
36+
type: array
37+
description: Supported clock frequencies in ascending order

dts/common/nordic/nrf54h20.dtsi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,13 @@
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+
256000000
189+
320000000>;
187190
};
188191

189192
lfclk: lfclk {

0 commit comments

Comments
 (0)