LED / flash API integration - LED Flash Class drivers
Subsystems (2)
PATCH v6 2/2 leds: Add driver for AAT1290 current regulator
In reply to Jacek AnaszewskiThis patch adds a driver for the 1.5A Step-Up Current Regulator for Flash LEDs. The device is programmed through a Skyworks' proprietary AS2Cwire serial digital interface.
--- drivers/leds/Kconfig | 6 + drivers/leds/Makefile | 1 + drivers/leds/leds-aat1290.c | 460 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 467 insertions(+) create mode 100644 drivers/leds/leds-aat1290.c
drivers/leds/Kconfig +6 -0
@@ -43,6 +43,12 @@ config LEDS_88PM860X This option enables support for on-chip LED drivers found on Marvell Semiconductor 88PM8606 PMIC. +config LEDS_AAT1290 + tristate "LED support for the AAT1290" + depends on LEDS_CLASS_FLASH + help + This option enables support for the LEDs on the AAT1290. + config LEDS_LM3530 tristate "LCD Backlight driver for LM3530" depends on LEDS_CLASS
drivers/leds/Makefile +1 -0
@@ -7,6 +7,7 @@ obj-$(CONFIG_LEDS_TRIGGERS) += led-triggers.o # LED Platform Drivers obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o +obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o obj-$(CONFIG_LEDS_BD2802) += leds-bd2802.o obj-$(CONFIG_LEDS_LOCOMO) += leds-locomo.o obj-$(CONFIG_LEDS_LM3530) += leds-lm3530.o
drivers/leds/leds-aat1290.c new file +460 -0
460 lines not on this page · raw message
Signature · 1 line
1.7.9.5
v6 cover LED / flash API integration - LED Flash Class drivers
This patch set is the follow-up of the LED / flash API integration series [1]. For clarity reasons the patchset has been split into four subsets:
- LED Flash Class
- V4L2 Flash
- LED Flash Class drivers
- Documentation
========================
Changes since version 5:
========================
- removed flash manager framework - its implementation needs further thorough discussion.
- removed external strobe facilities from the LED Flash Class and provided external_strobe_set op in v4l2-flash. LED subsystem should be strobe provider agnostic.
Thanks,
Jacek Anaszewski
[1] https://lkml.org/lkml/2014/7/11/914
Jacek Anaszewski (2):
leds: Add support for max77693 mfd flash cell
leds: Add driver for AAT1290 current regulator
drivers/leds/Kconfig | 15 + drivers/leds/Makefile | 2 + drivers/leds/leds-aat1290.c | 460 ++++++++++++++++++ drivers/leds/leds-max77693.c | 1083 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1560 insertions(+) create mode 100644 drivers/leds/leds-aat1290.c create mode 100644 drivers/leds/leds-max77693.c
Signature · 1 line
1.7.9.5
PATCH v6 1/2 leds: Add support for max77693 mfd flash cell
This patch adds led-flash support to Maxim max77693 chipset. A device can be exposed to user space through LED subsystem sysfs interface or through V4L2 subdevice when the support for V4L2 Flash sub-devices is enabled. Device supports up to two leds which can work in flash and torch mode. Leds can be triggered externally or by software.
--- drivers/leds/Kconfig | 9 + drivers/leds/Makefile | 1 + drivers/leds/leds-max77693.c | 1083 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1093 insertions(+) create mode 100644 drivers/leds/leds-max77693.c
drivers/leds/Kconfig +9 -0
@@ -457,6 +457,15 @@ config LEDS_TCA6507 LED driver chips accessed via the I2C bus. Driver support brightness control and hardware-assisted blinking. +config LEDS_MAX77693 + tristate "LED support for MAX77693 Flash" + depends on LEDS_CLASS_FLASH + depends on MFD_MAX77693 + help + This option enables support for the flash part of the MAX77693 + multifunction device. It has build in control for two leds in flash + and torch mode. + config LEDS_MAX8997 tristate "LED support for MAX8997 PMIC" depends on LEDS_CLASS && MFD_MAX8997
drivers/leds/Makefile +1 -0
@@ -51,6 +51,7 @@ obj-$(CONFIG_LEDS_MC13783) += leds-mc13783.o obj-$(CONFIG_LEDS_NS2) += leds-ns2.o obj-$(CONFIG_LEDS_NETXBIG) += leds-netxbig.o obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o +obj-$(CONFIG_LEDS_MAX77693) += leds-max77693.o obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o obj-$(CONFIG_LEDS_LM355x) += leds-lm355x.o obj-$(CONFIG_LEDS_BLINKM) += leds-blinkm.o
drivers/leds/leds-max77693.c new file +1083 -0
1,083 lines not on this page · raw message
Signature · 1 line
1.7.9.5