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: 332619 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 27F182C009F for ; Fri, 21 Mar 2014 23:14:48 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933904AbaCUMOr (ORCPT ); Fri, 21 Mar 2014 08:14:47 -0400 Received: from mail-la0-f52.google.com ([209.85.215.52]:42079 "EHLO mail-la0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932996AbaCUMOr (ORCPT ); Fri, 21 Mar 2014 08:14:47 -0400 Received: by mail-la0-f52.google.com with SMTP id ec20so1606440lab.11 for ; Fri, 21 Mar 2014 05:14:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=e224H7qxthJrd1V7ooZwLwJE2tqndK0Rn5H72dVH4oc=; b=GHv5Y3s1Dmx5cp5KYz0MmHVFIHV6dtUPoiCjoOz7xfXXhjG+4XhjK26eJRM9dWAO4L ygHl9vF2sza21ujChhquHjIbUrquy0AUD4r3htoAeNmrM2/7f6xafzOGgY9/anU21Fn3 5SMH/VIiZs48V2FYCgzwWNKtPqYVxe+j7le2OY6ZWwyYgyycQPkuYfmcWzCAIEKpRFc4 OpeKwYuusJa6UCN9lZvMAWdDxbS1/odbbbJ5IHTKzyFXWmTxHHEF77cmYqzyb+QWx3NY lHYu9Ww/pBjxCZ2g1KAufy6sbFICHnp9hcxUeK/7nlPSXSuEapV5OH8yMXgGamB50OAI VUDg== X-Gm-Message-State: ALoCoQl6lgNInd5AofYLBQGfJFF8GZki4vzaRCyvMSBzaAOVrj7qOip7z6cmqvk4nzwnEjeKr4qv 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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>; +};