From patchwork Fri Mar 21 12:14:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 26808 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 63F71203AB for ; Fri, 21 Mar 2014 12:14:48 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf8863318oag.0 for ; Fri, 21 Mar 2014 05:14:47 -0700 (PDT) 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=e224H7qxthJrd1V7ooZwLwJE2tqndK0Rn5H72dVH4oc=; b=atCmnlBMQgdoZ5SvN818S1MgS2WnNyVWYdKCcF++jPTSmh7GgrPJdZogg2Sh4ysCTu OsFf6YrKQxrZhBSaOQ/PRzJUjhuwMFakipStl6Cc8+t58mQ9wQQOorltnFHljPbU+0fM Rdc3NcGkhwPWt3uCOjjdTfx31B57vQOOD2n1ZXAZ9CSeRo5deLbEUBjwaBQse54xtRkx Orrhqg4+adGfSNxEviq1DLNo0or4XjtSmZaB9xpWfQFEnEBLOXD4myOi0Mv9xDmt3Qu1 wzbdcyxuRKO2wYDiwzgshCVjXosARhklAA6zPSYq7umRngvRJur+NNCIP7mNcDrzbPHC lkRA== X-Gm-Message-State: ALoCoQnMmagiJrpUHBey6ijXpBcnVdx5z2MAHFbvyW9q5g25JICQxt9klg527lQUjei/K+awpLZx X-Received: by 10.42.240.19 with SMTP id ky19mr17404097icb.4.1395404087896; Fri, 21 Mar 2014 05:14:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.90.80 with SMTP id w74ls652797qgd.95.gmail; Fri, 21 Mar 2014 05:14:47 -0700 (PDT) X-Received: by 10.52.65.165 with SMTP id y5mr3315874vds.51.1395404087782; Fri, 21 Mar 2014 05:14:47 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id p4si1086188vem.138.2014.03.21.05.14.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 05:14:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id ks9so2508497vcb.27 for ; Fri, 21 Mar 2014 05:14:47 -0700 (PDT) X-Received: by 10.58.221.102 with SMTP id qd6mr599944vec.47.1395404087706; Fri, 21 Mar 2014 05:14:47 -0700 (PDT) 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.220.78.9 with SMTP id i9csp25958vck; Fri, 21 Mar 2014 05:14:47 -0700 (PDT) X-Received: by 10.112.13.101 with SMTP id g5mr1675649lbc.39.1395404086375; Fri, 21 Mar 2014 05:14:46 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx.google.com with ESMTPS id w9si3906302laj.62.2014.03.21.05.14.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 05:14:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.217.174 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id u14so1566383lbd.5 for ; Fri, 21 Mar 2014 05:14:45 -0700 (PDT) X-Received: by 10.152.243.35 with SMTP id wv3mr879837lac.47.1395404085790; Fri, 21 Mar 2014 05:14:45 -0700 (PDT) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id tq9sm3255263lbb.10.2014.03.21.05.14.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 05:14:45 -0700 (PDT) From: Ulf Hansson To: linux-arm-kernel@lists.infradead.org, Russell King , Linus Walleij Cc: devicetree@vger.kernel.org, Ulf Hansson Subject: [PATCH 03/20] mmc: mmci: Update DT documentation Date: Fri, 21 Mar 2014 13:14:00 +0100 Message-Id: <1395404057-27835-4-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1395404057-27835-1-git-send-email-ulf.hansson@linaro.org> References: <1395404057-27835-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=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , Document how to configure the regulator supplies and add an example of a typical mmci DT node. Signed-off-by: Ulf Hansson --- Documentation/devicetree/bindings/mmc/mmci.txt | 35 ++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/mmci.txt b/Documentation/devicetree/bindings/mmc/mmci.txt index 2b584ca..d167562 100644 --- a/Documentation/devicetree/bindings/mmc/mmci.txt +++ b/Documentation/devicetree/bindings/mmc/mmci.txt @@ -9,7 +9,38 @@ by mmc.txt and the properties used by the mmci driver. Required properties: - compatible : contains "arm,pl18x", "arm,primecell". - arm,primecell-periphid : contains the PrimeCell Peripheral ID. +- vmmc-supply : phandle to the regulator device tree node. Optional properties: -- mmc-cap-mmc-highspeed : indicates whether MMC is high speed capable -- mmc-cap-sd-highspeed : indicates whether SD is high speed capable +- mmc-cap-mmc-highspeed : indicates whether MMC is high speed capable. +- mmc-cap-sd-highspeed : indicates whether SD is high speed capable. +- vqmmc-supply : phandle to the regulator device tree node. + +Example: + +sdi0_per1@80126000 { + compatible = "arm,pl18x", "arm,primecell"; + arm,primecell-periphid = <0x10480180>; + reg = <0x80126000 0x1000>; + interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>; + + dmas = <&dma 29 0 0x2>, /* Logical - DevToMem */ + <&dma 29 0 0x0>; /* Logical - MemToDev */ + dma-names = "rx", "tx"; + + clocks = <&prcc_kclk 1 5>, <&prcc_pclk 1 5>; + clock-names = "sdi", "apb_pclk"; + + max-frequency = <100000000>; + bus-width = <4>; + mmc-cap-sd-highspeed; + mmc-cap-mmc-highspeed; + cd-gpios = <&gpio2 31 0x4>; // 95 + + vmmc-supply = <&ab8500_ldo_aux3_reg>; + vqmmc-supply = <&vmmci>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdi0_default_mode>; + pinctrl-1 = <&sdi0_sleep_mode>; +};