From patchwork Tue Dec 1 08:58:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ZHIZHIKIN Andrey X-Patchwork-Id: 1408825 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=leica-geosystems.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.a=rsa-sha256 header.s=selector1 header.b=NfPTGgOZ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CljgX2633z9sRK for ; Wed, 2 Dec 2020 00:31:51 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 55D39827A1; Tue, 1 Dec 2020 14:31:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=leica-geosystems.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b="NfPTGgOZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 07A8F825FF; Tue, 1 Dec 2020 09:58:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0709.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::709]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8067D825FF for ; Tue, 1 Dec 2020 09:58:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=leica-geosystems.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=andrey.zhizhikin@leica-geosystems.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gGA+YBoT+D2vO50XDZBTSZz3df9bI1YhQblvNtz/DZr/HxTUF63IJBOjQ8tfhSBPg7DxxTpikLTzHcQRqknvFLtL4YNI7wx/5ctbSJOMkEv4CKfUtYTBLhRXQS38yudentuqThhi9koP9Grl+3iFXQ+MK+NikjFiPqc8NiMxV/hAEe6peIrkktmM1zwYt08LXPFcOhkGk5JaemZa0r+hV7lHef8zfcvwcY0dzyPY0CvTiKoeW7VsyH/yu2vNFb69pkFtb9oG+5tFRzQKMwmazaX4IV43MJjqnGZkvp0F6xTR0g1kE/60KswX5AAN4iWc971KLfkn9aMuH1cpZyjV5w== 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-SenderADCheck; bh=OldaU4S6bFTewK2BNJ276oAmOw1lrZAL0tZbZy7Xfik=; b=aWczVoxEHNAOXd1ojJq4sxQWgxnGd5dOVf2PLXfImRbOc88bg5tQjnY7f6I/DfaHPTQoOhvB84Kz/8SdyOO0ewF8PR5CIeFskDxVuKojRTuh7YQulynA48amEJPLnWIeLVA//l+SqMZo2mDssAjBuDJpVo9cKced7lutVqzlEs8AWpVIudAul3WNntisE1NeETnYxR/rymo1ukwQj5XH5M5KjFCMchOpm9IKhH/8V2tivHKQqJMdWU3iVVSpwWBv0y7cF75ImV0JPrd1QoTxTJUjBHBarHOHXRb2JNBk9ruesfUF67lYj1gM5lT7Brb4tTYu9LAqfwNxNWt+gt8dqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=leica-geosystems.com; dmarc=pass action=none header.from=leica-geosystems.com; dkim=pass header.d=leica-geosystems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OldaU4S6bFTewK2BNJ276oAmOw1lrZAL0tZbZy7Xfik=; b=NfPTGgOZZlO/dZWqMq20fCJDRvH3gmOwU7Pt1cQqhBKDrU67hgsEfcxL4yfPIrApmW//o1iTK3ZsRHWyv2aKswIddctZ3dbaLsGvFbMNpljQP8NBzprVvN1UF+7bzNaim2C7I0O5qU8xoD4THqBAHZ3TT38HQewfT+83DFExHQw= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=leica-geosystems.com; Received: from DB6PR0602MB2886.eurprd06.prod.outlook.com (2603:10a6:4:9b::11) by DB9PR06MB7242.eurprd06.prod.outlook.com (2603:10a6:10:219::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.20; Tue, 1 Dec 2020 08:58:44 +0000 Received: from DB6PR0602MB2886.eurprd06.prod.outlook.com ([fe80::49c3:4b5b:289c:d62c]) by DB6PR0602MB2886.eurprd06.prod.outlook.com ([fe80::49c3:4b5b:289c:d62c%12]) with mapi id 15.20.3611.025; Tue, 1 Dec 2020 08:58:44 +0000 From: Andrey Zhizhikin To: u-boot@lists.denx.de Cc: sbabic@denx.de Subject: [PATCH 1/2] ARM: dts: imx8m: increase off-on delay on the SD Vcc regulator Date: Tue, 1 Dec 2020 08:58:20 +0000 Message-Id: <20201201085821.23050-2-andrey.zhizhikin@leica-geosystems.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201201085821.23050-1-andrey.zhizhikin@leica-geosystems.com> References: <20201201085821.23050-1-andrey.zhizhikin@leica-geosystems.com> X-Originating-IP: [193.8.40.112] X-ClientProxiedBy: ZR0P278CA0021.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::8) To DB6PR0602MB2886.eurprd06.prod.outlook.com (2603:10a6:4:9b::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from aherlnxbspsrv01.lgs-net.com (193.8.40.112) by ZR0P278CA0021.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.20 via Frontend Transport; Tue, 1 Dec 2020 08:58:44 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: efffbb94-245e-4617-4217-08d895d74e91 X-MS-TrafficTypeDiagnostic: DB9PR06MB7242: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:411; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Vr2S4kU2MtFi/Jyd+EDKn+s/kn8AJY49a8EyHu8/s0/ox5M+q2w4hKQ7/USyEVS8+darE990qLnPye0FGXewQAQp05PXU4hwcmdBcgfIWODcVsuOhwDwyyIdtqvNPgDPMik1lmZa10dynzMhKUpLdAmfzmzOZW+M7wFUWxntHLiRdEdusGY1R7DWFOJcwt+i3GM6H44HPdZrRmpbMtY2DR48lM0RZBAMZGrVbitpv9W3jS+FdrAnUl2eg+/EOudscSIyQdihGzc8oESoAFRSGq60fNMZmFTAJmwdgdb7/mK7Ts4loBaSKiYCLLI7etuaHwFk20AUFlLFRdxldMIxePz22g7lqGnzNUioHghBXS01dKAvYD2icx9dfXGDSGbk X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0602MB2886.eurprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(366004)(376002)(346002)(136003)(396003)(1076003)(4326008)(86362001)(5660300002)(2906002)(66946007)(6512007)(66556008)(66476007)(316002)(6486002)(478600001)(8936002)(52116002)(8676002)(2616005)(44832011)(6916009)(16526019)(26005)(956004)(6506007)(186003)(36756003)(6666004)(83380400001)(32563001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: AlkTpLg+THJ+zP4zZVKr2fpz9zPv4e8SBl8XSZybH02ro0wY5WMY7nRLBaVDn64EP9lFoNNOL83h7UKgbCyHCrSqsNJezY8FCsbhvg5Irosa3olqjMfLRuxlkOVs3zz5nvBQYT2FNGEEAkJeyz1n9s05pS18Yy/MbzBc/g+J1fsCWCN8whiIMuwRI7I9vHF80k2fijNwO353YNtOqTTQ/T0lTXgpqjDORDBqj1TACkgwoBMhRA7wKY3vin9rbQhBZadH0cEP0n8vIxyd0hSrpz5hHz2DTfHWmbR3qfaUga2hhYYrgPWdFcVHNR+FrTxP4u2c7ZFfBWU4eTOAwYnK8qpkYlnvc3YeW4PUwez51sfEVqWiLYBdLNeVHl80PHEE/n85spaeOwlfUgDh0uthE+qnkYQQELl4yDhDARIbzKaCbMcMZsrYF3LbkjpessXakESertiXJ3IXbdtHWIsHJf0wnm0CHOt6BKybw48EfdZ+00A+pYOwqyNAIMZciXOcbNIZ5ZgkXR7+umC6/2mAblfE3YuY6i5xJhtSkH1EvtWf7EvWq8voZcVJHnDfT8cBVkO++D3MuH1vi+7JHFptsHNLi8UWdlrc56BS0f2+gL3oIxLB/ELuJsBwsVwXWpZVmCI7xegAMWmZcaXMxX567fCpzzTtJ5dutUIFO+HJlkG127u/VNdR9vGqRodnyCmsikuLIIFWl/ibhZSN8dh7QU6513CLZHqn5BKVS7LMLwkfojtmpKgshE7h1cTXXTCe8pFrg9sQOqso378VvrpPSuJq/qcBDr0U4IvRru7X1oO0B2+YQYLRrMoleTpFZI8xhjXgo25j2bI8IAKr01KIlrD+F4I7MhFTW9bbpozVH3MZtAILUUb9FX8s0wanuMsiEzdBe/hN7vZdySNi31rhCb6gnr/16tzczs6w/lTKlOuEt8PfOzJlxzKXGCOQw4Gxh2jvGjInIDrkI/RAsi7KH4v+s1cAvAJSy3+On6nvf1Y3YE972shwY+X/cK3nB/Vr X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-Network-Message-Id: efffbb94-245e-4617-4217-08d895d74e91 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0602MB2886.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2020 08:58:44.3843 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MGZOcRdmEPpm+OzZBdOjQn+xb5adi/khlBHBAVhl1yvBrFZkRK5LBiJKoEIuktJF9byJMXK4qKmdlXIsUWsPN283B3vczQxPtHhyX3xRZ8A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR06MB7242 X-Mailman-Approved-At: Tue, 01 Dec 2020 14:31:31 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Some SD Card controller and power circuitry has increased capacitance, which keeps the internal logic remains powered after regulator is switch off. This is generally the case when card is switched to SD104 mode, where a power cycle should be performed. In case if the card internal logic remains powered, it causes a subsequent failure of mode transition, effectively leading to failed enumeration. Introduce a delay of 20 msec in order to provide a possibility for internal card circuitry to drain voltages and perform a power cycle correctly. Similar fix is done in commit c49d0ac38a76 ("ARM: dts: rmobile: Increase off-on delay on the SD Vcc regulator") targeted Renesas SOCs. Signed-off-by: Andrey Zhizhikin Cc: Stefano Babic --- arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi | 4 ++++ arch/arm/dts/imx8mm-evk-u-boot.dtsi | 4 ++++ arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 4 ++++ arch/arm/dts/imx8mp-evk-u-boot.dtsi | 4 ++++ arch/arm/dts/imx8mq-evk.dts | 1 + arch/arm/dts/imx8mq-phanbell.dts | 1 + 6 files changed, 18 insertions(+) diff --git a/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi b/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi index fc1aebb2fe..6d80a529ae 100644 --- a/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi @@ -37,6 +37,10 @@ /delete-property/ assigned-clock-rates; }; +®_usdhc2_vmmc { + u-boot,off-on-delay-us = <20000>; +}; + &fec1 { phy-reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; }; diff --git a/arch/arm/dts/imx8mm-evk-u-boot.dtsi b/arch/arm/dts/imx8mm-evk-u-boot.dtsi index b5c12105a9..9f77d3c6ff 100644 --- a/arch/arm/dts/imx8mm-evk-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-evk-u-boot.dtsi @@ -46,6 +46,10 @@ u-boot,dm-spl; }; +®_usdhc2_vmmc { + u-boot,off-on-delay-us = <20000>; +}; + &pinctrl_reg_usdhc2_vmmc { u-boot,dm-spl; }; diff --git a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi index 4419679d4c..98b0b9891b 100644 --- a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi +++ b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi @@ -47,6 +47,10 @@ u-boot,dm-spl; }; +®_usdhc2_vmmc { + u-boot,off-on-delay-us = <20000>; +}; + &pinctrl_uart2 { u-boot,dm-spl; }; diff --git a/arch/arm/dts/imx8mp-evk-u-boot.dtsi b/arch/arm/dts/imx8mp-evk-u-boot.dtsi index 24a93ac2d6..2452e9175c 100644 --- a/arch/arm/dts/imx8mp-evk-u-boot.dtsi +++ b/arch/arm/dts/imx8mp-evk-u-boot.dtsi @@ -48,6 +48,10 @@ u-boot,dm-spl; }; +®_usdhc2_vmmc { + u-boot,off-on-delay-us = <20000>; +}; + ®_usdhc2_vmmc { u-boot,dm-spl; }; diff --git a/arch/arm/dts/imx8mq-evk.dts b/arch/arm/dts/imx8mq-evk.dts index 55294ba9c8..9663683f69 100644 --- a/arch/arm/dts/imx8mq-evk.dts +++ b/arch/arm/dts/imx8mq-evk.dts @@ -39,6 +39,7 @@ regulator-max-microvolt = <3300000>; gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; enable-active-high; + u-boot,off-on-delay-us = <20000>; }; buck2_reg: regulator-buck2 { diff --git a/arch/arm/dts/imx8mq-phanbell.dts b/arch/arm/dts/imx8mq-phanbell.dts index 4892ad5ee1..bc6b2638ee 100644 --- a/arch/arm/dts/imx8mq-phanbell.dts +++ b/arch/arm/dts/imx8mq-phanbell.dts @@ -34,6 +34,7 @@ regulator-max-microvolt = <3300000>; gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; enable-active-high; + u-boot,off-on-delay-us = <20000>; }; };