From patchwork Thu Apr 10 12:20:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 28169 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1347420671 for ; Thu, 10 Apr 2014 12:21:22 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wo20sf17312216obc.6 for ; Thu, 10 Apr 2014 05:21:22 -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=xRc+EvUb44ppeSXR8KjSB/66rhHdMYI8KHhBt8AwWLs=; b=GFSWvY9JGHTncW8aYk5v8QWzIGbvT2SNzv8fCW/ltka20zQwoWEgfMZYcpmJ5XtCPH UH6Fg38gJspis28Uk5LHxW9cXr+egkvy2Eo8XTYewwV/voTvXxASXFWGY4Y0cZnTFt2c xC2UgP7d56ib9a21HrT1z+jkAAewFb0X9P8+QoQpmm7QdSP/pWV0K3FhnzSZiuEjz0d+ f4EA25J9kyqe27Y95rW5QRFNRw9mcj2RfjRruIeEl1sZcMmkNa9y/vSHxfat/B93Yu5x E+F4qDcbE3MwKBOmMaHDBsa773r2WEbSqcl7QDR6xhvh7w9itbK0lLHohFce/Dpo6K+X 1Zlg== X-Gm-Message-State: ALoCoQnUQ/et62DVnJH6Fx7Ld3oyzOwboNsIMRt3f5YFqKv1O42XwKFY1KaUrVgmRG+sfvGroMNT X-Received: by 10.182.241.9 with SMTP id we9mr8199235obc.22.1397132482415; Thu, 10 Apr 2014 05:21:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.201 with SMTP id f67ls1062358qgd.91.gmail; Thu, 10 Apr 2014 05:21:22 -0700 (PDT) X-Received: by 10.58.96.36 with SMTP id dp4mr1814558veb.21.1397132482303; Thu, 10 Apr 2014 05:21:22 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id xt10si656682veb.166.2014.04.10.05.21.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 05:21:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 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.177; Received: by mail-ve0-f177.google.com with SMTP id sa20so3253004veb.36 for ; Thu, 10 Apr 2014 05:21:22 -0700 (PDT) X-Received: by 10.52.33.136 with SMTP id r8mr11946753vdi.2.1397132482226; Thu, 10 Apr 2014 05:21:22 -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.221.72 with SMTP id ib8csp54556vcb; Thu, 10 Apr 2014 05:21:21 -0700 (PDT) X-Received: by 10.194.21.193 with SMTP id x1mr14651473wje.33.1397132481425; Thu, 10 Apr 2014 05:21:21 -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 b11si1466919wjr.223.2014.04.10.05.21.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 05:21:21 -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 b13so3895977wgh.5 for ; Thu, 10 Apr 2014 05:21:20 -0700 (PDT) X-Received: by 10.180.182.166 with SMTP id ef6mr14858360wic.29.1397132480938; Thu, 10 Apr 2014 05:21:20 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id ej7sm16437292wib.9.2014.04.10.05.21.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 05:21:19 -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 V3 05/19] mmc: mmci: Add DT bindings for feedback clock pin Date: Thu, 10 Apr 2014 14:20:48 +0200 Message-Id: <1397132462-8005-6-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397132462-8005-1-git-send-email-ulf.hansson@linaro.org> References: <1397132462-8005-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.177 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 2766e5c..173e7de 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);