boards: arm: stm32: use LSE as source for LPTIM
Automatically select LSE as source for LPTIM
on the nucleo_h723zg board.
Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
diff --git a/boards/arm/nucleo_h723zg/Kconfig.defconfig b/boards/arm/nucleo_h723zg/Kconfig.defconfig
index 7b5c327..95497c2 100644
--- a/boards/arm/nucleo_h723zg/Kconfig.defconfig
+++ b/boards/arm/nucleo_h723zg/Kconfig.defconfig
@@ -15,4 +15,9 @@
endif # NETWORKING
+choice STM32_LPTIM_CLOCK
+ default STM32_LPTIM_CLOCK_LSE
+ depends on STM32_LPTIM_TIMER
+endchoice
+
endif # BOARD_NUCLEO_H723ZG
diff --git a/boards/arm/nucleo_h723zg/nucleo_h723zg.dts b/boards/arm/nucleo_h723zg/nucleo_h723zg.dts
index c9d8f0f..d66231e 100644
--- a/boards/arm/nucleo_h723zg/nucleo_h723zg.dts
+++ b/boards/arm/nucleo_h723zg/nucleo_h723zg.dts
@@ -68,6 +68,10 @@
status = "okay";
};
+&clk_lse {
+ status = "okay";
+};
+
&pll {
div-m = <4>;
mul-n = <275>;