This is shown in the min/max table in the datasheet and boot0 sources, the actual register documentation in the datasheet is wrong.
Signed-off-by: Hans de Goede <[email protected]> --- drivers/power/axp221.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/axp221.c b/drivers/power/axp221.c index 6ce6a1b..00dd4cd 100644 --- a/drivers/power/axp221.c +++ b/drivers/power/axp221.c @@ -31,7 +31,7 @@ int axp221_set_dcdc4(unsigned int mvolt) int axp221_set_dcdc5(unsigned int mvolt) { - return p2wi_write(AXP221_DCDC5_CTRL, (mvolt - 600) / 20); + return p2wi_write(AXP221_DCDC5_CTRL, (mvolt - 1000) / 50); } int axp221_set_dldo1(unsigned int mvolt) -- 2.1.0 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
