From patchwork Fri Mar 21 11:37:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3873251 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4B5EEBF540 for ; Fri, 21 Mar 2014 11:37:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 77C2520253 for ; Fri, 21 Mar 2014 11:37:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E19762012B for ; Fri, 21 Mar 2014 11:37:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756015AbaCULhc (ORCPT ); Fri, 21 Mar 2014 07:37:32 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:13649 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760185AbaCULha (ORCPT ); Fri, 21 Mar 2014 07:37:30 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2S00E5IAYHNL70@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Fri, 21 Mar 2014 20:37:29 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 42.9D.09028.9742C235; Fri, 21 Mar 2014 20:37:29 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-35-532c247941c0 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id A0.91.28157.9742C235; Fri, 21 Mar 2014 20:37:29 +0900 (KST) Received: from DOTGIHJUN01 ([12.36.185.168]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2S005G0AYG2HA0@mmp2.samsung.com>; Fri, 21 Mar 2014 20:37:29 +0900 (KST) From: Seungwon Jeon To: linux-mmc@vger.kernel.org Cc: 'Chris Ball' , 'Ulf Hansson' Subject: [PATCH] mmc: core: add DT bindings for eMMC HS400 1.8/1.2V Date: Fri, 21 Mar 2014 20:37:29 +0900 Message-id: <000d01cf44f9$f0d2dc50$d27894f0$%jun@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac9E+e9zZst9W/0bTryJWvDzuunVLg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJIsWRmVeSWpSXmKPExsVy+t8zI91KFZ1gg/aFAhYTLm9ntDjyv5/R 4vjacAdmjzvX9rB53Hi1kMnj8ya5AOYoLpuU1JzMstQifbsEroxPW/uYChr5Kx51XGFpYDzK 08XIySEhYCKx5eJrNghbTOLCvfVANheHkMAyRon+j8sZYYpudu5ihUhMZ5To27CYEcL5wyhx 5/wuFpAqNgEtib9v3jCD2CICshI//1wAG8ss4C1x5vMUsLiwgLPE3K07waayCKhK3PmzjR3E 5hWwlbg18QQzhC0o8WPyPaCZHEC96hJTpuRCjJGX2LzmLTNIWAIo/OivLsQmPYll8/6zQpSI SOx78Q7sNAmBZewSk6evYIZYJSDxbfIhFoheWYlNB5gh/pKUOLjiBssERrFZSBbPQlg8C8ni WUg2LGBkWcUomlqQXFCclF5kpFecmFtcmpeul5yfu4kREk19OxhvHrA+xJgMtH0is5Rocj4w GvNK4g2NzYwsTE1MjY3MLc1IE1YS5130MClISCA9sSQ1OzW1ILUovqg0J7X4ECMTB6dUA+O8 kmWPD/XqW2z477Xx09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A X1BraBkDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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. Specially, if host can support HS400, it means that host can also support HS200. Signed-off-by: Seungwon Jeon --- Note: Depending on [PATCH v3 5/5] mmc: add support for HS400 mode of eMMC5.0 Documentation/devicetree/bindings/mmc/mmc.txt | 2 ++ drivers/mmc/core/host.c | 4 ++++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 9dce540..3c18001 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -38,6 +38,8 @@ Optional properties: - 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 +- mmc-hs400-1_8v: eMMC HS400 mode(1.8V I/O) is supported +- mmc-hs400-1_2v: eMMC HS400 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 453573d..4e35043 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -447,6 +447,10 @@ int mmc_of_parse(struct mmc_host *host) 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; + if (of_find_property(np, "mmc-hs400-1_8v", &len)) + host->caps2 |= MMC_CAP2_HS400_1_8V | MMC_CAP2_HS200_1_8V_SDR; + if (of_find_property(np, "mmc-hs400-1_2v", &len)) + host->caps2 |= MMC_CAP2_HS400_1_2V | MMC_CAP2_HS200_1_2V_SDR; return 0;