boards: arm: Add support for rtc for Nucleo F103RB, L4A6ZG & F103 mini

Add LSI clock and RTC clock source for Nucleo F103RB, L4A6ZG and
F103 mini to resolve a regression concerning the RTC counter

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
This commit is contained in:
Guillaume Gautier 2022-11-15 15:56:40 +01:00 committed by Carles Cufí
commit 68f6ebfd6c
3 changed files with 18 additions and 0 deletions

View file

@ -43,6 +43,10 @@
};
};
&clk_lsi {
status = "okay";
};
&clk_hse {
hse-bypass;
clock-frequency = <DT_FREQ_M(8)>; /* STLink 8MHz clock */
@ -120,6 +124,8 @@
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
status = "okay";
};

View file

@ -62,6 +62,10 @@
};
};
&clk_lsi {
status = "okay";
};
&clk_lse {
status = "okay";
};
@ -127,6 +131,8 @@
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
status = "okay";
};

View file

@ -33,6 +33,10 @@
};
};
&clk_lsi {
status = "okay";
};
&clk_hse {
clock-frequency = <DT_FREQ_M(8)>;
status = "okay";
@ -114,6 +118,8 @@ zephyr_udc0: &usb {
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
status = "okay";
};