diff --git a/boards/arm/nucleo_h743zi/nucleo_h743zi.dts b/boards/arm/nucleo_h743zi/nucleo_h743zi.dts index 254f08f653d..d94fba226c9 100644 --- a/boards/arm/nucleo_h743zi/nucleo_h743zi.dts +++ b/boards/arm/nucleo_h743zi/nucleo_h743zi.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include #include "arduino_r3_connector.dtsi" / { @@ -57,6 +58,7 @@ }; &usart3 { + pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>; current-speed = <115200>; status = "okay"; }; diff --git a/boards/arm/nucleo_h743zi/pinmux.c b/boards/arm/nucleo_h743zi/pinmux.c index fa4053b4214..f77dd9ce606 100644 --- a/boards/arm/nucleo_h743zi/pinmux.c +++ b/boards/arm/nucleo_h743zi/pinmux.c @@ -14,10 +14,6 @@ /* NUCLEO-H743ZI pin configurations */ static const struct pin_config pinconf[] = { -#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay) && CONFIG_SERIAL - { STM32_PIN_PD8, STM32H7_PINMUX_FUNC_PD8_USART3_TX }, - { STM32_PIN_PD9, STM32H7_PINMUX_FUNC_PD9_USART3_RX }, -#endif #if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay) && CONFIG_I2C { STM32_PIN_PB8, STM32H7_PINMUX_FUNC_PB8_I2C1_SCL }, { STM32_PIN_PB9, STM32H7_PINMUX_FUNC_PB9_I2C1_SDA },