leds: Introduce ExpressWire library
authorDuje Mihanović <duje.mihanovic@skole.hr>
Thu, 25 Jan 2024 15:30:53 +0000 (16:30 +0100)
committerLee Jones <lee@kernel.org>
Thu, 7 Mar 2024 08:45:03 +0000 (08:45 +0000)
commit1368d06dd2c99186174290c03d79c132db16efe2
tree12f0340df2ff8461d70a1e9b166bb5fe7b3e2c00
parent6613476e225e090cc9aad49be7fa504e290dd33d
leds: Introduce ExpressWire library

The ExpressWire protocol is shared between at least KTD2692 and KTD2801
with slight differences such as timings and the former not having a
defined set of pulses for enabling the protocol (possibly because it
does not support PWM unlike KTD2801). Despite these differences the
ExpressWire handling code can be shared between the two, so in
preparation for adding KTD2801 support introduce a library implementing
this protocol.

Suggested-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
Link: https://lore.kernel.org/r/20240125-ktd2801-v5-1-e22da232a825@skole.hr
Signed-off-by: Lee Jones <lee@kernel.org>
MAINTAINERS
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/leds-expresswire.c [new file with mode: 0644]
include/linux/leds-expresswire.h [new file with mode: 0644]