Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: stpmic1: Set a default ramp delay value

Set a default ramp delay value to the regulators with the worst
case value.

Signed-off-by: pascal paillet <p.paillet@st.com>
Link: https://lore.kernel.org/r/20191113161529.27739-1-p.paillet@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Pascal Paillet and committed by
Mark Brown
9ebde17c 089b3f61

+6
+6
drivers/regulator/stpmic1_regulator.c
··· 54 54 55 55 /* Enable time worst case is 5000mV/(2250uV/uS) */ 56 56 #define PMIC_ENABLE_TIME_US 2200 57 + /* Ramp delay worst case is (2250uV/uS) */ 58 + #define PMIC_RAMP_DELAY 2200 57 59 58 60 static const struct regulator_linear_range buck1_ranges[] = { 59 61 REGULATOR_LINEAR_RANGE(725000, 0, 4, 0), ··· 210 208 .enable_val = 1, \ 211 209 .disable_val = 0, \ 212 210 .enable_time = PMIC_ENABLE_TIME_US, \ 211 + .ramp_delay = PMIC_RAMP_DELAY, \ 213 212 .supply_name = #base, \ 214 213 } 215 214 ··· 230 227 .enable_val = 1, \ 231 228 .disable_val = 0, \ 232 229 .enable_time = PMIC_ENABLE_TIME_US, \ 230 + .ramp_delay = PMIC_RAMP_DELAY, \ 233 231 .bypass_reg = LDO3_ACTIVE_CR, \ 234 232 .bypass_mask = LDO_BYPASS_MASK, \ 235 233 .bypass_val_on = LDO_BYPASS_MASK, \ ··· 252 248 .enable_val = 1, \ 253 249 .disable_val = 0, \ 254 250 .enable_time = PMIC_ENABLE_TIME_US, \ 251 + .ramp_delay = PMIC_RAMP_DELAY, \ 255 252 .supply_name = #base, \ 256 253 } 257 254 ··· 272 267 .enable_val = 1, \ 273 268 .disable_val = 0, \ 274 269 .enable_time = PMIC_ENABLE_TIME_US, \ 270 + .ramp_delay = PMIC_RAMP_DELAY, \ 275 271 .of_map_mode = stpmic1_map_mode, \ 276 272 .pull_down_reg = ids##_PULL_DOWN_REG, \ 277 273 .pull_down_mask = ids##_PULL_DOWN_MASK, \