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: 1401581 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B1C66DF264 for ; Tue, 4 Sep 2012 08:50:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754589Ab2IDIue (ORCPT ); Tue, 4 Sep 2012 04:50:34 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:34097 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752850Ab2IDIud (ORCPT ); Tue, 4 Sep 2012 04:50:33 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9T00HS7HVW2WA0@mailout1.samsung.com>; Tue, 04 Sep 2012 17:50:31 +0900 (KST) X-AuditID: cbfee61a-b7fd26d000002b62-bf-5045c0d760b6 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id DC.CE.11106.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>; Tue, 04 Sep 2012 17:50:31 +0900 (KST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, kyungmin.park@samsung.com, jy0922.shim@samsung.com, kgene.kim@samsung.com, thomas.abraham@linaro.org, Tomasz Figa , Ben Dooks , Chris Ball , linux-mmc@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+NgFnrGJMWRmVeSWpSXmKPExsVy+t9jQd3rB1wDDO5OkLU48r+f0WLG+X1M DkwenzfJBTBGcdmkpOZklqUW6dslcGUsvdTBXnCGp+LAxY+MDYxXuboYOTgkBEwkvl5k6mLk BDLFJC7cW8/WxcjFISQwnVHiTvtLFgini0li08NzYFVsAmoSnxsesYHYIgKqEp/bFrCD2MwC /UwSq1Ymg9jCAukSv2/3sILYLEA1U77cB7N5BZwkNj/4ywixTV7i6f0+sDmcAs4S7R0nweYL AdWc2viacQIj7wJGhlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYwb5/JrWDcWWDxSFGAQ5G JR7eqk8uAUKsiWXFlbmHGCU4mJVEeG+vdg0Q4k1JrKxKLcqPLyrNSS0+xCjNwaIkzut0zi5A SCA9sSQ1OzW1ILUIJsvEwSnVwMg+Lfvgpdshe+c9Cjrw9Hna9OrtqvHiLBeeTL/UEJNmG3d9 k9GGjADL2X/Wl5xI2tfxXGD/h64V81nnndsqvf0t60lpbslHXjfP++pcuiaiHvB2Q+2K5Utz WBbwmy37Vd2qn/7Ivm7tx+dd+QqH7ddy3EtjPiyc023B9bpO+dIH4bXn7poFO6orsRRnJBpq MRcVJwIAguQEwfkBAAA= Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.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;