From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761345AbcKDVfv (ORCPT ); Fri, 4 Nov 2016 17:35:51 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37159 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760485AbcKDVfp (ORCPT ); Fri, 4 Nov 2016 17:35:45 -0400 From: Axel Haslam To: broonie@kernel.org, girdwood@gmail.com, khilman@baylibre.com, nsekhar@ti.com, david@lechnology.com, robh+dt@kernel.org Cc: linux-kernel@vger.kernel.org, Axel Haslam , devicetree@vger.kernel.org Subject: [PATCH v3 1/2] regulator: fixed: dt: Allow an optional over current pin Date: Fri, 4 Nov 2016 22:35:35 +0100 Message-Id: <20161104213536.28496-2-ahaslam@baylibre.com> X-Mailer: git-send-email 2.10.1.502.g6598894 In-Reply-To: <20161104213536.28496-1-ahaslam@baylibre.com> References: <20161104213536.28496-1-ahaslam@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Axel Haslam --- 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.10.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Axel Haslam Subject: [PATCH v3 1/2] regulator: fixed: dt: Allow an optional over current pin Date: Fri, 4 Nov 2016 22:35:35 +0100 Message-ID: <20161104213536.28496-2-ahaslam@baylibre.com> References: <20161104213536.28496-1-ahaslam@baylibre.com> Return-path: In-Reply-To: <20161104213536.28496-1-ahaslam-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, girdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org, nsekhar-l0cyMroinI0@public.gmane.org, david-nq/r/kbU++upp/zk7JDF2g@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Axel Haslam , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Signed-off-by: Axel Haslam --- 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.10.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html