diff --git a/boards/arm/nucleo_wb55rg/doc/nucleowb55rg.rst b/boards/arm/nucleo_wb55rg/doc/nucleowb55rg.rst index 0b6997dd8c9..2278b1f04e4 100644 --- a/boards/arm/nucleo_wb55rg/doc/nucleowb55rg.rst +++ b/boards/arm/nucleo_wb55rg/doc/nucleowb55rg.rst @@ -164,6 +164,8 @@ The Zephyr nucleo_wb55rg board configuration supports the following hardware fea +-----------+------------+-------------------------------------+ | SPI | on-chip | spi | +-----------+------------+-------------------------------------+ +| PWM | on-chip | pwm | ++-----------+------------+-------------------------------------+ Other hardware features are not yet supported on this Zephyr port. @@ -196,6 +198,7 @@ Default Zephyr Peripheral Mapping: - SPI_1_SCK : PA5 (arduino_spi) - SPI_1_MISO : PA6 (arduino_spi) - SPI_1_MOSI : PA7 (arduino_spi) +- PWM_2 CH 1 : PA0 System Clock ------------ diff --git a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts index f9bc893eb06..5e9cbddbbac 100644 --- a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts +++ b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts @@ -81,6 +81,13 @@ arduino_spi: &spi1 { status = "okay"; }; +&timers2 { + status = "okay"; + pwm { + status = "okay"; + }; +}; + arduino_serial: &lpuart1 { current-speed = <115200>; status = "okay"; diff --git a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.yaml b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.yaml index c0113ba3b12..6adb1cdcbf8 100644 --- a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.yaml +++ b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.yaml @@ -14,3 +14,4 @@ supported: - i2c - counter - spi + - pwm diff --git a/boards/arm/nucleo_wb55rg/pinmux.c b/boards/arm/nucleo_wb55rg/pinmux.c index e6c1c1b3912..5f0a5005127 100644 --- a/boards/arm/nucleo_wb55rg/pinmux.c +++ b/boards/arm/nucleo_wb55rg/pinmux.c @@ -36,6 +36,9 @@ 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 /* CONFIG_SPI_1 */ +#ifdef CONFIG_PWM_STM32_2 + {STM32_PIN_PA0, STM32WBX_PINMUX_FUNC_PA0_TMR2_CH1}, +#endif /* CONFIG_PWM_STM32_2 */ }; static int pinmux_stm32_init(struct device *port)