Skip to content

Commit ad34e48

Browse files
Mani-Sadhasivamcarlescufi
authored andcommitted
boards: arm: 96b_wistrio: Use STM32_OSPEEDR_VERY_HIGH_SPEED for SPI1_SCK
Add Add STM32_OSPEEDR_VERY_HIGH_SPEED flag for SPI1_SCK to function properly. This is needed for the proper communication with the LoRa modem. Without this flag, the received data is mangled when burst read is performed. Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
1 parent c8d1261 commit ad34e48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boards/arm/96b_wistrio/pinmux.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ static const struct pin_config pinconf[] = {
2727
{STM32_PIN_PB9, STM32L1X_PINMUX_FUNC_PB9_I2C1_SDA},
2828
#endif /* CONFIG_I2C_1 */
2929
#ifdef CONFIG_SPI_1
30-
{STM32_PIN_PA5, STM32L1X_PINMUX_FUNC_PA5_SPI1_SCK},
30+
{STM32_PIN_PA5, STM32L1X_PINMUX_FUNC_PA5_SPI1_SCK |
31+
STM32_OSPEEDR_VERY_HIGH_SPEED},
3132
{STM32_PIN_PA6, STM32L1X_PINMUX_FUNC_PA6_SPI1_MISO},
3233
{STM32_PIN_PA7, STM32L1X_PINMUX_FUNC_PA7_SPI1_MOSI},
3334
#endif /* CONFIG_SPI_1 */

0 commit comments

Comments
 (0)