regulator: mt6358: Add output voltage fine tuning to fixed regulators
authorChen-Yu Tsai <wenst@chromium.org>
Wed, 13 Sep 2023 08:29:17 +0000 (16:29 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 25 Sep 2023 12:19:49 +0000 (14:19 +0200)
commitcf08fa74c716cf20e5038d1e7dbbd7dba1b76062
treea1af61296c133b1b004f7ea089f0b6e118d370c4
parent7442edec72bc657e6ce38ae01de9f10e55decfaa
regulator: mt6358: Add output voltage fine tuning to fixed regulators

The "fixed" LDO regulators found on the MT6358 and MT6366 PMICs have
either no voltage selection register, or only one valid setting.
However these do have a fine voltage calibration setting that can
slightly boost the output voltage from 0 mV to 100 mV, in 10 mV
increments.

Add support for this by changing these into linear range regulators.
Some register definitions that are missing are also added.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230913082919.1631287-3-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6358-regulator.c
include/linux/mfd/mt6358/registers.h