regulator: Add refactored mtk-dvfsrc-regulator driver
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 10 Jun 2024 08:57:34 +0000 (10:57 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jun 2024 16:02:44 +0000 (17:02 +0100)
commitd2ea920a4092b3c0a6a004b93ce198ca37455d90
treecda636fc0a9e0a5b3f56e9cb550882c3220ce55b
parentcd102850e32c145661c6a0640dc6c5feba11af72
regulator: Add refactored mtk-dvfsrc-regulator driver

The previous driver never worked, and never got even compiled because
it was missing the DVFSRC driver entirely, including needed neaders.

This is a full (or nearly full) refactoring of the MediaTek DVFSRC
controlled Regulators driver, retaining support for the MT6873, MT8183
and MT8192 SoC, and adding MT8195.

As part of the refactoring, this driver is now probed using its own
devicetree compatible, as this is a child of the main DVFSRC driver
and gets probed as a subnode of that.

Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20240610085735.147134-7-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mtk-dvfsrc-regulator.c [new file with mode: 0644]