Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp976231rwi; Thu, 20 Oct 2022 07:21:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7oz3XAcXlN31sBlX8Yd+dUS3iWWF5wpaJYtPMdbvDw4PMOPmJZ7OKgbk0CpgBFpXPihQu4 X-Received: by 2002:a17:906:8a64:b0:78d:b00d:fe with SMTP id hy4-20020a1709068a6400b0078db00d00femr11497294ejc.32.1666275705704; Thu, 20 Oct 2022 07:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666275705; cv=none; d=google.com; s=arc-20160816; b=oCSYOV8o+NP34JNDOYIEfQCSJcCJMX//kFePg++tQuL8/Voslw1cQxN3shW/o6p2t8 63HN4S2YEB1SmW/Sq3EViYT/pnaVvWZ1Dn3Y8M91fmIdDnyGh6UiHIZU97pMJVZd8ETT YsuodspKtjUb4RHcElsp1IbXuOs/ADKoVzxSaviswgHvvnPaFG/omkpqxO5L7MEtiuon 0x4mSVBKwvNNFL3KT3Da+EfI8WuWbVg6AEF/hs7kl92FQIkqKRK+k+KKCu5Xrnp65Vkg MHSwA8+cYyDkGgCxnWg4IwAS2IjepKAFYgyjvmX+kMUz8knDbBd7rR+oy0vLcN0aOHgu TmAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=UdPm7I7j28JUpBN3KhNaP64YjoP+y9Sw8YZJIVSauqc=; b=LjfLuOp9x1iX9GTRokPXrI8iESodYFFyo6fQ88vFJJCVDT+tPpW2DKuD3hRJSVOxeL YTCnUx32MKyJSIzYgkqTUzsg3FzdyaBnDPFanUnDednDpDPcKtdMTE4Vu3gHOKdAHdxO P/bLhfFrY2C7nveIvUaSEGWNI4vi1w0sx2YVHJxszLMhffcgp76coINJed1FOOH/+mY+ 0JPX+rVfHJB9ezgt5937pSUJquN3vEB0pwPFfyC71PN/ihHjoxoWGKwyRms+5qCFrjpZ p63QUyxv1BJzz2qGcwoKJloNyjkGKfOYElACr/m//53/DiQUJmPcTU87xT0wiMpA4pCt OjLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h6-20020a0564020e0600b0045c0accb2b8si1153322edh.205.2022.10.20.07.21.18; Thu, 20 Oct 2022 07:21:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230123AbiJTOOl (ORCPT + 99 others); Thu, 20 Oct 2022 10:14:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiJTOOi (ORCPT ); Thu, 20 Oct 2022 10:14:38 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ABDC186793 for ; Thu, 20 Oct 2022 07:14:09 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olWJ0-0002IF-Qs; Thu, 20 Oct 2022 16:13:54 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1olWJ0-0006xn-2h; Thu, 20 Oct 2022 16:13:54 +0200 Date: Thu, 20 Oct 2022 16:13:54 +0200 From: Marco Felsch To: "Peng Fan (OSS)" Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, devicetree@vger.kernel.org, Peng Fan , linux-kernel@vger.kernel.org, Haibo Chen , linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 14/15] arm64: dts: imx8m[m, p]-evk: change to use off-on-delay-us in regulator Message-ID: <20221020141354.jxyycnt3nzm7frcr@pengutronix.de> References: <20221020095934.1659449-1-peng.fan@oss.nxp.com> <20221020095934.1659449-15-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221020095934.1659449-15-peng.fan@oss.nxp.com> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22-10-20, Peng Fan (OSS) wrote: > From: Haibo Chen > > 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. Please mention that the real issue which is a capicity which gets unloaded to slow. Please see the u-boot commit for this which explains it better IMHO. Regards, Marco > > Signed-off-by: Haibo Chen > Signed-off-by: Peng Fan > --- > arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 2 +- > arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 1 + > arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 1 + > 3 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > index c93387fcd498..898735965ac9 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts > @@ -22,7 +22,7 @@ reg_sd1_vmmc: sd1_regulator { > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > gpio = <&gpio2 10 GPIO_ACTIVE_HIGH>; > - off-on-delay = <20000>; > + off-on-delay-us = <20000>; > startup-delay-us = <100>; > enable-active-high; > }; > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi > index ce450965e837..fdbcd2483efc 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi > @@ -56,6 +56,7 @@ reg_usdhc2_vmmc: regulator-usdhc2 { > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; > + off-on-delay-us = <20000>; > enable-active-high; > }; > > diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts > index 82387b9cb800..07d9fb2aacf8 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts > @@ -46,6 +46,7 @@ reg_usdhc2_vmmc: regulator-vsd-3v3 { > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; > + off-on-delay-us = <20000>; > enable-active-high; > }; > > -- > 2.37.1 > > >