Commit Graph

4 Commits

Author SHA1 Message Date
hanwckf
e7e1459ad9 leds-ws2812b: add 'color-intensity' prop to set default color 2023-08-18 10:36:02 +08:00
hanwckf
4e7dacadf2 leds-ws2812b: set reset code len to 14 bytes to fix spi-dma timeout 2023-08-18 10:35:52 +08:00
Daniel Golle
0f9e8baa9e kernel: leds-ws2812b: fix build with Linux >= 5.18
The return value of the .remove function pointer has changed from
int to void with Linux 5.18. Use a precompiler macro to allow building
the leds-ws2812b module with both, Linux 5.15 and Linux 6.1.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-07-08 15:10:12 +01:00
Chuanhong Guo
9e2c01e4a6 kernel: add driver package for WS2812B LEDs
Two WS2812B (NeoPixel) clones are used in Xiaomi Redmi AX6000 as
indicator lights. Add a driver for controlling it using SPI MOSI.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2022-12-16 21:41:57 +08:00