From 923d313a04726f6475b19ef803eb8b5a080e91d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Wed, 27 Nov 2024 11:14:04 +0100 Subject: [PATCH] dts: common: nordic: nrf54l: Add hfpll clock source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add 128 MHz clock source and use it for uart00. Baudrate setting must be adjusted based on uart clock source so without this change there is wrong baudrate on uart00. Signed-off-by: Krzysztof Chruściński --- boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts | 4 ++++ dts/common/nordic/nrf54l20.dtsi | 7 +++++++ dts/common/nordic/nrf54l_05_10_15.dtsi | 7 +++++++ 3 files changed, 18 insertions(+) diff --git a/boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts b/boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts index cc1de29bd8a..8e53dfe09dc 100644 --- a/boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts +++ b/boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts @@ -83,6 +83,10 @@ }; }; +&uart00 { + /delete-property/ clocks; +}; + &uart20 { status = "okay"; current-speed = <115200>; diff --git a/dts/common/nordic/nrf54l20.dtsi b/dts/common/nordic/nrf54l20.dtsi index c7622bbcac2..7f33221b0e7 100644 --- a/dts/common/nordic/nrf54l20.dtsi +++ b/dts/common/nordic/nrf54l20.dtsi @@ -46,6 +46,12 @@ #clock-cells = <0>; clock-frequency = ; }; + + hfpll: hfpll { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = ; + }; }; soc { @@ -117,6 +123,7 @@ compatible = "nordic,nrf-uarte"; reg = <0x4d000 0x1000>; interrupts = <77 NRF_DEFAULT_IRQ_PRIORITY>; + clocks = <&hfpll>; status = "disabled"; endtx-stoptx-supported; frame-timeout-supported; diff --git a/dts/common/nordic/nrf54l_05_10_15.dtsi b/dts/common/nordic/nrf54l_05_10_15.dtsi index 04fae0272bc..633b1d425e4 100644 --- a/dts/common/nordic/nrf54l_05_10_15.dtsi +++ b/dts/common/nordic/nrf54l_05_10_15.dtsi @@ -59,6 +59,12 @@ #clock-cells = <0>; clock-frequency = ; }; + + hfpll: hfpll { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = ; + }; }; soc { @@ -138,6 +144,7 @@ compatible = "nordic,nrf-uarte"; reg = <0x4a000 0x1000>; interrupts = <74 NRF_DEFAULT_IRQ_PRIORITY>; + clocks = <&hfpll>; status = "disabled"; endtx-stoptx-supported; frame-timeout-supported;