From patchwork Tue Oct 6 01:22:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 7332961 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7740FBEEA4 for ; Tue, 6 Oct 2015 01:19:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A8938206D6 for ; Tue, 6 Oct 2015 01:19:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 85EF2206B6 for ; Tue, 6 Oct 2015 01:19:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZjGsE-0003wg-Hq; Tue, 06 Oct 2015 01:16:58 +0000 Received: from mail-la0-f54.google.com ([209.85.215.54]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZjGri-0003bY-DI for linux-arm-kernel@lists.infradead.org; Tue, 06 Oct 2015 01:16:27 +0000 Received: by laag4 with SMTP id g4so8768527laa.2 for ; Mon, 05 Oct 2015 18:16:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vjPF7ttMfQB4BJ+swMcwFpBedghcT1mNJvEE0i+JWn8=; b=SoW7EMLker92LyQN5RXuDaORFF4o14u++vtnvWyLVB2wFh13DqOPSZDHX/e2hcct07 pflPe3GohTjNkaPwP6W2Zj1FOOiUEtl6jHsM16Nx9NrLZ2mPduM5xCbw+GIkjzQ0c/2d Q5krq/P4+pb6asFg+e5GWZy1sbE9GRr5jrAxmLyaWucEO+US86e5chcuv1mVqXAOd7Ow nG7xWWvnWugMRN8O3mvEYKeUjZZ32g/6FsRfclpojqSbvdXJb0HKfn5lmQJps8HdxODz mlJ7FA1nsduYOPTpTJ1SogEiMgPE3YKb0JaksAwMOhLr/03CnEDyPaMVODWj6T7lzVnU F0Yg== X-Gm-Message-State: ALoCoQn4z0zb1bY6jmIgUJwDUBfbuXkHmDkP9x2kSmDK8lNcp5gYbzM1w89Xw7h1foejlQAEaKm3 X-Received: by 10.112.87.69 with SMTP id v5mr12978969lbz.70.1444094166896; Mon, 05 Oct 2015 18:16:06 -0700 (PDT) Received: from enkidu.semihalf.local (cardhu.semihalf.com. [213.17.239.108]) by smtp.gmail.com with ESMTPSA id x1sm4694780lbb.32.2015.10.05.18.16.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Oct 2015 18:16:06 -0700 (PDT) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org Subject: [PATCH 6/8] ARM: mvebu: enable SDHCI card detection using DAT3 pin on A388-GP Date: Tue, 6 Oct 2015 03:22:40 +0200 Message-Id: <1444094562-31165-7-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1444094562-31165-1-git-send-email-mw@semihalf.com> References: <1444094562-31165-1-git-send-email-mw@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151005_181626_785827_F88C04D9 X-CRM114-Status: GOOD ( 12.95 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thomas.petazzoni@free-electrons.com, andrew@lunn.ch, ulf.hansson@linaro.org, jason@lakedaemon.net, tawfik@marvell.com, jaz@semihalf.com, nadavh@marvell.com, alior@marvell.com, gregory.clement@free-electrons.com, mw@semihalf.com, sebastian.hesselbarth@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 The newest revisions of A388-GP (v1.5 and higher) support only DAT3-based card detection, which is enabled by this commit. Hitherto revisions, without such modification, will be impacted with a broken card detection - in order to operate the cards have to be present during kernel boot. Signed-off-by: Marcin Wojtas --- arch/arm/boot/dts/armada-388-gp.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/armada-388-gp.dts b/arch/arm/boot/dts/armada-388-gp.dts index 391dea9..4855963 100644 --- a/arch/arm/boot/dts/armada-388-gp.dts +++ b/arch/arm/boot/dts/armada-388-gp.dts @@ -213,8 +213,9 @@ sdhci@d8000 { pinctrl-names = "default"; pinctrl-0 = <&sdhci_pins>; - cd-gpios = <&expander0 5 GPIO_ACTIVE_LOW>; no-1-8-v; + dat3-cd; + cd-inverted; wp-inverted; bus-width = <8>; status = "okay";