From cffd6a084abc111c6c4275fa0ed81a0d2dff525c 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] [nrf fromtree] 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 (cherry picked from commit 923d313a04726f6475b19ef803eb8b5a080e91d7) --- 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 5a77d6c2e98..7d0a2f96aa5 100644 --- a/boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts +++ b/boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts @@ -85,6 +85,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 d06c4814103..7487915cdfd 100644 --- a/dts/common/nordic/nrf54l20.dtsi +++ b/dts/common/nordic/nrf54l20.dtsi @@ -52,6 +52,12 @@ #clock-cells = <0>; clock-frequency = ; }; + + hfpll: hfpll { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = ; + }; }; soc { @@ -123,6 +129,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 eba41095e75..d1141643ef1 100644 --- a/dts/common/nordic/nrf54l_05_10_15.dtsi +++ b/dts/common/nordic/nrf54l_05_10_15.dtsi @@ -65,6 +65,12 @@ #clock-cells = <0>; clock-frequency = ; }; + + hfpll: hfpll { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = ; + }; }; soc { @@ -144,6 +150,7 @@ compatible = "nordic,nrf-uarte"; reg = <0x4a000 0x1000>; interrupts = <74 NRF_DEFAULT_IRQ_PRIORITY>; + clocks = <&hfpll>; status = "disabled"; endtx-stoptx-supported; frame-timeout-supported;