pinctrl: stm32: add remap support for STM32C0

Add remap11 and remap12 support for STM32C0 series

Signed-off-by: Romain Pelletant <romainp@kickmaker.net>
This commit is contained in:
Romain Pelletant 2024-05-03 20:46:50 +02:00 committed by Maureen Helm
commit bb0277da16
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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