From b3ccd3abc60804c6d412ff6dd3c9982c79821a24 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 26 Sep 2022 16:05:50 +0200 Subject: [PATCH] boards: arm: nucleo_wb55rg enables hsi48 for Bluetooth The nucleo_wb55rg platform has Bluetooth feature that requires the HSI48. The board DTS enables the HSI48MHz clock for that purpose. And also selects it as the source (default) of the CLK48. Note that the clk48 node must be enabled for any another source. Signed-off-by: Francois Ramu --- boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts index e0b2c7d7195..f59c82065ba 100644 --- a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts +++ b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts @@ -101,6 +101,16 @@ status = "okay"; }; +&clk_hsi48 { + status = "okay"; +}; + +&clk48 { + /* Node is disabled by default as default source is HSI48 */ + /* To select another clock, enable the node */ + clocks = <&rcc STM32_SRC_HSI48 CLK48_SEL(0)>; +}; + &rcc { clocks = <&clk_hse>; clock-frequency = ;