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