From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Benjamin Tissoires <benjamin.tissoires@redhat.com>,
Rob Herring <robh@kernel.org>
Cc: Lin Huang <hl@rock-chips.com>,
jikos@kernel.org, jani.nikula@intel.com,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
briannorris@chromium.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/2] devicetree: i2c-hid: Add reset property
Date: Mon, 06 Nov 2017 08:10:51 -0800 [thread overview]
Message-ID: <06A94585-C766-46A9-89CB-44597FE70565@gmail.com> (raw)
In-Reply-To: <20171106090630.GF9728@mail.corp.redhat.com>
On November 6, 2017 1:06:30 AM PST, Benjamin Tissoires <benjamin.tissoires@redhat.com> wrote:
>Hi Rob,
>
>On Nov 01 2017 or thereabouts, Rob Herring wrote:
>> On Tue, Oct 31, 2017 at 11:03:16AM +0800, Lin Huang wrote:
>> > Document a "reset" and "assert-reset-us", it can be used for
>> > driver control reset property. And reuse post-power-on-delay-ms
>> > for deassert reset delay.
>>
>> "dt-bindings: input: " for the subject please.
>>
>> >
>> > Signed-off-by: Lin Huang <hl@rock-chips.com>
>> > ---
>> > Documentation/devicetree/bindings/input/hid-over-i2c.txt | 4 +++-
>> > 1 file changed, 3 insertions(+), 1 deletion(-)
>> >
>> > diff --git
>a/Documentation/devicetree/bindings/input/hid-over-i2c.txt
>b/Documentation/devicetree/bindings/input/hid-over-i2c.txt
>> > index 28e8bd8..6ab0eed 100644
>> > --- a/Documentation/devicetree/bindings/input/hid-over-i2c.txt
>> > +++ b/Documentation/devicetree/bindings/input/hid-over-i2c.txt
>> > @@ -31,7 +31,9 @@ device-specific compatible properties, which
>should be used in addition to the
>> >
>> > - vdd-supply: phandle of the regulator that provides the supply
>voltage.
>> > - post-power-on-delay-ms: time required by the device after
>enabling its regulators
>> > - before it is ready for communication. Must be used with
>'vdd-supply'.
>> > + or deassert reset pin before it is ready for communication.
>> > +- reset: phandle of the gpio that provides for hid reset pin.
>>
>> The kernel api takes "reset", but the property is "reset-gpios".
>
>In the same way the generic regulator interface handles vdd-supply, is
>there any generic OF handling of reset lines? As far as I can tell,
>there are 97 references of reset-gpios in my tree, and I wonder if all
>the matching drivers need to rewrite the same code to set the reset
>line
>on power on/off.
>
>I am worried because here, 1/2 writes "arbitrary" 0 and 1 to the gpios,
>and nothing prevent a manufacturer to invert the required voltages on
>the reset lines, meaning there will be a need for a new OF property.
1and 0 are logical high and low here. Gpiod API takes care of converting to the proper polarity.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2017-11-06 16:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-31 3:03 [PATCH v2 1/2] HID: i2c-hid: add reset gpio property Lin Huang
2017-10-31 3:03 ` [PATCH v2 2/2] devicetree: i2c-hid: Add reset property Lin Huang
2017-11-01 22:02 ` Rob Herring
2017-11-06 9:06 ` Benjamin Tissoires
2017-11-06 16:10 ` Dmitry Torokhov [this message]
2017-11-04 4:35 ` Brian Norris
2017-11-06 1:00 ` hl
2017-10-31 8:47 ` [PATCH v2 1/2] HID: i2c-hid: add reset gpio property Jani Nikula
[not found] ` <1509418996-25348-1-git-send-email-hl-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-11-04 2:29 ` Brian Norris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=06A94585-C766-46A9-89CB-44597FE70565@gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=benjamin.tissoires@redhat.com \
--cc=briannorris@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=hl@rock-chips.com \
--cc=jani.nikula@intel.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox