From 2d7639c81506c584d95d49bdcad859c36e7d05db Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Mon, 11 Dec 2023 13:06:53 +0800 Subject: [PATCH] boards: arm: Add RTC clock source for mikroe_mini_m4_for_stm32 The `mikroe_mini_m4_for_stm32` board doesn't have its RTC node enabled, and is failing the following test: `tests/benchmarks/footprints/benchmark.kernel.footprints.pm` This board seems to have been missed out from 44b8370, let's enable the rtc & clk_lsi here. Signed-off-by: Yong Cong Sin (cherry picked from commit 54573e7c4c77b5b9311108d19c8d9543e3f0b936) --- .../mikroe_mini_m4_for_stm32.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/boards/arm/mikroe_mini_m4_for_stm32/mikroe_mini_m4_for_stm32.dts b/boards/arm/mikroe_mini_m4_for_stm32/mikroe_mini_m4_for_stm32.dts index 60f270855a71..e9d3b46d3b45 100644 --- a/boards/arm/mikroe_mini_m4_for_stm32/mikroe_mini_m4_for_stm32.dts +++ b/boards/arm/mikroe_mini_m4_for_stm32/mikroe_mini_m4_for_stm32.dts @@ -38,6 +38,10 @@ }; }; +&clk_lsi { + status = "okay"; +}; + &clk_hse { clock-frequency = ; status = "okay"; @@ -99,3 +103,9 @@ zephyr_udc0: &usbotg_fs { &cryp { status = "okay"; }; + +&rtc { + clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>, + <&rcc STM32_SRC_LSI RTC_SEL(2)>; + status = "okay"; +};