From patchwork Mon Mar 31 15:18:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 27460 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DE2B9202E0 for ; Mon, 31 Mar 2014 15:18:37 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id hw13sf17530472qab.1 for ; Mon, 31 Mar 2014 08:18:37 -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=+EHqOEnLmKU9qgSI0j3mnNycJPG8ip7OL061jOJEaVQ=; b=Zi5A4yCgu9/H2ofTuFmnMSnMC3wk+2kg4DQhwT01Z12REkkFff1WWMPvXkL0hA14Mn Y8HlpPFV2CcCoDJjE+M7LNxbBtxbpJZw2S7Dq2UZQ4T/Un20aUvMerFZIV3JD1vFwCzk GNLOPWVWevJ1IxdjCvVHmmWaZuZmUQ0bwrxt9G+xS6ySe1f89TXeFXsNpPz39ei4WX6W OTjH8Vq7ud9KTvB4s0x0I2xs3/xAlGUhbdipHVR/W5OWtTi5jSJDQFqq9/HuCXskp4gc vRyOUJAd+AxD6Vb8/IrrPGeVwN26zbvW3zndNBYNYSjleoEzqEHsD3O8NGmfjnjQNhWv I01g== X-Gm-Message-State: ALoCoQmzH6RpGfbHQGNkbtCaCPxJ9kD2ETtLEQ7QdliYj7q54XyOMa1uCDpfPG8d5a5jkpy/j8vs X-Received: by 10.236.188.134 with SMTP id a6mr6426078yhn.11.1396279117578; Mon, 31 Mar 2014 08:18:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.134 with SMTP id b6ls2539023qgb.91.gmail; Mon, 31 Mar 2014 08:18:37 -0700 (PDT) X-Received: by 10.58.96.36 with SMTP id dp4mr2182501veb.21.1396279117520; Mon, 31 Mar 2014 08:18:37 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id dl6si3026295veb.73.2014.03.31.08.18.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 08:18:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so8427316veb.32 for ; Mon, 31 Mar 2014 08:18:37 -0700 (PDT) X-Received: by 10.52.175.166 with SMTP id cb6mr19658466vdc.1.1396279117426; Mon, 31 Mar 2014 08:18:37 -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.12.8 with SMTP id v8csp150770vcv; Mon, 31 Mar 2014 08:18:37 -0700 (PDT) X-Received: by 10.180.149.143 with SMTP id ua15mr12866081wib.36.1396279116643; Mon, 31 Mar 2014 08:18:36 -0700 (PDT) Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by mx.google.com with ESMTPS id l10si3433473wjf.228.2014.03.31.08.18.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 08:18:36 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.46 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=74.125.82.46; Received: by mail-wg0-f46.google.com with SMTP id b13so5974689wgh.17 for ; Mon, 31 Mar 2014 08:18:36 -0700 (PDT) X-Received: by 10.194.89.40 with SMTP id bl8mr4275062wjb.90.1396279116095; Mon, 31 Mar 2014 08:18:36 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id wl6sm13547488wjb.3.2014.03.31.08.18.34 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 08:18:35 -0700 (PDT) From: Ulf Hansson To: linux-arm-kernel@lists.infradead.org, Russell King , Linus Walleij Cc: devicetree@vger.kernel.org, Rob Herring , Ulf Hansson Subject: [PATCH V2 05/19] mmc: mmci: Add DT bindings for feedback clock pin Date: Mon, 31 Mar 2014 17:18:06 +0200 Message-Id: <1396279100-2920-6-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396279100-2920-1-git-send-email-ulf.hansson@linaro.org> References: <1396279100-2920-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.128.173 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: , The ST Micro variant supports the option of using a feedback clock signal in favor of the clockout pin when latching incoming signals on the data bus. Since this is matter of how pins are being routed we need to provide a new DT binding to be able to configure this through DT. Signed-off-by: Ulf Hansson Reviewed-by: Linus Walleij --- Documentation/devicetree/bindings/mmc/mmci.txt | 2 ++ drivers/mmc/host/mmci.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmci.txt b/Documentation/devicetree/bindings/mmc/mmci.txt index 9bd2ffa..2c8756f 100644 --- a/Documentation/devicetree/bindings/mmc/mmci.txt +++ b/Documentation/devicetree/bindings/mmc/mmci.txt @@ -24,6 +24,7 @@ Optional properties: - st,sig-dir-dat31 : bus signal direction pin used for DAT[3] and DAT[1]. - st,sig-dir-dat74 : bus signal direction pin used for DAT[4] to DAT[7]. - st,sig-dir-cmd : cmd signal direction pin used for CMD. +- st,sig-pin-fbclk : feedback clock signal pin used. Example: @@ -47,6 +48,7 @@ sdi0_per1@80126000 { st,sig-dir-dat0; st,sig-dir-dat2; st,sig-dir-cmd; + st,sig-pin-fbclk; vmmc-supply = <&ab8500_ldo_aux3_reg>; vqmmc-supply = <&vmmci>; diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index c99ec88..3663bc15 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -1402,6 +1402,8 @@ static void mmci_dt_populate_generic_pdata(struct device_node *np, pdata->sigdir |= MCI_ST_DATA74DIREN; if (of_get_property(np, "st,sig-dir-cmd", NULL)) pdata->sigdir |= MCI_ST_CMDDIREN; + if (of_get_property(np, "st,sig-pin-fbclk", NULL)) + pdata->sigdir |= MCI_ST_FBCLKEN; pdata->gpio_wp = of_get_named_gpio(np, "wp-gpios", 0); pdata->gpio_cd = of_get_named_gpio(np, "cd-gpios", 0);