Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mmc/mmc-pwrseq-simple.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Simple MMC power sequence provider binding
0008 
0009 maintainers:
0010   - Ulf Hansson <ulf.hansson@linaro.org>
0011 
0012 description:
0013   The purpose of the simple MMC power sequence provider is to supports a set
0014   of common properties between various SOC designs. It thus enables us to use
0015   the same provider for several SOC designs.
0016 
0017 properties:
0018   compatible:
0019     const: mmc-pwrseq-simple
0020 
0021   reset-gpios:
0022     minItems: 1
0023     # Put some limit to avoid false warnings
0024     maxItems: 32
0025     description:
0026       contains a list of GPIO specifiers. The reset GPIOs are asserted
0027       at initialization and prior we start the power up procedure of the card.
0028       They will be de-asserted right after the power has been provided to the
0029       card.
0030 
0031   clocks:
0032     minItems: 1
0033     description: Handle for the entry in clock-names.
0034 
0035   clock-names:
0036     items:
0037       - const: ext_clock
0038     description: External clock provided to the card.
0039 
0040   post-power-on-delay-ms:
0041     description:
0042       Delay in ms after powering the card and de-asserting the
0043       reset-gpios (if any).
0044 
0045   power-off-delay-us:
0046     description:
0047       Delay in us after asserting the reset-gpios (if any)
0048       during power off of the card.
0049 
0050 required:
0051   - compatible
0052 
0053 additionalProperties: false
0054 
0055 examples:
0056   - |
0057     #include <dt-bindings/gpio/gpio.h>
0058     sdhci0_pwrseq {
0059       compatible = "mmc-pwrseq-simple";
0060       reset-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
0061       clocks = <&clk_32768_ck>;
0062       clock-names = "ext_clock";
0063     };
0064 ...