Skip to content

Commit 262e274

Browse files
kestrel/leds/trigger: implement led trigger driver for group pwm
pca9633 i2c leds driver supports group pwm which currently not utilized by leds-pca963x driver. This patch exposes various registers values via sysfs to user and can be used to achieve group blinking and dimming. Signed-off-by: Amitesh Singh <[email protected]>
1 parent 05292f1 commit 262e274

File tree

3 files changed

+527
-0
lines changed

3 files changed

+527
-0
lines changed

drivers/leds/trigger/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ config LEDS_TRIGGER_TIMER
1919

2020
If unsure, say Y.
2121

22+
config LEDS_TRIGGER_GRPPWM
23+
tristate "LED Group PWM trigger"
24+
help
25+
This allows LEDs to be controlled by group pwm feature,
26+
supported by pca9633 i2c driver
27+
28+
if unsure, say Y.
29+
2230
config LEDS_TRIGGER_ONESHOT
2331
tristate "LED One-shot Trigger"
2432
help

drivers/leds/trigger/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ obj-$(CONFIG_LEDS_TRIGGER_NETDEV) += ledtrig-netdev.o
1616
obj-$(CONFIG_LEDS_TRIGGER_PATTERN) += ledtrig-pattern.o
1717
obj-$(CONFIG_LEDS_TRIGGER_AUDIO) += ledtrig-audio.o
1818
obj-$(CONFIG_LEDS_TRIGGER_TTY) += ledtrig-tty.o
19+
obj-$(CONFIG_LEDS_TRIGGER_GRPPWM += ledtrig-grppwm.o

0 commit comments

Comments
 (0)