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: 7332791 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 895A4BEEA4 for ; Tue, 6 Oct 2015 01:16:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BB01E20685 for ; Tue, 6 Oct 2015 01:16:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DA9C42068E for ; Tue, 6 Oct 2015 01:16:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751555AbbJFBQW (ORCPT ); Mon, 5 Oct 2015 21:16:22 -0400 Received: from mail-la0-f42.google.com ([209.85.215.42]:33368 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbbJFBQI (ORCPT ); Mon, 5 Oct 2015 21:16:08 -0400 Received: by lafb9 with SMTP id b9so46820897laf.0 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=eiV8y1SLtBrOv3asBWWn8IGsKcluz7ixmqvZAFVEVvVT9dzMD6XqCNA8qv1hP+gEMd tRBJtu41GGaECSKDsgnzfCmzmyH5qAUgCbw85W4rI8vVSeZHHeFjYUQWy2vXxPJhkYMn Q/9wYVDR+DjtzvdNk0wnGSkU9Xo7ygy8nGPPWl9A/JwACecbG+RCwkqiUCQsTjv+60BO DUBjS0phfjMSwzMmJRBVFZtp0RcJczK9tDNcnl89KPLANFy38lzLVR5GarggNdPLC+Br 9cjeLpbjsMAQvV3fQ1TSpCsKazGCPRga0uRjk95l+qeDM4JcfrAmGB0xcBY7NRvbvFhC VTDQ== X-Gm-Message-State: ALoCoQnZ+S1uOFVX5mlyn1uGS8P8zclTqdCrun5WnU29DTJRHOl7Kw8ubguCwYRmKFHtHZDye3mu 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 Cc: ulf.hansson@linaro.org, sebastian.hesselbarth@gmail.com, andrew@lunn.ch, jason@lakedaemon.net, thomas.petazzoni@free-electrons.com, gregory.clement@free-electrons.com, nadavh@marvell.com, alior@marvell.com, tawfik@marvell.com, mw@semihalf.com, jaz@semihalf.com 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> 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=ham 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";