From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Zolnierkiewicz Subject: Re: [PATCH] ARM: dts: fix MMC2 regulators for Exynos5420 Arndale Octa board Date: Thu, 02 Oct 2014 18:39:27 +0200 Message-ID: <2384118.ElmRrZpdEv@amdc1032> References: <2750153.I3nVqzmXTP@amdc1032> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7Bit Return-path: Received: from mailout1.samsung.com ([203.254.224.24]:45703 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753053AbaJBQjn (ORCPT ); Thu, 2 Oct 2014 12:39:43 -0400 In-reply-to: Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Doug Anderson Cc: Kukjin Kim , Yuvaraj Kumar C D , Ulf Hansson , "cpgs ." , Yuvaraj Kumar C D , linux-samsung-soc , "linux-arm-kernel@lists.infradead.org" , Jaehoon Chung , Chris Ball , Seung-Won Jeon , linux-mmc , Sonny Rao , Tomasz Figa , SUNIL JOSHI , PRASHANTH GODREHAL , ALIM AKHTAR , Javier Martinez Canillas , Abhilash Kesavan On Thursday, October 02, 2014 09:19:08 AM Doug Anderson wrote: > Bartiomiej, > > On Thu, Oct 2, 2014 at 9:10 AM, Bartlomiej Zolnierkiewicz > wrote: > > Regulators for MMC2 (SD card) are PVDD_TFLASH_2V8 (LDO19) for vmmc > > and PVDD_APIO_MMCOFF_2V8 (LDO13) for vqmmc. Currently the device > > tree entry for MMC2 uses PVDD_PRE_1V8 (LDO10) for vmmc and vqmmc is > > not specified. Fix it. > > > > Without this patch: > > - "mmc: dw_mmc: use mmc_regulator_get_supply to handle regulators" > > patch causes a SD card detection to fail > > - "mmc: dw_mmc: Support voltage changes" patch causes a boot hang > > > > This patch fixes both above problems. > > > > Suggested-by: Doug Anderson > > Cc: Yuvaraj Kumar C D > > Cc: Ulf Hansson > > Signed-off-by: Bartlomiej Zolnierkiewicz > > Acked-by: Kyungmin Park > > --- > > arch/arm/boot/dts/exynos5420-arndale-octa.dts | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > Index: b/arch/arm/boot/dts/exynos5420-arndale-octa.dts > > =================================================================== > > --- a/arch/arm/boot/dts/exynos5420-arndale-octa.dts 2014-10-02 15:44:53.014826886 +0200 > > +++ b/arch/arm/boot/dts/exynos5420-arndale-octa.dts 2014-10-02 17:35:24.110600398 +0200 > > @@ -74,7 +74,8 @@ > > samsung,dw-mshc-ddr-timing = <1 2>; > > pinctrl-names = "default"; > > pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; > > - vmmc-supply = <&ldo10_reg>; > > + vmmc-supply = <&ldo19_reg>; > > + vqmmc-supply = <&ldo13_reg>; > > This looks right to me. ...but I notice that ldo13 and ldo19 are not > "always-on" in the DTS. Are you sure card detect works for you if you > eject your card and try to put it back in? > > ...eventually the "always-on" won't be needed, but for now I think it is... Card detection works fine without "always-on". Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics