Skip to content

Commit

Permalink
leds: add aw20xx driver
Browse files Browse the repository at this point in the history
This commit adds support for AWINIC AW20036/AW20054/AW20072 LED driver.
This driver supports following AW200XX features:
  - Individual 64-level DIM currents

Signed-off-by: Martin Kurbanov <mmkurbanov@sberdevices.ru>
  • Loading branch information
Martin Kurbanov authored and intel-lab-lkp committed Feb 28, 2023
1 parent e12ad34 commit 67ff1bd
Show file tree
Hide file tree
Showing 4 changed files with 664 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/ABI/testing/sysfs-class-led-driver-aw200xx
@@ -0,0 +1,4 @@
What: /sys/class/leds/<led>/dim
Date: February 2023
Description: 64-level DIM current. If write negative value or "auto",
the dim will be calculated according to the brightness.
10 changes: 10 additions & 0 deletions drivers/leds/Kconfig
Expand Up @@ -94,6 +94,16 @@ config LEDS_ARIEL

Say Y to if your machine is a Dell Wyse 3020 thin client.

config LEDS_AW200XX
tristate "LED support for Awinic AW20036/AW20054/AW20072"
depends on LEDS_CLASS
depends on I2C
help
This option enables support for the AW20036/AW20054/AW20072 LED driver.
It is a 3x12/6x9/6x12 matrix LED driver programmed via
an I2C interface, up to 36/54/72 LEDs or 12/18/24 RGBs,
3 pattern controllers for auto breathing or group dimming control.

config LEDS_AW2013
tristate "LED support for Awinic AW2013"
depends on LEDS_CLASS && I2C && OF
Expand Down
1 change: 1 addition & 0 deletions drivers/leds/Makefile
Expand Up @@ -15,6 +15,7 @@ obj-$(CONFIG_LEDS_AN30259A) += leds-an30259a.o
obj-$(CONFIG_LEDS_APU) += leds-apu.o
obj-$(CONFIG_LEDS_ARIEL) += leds-ariel.o
obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o
obj-$(CONFIG_LEDS_AW200XX) += leds-aw200xx.o
obj-$(CONFIG_LEDS_AW2013) += leds-aw2013.o
obj-$(CONFIG_LEDS_BCM6328) += leds-bcm6328.o
obj-$(CONFIG_LEDS_BCM6358) += leds-bcm6358.o
Expand Down

0 comments on commit 67ff1bd

Please sign in to comment.