backlight: adp8860: add support for ADP8861 & ADP8863
Subsystems (3)
PATCH 1/1 backlight: adp8860: add support for ADP8861 & ADP8863
From: Michael Hennerich <[email protected]>
Signed-off-by Michael Hennerich <[email protected]>
Signed-off-by Mike Frysinger <[email protected]>
--- drivers/video/backlight/Kconfig | 6 ++-- drivers/video/backlight/adp8860_bl.c | 58 ++++++++++++++++++++++++---------- include/linux/i2c/adp8860.h | 17 ++++++++++ 3 files changed, 61 insertions(+), 20 deletions(-)
drivers/video/backlight/Kconfig +3 -3
@@ -277,13 +277,13 @@ config BACKLIGHT_ADP5520 be called adp5520_bl. config BACKLIGHT_ADP8860 - tristate "Backlight Driver for ADP8860 using WLED" + tristate "Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED" depends on BACKLIGHT_CLASS_DEVICE && I2C select NEW_LEDS select LEDS_CLASS help - If you have a LCD backlight connected to the ADP8860, - say Y here to enable this driver. + If you have a LCD backlight connected to the ADP8860, ADP8861 or + ADP8863 say Y here to enable this driver. To compile this driver as a module, choose M here: the module will be called adp8860_bl.
drivers/video/backlight/adp8860_bl.c +41 -17
148 lines not on this page · raw message
include/linux/i2c/adp8860.h +17 -0
@@ -132,6 +132,23 @@ struct adp8860_backlight_platform_data {u8 led_fade_out;/* LED Fade-Out Timer */ u8 led_fade_law;/* fade-on/fade-off transfer characteristic */ u8 led_on_time; + +/** +* Gain down disable. Setting this option does not allow the +* charge pump to switch to lower gains. NOT AVAILABLE on ADP8860 +* 1 = the charge pump doesn't switch down in gain until all LEDs are 0. +* The charge pump switches up in gain as needed. This feature is +* useful if the ADP8863 charge pump is used to drive an external load. +* This feature must be used when utilizing small fly capacitors +* (0402 or smaller). +* 0 = the charge pump automatically switches up and down in gain. +* This provides optimal efficiency, but is not suitable for driving +* loads that are not connected through the ADP8863 diode drivers. +* Additionally, the charge pump fly capacitors should be low ESR +* and sized 0603 or greater. +*/ + + u8 gdwn_dis; };#endif /* __LINUX_I2C_ADP8860_H */
Signature · 1 line
1.7.1
Quoted 9 lines · Mike Frysinger
From: Michael Hennerich <[email protected]>
Signed-off-by Michael Hennerich <[email protected]>Signed-off-by Mike Frysinger <[email protected]>--- drivers/video/backlight/Kconfig | 6 ++-- drivers/video/backlight/adp8860_bl.c | 58 ++++++++++++++++++++++++---------- include/linux/i2c/adp8860.h | 17 ++++++++++ 3 files changed, 61 insertions(+), 20 deletions(-)
Added to the backlight tree, thanks.
Richard