From patchwork Thu Aug 31 13:52:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9932223 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 DDDF0603B4 for ; Thu, 31 Aug 2017 13:53:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFBE02897E for ; Thu, 31 Aug 2017 13:53:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2A102898C; Thu, 31 Aug 2017 13:53:39 +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 1D68428981 for ; Thu, 31 Aug 2017 13:53:38 +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=ChvFxfnbkQs7HkbmHhzw15maJXEZ1eSco9gdozm9WlI=; b=lcNMC1lJXvMhZL52MNI9wEdvTm syip5o3li7axqljghEyYYIpu+1LdXdOFa4c3L9I5UqLBpcjvn2Xr49Oj3gNs+Mjh0j/9nWD4Yz9mU yUdkOFrpLuG0+A6P8DME3bAXyDG+ybrHj77TtP4Tzr+v/7mbBUHgerlxVY9a6xpOHc/qzj+C04/+r wNcGMAA7NL4GVMhUYC1bMgomGEx4sVWzdD5Xna+0B1CeVKOU9Uzp5FAKJ6aUVfCLeRX7PFk42PVOU B7i4HC41PyrcBRZL04zaBbRIcGK2BWJRfn5s/sxS4w+1spPqyet1w3Sgt6TcEIGTrlHkCbX6cYXy6 gd70OElw==; 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 1dnPuN-0003tM-Eg; Thu, 31 Aug 2017 13:53:23 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dnPtw-0003XG-ND for linux-amlogic@lists.infradead.org; Thu, 31 Aug 2017 13:53:01 +0000 Received: by mail-wm0-x230.google.com with SMTP id f127so5336729wmf.1 for ; Thu, 31 Aug 2017 06:52:36 -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=rdGAJfcjCJVGAPQI8ZTJ2pewA9ZCtj/gVjjd0e5tApY=; b=Rydh+8iHROX628LEEJ/qEgsyxkmew0udSEu+I4AAqcJh4eUiWwSngVR6T2KZMiQMpU m5S9JeU0lFYAn3hhw3PW8A+tF0qBtIqRNOCWRshLkvguPI5827HGJW/96jRAv2SRclgL Ebx8pSVf1L1JcKrn6LCg1K5gmX1p2Po+lgViNZBd+ph6X6kNVUxNPymjBUUURW4zUXcT PndyMx+vCnBPw2ULhhhSLv+fs4+UHYNSw9S5nx2kzAvv8of6tcl1EbRpJuTjrLj3QSu8 hvShHFiiBYmFkcyDP6CxTw9QNEu7NiyPFU7TBipcYtM5GXQiUiSCwye58JyWrUHYGlmJ 6GIA== 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=rdGAJfcjCJVGAPQI8ZTJ2pewA9ZCtj/gVjjd0e5tApY=; b=AdmPIw4WPVV238bRPrI1lfpjjyX7Ff604AvEH9Kv9/M6c5GcDZeR6tZec5cwe6RpRg raKUb2UU73+MuQj4m/zfVf71Y9EGDEeDaz60COZ67bn7URJ/oFfTszBy+2EtzmrYyhXU QN9ajCLKoyNkgBzB9HegCYYvwP+FmZWpAFm6Z1kqrYl1WMm2/g0JueIx0FVLoM1d3G1Q EYjisZy3Qx8BWuLfkRHHvPwSYUHDwDAZ80E/zLNLtiCKgHMR4jqbQXRV8woXgWigf1SS qq0KcTBi9zowJkUpuKeyybx/bAZMT/ALFH38ja/Z16ngjOASdU6kiDXmzl3QkIZwWsEX CZ4Q== X-Gm-Message-State: AHPjjUi8od7eorjTYJv/jziBMSJlgU+yjC7WWvNEw8i4PoqQaF09R9gu PMILg+7fQKNzYb2B X-Google-Smtp-Source: ADKCNb70zSOYSu5BsTlMEpL6iW26/AB5Y/z/cdJ0I/GTUBJ/mUNG7HfBxNVclu5GXrAjdfAtJZ1GBg== X-Received: by 10.28.218.132 with SMTP id r126mr582050wmg.14.1504187555002; Thu, 31 Aug 2017 06:52:35 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id z1sm147959wmz.45.2017.08.31.06.52.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Aug 2017 06:52:34 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH v3 4/9] ARM64: dts: meson-gxbb: nanopi-k2: add card regulator settle times Date: Thu, 31 Aug 2017 15:52:21 +0200 Message-Id: <20170831135226.19784-5-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170831135226.19784-1-jbrunet@baylibre.com> References: <20170831135226.19784-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170831_065257_076020_F1E419E0 X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Changing the card voltage on the nanopi-k2 is not instantaneous, especially when switching from 3.3v to 1.8v. It take at least 3ms 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: 9bc7ffb08daf ("arm64: dts: amlogic: Add NanoPi K2") Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts index 60d5f2da6916..acb6797756e5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts @@ -107,6 +107,9 @@ states = <3300000 0>, <1800000 1>; + + regulator-settling-time-up-us = <100>; + regulator-settling-time-down-us = <5000>; }; wifi_32k: wifi-32k {