Skip to content

Commit 168395f

Browse files
srcnertfabiobaltieri
authored andcommitted
boards: rakwireless: rak3172: Fix clock settings
Enabling HSE and LSE clock settings. Signed-off-by: Sercan Erat <[email protected]>
1 parent 01a92d0 commit 168395f

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

boards/rakwireless/rak3172/rak3172.dts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,16 @@
4343

4444
&lptim1 {
4545
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x80000000>,
46-
<&rcc STM32_SRC_LSI LPTIM1_SEL(1)>;
47-
status = "okay";
48-
};
49-
50-
&clk_lsi {
46+
<&rcc STM32_SRC_LSE LPTIM1_SEL(3)>;
5147
status = "okay";
5248
};
5349

5450
&pll {
5551
div-m = <1>;
56-
mul-n = <6>;
52+
mul-n = <3>;
5753
div-r = <2>;
5854
div-q = <2>;
59-
clocks = <&clk_hsi>;
55+
clocks = <&clk_hse>;
6056
status = "okay";
6157
};
6258

@@ -99,7 +95,7 @@
9995

10096
&rtc {
10197
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000400>,
102-
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
98+
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
10399
status = "okay";
104100
};
105101

@@ -115,10 +111,6 @@
115111
status = "okay";
116112
};
117113

118-
&clk_hsi {
119-
status = "okay";
120-
};
121-
122114
&flash0 {
123115
partitions {
124116
compatible = "fixed-partitions";

dts/arm/rakwireless/rak3172.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
#include <st/wl/stm32wle5ccux-pinctrl.dtsi>
88

99
&clk_hse {
10+
status = "okay";
1011
clock-frequency = <DT_FREQ_M(32)>;
1112
};
1213

1314
&clk_lse {
15+
status = "okay";
1416
clock-frequency = <32768>;
1517
};
1618

0 commit comments

Comments
 (0)