diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 53c8f2b193c..b6a1b550e8b 100644 --- a/drivers/pinctrl/pinctrl_stm32.c +++ b/drivers/pinctrl/pinctrl_stm32.c @@ -80,8 +80,8 @@ int stm32_pinmux_init_remap(void) #if REMAP_PA11 || REMAP_PA12 -#if !defined(CONFIG_SOC_SERIES_STM32G0X) -#error "Pin remap property available only on STM32G0 SoC series" +#if !defined(CONFIG_SOC_SERIES_STM32G0X) && !defined(CONFIG_SOC_SERIES_STM32C0X) +#error "Pin remap property available only on STM32G0 and STM32C0 SoC series" #endif LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG); diff --git a/dts/bindings/pinctrl/st,stm32-pinctrl.yaml b/dts/bindings/pinctrl/st,stm32-pinctrl.yaml index b412d5dfddb..a9f41602643 100644 --- a/dts/bindings/pinctrl/st,stm32-pinctrl.yaml +++ b/dts/bindings/pinctrl/st,stm32-pinctrl.yaml @@ -20,12 +20,12 @@ properties: remap-pa11: type: boolean description: Remaps the PA11 pin to operate as PA9 pin. - Use of this property is restricted to STM32G0 SoCs. + Use of this property is restricted to STM32G0 and STM32C0 SoCs. remap-pa12: type: boolean description: Remaps the PA12 pin to operate as PA10 pin. - Use of this property is restricted to STM32G0 SoCs. + Use of this property is restricted to STM32G0 and STM32C0 SoCs. remap-pa11-pa12: type: boolean