From patchwork Tue Nov 15 09:17:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 20258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2608267wru; Tue, 15 Nov 2022 01:24:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Cvzsdy3pyluCJXsjghgXK6okmz1ubJ4xs9B9gCuJhVHMdHMfvPCPfNz+E/wHCcqXkO3q1 X-Received: by 2002:a63:f64d:0:b0:46f:7e1c:e6e6 with SMTP id u13-20020a63f64d000000b0046f7e1ce6e6mr15414495pgj.138.1668504248441; Tue, 15 Nov 2022 01:24:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668504248; cv=pass; d=google.com; s=arc-20160816; b=FrV8Ppg7HOFkBzX3t9mFTm7X0/trxwsMfEgD0iITtdQ0dXujJ5sCYnvi6EUJVUHXU4 IpTcjDbdc1EBgDIIGmQc0iddpUAZDBGszYEznyHqpjr87oPJyL+n76LS9FkAPiGo0a3M U/VCIAdkx9BC3YW66upOQSKo35HaKSHfVSnpZj7gfrTT23TCPHRIOQbsebdOdrl3fOgI 6t/cosZQM9nco9g7wHog29N/PchGM3Bblo8EuudLKl1hwWwGOkLF7CFYVU9PhiIH3hrQ 7ewInSKb+5atWuzAT95SBkaEVEvjhzOKtGXHgSRkOBRVFzRuP2XdMVbTNoXHOorARDgJ YEcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=c4GtD6rCQpSTNRugMldF/AhuI43m5h3lfCx/IbidyAQ=; b=bLCBw77JS+CXDsuufSZErnHsY/81WIHaEnifsSogOi1lzkPmKa6SarB9BjHywXXwK5 /6X/TVBR9oGUL64Hr+k/++oTCuucVUAR3ycS+iFY6bzTuQAF6n7RGMPmQRRKwqgvxhlt /r5X7gvhBECI6nCJPQD1/6Sm3CTo/TAw5iNwj76kg0kVE+TyG3ke28opJrFL2SbF4SZv F3+OpOMNE0CnjODATnEf+wcXCb5AZBVZW6hvMIAAKG9Gt9nHffbE6mQDllXKJexSrbD3 TTd2y2vbJSO/MZOOZ08N25Q/rUQvSQLTsekY4WgUeGZflelms3u8b18jMlYXpHqRm95C aIFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=NvwX1bfh; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h18-20020a635312000000b0046ec7beb578si12318382pgb.94.2022.11.15.01.23.55; Tue, 15 Nov 2022 01:24:08 -0800 (PST) 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; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=NvwX1bfh; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238056AbiKOJRo (ORCPT + 99 others); Tue, 15 Nov 2022 04:17:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238192AbiKOJRD (ORCPT ); Tue, 15 Nov 2022 04:17:03 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80070.outbound.protection.outlook.com [40.107.8.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADB0B2316E for ; Tue, 15 Nov 2022 01:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Aafeeaqgk3Z3ZlTTAcsSGNpaYi+B1ujRmVPYWyGVuO+HqhP2/dZiqzpa2CKT7c04LW5XKpwNTZC+V3lN0DS9AJ+180o2RNbeuM+QAAtKmCr31hfsftEgoQCCV609mdTmJ22cO6O1WNTjhweeYe4m3oFSg1Eds5c8iaRoN5tJHEcH3qsJSmo8jBm8wCpp9ElYOgYixpmCD7SnPpyz8EKqQ2shh/c9gwuJOwuE+5R7fgcAqoY3Mwe5tFkg8lmAk06Qb+ZxsrLO9qg5j10fmIeD7qKiL0oc0iR6S7tefyYeLa6uIWmwFNSn+Qrl6VH4mwtyNS89ruJWsVJzNCnncDTOrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c4GtD6rCQpSTNRugMldF/AhuI43m5h3lfCx/IbidyAQ=; b=Y/ZIjbpcKRNlVGcEsOJsRmmvB5qeggxaBZXxYEYp7/n7OYxZ32/YF7Iq/SExE3gFaS/1YQrd1aQfQbRo+TqtghvAmvyBpvA7VlvaDnOJ1QY3ZR4Eo55jbmigD4t+E8aRYGCxqk5dA0rM7MKdGgRkT/gqQeqZfn15DHV9j83X5jMLWELiwQDwzvh4OYg/lbhxVv8C+gjVUbxz53+57ffWdmS0nMc5Hhb7SHRRFeDmHnegOSZar3ocP7m8vaYw26/NXyuW3B1GCIh+ZiZG29IMW+f4f+wtDXtrxI34f053kZ2Fss5wgCxySLlJYqMVljk/0qTeQFMI49nX48LmWlA8/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c4GtD6rCQpSTNRugMldF/AhuI43m5h3lfCx/IbidyAQ=; b=NvwX1bfhSjsFq4qORzpEahedtv+A83wkNOJQXxb+e2QBTdHSuvTs1VmZVK8Iha/c1Ih2M1Q30yoSvjsW6KtHWN/XVYizZOGKqR8n9RT5rKSv9THWJxc1Ea5QTLbJiisTc5hcuiQr227SbhlLamhYzU2aByS8jbzi9lk2ZPwWB5A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DBBPR04MB7899.eurprd04.prod.outlook.com (2603:10a6:10:1e1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.20; Tue, 15 Nov 2022 09:16:23 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ac6c:bcb8:674c:35d0]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ac6c:bcb8:674c:35d0%4]) with mapi id 15.20.5813.013; Tue, 15 Nov 2022 09:16:23 +0000 From: "Peng Fan (OSS)" To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Haibo Chen , Peng Fan Subject: [PATCH V5 11/12] arm64: dts: imx8m[m,q]-evk: change to use off-on-delay-us in regulator Date: Tue, 15 Nov 2022 17:17:08 +0800 Message-Id: <20221115091709.2865997-12-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221115091709.2865997-1-peng.fan@oss.nxp.com> References: <20221115091709.2865997-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2P153CA0007.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::8) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DBBPR04MB7899:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e720470-f26d-4f96-49c9-08dac6ea107d X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7rKEwOqUKMLIsRP3cS/I0uheM5G5UxtIdyuI4HFh0+uKQjBmBU+m2hYYGFAPpEiFEQuft/4fwWZ3eqKm8Qd6MXnRxhphdwPDOHJHnZrkghGiIoclaibaw5ggBzZgxTY/FV9pVUtn4Pi5+ODJHzdfDAXnmJS/svP2y9gjh2rZIIM04dXVNmcHDYAT/zfItU/Lb4mMNQ1E2AWb/l/X8iPih4GrAwVbV1NBiSigyxiLtK9w5dC/od5mB5VrVyLh9jlHuUGUWOzDW/dfME78WeIYodUuvsRNnTW3JGRXAebCx5Tu5ijhX3z6AAW2K0M4oCdPM+kjysgHlLDtRhNe2gnj7kAWzbo34Gpmn0mouEJkuapVSFrR7e9B8Tqh4hEffncPc7zWtFuh8cWnXAcugTG2OGoPXKbxRfobQ1OaollytWXvFGkmG9mXVmg60rTGaE4coXFKzH2Fj3nkrt8PeUhgIBU0djtUBU0sXTKraIGe8OC17bucccfNfWaz1qlm094bK+pPbbgktOyVQt37mcz/xM3k3bc42mR4kbfMXOfUa+e0OZg1i68MJeWsjyRq1vVrmXlRScy5Y0KYyrwFqUPV0y8vCtVg7VEmTa3iruPTBvF0C4wiNeRkIYCzZr3nLHznNxDX3Y83syeOA+r/PgZd2fYEG4F5Z+ZUpW0+yLPxnS1sYR+E0HOzfHSbj8tzHuD/A3xmXouh/xzPsbHIWVY3N9eiSvkj+zEnpLA1JbWpTWigk6W45T0/79ceHneNJcGScoNmMnDpt48/7p7hDJ+8GIxQKRRCF6MNJu8c3r6Rb08= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(136003)(39860400002)(396003)(376002)(346002)(451199015)(1076003)(52116002)(6506007)(6666004)(186003)(478600001)(26005)(2616005)(6512007)(41300700001)(8936002)(5660300002)(66946007)(4326008)(66556008)(66476007)(2906002)(86362001)(6486002)(316002)(54906003)(8676002)(38350700002)(83380400001)(38100700002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9Y0j8DIWrEUTCSjd2oUv4qt3eUJPwMGtKrapxcqn7+YKBLJqCByCSsgNQg7ioJLHfoql51I7UA3zk7+WjT+W89MHIXMAtUtFd6SM6OZeTjyxiuxDKMwozn69aZ3HQTceDyGsbn85aAcjdTwRhWAjYrzlKVD3rBympoS9GZWB3G+i9R+nX4HiwY0AzfIhfS8w0OcBa/6u9YwPsSUDijuRoYS4sWEpU9yr7IgHt9y7ch4o2vXLCk+xiu/Xj0KHGuop+zbE+vCBaW5rUV8KW/GCDWhIH27Dv27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DQYaMvHLZ//tktXhDDo0Z50v0mLlkmsVCMg4ETKTpwAq+Sgi0w93bsbV8Spj5zxucxJ5Rf8J0depZAPocmyUrtuYOdbBqZXVIxTWey4Se4BdkAyzFbMBi/ypiqaCp/NAUXIhXDwSzs9dBgjy59ueXXue/nudrUL6MpZ5ZeI3LAuufASQSL/ma8yGCaQVmJ/m05U+jCu9FLKWT+TCzlHUB89BIph9eIPJA6 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e720470-f26d-4f96-49c9-08dac6ea107d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2022 09:16:23.1701 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eeTy32SsA0mOWq99rI4suA6kNZ8YJT/9KnST1yylbw5YyyMstzVIjuClcu/YPsqiTz1twYSW61QMAs61+Ejpmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7899 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749553510755032167?= X-GMAIL-MSGID: =?utf-8?q?1749553510755032167?= 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 Reviewed-by: Marco Felsch --- arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 1 + arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index 7d6317d95b13..f881494996a1 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; };