Skip to content

Add STM32 PWM + DMA ws2812 driver#55

Open
petejohanson wants to merge 2 commits intozmkfirmware:v4.1.0+zmk-fixesfrom
petejohanson:v4.1.0+zmk+pwm_dma
Open

Add STM32 PWM + DMA ws2812 driver#55
petejohanson wants to merge 2 commits intozmkfirmware:v4.1.0+zmk-fixesfrom
petejohanson:v4.1.0+zmk+pwm_dma

Conversation

@petejohanson
Copy link
Copy Markdown

This cherry picks the upstream work from zephyrproject-rtos#88671 and adds an STM32 PWM + DMA led_strip driver for the ws2812 family of LEDs.

This has been tested on wb55rg, f411ce, and g0b1 without any issues. Will work to get this upstreamed, another contributor may actually lead the work to integrate into Zephyr, so we'll track that for adjustment as needed when we move to a newer Zephyr version eventually.

SiViSur and others added 2 commits March 20, 2026 01:45
Extend the PWM API with optional API functions for enabling DMA requests

Possible solution for zephyrproject-rtos#88670

Signed-off-by: Vincent Surkijn <vincent.surkijn@siemens.com>
Implement an LED strip driver for WS2812 and and compatible LEDs using DMA
to load compare values for the 0/1 bits for that protocol.

Signed-off-by: Peter Johanson <peter@peterjohanson.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants