Skip to content

Commit b9fdef6

Browse files
bjarki-andreasenkartben
authored andcommitted
dts: bindings: clock: nrf53-hfxo: add startup-time-us prop
Add the clock startup time property to the nrf53 series HFXO binding. 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 a81dad9 commit b9fdef6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ oscillators: clock-controller@4000 {
2626
compatible = "nordic,nrf53-hfxo";
2727
#clock-cells = <0>;
2828
clock-frequency = <DT_FREQ_M(32)>;
29+
startup-time-us = <1400>;
2930
};
3031
};
3132

dts/bindings/clock/nordic,nrf53-hfxo.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ properties:
1111
clock-frequency:
1212
const: 32000000
1313

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.
27+
1428
load-capacitors:
1529
type: string
1630
enum:

0 commit comments

Comments
 (0)