From patchwork Fri Jan 2 16:14:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 42699 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9084120545 for ; Fri, 2 Jan 2015 16:14:25 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id ex7sf10702105wid.11 for ; Fri, 02 Jan 2015 08:14:24 -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=t71I67YnNircdCNGmTdiO9iD2o8lxFOlDlcItAgFBgo=; b=j4S9nXeNuPwOkpB0GOR8MZVZb9tiKoF0nfoVbyfs/sP/7Ca+iv0B03PZBDOEMcRZjW VWkI/RAhrjnbdu9zPDFZATtlYlbSmUZ21ZeC6/lvmgugWyr4qOIlQZuIGS9U9tS9qOe/ 1V1AH8TUMHc4tpS+F5ISoKrUIkfiVZ5wF9pW+jyxlb9YdLDY9AhAwQpov9mQ34Fpwczf rH0IcbvBSvLUbGSSXalN70ekivTRNUawhxjQP/Gg6s3LaiMdD0MCKLE7vlfP15fs3Gkt rjEnXTMVt1GDOZo+7YETZaU8X9FlbIf3VQhwEw8uQjO4nftJrCRqqAJgxdbM9RakrNpz mYsQ== X-Gm-Message-State: ALoCoQlxABVSzPweduaOQWiReQkNCch1QlUAzJBxPnXDbpwn7BBo675NMOhUMvwxM/MEJ1zrWOd3 X-Received: by 10.194.71.207 with SMTP id x15mr226431wju.3.1420215264587; Fri, 02 Jan 2015 08:14:24 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.227 with SMTP id ap3ls460189lac.109.gmail; Fri, 02 Jan 2015 08:14:24 -0800 (PST) X-Received: by 10.112.201.169 with SMTP id kb9mr10226739lbc.30.1420215264366; Fri, 02 Jan 2015 08:14:24 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id xr6si51994688lbb.1.2015.01.02.08.14.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Jan 2015 08:14:24 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id gd6so15864672lab.29 for ; Fri, 02 Jan 2015 08:14:24 -0800 (PST) X-Received: by 10.112.84.225 with SMTP id c1mr55235664lbz.22.1420215264289; Fri, 02 Jan 2015 08:14:24 -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 c8csp235527lbb; Fri, 2 Jan 2015 08:14:23 -0800 (PST) X-Received: by 10.112.151.4 with SMTP id um4mr66661400lbb.50.1420215263882; Fri, 02 Jan 2015 08:14:23 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id kl8si51868533lac.120.2015.01.02.08.14.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Jan 2015 08:14:23 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hs14so15472334lab.39 for ; Fri, 02 Jan 2015 08:14:23 -0800 (PST) X-Received: by 10.152.44.167 with SMTP id f7mr67306477lam.92.1420215263755; Fri, 02 Jan 2015 08:14:23 -0800 (PST) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id y5sm12786551lag.7.2015.01.02.08.14.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Jan 2015 08:14:22 -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 , Ulf Hansson Subject: [PATCH 2/4] mmc: pwrseq: Document DT bindings for the simple MMC power sequence Date: Fri, 2 Jan 2015 17:14:06 +0100 Message-Id: <1420215248-20650-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1420215248-20650-1-git-send-email-ulf.hansson@linaro.org> References: <1420215248-20650-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.42 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 --- .../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: