]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
backlight: Add LP88XX device driver
authorDaniel Solomon <daniels@nvidia.com>
Wed, 7 Dec 2016 19:11:17 +0000 (11:11 -0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Tue, 17 Jan 2017 22:24:37 +0000 (14:24 -0800)
commit4db78c5289b70a056b5f3fdd37ebf458d2967051
tree0259052372f7125d012010918bdad3520cb26c0a
parent29cba48a771984a24355df7cb9bf43c0ea6d7d94
backlight: Add LP88XX device driver

Initial pre-release driver from TI, unmodified. Original description
follows.

----------------------------------

This patch supports LP8580, LP8863 and LP8880 backlight devices.
Device configuration is done through the I2C or SPI.
Supported backlight mode is register or external PWM input.
LED outputs are mapped to internal regions. This enables multiple backlights
on cluster and display mode. For the PWM mode, only single display mode is
supported.

lp88xx_core is the main part like parsing DT properties, managing backlight
strings, PWM control, interrupt handling and others.
lp88xx_i2c has the device entry and I2C R/W helpers. lp88xx_spi is used for
SPI interface. Please note that LP8863 doesn't support SPI.

TDS-1403

Change-Id: Ie2fd5ed580fd8449beb94d5d4f9323e48639b323
Signed-off-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/1269629
(cherry picked from commit 02b0bac032d0d8723878dd86708e0c8d2b45034c)
Reviewed-on: http://git-master/r/1267857
GVS: Gerrit_Virtual_Submit
Tested-by: Ishwarya Balaji Gururajan <igururajan@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Documentation/devicetree/bindings/leds/backlight/lp88xx.txt [new file with mode: 0644]
drivers/video/backlight/Kconfig
drivers/video/backlight/Makefile
drivers/video/backlight/lp88xx.h [new file with mode: 0644]
drivers/video/backlight/lp88xx_core.c [new file with mode: 0644]
drivers/video/backlight/lp88xx_i2c.c [new file with mode: 0644]
drivers/video/backlight/lp88xx_spi.c [new file with mode: 0644]