From patchwork Mon May 8 16:21:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 98835 Delivered-To: patches@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1407378qge; Mon, 8 May 2017 09:21:25 -0700 (PDT) X-Received: by 10.223.177.219 with SMTP id r27mr39753239wra.148.1494260485634; Mon, 08 May 2017 09:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494260485; cv=none; d=google.com; s=arc-20160816; b=yl+kS7Uktb3YF9Ym9pknBSBkkO0oQgoZVg3EaAhBrRKvKhUPzNpoMnjfqxfw+A7DhR rAXtic1x3/4tu7yfzapqcLvGZ8+4GM/CjYzUK8S/Xb/ugREmLDzz7usv3gaOoBxLAWgd 50pA5TBw58L8Gj35evyLwBbDXMIQgQFgNa2AYoT6MMErqjtL8e1n2O5cMT3MiathsDq2 iD+5yxob8puJPDFFRpi/YlDWZ9pvM+3vbNNwO7lvhRFOw7aCAq0TFLCbgW4bc1zPUfv8 VRt/CmvygqOZ5r+u4Bkf9uhK+FVXAVr05rHlnjpEeqgkUpp4C6d1Oqs619fOVfxuCLph J5yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=bkYvbkvAgYqMnIvIbZemdQIag0rI0kkQWTBfh8JdM1Q=; b=xjU37eokefBN1BJixgNKJ4X3V9MmIa+mbkeJjSIF7xa4BC36TOK/+qqXHnSyqDzMv6 7EqoNlV2izVgL1icNcQI+2+lwqv3+buLnvLK7hPyjlHx00pJmE2wah+hZdvZk0YWK81i AN/pEqmNPlkloU0Nbr8xx9RHpTRpBleZHvxeNuaClxYQfflw5af6Tddmom8TOvfbQr94 SdRSwO0RgjIIaZ5r8T1GLB8pSRtsNSHNagKrfgUSLQyBxRX/xxhzr/iFvT51YwluRy+l fry4G/cBFnoFVlaxjdQA/VsmngnJhPs7HDGfsLHxDPwrnW+AJqkIL0Q/FYmb3rULnTQy QaQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c0c::22f as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com. [2a00:1450:400c:c0c::22f]) by mx.google.com with ESMTPS id 53si15436733wrw.52.2017.05.08.09.21.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 09:21:25 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c0c::22f as permitted sender) client-ip=2a00:1450:400c:c0c::22f; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:400c:c0c::22f as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-wr0-x22f.google.com with SMTP id l50so48844073wrc.3 for ; Mon, 08 May 2017 09:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bkYvbkvAgYqMnIvIbZemdQIag0rI0kkQWTBfh8JdM1Q=; b=NEkvRIg4fNsBXARN9+ROpcuCW1kBMLBzVAESlgW+DNY0zkPvT8z8BEQp0PXTUjNOvt +4b5UeJo3SV1Ax7mbq5ZbhVP0G7/AdwsXG9Py7augN24kKMkqlsDYJmPUUj9C+8nCq10 0/cyXz5A7l28bEGViVoQtRL5qoUxNq6Gz5IHI= 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=bkYvbkvAgYqMnIvIbZemdQIag0rI0kkQWTBfh8JdM1Q=; b=WAr1bsriF2B9MEFxKebsaG7RfK6q/O/2Eev6h8scO/BJMuZxtJfcHZcO7f9BzbU8Jj MKQ+6QJGqX0/N6l9BviJ+ya01t2a6bkuUKenT6BlBz3miMz78A1fD6VYSPNJp5AKAChU BfhCf8t4htR24A7ht1zXjqtWiVaV0gcEUA/XqJ6bbTO+1ROBEGoPVbVgqSQcdaEn6FOY D/nltLg7VuDNsF+sqIZ4XQ3Lu9IQ+N8wtAY5TuIDLBnr9TI5f3HgN2KyKUJt0ddibFw2 qBtIHqg/BQv4oJ6nN8jOrzhljifryfO49+h5cFAepMTzGakJEDywSn5jgjtqrDvO9pay 4cbg== X-Gm-Message-State: AODbwcD7ER1R4vloTEo8TuEiMe5YzxZzTAR+xhWUQYmExBWqQIsajqTe IfnsHhQ35jxvW1E/uww= X-Received: by 10.46.82.85 with SMTP id g82mr6616380ljb.68.1494260485257; Mon, 08 May 2017 09:21:25 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-155-4-221-67.na.cust.bahnhof.se. [155.4.221.67]) by smtp.gmail.com with ESMTPSA id 1sm1600724ljn.59.2017.05.08.09.21.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 May 2017 09:21:24 -0700 (PDT) From: Ulf Hansson To: Wei Xu , linux-arm-kernel@lists.infradead.org Cc: Ulf Hansson , Daniel Lezcano , devicetree@vger.kernel.org, Rob Herring , linux-mmc@vger.kernel.org Subject: [PATCH 1/8] mmc: dt: pwrseq-simple: Invent power-off-delay-us Date: Mon, 8 May 2017 18:21:10 +0200 Message-Id: <1494260477-25163-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494260477-25163-1-git-send-email-ulf.hansson@linaro.org> References: <1494260477-25163-1-git-send-email-ulf.hansson@linaro.org> During power off, after the GPIO pin has been asserted, some devices like the Wifi chip from TI, Wl18xx, needs a delay before the host continues with clock gating and turning off regulators as to follow a graceful shutdown sequence. Therefore invent an optional power-off-delay-us DT binding for mmc-pwrseq-simple, to allow us to support this constraint. Cc: devicetree@vger.kernel.org Cc: Rob Herring Cc: linux-mmc@vger.kernel.org Signed-off-by: Ulf Hansson --- Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt b/Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt index e254368..9029b45 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt +++ b/Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt @@ -18,6 +18,8 @@ Optional properties: "ext_clock" (External clock provided to the card). - post-power-on-delay-ms : Delay in ms after powering the card and de-asserting the reset-gpios (if any) +- power-off-delay-us : Delay in us after asserting the reset-gpios (if any) + during power off of the card. Example: