From 48f15f86b3ce08b837499d388d8b6d211864ddda Mon Sep 17 00:00:00 2001 From: Bjarki Arge Andreasen Date: Mon, 16 Mar 2026 11:36:29 +0100 Subject: [PATCH] [nrf fromlist] dts: nrf5340: cpunet: add hfxo and lfxo nodes to soc The hfxo and lfxo clocks are used by both cpuapp and cpunet cores, but the hfxo and lfxo nodes are only present in devicetree for the cpuapp core. This prevents the cpunet build from knowing if there is an hfxo and/or lfxo present. Therefore add the lfxo and hfxo clocks to nrf5340_cpunet.dtsi All boards in tree have both the hfxo and lfxo present. The only information that needs to be made available to cpunet is the hfxo's presence and startup time, and lfxo's presence. Upstream PR #: 105558 Signed-off-by: Bjarki Arge Andreasen Signed-off-by: Ivan Iushkov --- dts/arm/nordic/nrf5340_clocks.dtsi | 22 +++++++++++++++++++ dts/arm/nordic/nrf5340_cpuapp.dtsi | 1 + dts/arm/nordic/nrf5340_cpuapp_ns.dtsi | 1 + .../nordic/nrf5340_cpuapp_peripherals.dtsi | 13 ----------- dts/arm/nordic/nrf5340_cpunet.dtsi | 1 + 5 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 dts/arm/nordic/nrf5340_clocks.dtsi diff --git a/dts/arm/nordic/nrf5340_clocks.dtsi b/dts/arm/nordic/nrf5340_clocks.dtsi new file mode 100644 index 000000000000..d2be00a78ae3 --- /dev/null +++ b/dts/arm/nordic/nrf5340_clocks.dtsi @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2026 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + clocks { + lfxo: lfxo { + compatible = "nordic,nrf53-lfxo"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + + hfxo: hfxo { + compatible = "nordic,nrf53-hfxo"; + #clock-cells = <0>; + clock-frequency = ; + startup-time-us = <1400>; + }; + }; +}; diff --git a/dts/arm/nordic/nrf5340_cpuapp.dtsi b/dts/arm/nordic/nrf5340_cpuapp.dtsi index f0a7a6eeb301..c8fd20237f9c 100644 --- a/dts/arm/nordic/nrf5340_cpuapp.dtsi +++ b/dts/arm/nordic/nrf5340_cpuapp.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include / { cpus { diff --git a/dts/arm/nordic/nrf5340_cpuapp_ns.dtsi b/dts/arm/nordic/nrf5340_cpuapp_ns.dtsi index 784a670fe03e..f41ea81e12a8 100644 --- a/dts/arm/nordic/nrf5340_cpuapp_ns.dtsi +++ b/dts/arm/nordic/nrf5340_cpuapp_ns.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include / { cpus { diff --git a/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi b/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi index 46e2a0364758..5617c5f0e467 100644 --- a/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi +++ b/dts/arm/nordic/nrf5340_cpuapp_peripherals.dtsi @@ -15,19 +15,6 @@ dcnf: dcnf@0 { oscillators: clock-controller@4000 { compatible = "nordic,nrf53-oscillators"; reg = <0x4000 0x1000>; - - lfxo: lfxo { - compatible = "nordic,nrf53-lfxo"; - #clock-cells = <0>; - clock-frequency = <32768>; - }; - - hfxo: hfxo { - compatible = "nordic,nrf53-hfxo"; - #clock-cells = <0>; - clock-frequency = ; - startup-time-us = <1400>; - }; }; regulators: regulator@4000 { diff --git a/dts/arm/nordic/nrf5340_cpunet.dtsi b/dts/arm/nordic/nrf5340_cpunet.dtsi index 68c257a4b37a..bc8357d91c33 100644 --- a/dts/arm/nordic/nrf5340_cpunet.dtsi +++ b/dts/arm/nordic/nrf5340_cpunet.dtsi @@ -6,6 +6,7 @@ #include #include +#include / { chosen {