Change buck1 voltage range to be conform with the data-sheet.
Signed-off-by: pascal paillet <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Add support for active discharge for USB power switches.
Signed-off-by: pascal paillet <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Regulator high pull down are enabled by default so remove support in the
driver.
Signed-off-by: pascal paillet <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Stop using a regulator_init callback. This leads to a more simple regulator
registration code. This also permits to spuress struct stpmic1_regulator.
Also rename stpmic1_regulators_matches to stpmic1_matches.
Signed-off-by: pascal paillet <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Get the regulator mode definition from the bindings header.
Signed-off-by: pascal paillet <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
At the context with *rdev available, regulator core provides
rdev_get_id()/rdev_get_regmap() APIs to get regulator id and *regmap.
So no need to store them in struct stpmic1_regulator.
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
The regulator_linear_range arrays and stpmic1_regulator_cfgs are only
accessed by this driver and the values are never changed so make them
static const. regulator_ops variables can also be const.
Also clean up a few empty lines in regulator_linear_range array.
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Wait/wound mutex shall be used in order to avoid lockups on locking of
coupled regulators.
Signed-off-by: Dmitry Osipenko <[email protected]>
Suggested-by: Lucas Stach <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
-EINVAL is not a valid return value for .of_map_mode, return
REGULATOR_MODE_INVALID instead.
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
The stpmic1 PMIC embeds several regulators and switches with
different capabilities.
Signed-off-by: pascal paillet <[email protected]>
Signed-off-by: Mark Brown <[email protected]>