Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1675006
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] pinctrl: generic: Add output-enable property |
| Date | 2017-06-26 20:50 +0200 |
| Message-ID | <tWHfc-5UG-25@gated-at.bofh.it> (permalink) |
| References | <tV7dM-3dT-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Jun 22, 2017 at 12:00:58PM +0200, Jacopo Mondi wrote: > Add output-enable generic pin configuration property. > This properties allows enabling/disabling pin's output capabilities > without actually driving any value on the line. > > --- > v1->v2: > - Expand the property description as suggested by Laurent. I ended up > mentioning the in-famous output buffer :) > > One (more) question to GPIO people on: > + PCONFDUMP(PIN_CONFIG_OUTPUT_ENABLE, "output enabled", NULL, false), > > I copied this from INPUT_ENABLE where arguments 2 and 3 passed to PCONFDUMP are > NULL and false even if the property has an argument, used to enable/disable > the input mode. Is this intended? Should that be turned instead to > - PCONFDUMP(PIN_CONFIG_INPUT_ENABLE, "input enabled", NULL, false), > + PCONFDUMP(PIN_CONFIG_INPUT_ENABLE, "input enabled", "enabled", true), > > Note that the same applies to most of the properties that have an > "enable"/"disable" argument. Just to make sure this is done on purpose. > > Thanks > j > .../devicetree/bindings/pinctrl/pinctrl-bindings.txt | 2 ++ Acked-by: Rob Herring <robh@kernel.org> > drivers/pinctrl/pinconf-generic.c | 3 +++ > include/linux/pinctrl/pinconf-generic.h | 15 +++++++++++---- > 3 files changed, 16 insertions(+), 4 deletions(-)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] pinctrl: generic: Add output-enable property Jacopo Mondi <jacopo+renesas@jmondi.org> - 2017-06-22 12:10 +0200
Re: [PATCH v2] pinctrl: generic: Add output-enable property Rob Herring <robh@kernel.org> - 2017-06-26 20:50 +0200
Re: [PATCH v2] pinctrl: generic: Add output-enable property Linus Walleij <linus.walleij@linaro.org> - 2017-06-29 14:40 +0200
Re: [PATCH v2] pinctrl: generic: Add output-enable property Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-06-29 16:30 +0200
csiph-web