soc: arm: stm32f2 add rtc feature on this serie

This patch enables the rtc on the stm32f2 soc series
from STMicroelectronics

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2020-06-03 10:13:05 +02:00 committed by Ioannis Glaropoulos
commit 5debc6a94d
2 changed files with 16 additions and 0 deletions

View file

@ -142,6 +142,16 @@
};
};
rtc: rtc@40002800 {
compatible = "st,stm32-rtc";
reg = <0x40002800 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>;
interrupts = <41 0>;
prescaler = <32768>;
status = "disabled";
label = "RTC_0";
};
iwdg: watchdog@40003000 {
compatible = "st,stm32-watchdog";
reg = <0x40003000 0x400>;

View file

@ -54,6 +54,12 @@
#include <stm32f2xx_ll_wwdg.h>
#endif
#if defined(CONFIG_COUNTER_RTC_STM32)
#include <stm32f2xx_ll_rtc.h>
#include <stm32f2xx_ll_exti.h>
#include <stm32f2xx_ll_pwr.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32f2xx_ll_adc.h>
#endif