mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 10:16:49 +07:00
721e049717
Some devices need a while to boot their firmware after providing clks / de-asserting resets before they are ready to receive sdio commands. This commits adds a post-power-on-delay-ms devicetree property to mmc-pwrseq-simple for use with such devices. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
* The simple MMC power sequence provider
|
|
|
|
The purpose of the simple MMC power sequence provider is to supports a set of
|
|
common properties between various SOC designs. It thus enables us to use the
|
|
same provider for several SOC designs.
|
|
|
|
Required properties:
|
|
- compatible : contains "mmc-pwrseq-simple".
|
|
|
|
Optional properties:
|
|
- reset-gpios : contains a list of GPIO specifiers. The reset GPIOs are asserted
|
|
at initialization and prior we start the power up procedure of the card.
|
|
They will be de-asserted right after the power has been provided to the
|
|
card.
|
|
- clocks : Must contain an entry for the entry in clock-names.
|
|
See ../clocks/clock-bindings.txt for details.
|
|
- clock-names : Must include the following entry:
|
|
"ext_clock" (External clock provided to the card).
|
|
- post-power-on-delay-ms : Delay in ms after powering the card and
|
|
de-asserting the reset-gpios (if any)
|
|
|
|
Example:
|
|
|
|
sdhci0_pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
reset-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
|
clocks = <&clk_32768_ck>;
|
|
clock-names = "ext_clock";
|
|
}
|