From patchwork Fri Feb 14 12:27:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 24648 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 50C7020448 for ; Fri, 14 Feb 2014 12:27:20 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id gq1sf45114399obb.4 for ; Fri, 14 Feb 2014 04:27:19 -0800 (PST) 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=C0D1SILl5SNMnVd9VozjdIGRqPXOp6W7G9VXSMpUhWg=; b=T+5kEUrsc3JljL7xYN0kjICeal2GkmCj0xAMsdh0bIoDGObYQf7KtmufwaPQlT4WF/ Wg8DE2CW9lihJqHeKRGd5blxG1wQscOD8fIwMa6xDsWuKNCDHu+QjMRKvkGVsH9BIfN5 umuzV+a1WwjBlhqzWXPxAtxHmUSW6VSDyQA7D9RPdOE0v8ut+YHqpXUttmPvImkmscJK jeoUB+HHK7DXsCE8zfjwYQH9DxfqC5CoTKTza3ZUYFyDWknLyMsujFP7dG3Mg8lsVCag greGhBY+aSi4CBbEXZep5m9g33OrQNuC0ICTJwz8WnZChbUnd3Lu+isrWsatjzcVrYs0 qBFA== X-Gm-Message-State: ALoCoQnPpzK/aWd9GBak4DO8uQHRZWCn9MU/dLQT2fxrKVo0YsNM0Aa8CXdMkz2ZrnQ1ZWs3+hx3 X-Received: by 10.43.18.133 with SMTP id qg5mr2555589icb.13.1392380839216; Fri, 14 Feb 2014 04:27:19 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.113 with SMTP id p104ls53467qga.41.gmail; Fri, 14 Feb 2014 04:27:19 -0800 (PST) X-Received: by 10.52.107.35 with SMTP id gz3mr4400693vdb.8.1392380839141; Fri, 14 Feb 2014 04:27:19 -0800 (PST) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id sq4si1858998vdc.15.2014.02.14.04.27.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 04:27:19 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.171 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.171; Received: by mail-vc0-f171.google.com with SMTP id le5so9289583vcb.16 for ; Fri, 14 Feb 2014 04:27:19 -0800 (PST) X-Received: by 10.220.103.141 with SMTP id k13mr1033262vco.25.1392380838978; Fri, 14 Feb 2014 04:27:18 -0800 (PST) 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.174.196 with SMTP id u4csp104727vcz; Fri, 14 Feb 2014 04:27:18 -0800 (PST) X-Received: by 10.152.6.199 with SMTP id d7mr5273006laa.22.1392380837867; Fri, 14 Feb 2014 04:27:17 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx.google.com with ESMTPS id m9si7944357lae.90.2014.02.14.04.27.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 04:27:17 -0800 (PST) Received-SPF: neutral (google.com: 209.85.217.177 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id 10so7612649lbg.8 for ; Fri, 14 Feb 2014 04:27:17 -0800 (PST) X-Received: by 10.152.6.101 with SMTP id z5mr1420274laz.53.1392380837150; Fri, 14 Feb 2014 04:27:17 -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.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 04:27:16 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: Jaehoon Chung , devicetree@vger.kernel.org Subject: [PATCH 3/3] mmc: core: Add DT bindings for eMMC HS200 1.8/1.2V Date: Fri, 14 Feb 2014 13:27:09 +0100 Message-Id: <1392380829-8473-3-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> 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.171 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: , From: Jaehoon Chung 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: Jaehoon Chung Acked-by: Ulf Hansson --- 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 519d952..9dce540 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -36,6 +36,8 @@ Optional properties: - 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 +- mmc-hs200-1_8v: eMMC HS200 mode(1.8V I/O) is supported +- mmc-hs200-1_2v: eMMC HS200 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 d014127..453573d 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -443,6 +443,10 @@ int mmc_of_parse(struct mmc_host *host) host->caps |= MMC_CAP_1_8V_DDR; if (of_find_property(np, "mmc-ddr-1_2v", &len)) host->caps |= MMC_CAP_1_2V_DDR; + if (of_find_property(np, "mmc-hs200-1_8v", &len)) + host->caps2 |= MMC_CAP2_HS200_1_8V_SDR; + if (of_find_property(np, "mmc-hs200-1_2v", &len)) + host->caps2 |= MMC_CAP2_HS200_1_2V_SDR; return 0;