Path: blob/master/Documentation/devicetree/bindings/gpio/gpio-delay.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/gpio/gpio-delay.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: GPIO delay controller78maintainers:9- Alexander Stein <linux@ew.tq-group.com>1011description: |12This binding describes an electrical setup where setting an GPIO output13is delayed by some external setup, e.g. RC circuit.1415+----------+ +-----------+16| | VCC_B | |17| | | | |18| | VCC_A _ | |19| GPIO | | | R | Consumer |20|controller| ___ |_| | |21| | | | | | |22| [IOx|-------| |--+-----|-----+ |23| | |___| | | input |24| | | | |25+----------+ --- C +-----------+26---27|28-29GND3031If the input on the consumer is controlled by an open-drain signal32attached to an RC circuit the ramp-up delay is not under control33of the GPIO controller.3435properties:36compatible:37const: gpio-delay3839"#gpio-cells":40description: |41Specifies the pin, ramp-up and ramp-down delays. The42delays are specified in microseconds.43const: 34445gpios:46description: Array of GPIOs which output signal change is delayed47minItems: 148maxItems: 324950gpio-controller: true5152gpio-line-names:53minItems: 154maxItems: 325556required:57- compatible58- "#gpio-cells"59- gpio-controller60- gpios6162additionalProperties: false6364examples:65- |66#include <dt-bindings/gpio/gpio.h>6768enable_delay: enable-delay {69compatible = "gpio-delay";70#gpio-cells = <3>;71gpio-controller;72gpios = <&gpio0 3 GPIO_ACTIVE_LOW>,73<&gpio3 1 GPIO_ACTIVE_HIGH>;74};7576consumer {77enable-gpios = <&enable_delay 0 130000 30000>;78};798081