From patchwork Mon Aug 21 16:06:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9913271 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D79B7600C8 for ; Mon, 21 Aug 2017 16:17:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C92181FEBA for ; Mon, 21 Aug 2017 16:17:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC58C27CEA; Mon, 21 Aug 2017 16:17:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C2ACE1FEBA for ; Mon, 21 Aug 2017 16:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=m1I9SJKMGpbZyRtkWaax66DXHHBxMSIevqTMKCLDnZk=; b=JM8ae0m4YsoRHzW0XvJaxf2QeA RZ8w6vQ/6YC+r77Aa2gllKJ7GvQDsiMG8vW0GgdTRwciCaXKs6yrqds9UaQC9oQL3WHsbtsGnYQuh Dhh7TWFBtyFfnrNMMfF2D4ZC1ffBLbgmJzKJz4U0xaqP6qj9WRFH6e392sSxF2duXqfUFtw2uMHOE /HOFTtqyUA24miyTF7+ucSp36TJxYJUk+2+ZAG5Tf+qyt5TOow/iKxhKtFeY/c8dA75mW+iAdph23 YcDxLnLan0G5tqNhT+S43hnUGdYUgqa/RxlnF5Vca/p3zgIFYvu0UsS8hvE50FBu6vg4ycmk/G/b3 ngPpuzyQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1djpNt-0005P0-BL; Mon, 21 Aug 2017 16:17:01 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1djpNr-0005HD-7U for linux-arm-kernel@bombadil.infradead.org; Mon, 21 Aug 2017 16:16:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7c7D0zv0g5yaIKJa4SbdcT/Z1NduI/6pFQ7GEpoQZ1s=; b=m697HrWbr+rssLZs2pi0anVU6 fSvHCuz4JIePr3qAun6vR2Icm0CrSUG4p2wbhVlt8QkhDALqd00mtUHJzvMxGYO9zRV4PyPi+iSKd ohdfbGOaNr21v9+5/SkEGLuOgOi6lr+aoSjzRmBtnmxXmVZua6cH6RLUqGiIT54xt920K/ef+dAk4 m0Tx/nn4+AGO4muF9ROQbwYb0U8/3v9O0Q15W+i/EGY8+SNgnKftHlBvMKmKzB0sq/geIV+AnzJc7 6VRR6GtLYzh0bBKxT9DZlApGfUvwedIriPaGM/4UeKFk2NUqdy6rFH3k7FaAljFlFs+lxNFQT0bXD QaMuq31Kg==; Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1djpEJ-0003Zh-Hj for linux-arm-kernel@lists.infradead.org; Mon, 21 Aug 2017 16:07:11 +0000 Received: by mail-wr0-x236.google.com with SMTP id p14so34536029wrg.1 for ; Mon, 21 Aug 2017 09:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7c7D0zv0g5yaIKJa4SbdcT/Z1NduI/6pFQ7GEpoQZ1s=; b=pTTlJsqnbfP1WVekBiS8xoe+abAIOL5hZw7V+fugVVYeVc12svLJSUTld+CAhVutFy 3EGP0h7iZLSujJprkSAy5JVONuMBXnCkRXR7PjarTBna2Wy0CwQhPYXQYVWxN2cWn7GB w8/1sf0JuyOgTmOG1lJLdf+Rhx24QmZZbo689A48ek6V2//M1lFGnB10kgZxBNQ8UJ/S l4/ug2WWRp0arV3CbO5J9+EZ/gFYCx9pgBl25pA92iM5t131WM2LV6m+h0kZ6xcUiWm6 5yx7oBj4T8d1GyKuDHUiw8rpKwR8q52iMhKf/grnuI0YSK3aDlfXVtffcxlXRoj/rSil T01w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7c7D0zv0g5yaIKJa4SbdcT/Z1NduI/6pFQ7GEpoQZ1s=; b=URb/4rnKwlDjjoFD/Zrqyuka3DxDG2tJevWA26h98shQY1DDl/IF3WKDVOPCAhtWwA zLXc+1YyQIzsndmwq91HIfmdI/yrrYt8Aa4K+Z3nMrgaEXame0hS9snFcPDKcwmuLApo xkVIX9HtjQrW8Glkq85OFsGcge8qNGmQCtBZI2RhgEmodmS8Euz92h0mtURHan8RSa6E LZbtoB9zESDsdrt8Fe+refd3fc8Mf8BCwSSIATiA5E9DaU0id9CUIlV5vqzjhN24wluo x6uDvL0HrNHHxvO9pQa4ljldUSbLLXrVAOpMf76J+5n/JFTDQYl3eIsL2TSCFkOb00hd 7fsA== X-Gm-Message-State: AHYfb5hgHSCMfLxzbbOYSClhpl1vM1h4y8aSls3EHMqUsjK6sFK+UROV DOdqOVahTSNxTXHb7Es= X-Received: by 10.223.161.8 with SMTP id o8mr10329872wro.213.1503331606058; Mon, 21 Aug 2017 09:06:46 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id r79sm12346432wmd.42.2017.08.21.09.06.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 09:06:45 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH v2 5/9] ARM64: dts: meson-gxl: libretech-cc: add card regulator settle times Date: Mon, 21 Aug 2017 18:06:33 +0200 Message-Id: <20170821160637.22456-6-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170821160637.22456-1-jbrunet@baylibre.com> References: <20170821160637.22456-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170821_170707_787216_DB7D6573 X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Changing the card voltage on the cc is not instantaneous, especially when switching from 3.3v to 1.8v. It take at least 30ms for the regulator to go from 3.3v to 1.8v. Add margin to that to make sure we don't upset the sdcard during the voltage switch Fixes: 61ff2af9b278 ("ARM64: dts: fixup libretech cc definition") Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts index 2b56f7d9be2b..0537b92cd226 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts @@ -92,6 +92,9 @@ states = <3300000 0>, <1800000 1>; + + regulator-settling-time-up-us = <200>; + regulator-settling-time-down-us = <50000>; }; vddio_boot: regulator-vddio_boot {