From: gregory.clement@free-electrons•com (Gregory CLEMENT)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH] arm64: dts: marvell: armada-3720-db: Add vmmc regulator for SD slot
Date: Tue, 19 Sep 2017 16:09:22 +0200 [thread overview]
Message-ID: <87fubisru5.fsf@free-electrons.com> (raw)
In-Reply-To: <20170829135741.4263-1-gregory.clement@free-electrons.com> (Gregory CLEMENT's message of "Tue, 29 Aug 2017 15:57:41 +0200")
Hi,
On mar., ao?t 29 2017, Gregory CLEMENT <gregory.clement@free-electrons•com> wrote:
> By adding this regulator, a proper reset is done during boot. Without
> this, the UHS failed to be detected after a warm reboot when the SD card
> remained in the slot, then it fallback to an HS.
>
> Note that the vmcc is supported by the xenon driver only with the
> following fix: "mmc: sdhci-xenon: add set_power callback".
>
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons•com>
Applied on mvebu/dt64
Gregory
> ---
> arch/arm64/boot/dts/marvell/armada-3720-db.dts | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-3720-db.dts b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
> index 9df0f06ce607..e6e0f38ce6e1 100644
> --- a/arch/arm64/boot/dts/marvell/armada-3720-db.dts
> +++ b/arch/arm64/boot/dts/marvell/armada-3720-db.dts
> @@ -94,6 +94,16 @@
> 3300000 0x0>;
> enable-active-high;
> };
> +
> + vcc_sd_reg2: regulator-vmcc {
> + compatible = "regulator-fixed";
> + regulator-name = "vcc_sd2";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-boot-on;
> + enable-active-high;
> + gpio = <&gpio_exp 4 GPIO_ACTIVE_HIGH>;
> + };
> };
>
> /* Gigabit module on CON19(V2.0)/CON21(V1.4) */
> @@ -179,6 +189,7 @@
> bus-width = <4>;
> marvell,pad-type = "sd";
> vqmmc-supply = <&vcc_sd_reg1>;
> + vmmc-supply = <&vcc_sd_reg2>;
> status = "okay";
> };
>
> --
> 2.14.1
>
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
prev parent reply other threads:[~2017-09-19 14:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-29 13:57 [PATCH] arm64: dts: marvell: armada-3720-db: Add vmmc regulator for SD slot Gregory CLEMENT
2017-09-19 14:09 ` Gregory CLEMENT [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fubisru5.fsf@free-electrons.com \
--to=gregory.clement@free-electrons$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox