Skip to content

Commit 2e91451

Browse files
flavio-suligoilag-linaro
authored andcommitted
backlight: mp3309c: Add support for MPS MP3309C
The Monolithic Power (MPS) MP3309C is a WLED step-up converter, featuring a programmable switching frequency to optimize efficiency. The brightness can be controlled either by I2C commands (called "analog" mode) or by a PWM input signal (PWM mode). This driver supports both modes. For DT configuration details, please refer to: - Documentation/devicetree/bindings/leds/backlight/mps,mp3309c.yaml The datasheet is available at: - https://www.monolithicpower.com/en/mp3309c.html Signed-off-by: Flavio Suligoi <f.suligoi@asem.it> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Link: https://lore.kernel.org/r/20231116105319.957600-3-f.suligoi@asem.it Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 87f33a1 commit 2e91451

4 files changed

Lines changed: 462 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14658,6 +14658,13 @@ S: Maintained
1465814658
F: Documentation/driver-api/tty/moxa-smartio.rst
1465914659
F: drivers/tty/mxser.*
1466014660

14661+
MP3309C BACKLIGHT DRIVER
14662+
M: Flavio Suligoi <f.suligoi@asem.it>
14663+
L: dri-devel@lists.freedesktop.org
14664+
S: Maintained
14665+
F: Documentation/devicetree/bindings/leds/backlight/mps,mp3309c.yaml
14666+
F: drivers/video/backlight/mp3309c.c
14667+
1466114668
MR800 AVERMEDIA USB FM RADIO DRIVER
1466214669
M: Alexey Klimov <klimov.linux@gmail.com>
1466314670
L: linux-media@vger.kernel.org

drivers/video/backlight/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,17 @@ config BACKLIGHT_LP8788
402402
help
403403
This supports TI LP8788 backlight driver.
404404

405+
config BACKLIGHT_MP3309C
406+
tristate "Backlight Driver for MPS MP3309C"
407+
depends on I2C && PWM
408+
select REGMAP_I2C
409+
help
410+
This supports MPS MP3309C backlight WLED driver in both PWM and
411+
analog/I2C dimming modes.
412+
413+
To compile this driver as a module, choose M here: the module will
414+
be called mp3309c.
415+
405416
config BACKLIGHT_PANDORA
406417
tristate "Backlight driver for Pandora console"
407418
depends on TWL4030_CORE

drivers/video/backlight/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ obj-$(CONFIG_BACKLIGHT_LP855X) += lp855x_bl.o
4444
obj-$(CONFIG_BACKLIGHT_LP8788) += lp8788_bl.o
4545
obj-$(CONFIG_BACKLIGHT_LV5207LP) += lv5207lp.o
4646
obj-$(CONFIG_BACKLIGHT_MAX8925) += max8925_bl.o
47+
obj-$(CONFIG_BACKLIGHT_MP3309C) += mp3309c.o
4748
obj-$(CONFIG_BACKLIGHT_MT6370) += mt6370-backlight.o
4849
obj-$(CONFIG_BACKLIGHT_OMAP1) += omap1_bl.o
4950
obj-$(CONFIG_BACKLIGHT_PANDORA) += pandora_bl.o

0 commit comments

Comments
 (0)