From patchwork Wed Jan 14 13:02:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 43105 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 63560240B9 for ; Wed, 14 Jan 2015 13:02:29 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id p9sf4824298lbv.1 for ; Wed, 14 Jan 2015 05:02:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=w/IIVtEo3352oXUeogbAHkHh5c2DQv76dK3qc7BFtg8=; b=nOL88biKvN72zDiAJWqr90pHHDoJqgikW6w4qLnQ1rR9iDscq1n06vkXhvtUVFKkb+ LaJQZXWV9dci51/O19Plg8KSOQhC9nS4ga0MdIMIVSVhExX2YDw+hn7ImXog8wWrV5Wh vfF9AHUBeMn4NOITA74E8kSZbF+RdyA6x7VN58YK6ghOJHmy9e0UVIecR8s/rH/UD/sI /0gaOrpBmvkLikVtYbAPcesWFEaIjTeIugCzfpaiRJAxyLCidzjsXcMKIyvQGR2Gl4ft u+O3s3rS9GMqZvzd1r80aqLGJiAHpi2wtm4uooXCzyYaI6YTOyl9s6QGPA3ChvpaTPvl jQpA== X-Gm-Message-State: ALoCoQn/6hqVMQlhTQkJgOhs6i3BLNsGGd0Dsbk4vk/fgmm4BgbTL6ACApha6Fq+gN0fJ16dNk6E X-Received: by 10.180.208.46 with SMTP id mb14mr628773wic.4.1421240548005; Wed, 14 Jan 2015 05:02:28 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.225 with SMTP id i1ls115170lae.19.gmail; Wed, 14 Jan 2015 05:02:27 -0800 (PST) X-Received: by 10.152.8.225 with SMTP id u1mr3806157laa.21.1421240547515; Wed, 14 Jan 2015 05:02:27 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id k1si5798766lah.94.2015.01.14.05.02.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Jan 2015 05:02:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id gd6so7997278lab.3 for ; Wed, 14 Jan 2015 05:02:27 -0800 (PST) X-Received: by 10.152.23.38 with SMTP id j6mr3770966laf.81.1421240547354; Wed, 14 Jan 2015 05:02:27 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1688778lbb; Wed, 14 Jan 2015 05:02:26 -0800 (PST) X-Received: by 10.180.211.195 with SMTP id ne3mr41918154wic.52.1421240542286; Wed, 14 Jan 2015 05:02:22 -0800 (PST) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com. [209.85.212.176]) by mx.google.com with ESMTPS id l6si3329278wic.97.2015.01.14.05.02.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Jan 2015 05:02:22 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.176 as permitted sender) client-ip=209.85.212.176; Received: by mail-wi0-f176.google.com with SMTP id z2so2271536wiv.3 for ; Wed, 14 Jan 2015 05:02:22 -0800 (PST) X-Received: by 10.180.24.138 with SMTP id u10mr8345287wif.80.1421240542011; Wed, 14 Jan 2015 05:02:22 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id u1sm18594734wif.6.2015.01.14.05.02.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jan 2015 05:02:21 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Linus Walleij , Mark Brown , Arnd Bergmann , Alexandre Courbot , Arend van Spriel , Sascha Hauer , Olof Johansson , Russell King , Hans de Goede , Doug Anderson , NeilBrown , Tomeu Vizoso , Ulf Hansson Subject: [PATCH V2 2/4] mmc: pwrseq: Document DT bindings for the simple MMC power sequence Date: Wed, 14 Jan 2015 14:02:08 +0100 Message-Id: <1421240530-7971-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1421240530-7971-1-git-send-email-ulf.hansson@linaro.org> References: <1421240530-7971-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The simple MMC power sequence provider, intends to supports a set of common properties between SOC designs. It thus enables us to re-use the same provider for several SOCs. In this initial step, let's add the top level description of the MMC power sequence and describe the compatible string for the simple MMC power sequence provider. Following patches will step by step add support for new properties to the simple MMC power sequence provider. Signed-off-by: Ulf Hansson --- Changes in v2: - None. --- .../devicetree/bindings/mmc/mmc,pwrseq-simple.txt | 18 ++++++++++++++++++ Documentation/devicetree/bindings/mmc/mmc.txt | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/mmc,pwrseq-simple.txt diff --git a/Documentation/devicetree/bindings/mmc/mmc,pwrseq-simple.txt b/Documentation/devicetree/bindings/mmc/mmc,pwrseq-simple.txt new file mode 100644 index 0000000..e1b7f9c --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/mmc,pwrseq-simple.txt @@ -0,0 +1,18 @@ +* The simple MMC power sequence provider + +System on chip designs may specify a specific MMC power sequence. To +successfully detect an (e)MMC/SD/SDIO card, that power sequence must be +maintained while initializing the card. + +The simple MMC power sequence provider, intends to supports a set of common +properties between SOC designs. It thus enables us to re-use the same provider +for several SOC designs. + +Required properties: +- compatible : contains "mmc,pwrseq-simple". + +Example: + + sdhci0_pwrseq { + compatible = "mmc,pwrseq-simple"; + } diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index bac1311..b12de1e 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -64,6 +64,10 @@ Optional SDIO properties: - keep-power-in-suspend: Preserves card power during a suspend/resume cycle - enable-sdio-wakeup: Enables wake up of host system on SDIO IRQ assertion +Optional MMC power sequence: +- mmc-pwrseq: phandle to the MMC power sequence node. See "mmc,pwrseq-*" + for documentation of MMC power sequence bindings. + Use of Function subnodes ------------------------ @@ -101,6 +105,7 @@ sdhci@ab000000 { max-frequency = <50000000>; keep-power-in-suspend; enable-sdio-wakeup; + mmc-pwrseq = <&sdhci0_pwrseq> } Example with sdio function subnode: