Skip to content

Commit 923d313

Browse files
nordic-krchkartben
authored andcommitted
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]>
1 parent 860233d commit 923d313

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
@@ -83,6 +83,10 @@
8383
};
8484
};
8585

86+
&uart00 {
87+
/delete-property/ clocks;
88+
};
89+
8690
&uart20 {
8791
status = "okay";
8892
current-speed = <115200>;

dts/common/nordic/nrf54l20.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
#clock-cells = <0>;
4747
clock-frequency = <DT_FREQ_M(32)>;
4848
};
49+
50+
hfpll: hfpll {
51+
compatible = "fixed-clock";
52+
#clock-cells = <0>;
53+
clock-frequency = <DT_FREQ_M(128)>;
54+
};
4955
};
5056

5157
soc {
@@ -117,6 +123,7 @@
117123
compatible = "nordic,nrf-uarte";
118124
reg = <0x4d000 0x1000>;
119125
interrupts = <77 NRF_DEFAULT_IRQ_PRIORITY>;
126+
clocks = <&hfpll>;
120127
status = "disabled";
121128
endtx-stoptx-supported;
122129
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
@@ -59,6 +59,12 @@
5959
#clock-cells = <0>;
6060
clock-frequency = <DT_FREQ_M(32)>;
6161
};
62+
63+
hfpll: hfpll {
64+
compatible = "fixed-clock";
65+
#clock-cells = <0>;
66+
clock-frequency = <DT_FREQ_M(128)>;
67+
};
6268
};
6369

6470
soc {
@@ -138,6 +144,7 @@
138144
compatible = "nordic,nrf-uarte";
139145
reg = <0x4a000 0x1000>;
140146
interrupts = <74 NRF_DEFAULT_IRQ_PRIORITY>;
147+
clocks = <&hfpll>;
141148
status = "disabled";
142149
endtx-stoptx-supported;
143150
frame-timeout-supported;

0 commit comments

Comments
 (0)