drivers: rtc: stm32: New stm32 RTC driver

STM32 RTC driver for the new RTC API.
Can't coexist with old COUNTER based RTC

Though supported by HW, RTC_ALARM still to be supported by driver

Signed-off-by: Kim Bøndergaard <kim.bondergaard@prevas.dk>
This commit is contained in:
Kim Bøndergaard 2023-06-13 15:13:56 +02:00 committed by Fabio Baltieri
commit b3c46083fb
5 changed files with 195 additions and 0 deletions

12
drivers/rtc/Kconfig.stm32 Normal file
View file

@ -0,0 +1,12 @@
# Copyright 2023 Prevas A/S
# SPDX-License-Identifier: Apache-2.0
config RTC_STM32
bool "STM32 RTC driver"
default y if !COUNTER
depends on DT_HAS_ST_STM32_RTC_ENABLED
select USE_STM32_LL_RTC
select USE_STM32_LL_PWR
select USE_STM32_LL_RCC
help
Build RTC driver for STM32 SoCs.