]> www.infradead.org Git - users/dwmw2/linux.git/commit
regulator: axp20x: AXP717: set ramp_delay
authorPhilippe Simons <simons.philippe@gmail.com>
Sun, 8 Dec 2024 12:43:08 +0000 (13:43 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Dec 2024 13:06:07 +0000 (13:06 +0000)
commitf07ae52f5cf6a5584fdf7c8c652f027d90bc8b74
tree94bcefe8e8b0634b0c7da3ed693b9bbd58567c6d
parent8099b1f7e37e98f73664b883464d54e2e2d9522f
regulator: axp20x: AXP717: set ramp_delay

AXP717 datasheet says that regulator ramp delay is 15.625 us/step,
which is 10mV in our case.

Add a AXP_DESC_RANGES_DELAY macro and update AXP_DESC_RANGES macro to
expand to AXP_DESC_RANGES_DELAY with ramp_delay = 0

For DCDC4, steps is 100mv

Add a AXP_DESC_DELAY macro and update AXP_DESC macro to
expand to AXP_DESC_DELAY with ramp_delay = 0

This patch fix crashes when using CPU DVFS.

Signed-off-by: Philippe Simons <simons.philippe@gmail.com>
Tested-by: Hironori KIKUCHI <kikuchan98@gmail.com>
Tested-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Fixes: d2ac3df75c3a ("regulator: axp20x: add support for the AXP717")
Link: https://patch.msgid.link/20241208124308.5630-1-simons.philippe@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c