leds: add sgm3140 driver

Add a driver for the SGMICRO SGM3140 Buck/Boost Charge Pump LED driver.

This device is controlled by two GPIO pins, one for enabling and the
second one for switching between torch and flash mode.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
This commit is contained in:
Luca Weiss 2020-04-21 21:13:54 +02:00 • committed by Pavel Machek
commit cef8ec8cbd
3 changed files with 329 additions and 0 deletions