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:
parent
b5f9ea073e
commit
68f6ebfd6c
3 changed files with 18 additions and 0 deletions
|
@ -43,6 +43,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&clk_lsi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&clk_hse {
|
&clk_hse {
|
||||||
hse-bypass;
|
hse-bypass;
|
||||||
clock-frequency = <DT_FREQ_M(8)>; /* STLink 8MHz clock */
|
clock-frequency = <DT_FREQ_M(8)>; /* STLink 8MHz clock */
|
||||||
|
@ -120,6 +124,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&rtc {
|
&rtc {
|
||||||
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
|
||||||
|
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&clk_lsi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&clk_lse {
|
&clk_lse {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -127,6 +131,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&rtc {
|
&rtc {
|
||||||
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
|
||||||
|
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&clk_lsi {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&clk_hse {
|
&clk_hse {
|
||||||
clock-frequency = <DT_FREQ_M(8)>;
|
clock-frequency = <DT_FREQ_M(8)>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
@ -114,6 +118,8 @@ zephyr_udc0: &usb {
|
||||||
};
|
};
|
||||||
|
|
||||||
&rtc {
|
&rtc {
|
||||||
|
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
|
||||||
|
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue