gpio-consumer-common.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/gpio/gpio-consumer-common.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Common GPIO lines
  7. maintainers:
  8. - Bartosz Golaszewski <brgl@bgdev.pl>
  9. - Linus Walleij <linusw@kernel.org>
  10. description:
  11. Pay attention to using proper GPIO flag (e.g. GPIO_ACTIVE_LOW) for the GPIOs
  12. using inverted signal (e.g. RESETN).
  13. select: true
  14. properties:
  15. enable-gpios:
  16. maxItems: 1
  17. description:
  18. GPIO connected to the enable control pin.
  19. reset-gpios:
  20. description:
  21. GPIO (or GPIOs for power sequence) connected to the device reset pin
  22. (e.g. RESET or RESETN).
  23. powerdown-gpios:
  24. maxItems: 1
  25. description:
  26. GPIO connected to the power down pin (hardware power down or power cut,
  27. e.g. PD or PWDN).
  28. pwdn-gpios:
  29. maxItems: 1
  30. description: Use powerdown-gpios
  31. deprecated: true
  32. wakeup-gpios:
  33. maxItems: 1
  34. description:
  35. GPIO connected to the pin waking up the device from suspend or other
  36. power-saving modes.
  37. allOf:
  38. - if:
  39. properties:
  40. compatible:
  41. contains:
  42. enum:
  43. - mmc-pwrseq-simple
  44. then:
  45. properties:
  46. reset-gpios:
  47. minItems: 1
  48. maxItems: 32
  49. else:
  50. properties:
  51. reset-gpios:
  52. maxItems: 1
  53. additionalProperties: true