Skip to content

Commit

Permalink
[nrf fromtree] dts: common: nordic: nrf54l: Add hfpll clock source
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 923d313)
  • Loading branch information
nordic-krch authored and nordicjm committed Dec 18, 2024
1 parent 745e2dc commit cffd6a0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@
};
};

&uart00 {
/delete-property/ clocks;
};

&uart20 {
status = "okay";
current-speed = <115200>;
Expand Down
7 changes: 7 additions & 0 deletions dts/common/nordic/nrf54l20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
#clock-cells = <0>;
clock-frequency = <DT_FREQ_M(32)>;
};

hfpll: hfpll {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <DT_FREQ_M(128)>;
};
};

soc {
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions dts/common/nordic/nrf54l_05_10_15.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
#clock-cells = <0>;
clock-frequency = <DT_FREQ_M(32)>;
};

hfpll: hfpll {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <DT_FREQ_M(128)>;
};
};

soc {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cffd6a0

Please sign in to comment.