1/* 2 * Copyright (c) 2024 STMicroelectronics 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7&usart3 { 8 /* Set domain clock to HSI to allow wakeup from Stop mode */ 9 clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00040000>, 10 <&rcc STM32_SRC_HSI USART3_SEL(3)>; 11 12 /* Configure device as wakeup source */ 13 wakeup-source; 14 15 /* Enable FIFO to avoid losing chars on device wakeup */ 16 fifo-enable; 17 18 /* Configure sleep pinctrl configuration which will be used when 19 * device is not configured as wakeup source by the application. 20 * This use case is only applicable in PM_DEVICE mode. 21 */ 22 pinctrl-1 = <&analog_pd8 &analog_pd9>; 23 pinctrl-names = "default", "sleep"; 24}; 25 26&clk_hsi { 27 /* Make sure HSI is enabled */ 28 status = "okay"; 29}; 30