Skip to content

Commit c6bba39

Browse files
erwangocarlescufi
authored andcommitted
dts: stm32wl: Configure LPUART wakeup line
Rather than configuring in serial_wakeup sample, define LPUART1 wakeup line in wl.dtsi file. Additionally make few cosmetic changes to nucleo_wl55rj overlay in serial wakeup sample. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 6a96ee8 commit c6bba39

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

dts/arm/st/wl/stm32wl.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000001>;
260260
resets = <&rctl STM32_RESET(APB1H, 0U)>;
261261
interrupts = <38 0>;
262+
wakeup-line = <28>;
262263
status = "disabled";
263264
};
264265

samples/boards/stm32/power_mgmt/serial_wakeup/boards/nucleo_wl55jc.overlay

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
&clk_lse {
8-
status = "okay";
9-
};
107

11-
/* LPUART1 clock source on LSE : set console at 9600 */
128
&lpuart1 {
13-
/delete-property/ clocks;
9+
/* Set domain clock to LSE to allow wakeup from Stop mode */
1410
clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000001>,
1511
<&rcc STM32_SRC_LSE LPUART1_SEL(3)>;
1612

13+
/* LPUART1 clock source on LSE : set console at 9600 */
1714
current-speed = <9600>;
15+
16+
/* Enable as wakeup source */
1817
wakeup-source;
19-
wakeup-line = <28>;
18+
};
19+
20+
&clk_lse {
21+
/* Make sure LSE clock is enabled */
22+
status = "okay";
2023
};

0 commit comments

Comments
 (0)