[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAD=FV=V9oct-iJ==1SLdxusq68AY3utMQF+MbX0Uf+2dC0mwww@mail.gmail.com>
Date: Tue, 19 Aug 2014 09:26:26 -0700
From: Doug Anderson <dianders@...omium.org>
To: Javier Martinez Canillas <javier.martinez@...labora.co.uk>
Cc: Kukjin Kim <kgene.kim@...sung.com>,
Olof Johansson <olof@...om.net>,
Mark Brown <broonie@...nel.org>,
Naveen Krishna Chatradhi <ch.naveen@...sung.com>,
Rahul Sharma <rahul.sharma@...sung.com>,
linux-samsung-soc <linux-samsung-soc@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Yuvaraj Kumar C D <yuvaraj.cd@...sung.com>,
Ulf Hansson <ulf.hansson@...aro.org>
Subject: Re: [PATCH 5/6] ARM: dts: Add vmmc and vqmmc supplies for Peach Pit
and Pi boards
Javier,
On Tue, Aug 19, 2014 at 8:08 AM, Javier Martinez Canillas
<javier.martinez@...labora.co.uk> wrote:
> The VCC/VDD and VCCQ/VDD_IO power supplies for the MMC are
> provided by the tps65090 fet4 and max77802 ldo4 regulators
> respectively. Add the phandle to the regulators tree nodes
> for the the dw_mmc device device.
>
> These DTS snippets were taken from the downstream ChromeOS
> 3.8 kernel Device Tree for Peach Pit and Pi boards.
>
> Signed-off-by: Javier Martinez Canillas <javier.martinez@...labora.co.uk>
> ---
> arch/arm/boot/dts/exynos5420-peach-pit.dts | 2 ++
> arch/arm/boot/dts/exynos5800-peach-pi.dts | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts
> index 8e50042..5b9dbb9 100644
> --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts
> +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts
> @@ -547,6 +547,8 @@
> };
>
> &mmc_2 {
> + vmmc-supply = <&tps65090_fet4>;
> + vqmmc-supply = <&vqmmc_sdcard>;
> status = "okay";
> num-slots = <1>;
> supports-highspeed;
> diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts
> index 939f91c..dcac443 100644
> --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts
> +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts
> @@ -545,6 +545,8 @@
> };
>
> &mmc_2 {
> + vmmc-supply = <&tps65090_fet4>;
> + vqmmc-supply = <&vqmmc_sdcard>;
> status = "okay";
> num-slots = <1>;
> supports-highspeed;
While your change is correct, I have a worry that it will break things
if it's merged before some patches that Yuvaraj is working on.
Specifically the problem on pit and pi (and any exynos5250 / 5420 /
5800 / ... boards using the built-in "card detect") is that the card
detect line is on the same power rail as "vqmmc". That means you
can't turn off vqmmc if you still need to be able to detect card
insertions.
...but you can't turn off vmmc without turning off vqmmc, otherwise
current will leak through the IO lines into the card, which is bad.
Right now the SDMMC core will try to turn off power to the card at two times:
1. when the card is ejected
2. when it's trying to reset the card
Obviously the first problem is a huge problem on exynos because it
means that we won't be able to detect card insertions. ...but we
still want to turn the power off from #2. To really fix the problem I
think the core needs to be extended to treat the above as two separate
cases.
Your patch might work at the moment because I think dw_mmc doesn't
actually try to turn off these rails with the main SDMMC core asks it
to. ...but I still worry about merging them before Yuvaraj's changes
are ready.
-Doug
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists