From patchwork Tue Sep 4 08:50:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1401611 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id EF0A4DF264 for ; Tue, 4 Sep 2012 08:54:12 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T8oqL-00041N-DV; Tue, 04 Sep 2012 08:50:45 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T8oqE-0003zI-5x for linux-arm-kernel@lists.infradead.org; Tue, 04 Sep 2012 08:50:40 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9T0086XHVDINR0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 04 Sep 2012 17:50:31 +0900 (KST) X-AuditID: cbfee61b-b7f056d000002c30-d8-5045c0d73568 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 1B.5D.11312.7D0C5405; Tue, 04 Sep 2012 17:50:31 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M9T00APCHVV47N0@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 04 Sep 2012 17:50:31 +0900 (KST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 1/5] mmc: host: sdhci-s3c: Add broken-voltage DT property for broken voltage quirk Date: Tue, 04 Sep 2012 10:50:05 +0200 Message-id: <1346748609-11115-2-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1346748609-11115-1-git-send-email-t.figa@samsung.com> References: <1346748609-11115-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jQd3rB1wDDCbflLbY9PgaqwOjx+Yl 9QGMUVw2Kak5mWWpRfp2CVwZSy91sBec4ak4cPEjYwPjVa4uRk4OCQETiYUrtrNC2GISF+6t Z+ti5OIQEpjOKHFk03+whJDAZiaJqS35IDabgJrE54ZHbCC2iICqxOe2BewgNrNAP5PEqpXJ ILawQLrE79s9YL0sQDVTvtwHs3kFnCQ2P/jLCLFMXuLp/T6wOZwCzhLtHSeZIHY5SZza+Jpx AiPvAkaGVYyiqQXJBcVJ6blGesWJucWleel6yfm5mxjBHn8mvYNxVYPFIUYBDkYlHt6qTy4B QqyJZcWVuYcYJTiYlUR4b692DRDiTUmsrEotyo8vKs1JLT7EKM3BoiTO63TOLkBIID2xJDU7 NbUgtQgmy8TBKdXAGKLgJvXPvaTo3GoXg1eZZ93s5b+YZyhHCdg/Ph+zKzXxbbGv1ASRyKV/ 9It/Jr/8K39W5s+jtJuHUr/FnU7/Wnq1dtNkfguH3blnvbYuMi7fyrRCyrS4qDakWpR7XteH 99WJ4VXOAi7vCrwjZr19Ysud/Mb87gLrxe/W+cT36Xxbu/roE/1AJZbijERDLeai4kQA2jE0 NfQBAAA= X-Spam-Note: CRM114 invocation failed X-Spam-Score: -7.1 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.34 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.2 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, jy0922.shim@samsung.com, Tomasz Figa , linux-mmc@vger.kernel.org, kyungmin.park@samsung.com, thomas.abraham@linaro.org, Ben Dooks , Chris Ball , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Some boards use fixed voltage regulator for vmmc supply (e.g. for eMMC memories). MMC_CAP2_BROKEN_VOLTAGE must be enabled for them to operate correctly. Cc: Ben Dooks Cc: Chris Ball CC: linux-mmc@vger.kernel.org Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park Acked-by: Jaehoon Chung --- Documentation/devicetree/bindings/mmc/mmc.txt | 1 + drivers/mmc/host/sdhci-s3c.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 8a6811f..ecbde68 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -16,6 +16,7 @@ Optional properties: - wp-inverted: when present, polarity on the wp gpio line is inverted - non-removable: non-removable slot (like eMMC) - max-frequency: maximum operating clock frequency +- broken-voltage: vmmc regulator does not allow voltage control Example: diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index 445910e..39715b8 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -443,6 +443,9 @@ static int __devinit sdhci_s3c_parse_dt(struct device *dev, if (!ourhost->gpios) return -ENOMEM; + if (of_get_property(node, "broken-voltage", 0)) + pdata->host_caps2 |= MMC_CAP2_BROKEN_VOLTAGE; + /* get the card detection method */ if (of_get_property(node, "broken-cd", 0)) { pdata->cd_type = S3C_SDHCI_CD_NONE;