From 33f534e82e310e275a8f886e7c562381057f6c41 Mon Sep 17 00:00:00 2001 From: Thomas Stranger Date: Fri, 11 Jul 2025 10:31:26 +0200 Subject: [PATCH] soc: st: stm32: add stm32c09x support Adds SoC support for the STM32C091, and the STM32C092 SoCs which are part of the STM32C0 series. Signed-off-by: Thomas Stranger --- soc/st/stm32/soc.yml | 2 ++ soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c091xx | 12 ++++++++++++ soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c092xx | 12 ++++++++++++ soc/st/stm32/stm32c0x/Kconfig.soc | 10 ++++++++++ 4 files changed, 36 insertions(+) create mode 100644 soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c091xx create mode 100644 soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c092xx diff --git a/soc/st/stm32/soc.yml b/soc/st/stm32/soc.yml index ce20e7d6f2f..76fd943ad3e 100644 --- a/soc/st/stm32/soc.yml +++ b/soc/st/stm32/soc.yml @@ -6,6 +6,8 @@ family: - name: stm32c011xx - name: stm32c031xx - name: stm32c071xx + - name: stm32c091xx + - name: stm32c092xx - name: stm32f0x socs: - name: stm32f030x6 diff --git a/soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c091xx b/soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c091xx new file mode 100644 index 00000000000..110a15ec0c5 --- /dev/null +++ b/soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c091xx @@ -0,0 +1,12 @@ +# STMicroelectronics STM32C091xx MCU + +# Copyright (c) 2024 STMicroelectronics +# Copyright (c) 2025 Thomas Stranger +# SPDX-License-Identifier: Apache-2.0 + +if SOC_STM32C091XX + +config NUM_IRQS + default 30 + +endif # SOC_STM32C091XX diff --git a/soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c092xx b/soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c092xx new file mode 100644 index 00000000000..f1b6027792f --- /dev/null +++ b/soc/st/stm32/stm32c0x/Kconfig.defconfig.stm32c092xx @@ -0,0 +1,12 @@ +# STMicroelectronics STM32C092xx MCU + +# Copyright (c) 2024 STMicroelectronics +# Copyright (c) 2025 Thomas Stranger +# SPDX-License-Identifier: Apache-2.0 + +if SOC_STM32C092XX + +config NUM_IRQS + default 32 + +endif # SOC_STM32C092XX diff --git a/soc/st/stm32/stm32c0x/Kconfig.soc b/soc/st/stm32/stm32c0x/Kconfig.soc index adf62f3c569..8d366a619fa 100644 --- a/soc/st/stm32/stm32c0x/Kconfig.soc +++ b/soc/st/stm32/stm32c0x/Kconfig.soc @@ -22,7 +22,17 @@ config SOC_STM32C071XX bool select SOC_SERIES_STM32C0X +config SOC_STM32C091XX + bool + select SOC_SERIES_STM32C0X + +config SOC_STM32C092XX + bool + select SOC_SERIES_STM32C0X + config SOC default "stm32c011xx" if SOC_STM32C011XX default "stm32c031xx" if SOC_STM32C031XX default "stm32c071xx" if SOC_STM32C071XX + default "stm32c091xx" if SOC_STM32C091XX + default "stm32c092xx" if SOC_STM32C092XX