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

regulator: Introduce property to flag set-load support

Introduce "regulator-allow-set-load" property to make it possible to
flag in the board configuration that a regulator is allowed to have the
load requirements changed.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Bjorn Andersson and committed by
Mark Brown
b263d203 6ff33f39

+4
+1
Documentation/devicetree/bindings/regulator/regulator.txt
··· 11 11 - regulator-always-on: boolean, regulator should never be disabled 12 12 - regulator-boot-on: bootloader/firmware enabled regulator 13 13 - regulator-allow-bypass: allow the regulator to go into bypass mode 14 + - regulator-allow-set-load: allow the regulator performance level to be configured 14 15 - <name>-supply: phandle to the parent supply/regulator node 15 16 - regulator-ramp-delay: ramp delay for regulator(in uV/uS) 16 17 For hardware which supports disabling ramp rate, it should be explicitly
+3
drivers/regulator/of_regulator.c
··· 76 76 if (of_property_read_bool(np, "regulator-allow-bypass")) 77 77 constraints->valid_ops_mask |= REGULATOR_CHANGE_BYPASS; 78 78 79 + if (of_property_read_bool(np, "regulator-allow-set-load")) 80 + constraints->valid_ops_mask |= REGULATOR_CHANGE_DRMS; 81 + 79 82 ret = of_property_read_u32(np, "regulator-ramp-delay", &pval); 80 83 if (!ret) { 81 84 if (pval)