Skip to content

Commit

Permalink
kestrel/leds/trigger: implement led trigger driver for group pwm
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
amiteshsingh-cpi committed May 27, 2023
1 parent 05292f1 commit 262e274
Show file tree
Hide file tree
Showing 3 changed files with 527 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/leds/trigger/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ config LEDS_TRIGGER_TIMER

If unsure, say Y.

config LEDS_TRIGGER_GRPPWM
tristate "LED Group PWM trigger"
help
This allows LEDs to be controlled by group pwm feature,
supported by pca9633 i2c driver

if unsure, say Y.

config LEDS_TRIGGER_ONESHOT
tristate "LED One-shot Trigger"
help
Expand Down
1 change: 1 addition & 0 deletions drivers/leds/trigger/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ obj-$(CONFIG_LEDS_TRIGGER_NETDEV) += ledtrig-netdev.o
obj-$(CONFIG_LEDS_TRIGGER_PATTERN) += ledtrig-pattern.o
obj-$(CONFIG_LEDS_TRIGGER_AUDIO) += ledtrig-audio.o
obj-$(CONFIG_LEDS_TRIGGER_TTY) += ledtrig-tty.o
obj-$(CONFIG_LEDS_TRIGGER_GRPPWM += ledtrig-grppwm.o
Loading

0 comments on commit 262e274

Please sign in to comment.