From 389c9e7b67dcb9a2b172c879f46a24e42e838899 Mon Sep 17 00:00:00 2001 From: Charles Dias Date: Sat, 12 Apr 2025 15:48:05 +0100 Subject: [PATCH] soc: st: stm32: add support for stm32u5g9xx Add Kconfig and YML SoC configurations for STM32U5G9xx. Signed-off-by: Charles Dias --- soc/st/stm32/soc.yml | 1 + soc/st/stm32/stm32u5x/Kconfig.defconfig.stm32u5g9xx | 11 +++++++++++ soc/st/stm32/stm32u5x/Kconfig.soc | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 soc/st/stm32/stm32u5x/Kconfig.defconfig.stm32u5g9xx diff --git a/soc/st/stm32/soc.yml b/soc/st/stm32/soc.yml index 2467265470a..d4184f77b2c 100644 --- a/soc/st/stm32/soc.yml +++ b/soc/st/stm32/soc.yml @@ -203,6 +203,7 @@ family: socs: - name: stm32u5a5xx - name: stm32u5a9xx + - name: stm32u5g9xx - name: stm32u545xx - name: stm32u575xx - name: stm32u585xx diff --git a/soc/st/stm32/stm32u5x/Kconfig.defconfig.stm32u5g9xx b/soc/st/stm32/stm32u5x/Kconfig.defconfig.stm32u5g9xx new file mode 100644 index 00000000000..635fbdd476f --- /dev/null +++ b/soc/st/stm32/stm32u5x/Kconfig.defconfig.stm32u5g9xx @@ -0,0 +1,11 @@ +# STMicroelectronics STM32U5G9XX MCU + +# Copyright (c) 2025 Charles Dias +# SPDX-License-Identifier: Apache-2.0 + +if SOC_STM32U5G9XX + +config NUM_IRQS + default 141 + +endif # SOC_STM32U5G9XX diff --git a/soc/st/stm32/stm32u5x/Kconfig.soc b/soc/st/stm32/stm32u5x/Kconfig.soc index b3360e9ac10..14f80d74aa7 100644 --- a/soc/st/stm32/stm32u5x/Kconfig.soc +++ b/soc/st/stm32/stm32u5x/Kconfig.soc @@ -3,6 +3,7 @@ # Copyright (c) 2021 Linaro Limited # Copyright (c) 2023 PSICONTROL nv # Copyright (c) 2023 STMicroelectronics +# Copyright (c) 2025 Charles Dias # SPDX-License-Identifier: Apache-2.0 config SOC_SERIES_STM32U5X @@ -40,9 +41,14 @@ config SOC_STM32U5A9XX bool select SOC_SERIES_STM32U5X +config SOC_STM32U5G9XX + bool + select SOC_SERIES_STM32U5X + config SOC default "stm32u5a5xx" if SOC_STM32U5A5XX default "stm32u5a9xx" if SOC_STM32U5A9XX + default "stm32u5g9xx" if SOC_STM32U5G9XX default "stm32u545xx" if SOC_STM32U545XX default "stm32u575xx" if SOC_STM32U575XX default "stm32u585xx" if SOC_STM32U585XX