boards: arm: nucleo_wb55rg: use DT for PWM pinmux configuration
Use the new DT facilities to configure PWM pinmux on NUCLEO-WB55RG board. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
dda6396c65
commit
a4aa951baa
@ -6,6 +6,7 @@
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/wb/stm32wb55Xg.dtsi>
|
||||
#include <st/wb/stm32wb55rgvx-pinctrl.dtsi>
|
||||
#include "arduino_r3_connector.dtsi"
|
||||
|
||||
/ {
|
||||
@ -88,6 +89,7 @@
|
||||
status = "okay";
|
||||
pwm2: pwm {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&tim2_ch1_pwm_pa0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -38,9 +38,6 @@ static const struct pin_config pinconf[] = {
|
||||
{STM32_PIN_PA6, STM32WBX_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32WBX_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay) && CONFIG_PWM
|
||||
{STM32_PIN_PA0, STM32WBX_PINMUX_FUNC_PA0_TMR2_CH1},
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay) && CONFIG_ADC
|
||||
{STM32_PIN_PC2, STM32WBX_PINMUX_FUNC_PC2_ADC1_IN3},
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user