Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2560197rwi; Fri, 28 Oct 2022 08:27:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7YhhHfJDMMCEmOj7LhY08IsBl8jmlsEl26l6G+gRaK/P3d5poCLqXwYiEWA6KNr7y909cu X-Received: by 2002:a63:87c7:0:b0:46b:3cf1:e163 with SMTP id i190-20020a6387c7000000b0046b3cf1e163mr103933pge.112.1666970831449; Fri, 28 Oct 2022 08:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666970831; cv=none; d=google.com; s=arc-20160816; b=IixLUE+5WkCdJD4wl/W1NIYr8JKlvWxx9cir1hviYFX3dR9oAgDmGX4d5uVlMlA4uh yg25695l3iISTHi6Flp6o+EOxleJ0Dnu6GfXEbAYJ9/mXT9K4N8Zpr7vQRH4aRumhaYm ZToA5Ael7zhJ4nalfmqVTvIMePeJvLI4tyxFqeed+c2nCTHjKdizgnTPEnx2vf8FfvMx Me8YGAJsVyANIWvI61zsdy/hmeBBK2dveK879+jTpK/0YkwETzZDqaWVgQ4Zd1TkEioC nlu3ajXo6WDjCiA/G7l5k/qf8tbz7ZGTWV/0bRts4inKbmhPuVdVpUo879u07kAqtdQt iVPw== 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=NujtHyWjmUQwXl9OG9VcwbOH/h+ABCqi7O29t8w/2nY=; b=b195F2h6MmxcfYioDx5AK2iG6HISyW8/6FO0qFQ/e68IXX210kjxHyFarlcwoeVWam d5rRiXxG6Vsw9JVUwgpHhr/3jTsWDmY+OcmA224oLLogu3OLmyhoPyUxbJ1ERyFmKODn r5SCn1LIOX7C3btFM4emDIBvyrPReHV7bECmu5XwdwV8aPPR4V7qS5OkGavS2OTDrfWn C6X4cR33WzyWR0MtEVlUrFpoGsaCy4vsMJebiFjWGm46407pDJwj6eua2KcZBR7PEwMq Q67LpIFafGXGvnGUKTQVw1euJp4eY7DzqKTSDWrnCxdhCqMYuaB2QoU58XqtGim6A7Ge XdnA== 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 d10-20020a170903230a00b00186a3bc939esi6469138plh.211.2022.10.28.08.26.59; Fri, 28 Oct 2022 08:27:11 -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 S230293AbiJ1Olc (ORCPT + 99 others); Fri, 28 Oct 2022 10:41:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbiJ1OlW (ORCPT ); Fri, 28 Oct 2022 10:41:22 -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 C358710CFBC for ; Fri, 28 Oct 2022 07:41:16 -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 1ooQXl-0005da-A9; Fri, 28 Oct 2022 16:41:09 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ooQXk-0000Us-K3; Fri, 28 Oct 2022 16:41:08 +0200 Date: Fri, 28 Oct 2022 16:41:08 +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 V2 14/15] arm64: dts: imx8m[m, p]-evk: change to use off-on-delay-us in regulator Message-ID: <20221028144108.3ytq77yxkc5f64jk@pengutronix.de> References: <20221024031351.4135651-1-peng.fan@oss.nxp.com> <20221024031351.4135651-15-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221024031351.4135651-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=ham 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-24, Peng Fan (OSS) wrote: > From: Haibo Chen > > Some SD Card controller and power circuitry has increased capacitance, > so the usual toggling of regulator to power the card off and on > is insufficient. > > According to SD spec, for sd card power reset operation, the sd card > supply voltage needs 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, 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. > > 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>; I can't find the "off-on-delay" property you're deleting here in upstream. > + 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 > > >