Skip to content

Commit

Permalink
[nrf fromlist] dts: nordic: specify device model of global hsfll clock
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bjarki-andreasen committed Nov 26, 2024
1 parent 73ce645 commit 63e3bef
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
36 changes: 36 additions & 0 deletions dts/bindings/clock/nordic,nrf-global-hsfll.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions dts/common/nordic/nrf54h20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,12 @@
};

hsfll120: hsfll120 {
compatible = "fixed-clock";
compatible = "nordic,nrf-global-hsfll";
clocks = <&fll16m>;
#clock-cells = <0>;
clock-frequency = <DT_FREQ_M(320)>;
supported-clock-frequencies = <64000000
128000000
320000000>;
};

lfclk: lfclk {
Expand Down

0 comments on commit 63e3bef

Please sign in to comment.