Skip to content

Commit cffd6a0

Browse files
nordic-krchnordicjm
authored andcommitted
[nrf fromtree] dts: common: nordic: nrf54l: Add hfpll clock source
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)
1 parent 745e2dc commit cffd6a0

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
};
8686
};
8787

88+
&uart00 {
89+
/delete-property/ clocks;
90+
};
91+
8892
&uart20 {
8993
status = "okay";
9094
current-speed = <115200>;

dts/common/nordic/nrf54l20.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252
#clock-cells = <0>;
5353
clock-frequency = <DT_FREQ_M(32)>;
5454
};
55+
56+
hfpll: hfpll {
57+
compatible = "fixed-clock";
58+
#clock-cells = <0>;
59+
clock-frequency = <DT_FREQ_M(128)>;
60+
};
5561
};
5662

5763
soc {
@@ -123,6 +129,7 @@
123129
compatible = "nordic,nrf-uarte";
124130
reg = <0x4d000 0x1000>;
125131
interrupts = <77 NRF_DEFAULT_IRQ_PRIORITY>;
132+
clocks = <&hfpll>;
126133
status = "disabled";
127134
endtx-stoptx-supported;
128135
frame-timeout-supported;

dts/common/nordic/nrf54l_05_10_15.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@
6565
#clock-cells = <0>;
6666
clock-frequency = <DT_FREQ_M(32)>;
6767
};
68+
69+
hfpll: hfpll {
70+
compatible = "fixed-clock";
71+
#clock-cells = <0>;
72+
clock-frequency = <DT_FREQ_M(128)>;
73+
};
6874
};
6975

7076
soc {
@@ -144,6 +150,7 @@
144150
compatible = "nordic,nrf-uarte";
145151
reg = <0x4a000 0x1000>;
146152
interrupts = <74 NRF_DEFAULT_IRQ_PRIORITY>;
153+
clocks = <&hfpll>;
147154
status = "disabled";
148155
endtx-stoptx-supported;
149156
frame-timeout-supported;

0 commit comments

Comments
 (0)