diff --git a/drivers/pinmux/stm32/pinmux_board_carbon.c b/drivers/pinmux/stm32/pinmux_board_carbon.c index 29a087221fa..6282c882d58 100644 --- a/drivers/pinmux/stm32/pinmux_board_carbon.c +++ b/drivers/pinmux/stm32/pinmux_board_carbon.c @@ -23,6 +23,14 @@ static const struct pin_config pinconf[] = { {STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX}, {STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX}, #endif /* CONFIG_UART_STM32_PORT_2 */ +#ifdef CONFIG_I2C_1 + {STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL}, + {STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA}, +#endif /* CONFIG_I2C_1 */ +#ifdef CONFIG_I2C_2 + {STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL}, + {STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_I2C2_SDA}, +#endif /* CONFIG_I2C_2 */ }; static int pinmux_stm32_init(struct device *port) diff --git a/drivers/pinmux/stm32/pinmux_board_nucleo_f334r8.c b/drivers/pinmux/stm32/pinmux_board_nucleo_f334r8.c index 59feda59dcf..3f3fd0f9a01 100644 --- a/drivers/pinmux/stm32/pinmux_board_nucleo_f334r8.c +++ b/drivers/pinmux/stm32/pinmux_board_nucleo_f334r8.c @@ -19,6 +19,10 @@ static const struct pin_config pinconf[] = { {STM32_PIN_PA9, STM32F3_PINMUX_FUNC_PA9_USART1_TX}, {STM32_PIN_PA10, STM32F3_PINMUX_FUNC_PA10_USART1_RX}, #endif /* CONFIG_UART_STM32_PORT_1 */ +#ifdef CONFIG_I2C_1 + {STM32_PIN_PB8, STM32F3_PINMUX_FUNC_PB8_I2C1_SCL}, + {STM32_PIN_PB9, STM32F3_PINMUX_FUNC_PB9_I2C1_SDA}, +#endif /* CONFIG_I2C_1 */ #ifdef CONFIG_UART_STM32_PORT_2 {STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX}, {STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX}, diff --git a/drivers/pinmux/stm32/pinmux_board_nucleo_f401re.c b/drivers/pinmux/stm32/pinmux_board_nucleo_f401re.c index 9314bf7b78f..d6792a23c66 100644 --- a/drivers/pinmux/stm32/pinmux_board_nucleo_f401re.c +++ b/drivers/pinmux/stm32/pinmux_board_nucleo_f401re.c @@ -26,6 +26,10 @@ static const struct pin_config pinconf[] = { #ifdef CONFIG_PWM_STM32_2 {STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1}, #endif /* CONFIG_PWM_STM32_2 */ +#ifdef CONFIG_I2C_1 + {STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL}, + {STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA}, +#endif }; static int pinmux_stm32_init(struct device *port) diff --git a/drivers/pinmux/stm32/pinmux_board_olimexino_stm32.c b/drivers/pinmux/stm32/pinmux_board_olimexino_stm32.c index 423ffc9b271..5191fbb333b 100644 --- a/drivers/pinmux/stm32/pinmux_board_olimexino_stm32.c +++ b/drivers/pinmux/stm32/pinmux_board_olimexino_stm32.c @@ -27,6 +27,10 @@ static const struct pin_config pinconf[] = { {STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX}, {STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX}, #endif /* CONFIG_UART_STM32_PORT_3 */ +#ifdef CONFIG_I2C_2 + {STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_I2C2_SCL}, + {STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_I2C2_SDA}, +#endif /* CONFIG_I2C_2 */ }; static int pinmux_stm32_init(struct device *port)