From patchwork Wed Dec 2 17:59:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ZHIZHIKIN Andrey X-Patchwork-Id: 1409875 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=k8yw7Dsn; 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 4CmRbs4n77z9sT5 for ; Thu, 3 Dec 2020 05:01:13 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E37D48269D; Wed, 2 Dec 2020 19:01:00 +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="k8yw7Dsn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D6E93826FF; Wed, 2 Dec 2020 19:00:58 +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 EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2071b.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::71b]) (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 4D87C82655 for ; Wed, 2 Dec 2020 19:00:55 +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=YuKAA60sPWiUoaRzuPVmJR38Q4chX4uMDym/Lvt8pbbTNRJxzrjZgou7sgc+/SAsY3ce6A9+zfB64oW0D2Ix6kcUk/pleczn7LGMe4ZspRT4uADdP1eBiatTM1OZGDrHCME1d6Tvq7h8ll27dTG2RgD5ts7H+D4ifvm9Qabwsn8iQM4jhnYzmWP90IhIidt+9Pd+cLVK6E/71+gA1T6UDmVXbU847oSp9zMMK6RCTfhTYrBBgkQ+F5rPxp/GzvuGpTHYixb/bfMyvUpLt5FIGTJFc7xd6dJ2dPDXWDMD8ml6+KY7fi5kYUKCQigJ1bCHHsT2n3z05Z9rD3+N/WIM+w== 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=cb+JN/En2gzsUuU9J+tgMuY7dnwV+zvOfahdnXU0d7Y=; b=XHyYdQjSkP8sRpselywDtTWttdog3FD+M4B8ZssadtOWZngIR8kenMhx4Bj2Y33SDDrrXS5DzHQp6npBgTVXstQwO5tNzpsv8lKzrxfVhX8XS/dO9NKcQGpn7/7oVKAA84Rzx4Kke7H+ZbAnIpgKU360Yen495DM7lRMAJM/lWIe4h+UqFO8qAV0USxfyz5AaMYL7JzX6JlVnPm6IRKBVEDO1HQQvG0kQCT+QshVupSvUGc9GB68atcvRm0PAFtEtEVUMzTQU4XeeE9aKz//D2MYlhPwz0i5qUwYCOi9Yc76blBF88/dBtEtedtGysFfZx6yorAaRxjWtO2PDETraA== 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=cb+JN/En2gzsUuU9J+tgMuY7dnwV+zvOfahdnXU0d7Y=; b=k8yw7DsnLftUafg38Hn/YMhcM49FIas09cnOI6B9EMLVsK+E4DnEh7eyZCkC2q44cwSVYxiL8C8FmLy4mtwfTkrzampG6ymVoUTTf8EM1q1PwilWstnHmU3KBVSEsFxTEgtwFkad1Ixp+zga42TgneWfnSu6D74/ODEH5878aog= 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 DB6PR0602MB2887.eurprd06.prod.outlook.com (2603:10a6:4:9a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.25; Wed, 2 Dec 2020 18:00:54 +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; Wed, 2 Dec 2020 18:00:54 +0000 From: Andrey Zhizhikin To: u-boot@lists.denx.de Cc: Stefano Babic Subject: [PATCH v2 1/2] ARM: dts: imx8m: increase off-on delay on the SD Vcc regulator Date: Wed, 2 Dec 2020 17:59:10 +0000 Message-Id: <20201202175910.11493-1-andrey.zhizhikin@leica-geosystems.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201201085821.23050-2-andrey.zhizhikin@leica-geosystems.com> References: <20201201085821.23050-2-andrey.zhizhikin@leica-geosystems.com> X-Originating-IP: [193.8.40.112] X-ClientProxiedBy: GV0P278CA0058.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:2a::9) 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 GV0P278CA0058.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:2a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Wed, 2 Dec 2020 18:00:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7f56713a-0062-4101-3983-08d896ec3638 X-MS-TrafficTypeDiagnostic: DB6PR0602MB2887: 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: p5v96EfUkcviB+de/qbGeD22OmA/oQ1JZHiZ1nWoyohhZcupofzIgo8V79bGSZvJ6gLiZz2gJ9i82rennsN7WTRfCQhZxcPVKKe6oLRz/uWIW6K0GibBSf2FsdyWZUlh4n2U/octmPfgfiM2EHj6rsdtyvILDQuiGAehF5L17aFEQQ2whih4vk6aWkoXNt9n7GeCdtzzOqJt0+K04gEOMta28PVMMWMEPQf2IjpEayA1/wk1EBx3XDypNkSFSVmPjkaFn67t2ZsL/VZXXQmZG1bjA6eqZNiIoylj3SSahiLSF8RefZP76mx3tS4IfcVzFG7naG26U2YPjnDpA1Q6QWu+AzclM9mRB4AW/HnJVGKOzsSbnzW3sM/s1FMbECkU 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)(346002)(136003)(376002)(366004)(39860400002)(396003)(2906002)(956004)(2616005)(6512007)(6666004)(8936002)(5660300002)(478600001)(8676002)(6486002)(83380400001)(44832011)(316002)(86362001)(66556008)(66476007)(4326008)(6916009)(52116002)(36756003)(186003)(16526019)(6506007)(1076003)(26005)(66946007)(32563001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 7wkWX41GqrI+XN2QegB1d1gEb4BpIqsuNyI+BC9qd26NYRPezsLjxzP41g6vPcTEdq2Derr0gmTtzdM7CYG70u+ZVVvn3aGgxoP3XirRajIswpqvC1qVgcouUGcW0+Nqz66RWavpGTxHT/k758SHCTkHlZ2noPT3TImNL2mVGWMuS42gfdCLhs/f1HG034JQSC+/fvErSdhh53BiKRoJT7+8SKrj5t78uikAn1NhhZUUCix5indfKLtYJyraNAbdw2dp1rVSxJvCntXz4ZM62GJ461ANqykyhf7s3c7mR1ScfU7ELQibKXfKh2LUhXiLlhICDeepFDqUJreqXdwY93vPtCQf9OBYPvF9V7TcBCl9Q6yx+h9C0vDKlYh1HpfP0ZDsgqt5Hxja9bqJw6UBqWIcqzeT4DrGNSPR93WVOvWjaapD3xpX7iBr3USeG3Qnx2zX6CRnnY7NCozFiEDe0xeKXHOWQpm2WYCKlm5uPcIBaXzBCn7bB7V2U+hWudQnWf32IDmLYWbm0CMcZuG4fZMVtTxVf7Hkhq0U5msVyL63qho9PMpRohNKhgB06C1P/bqMYNQQp3+VFsnueo8RMz5vn4DPY85U/H8AFFcZUkQLjePXQ83aI4UYQgk6Lml69lGJpBco43iUUv+nXE8zGLEaNJswTQO2aLHOxuEaT5ao6fSh1HOPhO76TSi1GteCge01scXL5J8mN8Ql+V/Xyz+ZiiNrFxM9ZtJmTJe0DRG+m+7wxAc4oEq2Ce9YeK46ROyf1q3m41/Val/qX0SI1UCw6nyHArnZ2YAcQRR7n17JlMprIbr/HlB3Pfc3x5QRiPqWXfV9EyUg4mU5P+lrTroFndbel//c3pEl9fxien9t4rkD2SSOU5nrtBghc1ZlgYbO0/SlYhlQHTqUCM8hABZaU5UDHUNESSB3UCU9Y6FgBcpZusz+lDwFdb2ECQSCsUIYe0T9dTKBWQA8RPIBLcOqDdEtIJwdDAFQ4MfYtkbe8JOvdqIgtX9DpeZH17in X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f56713a-0062-4101-3983-08d896ec3638 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0602MB2886.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2020 18:00:54.1666 (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: IVlLT4U5tUodPafL63gpdRByZsQKvFlXdxN5PREMtRb76zps7lQJRixggemJdr+5zp0eGjsfbZqpVO4K2ZxMbwTg0mrUnMQKbQJEJO6Vo2c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0602MB2887 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 --- Changes in v2: - Moved u-boot binding for imx8mq-evk and imx8mq-phanbell to separate autoincluded dtsi files 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-u-boot.dtsi | 5 +++++ arch/arm/dts/imx8mq-phanbell-u-boot.dtsi | 5 +++++ 6 files changed, 26 insertions(+) create mode 100644 arch/arm/dts/imx8mq-evk-u-boot.dtsi create mode 100644 arch/arm/dts/imx8mq-phanbell-u-boot.dtsi 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-u-boot.dtsi b/arch/arm/dts/imx8mq-evk-u-boot.dtsi new file mode 100644 index 0000000000..4712cf6a44 --- /dev/null +++ b/arch/arm/dts/imx8mq-evk-u-boot.dtsi @@ -0,0 +1,5 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) + +®_usdhc2_vmmc { + u-boot,off-on-delay-us = <20000>; +}; diff --git a/arch/arm/dts/imx8mq-phanbell-u-boot.dtsi b/arch/arm/dts/imx8mq-phanbell-u-boot.dtsi new file mode 100644 index 0000000000..4712cf6a44 --- /dev/null +++ b/arch/arm/dts/imx8mq-phanbell-u-boot.dtsi @@ -0,0 +1,5 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) + +®_usdhc2_vmmc { + u-boot,off-on-delay-us = <20000>; +};