From patchwork Fri Feb 14 12:27:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 3652361 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BBDB29F382 for ; Fri, 14 Feb 2014 12:27:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E53F420220 for ; Fri, 14 Feb 2014 12:27:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16C4C20122 for ; Fri, 14 Feb 2014 12:27:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752502AbaBNM10 (ORCPT ); Fri, 14 Feb 2014 07:27:26 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:40117 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751664AbaBNM1Q (ORCPT ); Fri, 14 Feb 2014 07:27:16 -0500 Received: by mail-lb0-f181.google.com with SMTP id z11so8165057lbi.40 for ; Fri, 14 Feb 2014 04:27:15 -0800 (PST) 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=9Z/l7nud5n7BnxPxRty+uUb3S/UZ14tr9EkWq9cKjZ8=; b=IC8l1mU0ebK9hUlgHH6FAEDAwj1b38S5/U42JBwTj+UgqF2aj514pwLwLX40TSh+HW hDKvMHLxQVSgQ+ZU1ZNGwbsRmofCdKm6LJKMBJESWV5pJ0O/eeWuXR0nLEGjK8GybG1v pkPDpmKkDXAebVpKSu4MrDCvS3LK8mybuZh9xFpYzhLcYbphFpd38JFQ6WoRYknBh4Eq zrQia6Oego/TvRxney0FYFj7kYwWw7fkcku8BfL4gzSPSoZuL6ZwK5LWfqVq62rvZJHI fGTWj2HJuDn50abyP2WNgDyatq0tC1iQ91Hu3XcoDSDbfcGQUp4Bb1RNns/10HLrOu22 i7ig== X-Gm-Message-State: ALoCoQkSizehdr9/MXFMnFpPIVEYBde6lVlmdNCpPNs4qS8p/pFDexkC9ueb1LbAYmqM6ITWZLWy X-Received: by 10.152.27.100 with SMTP id s4mr5283702lag.18.1392380835382; Fri, 14 Feb 2014 04:27:15 -0800 (PST) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id qx7sm5727943lbb.9.2014.02.14.04.27.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 04:27:14 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: Jaehoon Chung , devicetree@vger.kernel.org, Ulf Hansson Subject: [PATCH 2/3] mmc: core: Add DT bindings for eMMC high-speed DDR 1.8/1.2V Date: Fri, 14 Feb 2014 13:27:08 +0100 Message-Id: <1392380829-8473-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392380829-8473-1-git-send-email-ulf.hansson@linaro.org> References: <1392380829-8473-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Provide the option to configure these speed modes per host, for those host driver's that can't distinguish this in runtime. Signed-off-by: Ulf Hansson Acked-by: Jaehoon Chung --- Documentation/devicetree/bindings/mmc/mmc.txt | 2 ++ drivers/mmc/core/host.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index bd2ce67..519d952 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -34,6 +34,8 @@ Optional properties: - cap-power-off-card: powering off the card is safe - cap-sdio-irq: enable SDIO IRQ signalling on this interface - full-pwr-cycle: full power cycle of the card is supported +- mmc-highspeed-ddr-1_8v: eMMC high-speed DDR mode(1.8V I/O) is supported +- mmc-highspeed-ddr-1_2v: eMMC high-speed DDR mode(1.2V I/O) is supported *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line polarity properties, we have to fix the meaning of the "normal" and "inverted" diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 2644d91..d014127 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -439,6 +439,10 @@ int mmc_of_parse(struct mmc_host *host) host->pm_caps |= MMC_PM_KEEP_POWER; if (of_find_property(np, "enable-sdio-wakeup", &len)) host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; + if (of_find_property(np, "mmc-ddr-1_8v", &len)) + host->caps |= MMC_CAP_1_8V_DDR; + if (of_find_property(np, "mmc-ddr-1_2v", &len)) + host->caps |= MMC_CAP_1_2V_DDR; return 0;