From patchwork Wed Apr 23 08:15:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 4039411 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 D5EA5BFF02 for ; Wed, 23 Apr 2014 08:15:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B86C20265 for ; Wed, 23 Apr 2014 08:15:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5124520221 for ; Wed, 23 Apr 2014 08:15:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751745AbaDWIPM (ORCPT ); Wed, 23 Apr 2014 04:15:12 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:23036 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750974AbaDWIPJ (ORCPT ); Wed, 23 Apr 2014 04:15:09 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4H0002B5L8F670@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Wed, 23 Apr 2014 17:15:08 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 95.92.11496.C8677535; Wed, 23 Apr 2014 17:15:08 +0900 (KST) X-AuditID: cbfee691-b7f3e6d000002ce8-68-5357768c26f3 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6A.52.27725.C8677535; Wed, 23 Apr 2014 17:15:08 +0900 (KST) Received: from DOTGIHJUN01 ([12.36.185.168]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4H00DHD5L8YK30@mmp1.samsung.com>; Wed, 23 Apr 2014 17:15:08 +0900 (KST) From: Seungwon Jeon To: linux-mmc@vger.kernel.org Cc: 'Chris Ball' , 'Ulf Hansson' , 'Jaehoon Chung' , 'Jackey Shen' , 'Alim Akhtar' , 'Fariya Fatima' , "'John W. Linville'" References: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> <006701cf2a58$c628e050$527aa0f0$%jun@samsung.com> In-reply-to: Subject: [PATCH 6/6] mmc: core: add DT bindings for eMMC HS400 1.8/1.2V Date: Wed, 23 Apr 2014 17:15:08 +0900 Message-id: <000f01cf5ecc$23c92d80$6b5b8880$%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: Ac7aH/uUm1J6MxFOSyaXb4Fx/nx/rAABnFmgDfJZ22AGGfSo8APt897AAVsylFACWLK74AMkkqCgAWQT7DAA8d9+MA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrAIsWRmVeSWpSXmKPExsVy+t8zfd2esvBgg9MHlS0ezNvGZjHh8nZG i4ZJT1gtJtybyGpx41cbq8WR//2MFlt7JCyOrw134PBovfSXzWPnrLvsHneu7WHzuPFqIZNH 35ZVjB5Xvq9m9Pi8SS6APYrLJiU1J7MstUjfLoErY1LjX8aC9XwVC/ZMZ2tgbOPpYuTkkBAw kVj5rZMRwhaTuHBvPVsXIxeHkMAyRokrcz6wwRTNfX6RESKxiFHizcczTBDOH0aJ9asfM4FU sQloSfx984YZxBYRkJX4+ecC2ChmgblMEpt23GMBSQgJVEmsOrcNrIhTgEdi3Z9OMFtYwF1i zspdYDaLg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WkkmzkLQsYGRZxSiaWpBcUJyU nmuoV5yYW1yal66XnJ+7iRGcOJ5J7WBc2WBxiFGAg1GJh7dgZViwEGtiWXFl7iFGCQ5mJRHe mR+BQrwpiZVVqUX58UWlOanFhxiTgR6dyCwlmpwPTGp5JfGGxiZmRpZGZhZGJubmpAkrifMe aLUOFBJITyxJzU5NLUgtgtnCxMEp1cDI87KQd9mF1NAQC6PUYxdnbHunn5pz6FDmzWnt07a+ lpjj9HTqEce1QtH7e1r2/ZQL5VAtsGlaqXi1MZbR/dj1+8u9ak4eDZbOrHqhH/7+o1vh1OUp TLJLbv95y6ZgOCFapPrJ4pN2vtuaVV+/+v3dVF6tdmn/HxGdtZt7PbMzZ+pnOfmypO1QYinO SDTUYi4qTgQAdcX99GADAAA= 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=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 --- 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 fdea825..95cceae 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;