From 44b9cde05401f21c34c3268d449be9ed723f7d5d Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 12 Sep 2022 16:24:57 +0200 Subject: [PATCH] samples: boards: stm32 serial wakeup form LPUART on nucleo_wl55jc This overlay shows the LPUART at 9600 with wakeUp capability to exit the nucleo_wl55jc target plaform from the low Power stop mode, EXTI_Line 28 is the corresponding wakeUp source. The LPUART is sourced by the LSE (32768Hz) and max baudrate is 9600. Set the console to 9600. Signed-off-by: Francois Ramu --- .../boards/nucleo_wl55jc.overlay | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 samples/boards/stm32/power_mgmt/serial_wakeup/boards/nucleo_wl55jc.overlay diff --git a/samples/boards/stm32/power_mgmt/serial_wakeup/boards/nucleo_wl55jc.overlay b/samples/boards/stm32/power_mgmt/serial_wakeup/boards/nucleo_wl55jc.overlay new file mode 100644 index 00000000000..83c607ff8a0 --- /dev/null +++ b/samples/boards/stm32/power_mgmt/serial_wakeup/boards/nucleo_wl55jc.overlay @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2022 STMicroelectronics + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&clk_lse { + status = "okay"; +}; + +/* LPUART1 clock source on LSE : set console at 9600 */ +&lpuart1 { + /delete-property/ clocks; + clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000001>, + <&rcc STM32_SRC_LSE LPUART1_SEL(3)>; + + current-speed = <9600>; + wakeup-source; + wakeup-line = <28>; +};