GPIO delay controller

Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-delay.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexander Stein <linux@ew.tq-group.com>"

This binding describes an electrical setup where setting an GPIO output is delayed by some external setup, e.g. RC circuit.

+----------+                    +-----------+
|          |             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 attached to an RC circuit the ramp-up delay is not under control of the GPIO controller.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-delay"

#gpio-cells — required here #

Specifies the pin, ramp-up and ramp-down delays. The delays are specified in microseconds.

Exact value (const): 3

gpios — required here #

Array of GPIOs which output signal change is delayed

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

Required in this object (required): "compatible", "#gpio-cells", "gpio-controller", "gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

enable_delay: enable-delay {
    compatible = "gpio-delay";
    #gpio-cells = <3>;
    gpio-controller;
    gpios = <&gpio0 3 GPIO_ACTIVE_LOW>,
            <&gpio3 1 GPIO_ACTIVE_HIGH>;
};

consumer {
    enable-gpios = <&enable_delay 0 130000 30000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page