summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/lp873x-regulator.c
Commit message (Collapse)AuthorAgeFilesLines
* regulator: lp873x: Convert to use regulator_set/get_current_limit_regmapAxel Lin2019-03-041-39/+6Star
| | | | | | | Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: lp873x: Constify lp873x_buck_ramp_delay arrayAxel Lin2019-02-211-1/+1
| | | | | | | The lp873x_buck_ramp_delay should never change, make it const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: lp873x: Constify lp873x_buck01_ops and lp873x_ldo01_opsAxel Lin2019-01-281-2/+2
| | | | | Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: lp873x: Add support for populating input supplyLokesh Vutla2016-11-111-0/+1
| | | | | | | | | | | In order to have a proper topology of regulators for a platform, each registering regulator needs to populate supply_name field for identifying its supply's name. Add supply_name field for lp873x regulators. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: lp873x: Drop _nlr parameter from LP873X_REGULATOR()Axel Lin2016-06-211-8/+6Star
| | | | | | | | No need to pass _nlr to LP873X_REGULATOR(), use ARRAY_SIZE to calculate it. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: lp873x: Add support for lp873x PMIC regulatorsKeerthy2016-05-111-0/+241
The regulators set consists of 2 BUCKs and 2 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. The ramp delay is configurable for both BUCKs. Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>