Lines Matching +full:charge +full:- +full:pump +full:- +full:current
1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <linux/platform_data/leds-lp55xx.h>
23 #include "leds-lp55xx-common.h"
44 /* Base register to set LED current */
61 #define LP5521_CP_MODE_MASK 0x18 /* Charge pump mode */
70 /* default R channel current register value */
112 * current reg. This is dummy read is required on some platforms - in lp5521_post_init_device()
114 * LP5521_REG_ENABLE register will not have any effect - strange! in lp5521_post_init_device()
118 dev_err(&chip->cl->dev, "error in resetting chip\n"); in lp5521_post_init_device()
122 dev_err(&chip->cl->dev, in lp5521_post_init_device()
125 ret = -EINVAL; in lp5521_post_init_device()
140 val |= (chip->pdata->charge_pump_mode << LP5521_CP_MODE_SHIFT) & LP5521_CP_MODE_MASK; in lp5521_post_init_device()
146 /* Initialize all channels PWM to zero -> leds off */ in lp5521_post_init_device()
163 struct lp55xx_platform_data *pdata = chip->pdata; in lp5521_run_selftest()
171 if (pdata->clock_mode != LP55XX_CLOCK_EXT) in lp5521_run_selftest()
176 return -EIO; in lp5521_run_selftest()
186 struct lp55xx_chip *chip = led->chip; in lp5521_selftest()
189 guard(mutex)(&chip->lock); in lp5521_selftest()