xref: /freebsd-src/sys/contrib/device-tree/Bindings/gpio/gpio-consumer-common.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1*d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*d5b0e70fSEmmanuel Vadot%YAML 1.2
3*d5b0e70fSEmmanuel Vadot---
4*d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/gpio-consumer-common.yaml#
5*d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*d5b0e70fSEmmanuel Vadot
7*d5b0e70fSEmmanuel Vadottitle: Common GPIO lines
8*d5b0e70fSEmmanuel Vadot
9*d5b0e70fSEmmanuel Vadotmaintainers:
10*d5b0e70fSEmmanuel Vadot  - Bartosz Golaszewski <brgl@bgdev.pl>
11*d5b0e70fSEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
12*d5b0e70fSEmmanuel Vadot
13*d5b0e70fSEmmanuel Vadotdescription:
14*d5b0e70fSEmmanuel Vadot  Pay attention to using proper GPIO flag (e.g. GPIO_ACTIVE_LOW) for the GPIOs
15*d5b0e70fSEmmanuel Vadot  using inverted signal (e.g. RESETN).
16*d5b0e70fSEmmanuel Vadot
17*d5b0e70fSEmmanuel Vadotselect: true
18*d5b0e70fSEmmanuel Vadot
19*d5b0e70fSEmmanuel Vadotproperties:
20*d5b0e70fSEmmanuel Vadot  enable-gpios:
21*d5b0e70fSEmmanuel Vadot    maxItems: 1
22*d5b0e70fSEmmanuel Vadot    description:
23*d5b0e70fSEmmanuel Vadot      GPIO connected to the enable control pin.
24*d5b0e70fSEmmanuel Vadot
25*d5b0e70fSEmmanuel Vadot  reset-gpios:
26*d5b0e70fSEmmanuel Vadot    description:
27*d5b0e70fSEmmanuel Vadot      GPIO (or GPIOs for power sequence) connected to the device reset pin
28*d5b0e70fSEmmanuel Vadot      (e.g. RESET or RESETN).
29*d5b0e70fSEmmanuel Vadot
30*d5b0e70fSEmmanuel Vadot  powerdown-gpios:
31*d5b0e70fSEmmanuel Vadot    maxItems: 1
32*d5b0e70fSEmmanuel Vadot    description:
33*d5b0e70fSEmmanuel Vadot      GPIO connected to the power down pin (hardware power down or power cut,
34*d5b0e70fSEmmanuel Vadot      e.g. PD or PWDN).
35*d5b0e70fSEmmanuel Vadot
36*d5b0e70fSEmmanuel Vadot  pwdn-gpios:
37*d5b0e70fSEmmanuel Vadot    maxItems: 1
38*d5b0e70fSEmmanuel Vadot    description: Use powerdown-gpios
39*d5b0e70fSEmmanuel Vadot    deprecated: true
40*d5b0e70fSEmmanuel Vadot
41*d5b0e70fSEmmanuel Vadot  wakeup-gpios:
42*d5b0e70fSEmmanuel Vadot    maxItems: 1
43*d5b0e70fSEmmanuel Vadot    description:
44*d5b0e70fSEmmanuel Vadot      GPIO connected to the pin waking up the device from suspend or other
45*d5b0e70fSEmmanuel Vadot      power-saving modes.
46*d5b0e70fSEmmanuel Vadot
47*d5b0e70fSEmmanuel VadotallOf:
48*d5b0e70fSEmmanuel Vadot  - if:
49*d5b0e70fSEmmanuel Vadot      properties:
50*d5b0e70fSEmmanuel Vadot        compatible:
51*d5b0e70fSEmmanuel Vadot          contains:
52*d5b0e70fSEmmanuel Vadot            enum:
53*d5b0e70fSEmmanuel Vadot              - mmc-pwrseq-simple
54*d5b0e70fSEmmanuel Vadot    then:
55*d5b0e70fSEmmanuel Vadot      properties:
56*d5b0e70fSEmmanuel Vadot        reset-gpios:
57*d5b0e70fSEmmanuel Vadot          minItems: 1
58*d5b0e70fSEmmanuel Vadot          maxItems: 32
59*d5b0e70fSEmmanuel Vadot    else:
60*d5b0e70fSEmmanuel Vadot      properties:
61*d5b0e70fSEmmanuel Vadot        reset-gpios:
62*d5b0e70fSEmmanuel Vadot          maxItems: 1
63*d5b0e70fSEmmanuel Vadot
64*d5b0e70fSEmmanuel VadotadditionalProperties: true
65