Skip to content

Commit

Permalink
leds: lgm: Add LED controller driver for LGM SoC
Browse files Browse the repository at this point in the history
Parallel to serial conversion, which is also called SSO controller,
can drive external shift register for LED outputs, reset or
general purpose outputs.

This driver enables LED support for Serial Shift Output Controller (SSO).

Signed-off-by: Amireddy Mallikarjuna reddy <[email protected]>
Signed-off-by: Pavel Machek <[email protected]>
  • Loading branch information
Amireddy Mallikarjuna reddy authored and pavelmachek committed Feb 19, 2021
1 parent b113a7f commit c3987cd
Show file tree
Hide file tree
Showing 5 changed files with 916 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/leds/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -931,4 +931,7 @@ config LEDS_ACER_A500
comment "LED Triggers"
source "drivers/leds/trigger/Kconfig"

comment "LED Blink"
source "drivers/leds/blink/Kconfig"

endif # NEW_LEDS
3 changes: 3 additions & 0 deletions drivers/leds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,6 @@ obj-$(CONFIG_LEDS_USER) += uleds.o

# LED Triggers
obj-$(CONFIG_LEDS_TRIGGERS) += trigger/

# LED Blink
obj-$(CONFIG_LEDS_BLINK) += blink/
20 changes: 20 additions & 0 deletions drivers/leds/blink/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
menuconfig LEDS_BLINK
bool "LED Blink support"
depends on LEDS_CLASS
help
This option enables blink support for the leds class.
If unsure, say Y.

if LEDS_BLINK

config LEDS_BLINK_LGM
tristate "LED support for Intel LGM SoC series"
depends on LEDS_CLASS
depends on MFD_SYSCON
depends on OF
help
Parallel to serial conversion, which is also called SSO controller,
can drive external shift register for LED outputs.
This enables LED support for Serial Shift Output controller(SSO).

endif # LEDS_BLINK
2 changes: 2 additions & 0 deletions drivers/leds/blink/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_LEDS_BLINK_LGM) += leds-lgm-sso.o
Loading

0 comments on commit c3987cd

Please sign in to comment.