Skip to content

Linux 7.0.2 add ws2812b#559

Open
CodeChenL wants to merge 3 commits into
radxa:linux-7.0.2from
CodeChenL:linux-7.0.2_add_ws2812b
Open

Linux 7.0.2 add ws2812b#559
CodeChenL wants to merge 3 commits into
radxa:linux-7.0.2from
CodeChenL:linux-7.0.2_add_ws2812b

Conversation

@CodeChenL
Copy link
Copy Markdown
Member

@CodeChenL CodeChenL commented May 22, 2026

WS2812B Will be equipped on a future product, and hat accessories will also be developed

981213 added 3 commits May 22, 2026 14:12
Add vendor prefix for WorldSemi that makes WS2812B
individually-addressable RGB LEDs.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This patch adds support for driving a chain of WS2812B LED chips
using SPI bus.

WorldSemi WS2812B is a individually addressable LED chip that
can be chained together and controlled individually using a
single wire. The chip recognize a long pulse as a bit of 1 and
a short pulse as a bit of 0. Host sends a continuous stream
of 24-bits color values, each LED chip takes the first 3 byte
it receives as its color value and passes the leftover bytes to
the next LED on the chain.

This driver simulates this protocol using SPI bus by sending
a long pulse as 3'b110 and a short pulse as 3'b100. The SPI
frequency needs to be 2.105MHz~2.85MHz for the timing to be
correct and the controller needs to transfer all the bytes
continuously.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Add dt binding schema for WorldSemi WS2812B driven using SPI
bus.

Signed-off-by: Chuanhong Guo <gch981213@gmail.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