0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/gpio-consumer-common.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Common GPIO lines
0008
0009 maintainers:
0010 - Bartosz Golaszewski <brgl@bgdev.pl>
0011 - Linus Walleij <linus.walleij@linaro.org>
0012
0013 description:
0014 Pay attention to using proper GPIO flag (e.g. GPIO_ACTIVE_LOW) for the GPIOs
0015 using inverted signal (e.g. RESETN).
0016
0017 select: true
0018
0019 properties:
0020 enable-gpios:
0021 maxItems: 1
0022 description:
0023 GPIO connected to the enable control pin.
0024
0025 reset-gpios:
0026 description:
0027 GPIO (or GPIOs for power sequence) connected to the device reset pin
0028 (e.g. RESET or RESETN).
0029
0030 powerdown-gpios:
0031 maxItems: 1
0032 description:
0033 GPIO connected to the power down pin (hardware power down or power cut,
0034 e.g. PD or PWDN).
0035
0036 pwdn-gpios:
0037 maxItems: 1
0038 description: Use powerdown-gpios
0039 deprecated: true
0040
0041 wakeup-gpios:
0042 maxItems: 1
0043 description:
0044 GPIO connected to the pin waking up the device from suspend or other
0045 power-saving modes.
0046
0047 allOf:
0048 - if:
0049 properties:
0050 compatible:
0051 contains:
0052 enum:
0053 - mmc-pwrseq-simple
0054 then:
0055 properties:
0056 reset-gpios:
0057 minItems: 1
0058 maxItems: 32
0059 else:
0060 properties:
0061 reset-gpios:
0062 maxItems: 1
0063
0064 additionalProperties: true