boards: arm: stm32f746g_disco: use DT for PWM pinmux configuration

Use the new DT facilities to configure PWM pinmux on
STM32F746G-DISCOVERY board.

NOTE: DT entry for timers1/pwm1 has been replaced by timers3/pwm3 as it
was the pwm referenced in the pinmux file.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2020-10-03 19:00:36 +02:00 committed by Kumar Gala
commit bedd55ac97
2 changed files with 4 additions and 5 deletions

View file

@ -22,9 +22,6 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm3), okay) && CONFIG_PWM
{STM32_PIN_PB4, STM32F7_PINMUX_FUNC_PB4_PWM3_CH1},
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(mac), okay) && CONFIG_NET_L2_ETHERNET
{STM32_PIN_PC1, STM32F7_PINMUX_FUNC_PC1_ETH},
{STM32_PIN_PC4, STM32F7_PINMUX_FUNC_PC4_ETH},

View file

@ -6,6 +6,7 @@
/dts-v1/;
#include <st/f7/stm32f746Xg.dtsi>
#include <st/f7/stm32f746nghx-pinctrl.dtsi>
#include "arduino_r3_connector.dtsi"
/ {
@ -78,11 +79,12 @@
status = "okay";
};
&timers1 {
&timers3 {
status = "okay";
pwm1: pwm {
pwm3: pwm {
status = "okay";
pinctrl-0 = <&tim3_ch1_pwm_pb4>;
};
};