From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Alexander Stein <alexander.stein@ew.tq-group.com>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
Marek Vasut <marex@denx.de>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: [RFC PATCH v2 1/3] dt-bindings: gpio: Add gpio-delay binding document
Date: Thu, 15 Dec 2022 10:11:47 +0100 [thread overview]
Message-ID: <d38655cb-d387-5bbd-c430-52a0b04ae3cc@linaro.org> (raw)
In-Reply-To: <20221214095342.937303-2-alexander.stein@ew.tq-group.com>
On 14/12/2022 10:53, Alexander Stein wrote:
> This adds bindings for a GPIO enable/disable delay driver.
>
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> .../devicetree/bindings/gpio/gpio-delay.yaml | 75 +++++++++++++++++++
> 1 file changed, 75 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/gpio/gpio-delay.yaml
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-delay.yaml b/Documentation/devicetree/bindings/gpio/gpio-delay.yaml
> new file mode 100644
> index 000000000000..20871356e9b5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/gpio-delay.yaml
> @@ -0,0 +1,75 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/gpio/gpio-delay.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: GPIO delay controller
> +
> +maintainers:
> + - Alexander Stein <linux@ew.tq-group.com>
> +
> +description: |
> + This binding describes an electrical setup where setting an GPIO output
> + is delayed by some external setup, e.g. RC curcuit.
> +
> + +----------+ +-----------+
> + | | VCC_B | |
> + | | | | |
> + | | VCC_A _ | |
> + | GPIO | | | R | Consumer |
> + |controller| ___ |_| | |
> + | | | | | | |
> + | [IOx|-------| |--+-----|-----+ |
> + | | |___| | | input |
> + | | | | |
> + +----------+ --- C +-----------+
> + ---
> + |
> + -
> + GND
> +
> + If the input on the consumer is controlled by an open-drain signal
If IOx is open-drain, what is the VCC_A on the diagram? I think it
wasn't present in original Laurent's diagram.
> + attached to an RC curcuit the ramp-up delay is not under control
> + of the GPIO controller.
> +
> +properties:
> + compatible:
> + const: gpio-delay
> +
> + "#gpio-cells":
> + description: |
> + Specifies the pin, ramp-up and ramp-down delays. The
> + delays are specified in microseconds.
> + const: 3
> +
> + input-gpios:
> + description: Array of GPIOs which output signal change is delayed
maxItems: 32 or some other reasonable value
> +
> + gpio-controller: true
> +
> + gpio-line-names: true
and then the same maxItems.
> +
> +required:
> + - compatible
> + - "#gpio-cells"
> + - gpio-controller
> + - input-gpios
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + enable_delay: enable-delay {
> + compatible = "gpio-delay";
I am not sure whether the naming is the most accurate - it represents
desired behavior (so the delay in rising signal), not actual hardware
(RC filter), but maybe that's a bit more generic.
Anyway look fine for me.
> + #gpio-cells = <3>;
> + gpio-controller;
> + input-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>,
> + <&gpio3 1 GPIO_ACTIVE_HIGH>;
> + };
> +
> + consumer {
> + enable-gpios = <&enable_delay 0 130000 30000>;
> + };
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-12-15 9:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-14 9:53 [RFC PATCH v2 0/3] gpio: Add gpio-delay support Alexander Stein
2022-12-14 9:53 ` [RFC PATCH v2 1/3] dt-bindings: gpio: Add gpio-delay binding document Alexander Stein
2022-12-15 9:11 ` Krzysztof Kozlowski [this message]
2022-12-15 13:09 ` Alexander Stein
2022-12-15 13:14 ` Linus Walleij
2022-12-14 9:53 ` [RFC PATCH v2 2/3] gpio: Add gpio delay driver Alexander Stein
2022-12-14 9:53 ` [RFC PATCH v2 3/3] [DNI] arm64: dts: mba8mx: Use gpio-delay for LVDS bridge Alexander Stein
2022-12-15 13:16 ` [RFC PATCH v2 0/3] gpio: Add gpio-delay support Linus Walleij
2022-12-15 18:21 ` Rob Herring
2022-12-15 21:26 ` Laurent Pinchart
2022-12-15 22:44 ` Rob Herring
2022-12-16 7:53 ` Alexander Stein
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=d38655cb-d387-5bbd-c430-52a0b04ae3cc@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=alexander.stein@ew.tq-group.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;
as well as URLs for NNTP newsgroup(s).