OSDN Git Service

regulator: fan53555: Add support for RK860X
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Thu, 6 Apr 2023 19:41:58 +0000 (22:41 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 11 Apr 2023 12:24:57 +0000 (13:24 +0100)
commita27e71a66ee0f887fefcc31b85a804b0905fa865
tree521ac9968bf64fa064b99c0d87e2d69c8b62a0af
parent2c82f5b8ae6d0b5bbac1526021d9c3120d183555
regulator: fan53555: Add support for RK860X

Extend the existing fan53555 driver to support the Rockchip RK860X
regulators.

RK8600/RK8601 are pretty similar to the FAN53555 regulators.

RK8602/RK8603 are a bit different, having a wider output voltage
selection range, from 0.5 V to 1.5 V in 6.25 mV steps. They also use
additional VSEL0/VSEL1 registers for the voltage selector, but the
enable and mode bits are still located in the original FAN53555 specific
VSEL0/VSEL1 registers.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230406194158.963352-9-cristian.ciocaltea@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/fan53555.c