1# ST Microelectronics STM32U5 MCU series
2
3# Copyright (c) 2021 Linaro Limited
4# SPDX-License-Identifier: Apache-2.0
5
6DT_CHOSEN_STDBY_TIMER := st,lptim-stdby-timer
7
8config SOC_SERIES_STM32U5X
9	select ARM
10	select CPU_CORTEX_M33
11	select ARM_TRUSTZONE_M
12	select CPU_HAS_ARM_SAU
13	select CPU_HAS_ARM_MPU
14	select CPU_HAS_FPU
15	select ARMV8_M_DSP
16	select CPU_CORTEX_M_HAS_DWT
17	select HAS_STM32CUBE
18	select HAS_PM
19	select HAS_POWEROFF
20
21config STM32_STOP3_LP_MODE
22	bool
23	default $(dt_path_enabled,/cpus/power-states/state3) && $(dt_chosen_enabled,$(DT_CHOSEN_STDBY_TIMER))
24	help
25	  Enable support for STM32 STOP3 low-power mode.
26	  Based on the Cortex-M33 Deepsleep mode combined with peripheral clock gating.
27	  All clocks in the core domain are stopped.
28	  The PLL, MSIS, MSIK, HSI16, and HSE oscillators are disabled.
29	  All SRAMs and register contents are preserved.
30	  SRAMs can be totally or partially switched off to further reduce consumption.
31	  GPIOs are left floating and additional pull-up or pull-down can be applied
32	  via PWR registers.
33