cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP157F-DK2 pinctrl-stm32mp157.c I2C3

DYenEmbedded
Associate III

STM32MP157F-DK2 is missing I2C3_SDA at CN2, Arduino connectors although it has I2C3_SCL at PA8. Is it possible to bring I2C3_SDA to PG8 by modifying pinctrl-stm32mp157.c, stm32mp15-pinctrl.dtsi, stm32mp157f-dk2.dts and then no need to use STM32CubeMX ?  Is it a mistake that pinctrl-stm32mp157.c has no entry for AF5 and that is where I2C3_SDA can be?

STM32_PIN_PKG(
PINCTRL_PIN(104, "PG8"),
STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
STM32_FUNCTION(0, "GPIOG8"),
STM32_FUNCTION(1, "TRACED15"),
STM32_FUNCTION(2, "TIM2_CH1 TIM2_ETR"),
STM32_FUNCTION(3, "ETH_CLK"),
STM32_FUNCTION(4, "TIM8_ETR"),
STM32_FUNCTION(6, "SPI6_NSS"),

STM32_PIN_PKG(
PINCTRL_PIN(8, "PA8"),
STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
STM32_FUNCTION(0, "GPIOA8"),
STM32_FUNCTION(1, "MCO1"),
STM32_FUNCTION(2, "TIM1_CH1"),
STM32_FUNCTION(4, "TIM8_BKIN2"),
STM32_FUNCTION(5, "I2C3_SCL"),

0 REPLIES 0