Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1512206
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH/RFT v2 09/17] regulator: fixed: Add over current event |
| Date | 2016-10-30 21:50 +0100 |
| Message-ID | <sy5dh-16O-53@gated-at.bofh.it> (permalink) |
| References | <svQBH-1Ks-3@gated-at.bofh.it> <svQBH-1Ks-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Oct 24, 2016 at 06:46:26PM +0200, ahaslam@baylibre.com wrote: > From: Axel Haslam <ahaslam@baylibre.com> > > Some regulator supplies have an over-current pin that is > activated when the hw detects an over current condition. > When this happens, the hardware enters a current limited > mode. > > Extend the fixed regulator driver with the ability > to handle irq's from the over-current pin and report > an over current event to the consumers via a regulator > notifier. Also, add device tree bindings to allow to > pass a gpio for over current monitoring. > > Signed-off-by: Axel Haslam <ahaslam@baylibre.com> > --- > .../bindings/regulator/fixed-regulator.txt | 4 ++ > drivers/regulator/fixed.c | 64 ++++++++++++++++++++++ > include/linux/regulator/consumer.h | 5 ++ > include/linux/regulator/fixed.h | 3 + > 4 files changed, 76 insertions(+) > > diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.txt b/Documentation/devicetree/bindings/regulator/fixed-regulator.txt > index 4fae41d..d20bf67 100644 > --- a/Documentation/devicetree/bindings/regulator/fixed-regulator.txt > +++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.txt > @@ -11,6 +11,8 @@ 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. > +- oc-gpio: Input gpio that signals an over current condition "-gpios" is the preferred form. So "oc-gpios". > +- oc-active-high: The polarity of the over current pin is high This should be specified in the gpio flags cell. Rob
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH/RFT v2 09/17] regulator: fixed: Add over current event Rob Herring <robh@kernel.org> - 2016-10-30 21:50 +0100
csiph-web