Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: dt: pwrseq-simple: Invent power-off-delay-us

During power off, after the GPIO pin has been asserted, some devices like
the Wifi chip from TI, Wl18xx, needs a delay before the host continues with
clock gating and turning off regulators as to follow a graceful shutdown
sequence.

Therefore invent an optional power-off-delay-us DT binding for
mmc-pwrseq-simple, to allow us to support this constraint.

Cc: devicetree@vger.kernel.org
Cc: Rob Herring <robh+dt@kernel.org>
Cc: linux-mmc@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>

+2
+2
Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt
··· 18 18 "ext_clock" (External clock provided to the card). 19 19 - post-power-on-delay-ms : Delay in ms after powering the card and 20 20 de-asserting the reset-gpios (if any) 21 + - power-off-delay-us : Delay in us after asserting the reset-gpios (if any) 22 + during power off of the card. 21 23 22 24 Example: 23 25