From 29ef82cfaf02a6171eb85462bda73d11e7bd84bf Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 28 Mar 2022 11:53:38 +0200 Subject: [PATCH] samples: boards stm32 power mgmt nucleo_wb55rg sets a lptim prescaler configure the nucleo_wb55rg with a prescaler on the LPTIMer input clock to increase the max sleep duration. With 32 the input clock is 1024Hz and max reachable timeout is 64 seconds. Signed-off-by: Francois Ramu --- .../stm32/power_mgmt/blinky/boards/nucleo_wb55rg.overlay | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 samples/boards/stm32/power_mgmt/blinky/boards/nucleo_wb55rg.overlay diff --git a/samples/boards/stm32/power_mgmt/blinky/boards/nucleo_wb55rg.overlay b/samples/boards/stm32/power_mgmt/blinky/boards/nucleo_wb55rg.overlay new file mode 100644 index 00000000000..66bca43ae2f --- /dev/null +++ b/samples/boards/stm32/power_mgmt/blinky/boards/nucleo_wb55rg.overlay @@ -0,0 +1,9 @@ + /* + * give a prescaler to the lptim clock : LSE / 32 = 1024Hz + * so that the sleep period is of 64s in the sample application + * + */ + +&lptim1 { + st,prescaler = <32>; +};