regulator: mp886x: add MP8867 support
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Mon, 16 Mar 2020 14:31:27 +0000 (22:31 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2020 18:27:35 +0000 (18:27 +0000)
commit751ca3aa15be815373536eb8b3dc44910b800e9f
treeb0226c2c4bd1cdd9ed5debfb24c59728b90cf0a2
parent97be82880b617fb6bc06ff19e3ddb039501b2dcf
regulator: mp886x: add MP8867 support

MP8867 is an I2C-controlled adjustable voltage regulator made by
Monolithic Power Systems. The difference between MP8867 and MP8869
are:
1.If V_BOOT, the vref of MP8869 is fixed at 600mv while vref of
MP8867 is determined by the I2C control.
2.For MP8867, when setting voltage, if the step is within 5, we
need to manually set the GO BIT to 0.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20200316223127.4b1ecc92@xhacker
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mp886x.c