Skip to content

Commit a81dad9

Browse files
bjarki-andreasenkartben
authored andcommitted
dts: arm: nrf52: add hfxo binding and nodes
Add nrf52 series hfxo binding and nodes to socs. Note that the values added to the soc .dtsi files are worst case defaults, which will be replaced with optimal values at board level in the future, as they depend on the specific crystal in use. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 9ba72a5 commit a81dad9

File tree

8 files changed

+88
-0
lines changed

8 files changed

+88
-0
lines changed

dts/arm/nordic/nrf52805.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@
2727
};
2828
};
2929

30+
clocks {
31+
hfxo: hfxo {
32+
compatible = "nordic,nrf52-hfxo";
33+
clock-frequency = <64000000>;
34+
startup-time-us = <1400>;
35+
#clock-cells = <0>;
36+
};
37+
};
38+
3039
soc {
3140
ficr: ficr@10000000 {
3241
compatible = "nordic,nrf-ficr";

dts/arm/nordic/nrf52810.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
};
3232
};
3333

34+
clocks {
35+
hfxo: hfxo {
36+
compatible = "nordic,nrf52-hfxo";
37+
clock-frequency = <64000000>;
38+
startup-time-us = <1400>;
39+
#clock-cells = <0>;
40+
};
41+
};
42+
3443
soc {
3544
ficr: ficr@10000000 {
3645
compatible = "nordic,nrf-ficr";

dts/arm/nordic/nrf52811.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
};
3636
};
3737

38+
clocks {
39+
hfxo: hfxo {
40+
compatible = "nordic,nrf52-hfxo";
41+
clock-frequency = <64000000>;
42+
startup-time-us = <1400>;
43+
#clock-cells = <0>;
44+
};
45+
};
46+
3847
soc {
3948
ficr: ficr@10000000 {
4049
compatible = "nordic,nrf-ficr";

dts/arm/nordic/nrf52820.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
};
3636
};
3737

38+
clocks {
39+
hfxo: hfxo {
40+
compatible = "nordic,nrf52-hfxo";
41+
clock-frequency = <64000000>;
42+
startup-time-us = <1400>;
43+
#clock-cells = <0>;
44+
};
45+
};
46+
3847
soc {
3948
ficr: ficr@10000000 {
4049
compatible = "nordic,nrf-ficr";

dts/arm/nordic/nrf52832.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
};
3232
};
3333

34+
clocks {
35+
hfxo: hfxo {
36+
compatible = "nordic,nrf52-hfxo";
37+
clock-frequency = <64000000>;
38+
startup-time-us = <1400>;
39+
#clock-cells = <0>;
40+
};
41+
};
42+
3443
soc {
3544
ficr: ficr@10000000 {
3645
compatible = "nordic,nrf-ficr";

dts/arm/nordic/nrf52833.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
};
3636
};
3737

38+
clocks {
39+
hfxo: hfxo {
40+
compatible = "nordic,nrf52-hfxo";
41+
clock-frequency = <64000000>;
42+
startup-time-us = <1400>;
43+
#clock-cells = <0>;
44+
};
45+
};
46+
3847
soc {
3948
ficr: ficr@10000000 {
4049
compatible = "nordic,nrf-ficr";

dts/arm/nordic/nrf52840.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
};
3232
};
3333

34+
clocks {
35+
hfxo: hfxo {
36+
compatible = "nordic,nrf52-hfxo";
37+
clock-frequency = <64000000>;
38+
startup-time-us = <1400>;
39+
#clock-cells = <0>;
40+
};
41+
};
42+
3443
soc {
3544
ficr: ficr@10000000 {
3645
compatible = "nordic,nrf-ficr";
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2025 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: Nordic nRF high-frequency crystal oscillator (nRF52 series)
5+
6+
compatible: "nordic,nrf52-hfxo"
7+
8+
include: fixed-clock.yaml
9+
10+
properties:
11+
clock-frequency:
12+
const: 64000000
13+
14+
startup-time-us:
15+
type: int
16+
description: |
17+
Startup time in microseconds.
18+
19+
The value can be obtained by first measuring the time between
20+
TASKS_HFCLKSTART and EVENTS_HFCLKSTARTED. Then multiply
21+
the value by 2 to account for temperature and supply variations.
22+
23+
Note that the startup time will be longer usual on the first
24+
power-up and as such should not be used to determine
25+
startup-time-us.

0 commit comments

Comments
 (0)