From: Alexander Stein <alexander.stein@ew.tq-group.com>
To: andy.shevchenko@gmail.com
Cc: Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
Marek Vasut <marex@denx.de>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: [PATCH v1 0/3] gpio: Add gpio-delay support
Date: Tue, 11 Apr 2023 09:19:01 +0200 [thread overview]
Message-ID: <3231223.aeNJFYEL58@steina-w> (raw)
In-Reply-To: <ZDBnnKy7QF0KZuZd@surfacebook>
Hi Andy,
Am Freitag, 7. April 2023, 20:57:32 CEST schrieb andy.shevchenko@gmail.com:
> Thu, Apr 06, 2023 at 11:33:41AM +0200, Alexander Stein kirjoitti:
> > Hello everyone,
> >
> > thanks for the feedback I've received. This is the first non-RFC series
> > for
> > adressing a platform specific ramp-up/ramp-down delay on GPIO outputs.
> >
> > Changes compared to RFC v2 are mentioned in each patch.
>
> Reading the (poor?) documentation does not clarify the use case.
> Looking at them I think that this is can be implemented as debounce.
Debounce for GPIOs? There is nothing like that yet.
> Also I have no clue why it's so important that we _need_ to have a
> driver for this. We have plenty of consumer drivers that implement
> delays on ramping up or down or whatever if they need.
But this delay I am dealing with is actually not consumer dependent, e.g. a
power-on delay specified in a datasheet. Instead this driver deals with a
platform-specific curiosity, e.g. RC-circuit on an open-drain output. So this
is something which sits inbetween ICs.
In the RFC we came to the conclusion to not adjust (each) consumer to deal
with this, given this will be rarely used. Instead provide a generic way for
specifying this delay.
> Which part(s) did I got wrong?
Maybe there needs to be an explicit example in the bindings document what's
the actual issue to deal with.
Right now if a GPIO is set, it is expected the signal on the receiver side has
changed as well within a negligible time as well. But due to external reasons
(see RC_curcuit above) the change on the receiver side can occur much later,
>100ms in my case.
Best regards,
Alexander
> P.S. Are we going to have a _driver_ per each subtle feature like this?
--
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/
next prev parent reply other threads:[~2023-04-11 7:19 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-06 9:33 [PATCH v1 0/3] gpio: Add gpio-delay support Alexander Stein
2023-04-06 9:33 ` [PATCH v1 1/3] dt-bindings: gpio: Add gpio-delay binding document Alexander Stein
2023-05-31 16:37 ` Krzysztof Kozlowski
2023-06-02 16:29 ` Bartosz Golaszewski
2023-04-06 9:33 ` [PATCH v1 2/3] gpio: Add gpio delay driver Alexander Stein
2023-06-02 16:31 ` Bartosz Golaszewski
2023-04-06 9:33 ` [PATCH v1 3/3] [DNI] arm64: dts: mba8mx: Use gpio-delay for LVDS bridge Alexander Stein
2023-04-07 18:57 ` [PATCH v1 0/3] gpio: Add gpio-delay support andy.shevchenko
2023-04-11 7:19 ` Alexander Stein [this message]
2023-04-11 9:34 ` Andy Shevchenko
2023-04-14 6:37 ` Alexander Stein
2023-04-15 15:06 ` Andy Shevchenko
2023-04-16 7:42 ` Krzysztof Kozlowski
2023-04-16 9:36 ` Andy Shevchenko
2023-04-16 11:04 ` Krzysztof Kozlowski
2023-04-16 11:14 ` Andy Shevchenko
2023-04-16 11:21 ` Krzysztof Kozlowski
2023-04-16 11:33 ` Andy Shevchenko
2023-04-16 11:42 ` Krzysztof Kozlowski
2023-04-16 18:46 ` Andy Shevchenko
2023-05-31 6:53 ` Alexander Stein
2023-05-31 12:02 ` Andy Shevchenko
2023-05-31 13:44 ` Linus Walleij
2023-05-31 14:37 ` Andy Shevchenko
2023-05-31 16:37 ` Krzysztof Kozlowski
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=3231223.aeNJFYEL58@steina-w \
--to=alexander.stein@ew.tq-group.com \
--cc=andy.shevchenko@gmail.com \
--cc=brgl@bgdev.pl \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=marex@denx.de \
--cc=robh+dt@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