linux-brain/arch/arm/boot/dts/imx7ulp-evkb-sd1.dts
Haibo Chen 2882394893 MLK-22900 ARM: dts: change to use off-on-delay-us in regulator
After commit f7907e57aea2 ("regulator: fixed: add off-on-delay"), user
can use "off-on-delay-us" to define the regulator off-delay time.

For SD card, according to the spec requirement, for sd card power reset
operation, it need sd card supply voltage to be lower than 0.5v and keep
over 1ms, otherwise, next time power back the sd card supply voltage to
3.3v, sd card can't support SD3.0 mode again.

This patch add the off-on-delay-us to each board, make sure the sd power
reset behavior is align with the specification. Without this patch, when
do quick system suspend/resume test, some sd card can't work at SD3.0 mode
after system resume back.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
2019-11-25 16:09:11 +08:00

46 lines
1.2 KiB
Plaintext

/*
* Copyright 2019 NXP
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include "imx7ulp-evkb.dts"
/ {
regulators {
reg_vsd_3v3b: regulator@2 {
compatible = "regulator-fixed";
regulator-name = "VSD_3V3B";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio_pte 11 GPIO_ACTIVE_HIGH>;
off-on-delay-us = <20000>;
enable-active-high;
};
};
};
&lpuart6 {
status = "disabled";
};
&usdhc1 {
pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_usdhc1_rst>;
pinctrl-1 = <&pinctrl_usdhc1 &pinctrl_usdhc1_rst>;
pinctrl-2 = <&pinctrl_usdhc1 &pinctrl_usdhc1_rst>;
pinctrl-3 = <&pinctrl_usdhc1 &pinctrl_usdhc1_rst>;
cd-gpios = <&gpio_pte 13 GPIO_ACTIVE_LOW>;
wp-gpios = <&gpio_pte 12 GPIO_ACTIVE_HIGH>;
fsl,delay-line = <15>;
vmmc-supply = <&reg_vsd_3v3b>;
/delete-property/non-removable;
/delete-property/pm-ignore-notify;
/delete-property/keep-power-in-suspend;
/delete-property/non-removable;
/delete-property/no-1-8-v;
status = "okay";
};