boards: stm3210c_eval: configure serial pins from DT

usart2 pinmuxes are now configured from DT pinctrl.

Signed-off-by: Jeremy LOCHE <lochejeremy@gmail.com>
This commit is contained in:
Jeremy LOCHE 2020-10-06 14:50:39 +02:00 committed by Kumar Gala
commit dd2f0b6792
2 changed files with 2 additions and 4 deletions

View file

@ -14,10 +14,6 @@
/* pin assignments for STM3210C-EVAL board */
static const struct pin_config pinconf[] = {
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay) && CONFIG_SERIAL
{STM32_PIN_PD5, STM32F1_PINMUX_FUNC_PD5_USART2_TX},
{STM32_PIN_PD6, STM32F1_PINMUX_FUNC_PD6_USART2_RX},
#endif
};
static int pinmux_stm32_init(const struct device *port)

View file

@ -6,6 +6,7 @@
/dts-v1/;
#include <st/f1/stm32f107Xc.dtsi>
#include <st/f1/stm32f107v(b-c)tx-pinctrl.dtsi>
/ {
model = "STMicroelectronics STM3210C-EVAL board";
@ -41,6 +42,7 @@
};
&usart2 {
pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pd6>;
current-speed = <115200>;
status = "okay";
};