Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1542873

[PATCHv4 1/2] regulator: fixed: dt: Allow an optional over current pin

From Axel Haslam <ahaslam@baylibre.com>
Newsgroups linux.kernel
Subject [PATCHv4 1/2] regulator: fixed: dt: Allow an optional over current pin
Date 2016-12-15 17:40 +0100
Message-ID <sOHey-83M-17@gated-at.bofh.it> (permalink)
References <sOHex-83M-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add support for an optional over current input pin which
can be used to send an over current event to the regulator
consumer.

Cc: devicetree@vger.kernel.org
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
---
 Documentation/devicetree/bindings/regulator/fixed-regulator.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.txt b/Documentation/devicetree/bindings/regulator/fixed-regulator.txt
index 4fae41d..b145abb 100644
--- a/Documentation/devicetree/bindings/regulator/fixed-regulator.txt
+++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.txt
@@ -11,6 +11,7 @@ If this property is missing, the default assumed is Active low.
 - gpio-open-drain: GPIO is open drain type.
   If this property is missing then default assumption is false.
 -vin-supply: Input supply name.
+- over-current-gpios: Input gpio that signal an over current condition.
 
 Any property defined as part of the core regulator
 binding, defined in regulator.txt, can also be used.
@@ -26,6 +27,7 @@ Example:
 		regulator-min-microvolt = <1800000>;
 		regulator-max-microvolt = <1800000>;
 		gpio = <&gpio1 16 0>;
+		over-current-gpios = <&gpio1 18 0>;
 		startup-delay-us = <70000>;
 		enable-active-high;
 		regulator-boot-on;
-- 
2.9.3

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCHv4 0/2] regulator: handling of error conditions for usb drivers Axel Haslam <ahaslam@baylibre.com> - 2016-12-15 17:40 +0100
  [PATCHv4 2/2] regulator: fixed: Handle optional overcurrent pin Axel Haslam <ahaslam@baylibre.com> - 2016-12-15 17:40 +0100
  [PATCHv4 1/2] regulator: fixed: dt: Allow an optional over current pin Axel Haslam <ahaslam@baylibre.com> - 2016-12-15 17:40 +0100

csiph-web