regulator: sun20i: Add Allwinner D1 LDOs driver
authorSamuel Holland <samuel@sholland.org>
Thu, 9 May 2024 15:31:07 +0000 (23:31 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 9 May 2024 15:44:01 +0000 (17:44 +0200)
commit4e70b26c873dfff317039458a6ea66314bbdce99
treebaed9278b82ede8c6d2aed250c0994778b2699b3
parent622bab1884847fcf3f9bfdf1d534fac3a5fe859f
regulator: sun20i: Add Allwinner D1 LDOs driver

D1 contains two pairs of LDOs, "analog" LDOs and "system" LDOs. They are
similar and can share a driver, but only the system LDOs have a DT
binding defined so far.

The system LDOs have a single linear range. The voltage step is not an
integer, so a custom .list_voltage is needed to get the rounding right.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20240509153107.438220-3-wens@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/sun20i-regulator.c [new file with mode: 0644]