regulator: Add over current protection (OCP) support
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 17 Jul 2015 21:41:54 +0000 (14:41 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jul 2015 17:28:46 +0000 (18:28 +0100)
Some regulators can automatically shut down when they detect an
over current event. Add an op (set_over_current_protection) and a
DT property + constraint to support this capability.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/regulator.txt
drivers/regulator/core.c
drivers/regulator/of_regulator.c
include/linux/regulator/driver.h
include/linux/regulator/machine.h

index db88feb..24bd422 100644 (file)
@@ -42,6 +42,7 @@ Optional properties:
 - regulator-system-load: Load in uA present on regulator that is not captured by
   any consumer request.
 - regulator-pull-down: Enable pull down resistor when the regulator is disabled.
+- regulator-over-current-protection: Enable over current protection.
 
 Deprecated properties:
 - regulator-compatible: If a regulator chip contains multiple
Simple merge
Simple merge
Simple merge
Simple merge