Skip to content

Commit b338a2a

Browse files
emfendlag-linaro
authored andcommitted
leds: tps6131x: Add support for Texas Instruments TPS6131X flash LED driver
The TPS61310/TPS61311 is a flash LED driver with I2C interface. Its power stage is capable of supplying a maximum total current of roughly 1500mA. The TPS6131x provides three constant-current sinks, capable of sinking up to 2 x 400mA (LED1 and LED3) and 800mA (LED2) in flash mode. In torch mode each sink (LED1, LED2, LED3) supports currents up to 175mA. Signed-off-by: Matthias Fend <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 0d12bb1 commit b338a2a

File tree

4 files changed

+834
-0
lines changed

4 files changed

+834
-0
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23925,6 +23925,13 @@ F: Documentation/devicetree/bindings/hwmon/ti,tps23861.yaml
2392523925
F: Documentation/hwmon/tps23861.rst
2392623926
F: drivers/hwmon/tps23861.c
2392723927

23928+
TEXAS INSTRUMENTS TPS6131X FLASH LED DRIVER
23929+
M: Matthias Fend <[email protected]>
23930+
23931+
S: Maintained
23932+
F: Documentation/devicetree/bindings/leds/ti,tps6131x.yaml
23933+
F: drivers/leds/flash/leds-tps6131x.c
23934+
2392823935
TEXAS INSTRUMENTS' DAC7612 DAC DRIVER
2392923936
M: Ricardo Ribalda <[email protected]>
2393023937

drivers/leds/flash/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,15 @@ config LEDS_SY7802
132132

133133
This driver can be built as a module, it will be called "leds-sy7802".
134134

135+
config LEDS_TPS6131X
136+
tristate "LED support for TI TPS6131x flash LED driver"
137+
depends on I2C && OF
138+
depends on GPIOLIB
139+
select REGMAP_I2C
140+
help
141+
This option enables support for Texas Instruments TPS61310/TPS61311
142+
flash LED driver.
143+
144+
This driver can be built as a module, it will be called "leds-tps6131x".
145+
135146
endif # LEDS_CLASS_FLASH

drivers/leds/flash/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ obj-$(CONFIG_LEDS_RT4505) += leds-rt4505.o
1212
obj-$(CONFIG_LEDS_RT8515) += leds-rt8515.o
1313
obj-$(CONFIG_LEDS_SGM3140) += leds-sgm3140.o
1414
obj-$(CONFIG_LEDS_SY7802) += leds-sy7802.o
15+
obj-$(CONFIG_LEDS_TPS6131X) += leds-tps6131x.o

0 commit comments

Comments
 (0)