Skip to content

Commit 6e85999

Browse files
bjarki-andreasene-rk
authored andcommitted
[nrf fromtree] dts: arm: nrf51: add hfxo binding and nodes
Add nrf51 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]> (cherry picked from commit 9ba72a5) Signed-off-by: Rafał Kuźnia <[email protected]>
1 parent 6ed2a05 commit 6e85999

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

dts/arm/nordic/nrf51822.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
};
2323
};
2424

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

0 commit comments

Comments
 (0)