From 11c07a0412e3fd042166d4a9924328be021982d2 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 11 Dec 2023 17:52:15 +0100 Subject: [PATCH 1/2] boards: arm: Add RTC clock source for 96b_aerocore2 The `96b_aerocore2` board doesn't have its RTC node enabled, and is failing the following test: `tests/benchmarks/footprints/benchmark.kernel.footprints.pm` Enabled RTC node and lsi clock source for that platform. Signed-off-by: Francois Ramu --- boards/arm/96b_aerocore2/96b_aerocore2.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/boards/arm/96b_aerocore2/96b_aerocore2.dts b/boards/arm/96b_aerocore2/96b_aerocore2.dts index 4a4e8672f7ff1a..dd5f8d8a89592f 100644 --- a/boards/arm/96b_aerocore2/96b_aerocore2.dts +++ b/boards/arm/96b_aerocore2/96b_aerocore2.dts @@ -42,6 +42,10 @@ }; +&clk_lsi { + status = "okay"; +}; + &clk_hse { clock-frequency = ; status = "okay"; @@ -180,6 +184,12 @@ zephyr_udc0: &usbotg_fs { status = "okay"; }; +&rtc { + clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>, + <&rcc STM32_SRC_LSI RTC_SEL(2)>; + status = "okay"; +}; + &rng { status = "okay"; }; From 4f9106b15f991a5d6399bc63be909d95fedacfff Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 11 Dec 2023 17:57:53 +0100 Subject: [PATCH 2/2] boards: arm: Add RTC clock source for az3166_iotdevkit The `az3166_iotdevkit` board doesn't have its RTC node enabled, and is failing the following test: `tests/benchmarks/footprints/benchmark.kernel.footprints.pm` Enabled RTC node for that platform. Signed-off-by: Francois Ramu --- boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts b/boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts index 13b641719ee010..4c77535ce21200 100644 --- a/boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts +++ b/boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts @@ -205,3 +205,9 @@ pinctrl-names = "default"; }; }; + +&rtc { + clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>, + <&rcc STM32_SRC_LSI RTC_SEL(2)>; + status = "okay"; +};