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

Use the new DT facilities to configure PWM pinmux on Nucleo H743Zi
board.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2020-10-02 10:55:32 +02:00 committed by Kumar Gala
parent 9841552ead
commit b2d24ce5bd
2 changed files with 1 additions and 3 deletions

View file

@ -77,6 +77,7 @@
pwm12: pwm {
status = "okay";
pinctrl-0 = <&tim12_ch1_pwm_pb14>;
};
};

View file

@ -18,9 +18,6 @@ static const struct pin_config pinconf[] = {
{ STM32_PIN_PB8, STM32H7_PINMUX_FUNC_PB8_I2C1_SCL },
{ STM32_PIN_PB9, STM32H7_PINMUX_FUNC_PB9_I2C1_SDA },
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm12), okay) && CONFIG_PWM
{ STM32_PIN_PB14, STM32H7_PINMUX_FUNC_PB14_PWM12_CH1 },
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1_2), okay) && CONFIG_ADC
{ STM32_PIN_PA3, STM32H7_PINMUX_FUNC_PA3_ADC12_INP15 },
#endif