mmc-pwrseq-simple.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mmc/mmc-pwrseq-simple.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Simple MMC power sequence provider
  7. maintainers:
  8. - Ulf Hansson <ulf.hansson@linaro.org>
  9. description:
  10. The purpose of the simple MMC power sequence provider is to supports a set
  11. of common properties between various SOC designs. It thus enables us to use
  12. the same provider for several SOC designs.
  13. properties:
  14. compatible:
  15. const: mmc-pwrseq-simple
  16. reset-gpios:
  17. minItems: 1
  18. # Put some limit to avoid false warnings
  19. maxItems: 32
  20. description:
  21. contains a list of GPIO specifiers. The reset GPIOs are asserted
  22. at initialization and prior we start the power up procedure of the card.
  23. They will be de-asserted right after the power has been provided to the
  24. card.
  25. clocks:
  26. minItems: 1
  27. description: Handle for the entry in clock-names.
  28. clock-names:
  29. items:
  30. - const: ext_clock
  31. description: External clock provided to the card.
  32. post-power-on-delay-ms:
  33. description:
  34. Delay in ms after powering the card and de-asserting the
  35. reset-gpios (if any).
  36. power-off-delay-us:
  37. description:
  38. Delay in us after asserting the reset-gpios (if any)
  39. during power off of the card.
  40. required:
  41. - compatible
  42. additionalProperties: false
  43. examples:
  44. - |
  45. #include <dt-bindings/gpio/gpio.h>
  46. pwrseq {
  47. compatible = "mmc-pwrseq-simple";
  48. reset-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  49. clocks = <&clk_32768_ck>;
  50. clock-names = "ext_clock";
  51. };
  52. ...