[U-Boot] [RFC 2/2] dm: mmc: implement pwrup function
Simon Glass
sjg at chromium.org
Sat Apr 9 20:34:16 CEST 2016
On 15 March 2016 at 19:32, Peng Fan <van.freenix at gmail.com> wrote:
> If vmmc-supply property is provided, then enable it.
> If vmmc-supply is not provided, just ignore it.
> For now, only fixed regulator is supported.
>
> In device tree:
> "
> reg_sd1_vmmc: regulator at 1 {
> compatible = "regulator-fixed";
> regulator-name = "VSD_3V3";
> regulator-min-microvolt = <3300000>;
> regulator-max-microvolt = <3300000>;
> gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
> enable-active-high;
> };
>
> &usdhc1 {
> pinctrl-names = "default", "state_100mhz", "state_200mhz";
> pinctrl-0 = <&pinctrl_usdhc1>;
> pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
> pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
> cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
> keep-power-in-suspend;
> enable-sdio-wakeup;
> vmmc-supply = <®_sd1_vmmc>;
> status = "okay";
> };
> "
>
> Signed-off-by: Peng Fan <van.freenix at gmail.com>
> Cc: Pantelis Antoniou <panto at antoniou-consulting.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Eric Nelson <eric at nelint.com>
> Cc: York Sun <york.sun at nxp.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Fabio Estevam <fabio.estevam at nxp.com>
> ---
> drivers/mmc/fsl_esdhc.c | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
Acked-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list