Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1302632pxu; Thu, 8 Oct 2020 08:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws93uyB795yhB62AXWfAzxOR8oPzBx2gV5rdcrzlW260EJeNu3XOTek26IDMfvDzQL4w2F X-Received: by 2002:a17:906:39ce:: with SMTP id i14mr9731334eje.170.1602170151389; Thu, 08 Oct 2020 08:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602170151; cv=none; d=google.com; s=arc-20160816; b=tjkWfF33cW0jbIRYjAViupjXfYY5wrvuxvXeNWPMN26Sgi7/4Uela/eOZXNxlGCpPp KLxvS/uNKCSOg0FFZykXkVrs1fJl4jIGD4cwHz/0/iiJMPnKdfKHAidN86xA8CXvJ8+9 UKXZbg/9q7Ildwoq50z+hee7/Fz32xz7xPOwzvmOGJ2RioLpryXdp/4iZohFkzNXxc2d Zi4TR+4rW8dyJY0QDJy/HeZ82C97r1fEnAaH818bxTHHp+tdXiD0FyX0Gr0UlNoLMMrq WTRlhWvgTmE9OJN0N5I4StmDfaNJ5y2qKHNI/abA8vnSqK1c1zRTjtljNnzm7WebeFxZ 72yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=CYp5ghx+QtfEEdC8D3FnT9Gr2l75Zs9nCKJ6vvBPBA8=; b=YL5ML2zpbA2sRIEBCi3yVZp04QykZdg8NGAICXpxixzzjRb4r5riGZqvaJvYZKmYfg lTw4vp18xfeeowr6rjY6xDzi0/kjHxy8rF/E9JmXuKYs/sgAQcbAqDMuUXCzWN1KH8eK ZQxcOAEJx1KbPW6IWRPj4MFhv00xhitujqA3/m6f+GU4pg3CAFqp4vwYKOW6It4CJyFm aPjs4a0WxOxmZHsoBxhB9xETf0gZOfKhB35vo2VKx/KXRm0ZIeG/W1dZzyuFOGDTCwdL Y0uOS+L5G6km1zz/ALgCzxfMBZsUj0jEeYHeT6zsojAa3H6AS0F7jUy2AhIdwhsGVhB/ hhZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=NJs463Cl; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=NQtEwLpx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ba11si3987262edb.378.2020.10.08.08.15.27; Thu, 08 Oct 2020 08:15:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=NJs463Cl; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=NQtEwLpx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730925AbgJHPK1 (ORCPT + 99 others); Thu, 8 Oct 2020 11:10:27 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:44903 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730650AbgJHPK1 (ORCPT ); Thu, 8 Oct 2020 11:10:27 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id BA220930; Thu, 8 Oct 2020 11:10:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 08 Oct 2020 11:10:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=CYp5ghx+QtfEEdC8D3FnT9Gr2l7 5Zs9nCKJ6vvBPBA8=; b=NJs463Cl2k75FyBpOEe87GraNWLZI1Qp/iHmmB3/uZf 9ER2rIvYo5D9QDryYsJmcTwhfgr92cDUFyP8dXevyV/ySguG+4fbGF+OYu4lycBj L9zW70TPj7FZX2itdaKOgPIHuSGG5heaT+r3WkU4dMTuqi2CWVQq7vu3gitRvFZc Ic4KTSfyj31fejvjGPiXV14qqkyENsD+r8V4v00cv2OwNoZLIZgESNe+9q4KmcI7 MMnZYIEVneskhzF8gV3izlp5ZSXSc/21xau8Q4DDtGaP62KBhJuGUT/8Hv44OwrH srIVyFkJmxH+NtwIhs1XqcsD+oRIkUkG+VGTgmBL4tg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=CYp5gh x+QtfEEdC8D3FnT9Gr2l75Zs9nCKJ6vvBPBA8=; b=NQtEwLpxkgkaOc0SgkoAxi Wu7lNchjbfXI6VwMHxkdR2r5OkPi3Oog+y9rufQqYyLtfkTg8Pysx2Z4LCPOi4yL OboGf7w2WmMryFOcJh4BdyHdP4lU2C4NdwGGAkSHDSuZaCjVvbFjz6PqMGsvPMNA kndcxCLVHV3kRlq1LmRC/McnmQJM8TwF8Xe/PAVjbWWrOYUA58vd7+NSh1dmol70 GfIoPUNF2hctL0NGhv2QadFB7f9GTigDgIKeiL7JaFAAD/3Aq1f7sbdgy27NZ/zG LuIKd5kyGy6AK2yDlMlt5o6LgewfRHQjRVBAdbnATO+LUKEKexwJyzw827lAI9hw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgeelgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeduvdduhfekkeehgffftefflefgffdtheffudffgeevteffheeuiedvvdejvdfg veenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id E1C773064680; Thu, 8 Oct 2020 11:10:23 -0400 (EDT) Date: Thu, 8 Oct 2020 17:10:22 +0200 From: Maxime Ripard To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Rob Herring , Chen-Yu Tsai , devicetree , linux-arm-kernel , linux-kernel Subject: Re: [PATCH v2] arm64: dts: allwinner: h6: add eMMC voltage property for Beelink GS1 Message-ID: <20201008151022.ryhijbj42y7kgzvb@gilmour.lan> References: <20201003092001.405238-1-peron.clem@gmail.com> <20201005092145.wdu4m4pwxydv76ou@gilmour.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="khuprv2dwhmyhqpu" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --khuprv2dwhmyhqpu Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Cl=E9ment, On Mon, Oct 05, 2020 at 08:47:19PM +0200, Cl=E9ment P=E9ron wrote: > On Mon, 5 Oct 2020 at 11:21, Maxime Ripard wrote: > > > > Hi Cl=E9ment, > > > > On Sat, Oct 03, 2020 at 11:20:01AM +0200, Cl=E9ment P=E9ron wrote: > > > Sunxi MMC driver can't distinguish at runtime what's the I/O voltage > > > for HS200 mode. > > > > Unfortunately, that's not true (or at least, that's not related to your= patch). > > > > > Add a property in the device-tree to notify MMC core about this > > > configuration. > > > > > > Fixes: 089bee8dd119 ("arm64: dts: allwinner: h6: Introduce Beelink GS= 1 board") > > > Signed-off-by: Cl=E9ment P=E9ron > > > --- > > > arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts = b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts > > > index 049c21718846..3f20d2c9bbbb 100644 > > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts > > > @@ -145,6 +145,7 @@ &mmc2 { > > > vqmmc-supply =3D <®_bldo2>; > > > non-removable; > > > cap-mmc-hw-reset; > > > + mmc-hs200-1_8v; > > > bus-width =3D <8>; > > > status =3D "okay"; > > > }; > > > > I'm not really sure what you're trying to fix here, but as far as MMC > > goes, eMMC's can support io voltage of 3.3, 1.8 and 1.2V. Modes up until > > HS DDR (50MHz in DDR) will use an IO voltage of 3.3V, higher speed modes > > (HS200 and HS400) supporting 1.8V and 1.2V. >=20 > Some users report that the eMMC is not working properly on their > Beelink GS1 boards. >=20 > > The mmc-hs200-1_8v property states that the MMC controller supports the > > HS200 mode at 1.8V. Now, I can only assume that since BLDO2 is set up at > > 1.8V then otherwise, the MMC core will rightfully decide to use the > > highest supported mode. In this case, since the driver sets it, it would > > be HS-DDR at 3.3V, which won't work with that fixed regulator. > > > > I can only assume that enabling HS200 at 1.8V only fixes the issue you > > have because otherwise it would use HS-DDR at 3.3V, ie not actually > > fixing the issue but sweeping it under the rug. > > > > Trying to add mmc-ddr-1_8v would be a good idea >=20 > Thanks for the explanation, this is indeed the correct one. > So It looks like the SDIO controller has an issue on some boards when > using HS-DDR mode. >=20 > Is this patch acceptable with the proper commit log? If HS-DDR works, yes, but I assume it doesn't? Maxime --khuprv2dwhmyhqpu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX38r3gAKCRDj7w1vZxhR xZ4uAQCJ3on/eN6AHLyOtjc+8pwcalO/OPJf5gAoITFQbxkrIQD/RjH7slcvyMYj DDSh2+7H0QmZsrML4fpPZsN8H1vKxwQ= =yedp -----END PGP SIGNATURE----- --khuprv2dwhmyhqpu--