From: Peng Fan <[email protected]>
Depends on board design, the gpio controlled fixed regulator might
connect with a large capacitance. It needs time to be truly off when
disabling the regulator. If the delay is not enought, the voltage might
not drop to the expected value, such as 0, then the regulator might
have been always enabled. So introduce off-on-delay-us property and
add the support in fixed regualtor driver.
Peng Fan (2):
dt-bindings: regulator: fixed: add off-on-delay-us property
regulator: fixed: add off-on-delay
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml | 4 ++++
drivers/regulator/fixed.c | 2 ++
include/linux/regulator/fixed.h | 1 +
3 files changed, 7 insertions(+)
--
2.16.4
From: Peng Fan <[email protected]>
When disabling a fixed regulator, it may take some time to let the
voltage drop to the expected value, such as zero. If not delay
enough time, the regulator might have been always enabled.
Signed-off-by: Peng Fan <[email protected]>
---
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
index a78150c47aa2..954130a8ccbe 100644
--- a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
@@ -50,6 +50,10 @@ properties:
description: startup time in microseconds
$ref: /schemas/types.yaml#/definitions/uint32
+ off-on-delay-us:
+ description: off delay time in microseconds
+ $ref: /schemas/types.yaml#/definitions/uint32
+
enable-active-high:
description:
Polarity of GPIO is Active high. If this property is missing,
--
2.16.4