Skip to content

Commit 147b38a

Browse files
Lukaaa525lag-linaro
authored andcommitted
backlight: aw99706: Add support for Awinic AW99706 backlight
Add support for Awinic AW99706 backlight, which can be found in tablet and notebook backlight, one case is the Lenovo Legion Y700 Gen4. This driver refers to the official datasheets and android driver, they can be found in [1]. [1] https://www.awinic.com/en/productDetail/AW99706QNR Signed-off-by: Junjie Cao <caojunjie650@gmail.com> Tested-by: Pengyu Luo <mitltlatltl@gmail.com> Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com> Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org> Link: https://patch.msgid.link/20251109032240.3422503-3-caojunjie650@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 9341d66 commit 147b38a

4 files changed

Lines changed: 486 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4123,6 +4123,12 @@ S: Maintained
41234123
F: Documentation/devicetree/bindings/iio/adc/avia-hx711.yaml
41244124
F: drivers/iio/adc/hx711.c
41254125

4126+
AWINIC AW99706 WLED BACKLIGHT DRIVER
4127+
M: Junjie Cao <caojunjie650@gmail.com>
4128+
S: Maintained
4129+
F: Documentation/devicetree/bindings/leds/backlight/awinic,aw99706.yaml
4130+
F: drivers/video/backlight/aw99706.c
4131+
41264132
AX.25 NETWORK LAYER
41274133
L: linux-hams@vger.kernel.org
41284134
S: Orphan

drivers/video/backlight/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ config BACKLIGHT_ATMEL_LCDC
156156
If in doubt, it's safe to enable this option; it doesn't kick
157157
in unless the board's description says it's wired that way.
158158

159+
config BACKLIGHT_AW99706
160+
tristate "Backlight Driver for Awinic AW99706"
161+
depends on I2C
162+
select REGMAP_I2C
163+
help
164+
If you have a LCD backlight connected to the WLED output of AW99706
165+
WLED output, say Y here to enable this driver.
166+
159167
config BACKLIGHT_EP93XX
160168
tristate "Cirrus EP93xx Backlight Driver"
161169
depends on FB_EP93XX

drivers/video/backlight/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ obj-$(CONFIG_BACKLIGHT_ADP8870) += adp8870_bl.o
2525
obj-$(CONFIG_BACKLIGHT_APPLE) += apple_bl.o
2626
obj-$(CONFIG_BACKLIGHT_APPLE_DWI) += apple_dwi_bl.o
2727
obj-$(CONFIG_BACKLIGHT_AS3711) += as3711_bl.o
28+
obj-$(CONFIG_BACKLIGHT_AW99706) += aw99706.o
2829
obj-$(CONFIG_BACKLIGHT_BD6107) += bd6107.o
2930
obj-$(CONFIG_BACKLIGHT_CLASS_DEVICE) += backlight.o
3031
obj-$(CONFIG_BACKLIGHT_DA903X) += da903x_bl.o

0 commit comments

Comments
 (0)