From patchwork Fri Oct 9 01:03:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 7358481 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 F16AEBEEA4 for ; Fri, 9 Oct 2015 00:57:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1EC5C207D3 for ; Fri, 9 Oct 2015 00:57:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4010D207B9 for ; Fri, 9 Oct 2015 00:57:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755722AbbJIA5w (ORCPT ); Thu, 8 Oct 2015 20:57:52 -0400 Received: from mail-lb0-f170.google.com ([209.85.217.170]:36336 "EHLO mail-lb0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754996AbbJIA4q (ORCPT ); Thu, 8 Oct 2015 20:56:46 -0400 Received: by lbcao8 with SMTP id ao8so65579229lbc.3 for ; Thu, 08 Oct 2015 17:56:44 -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=RYnTn0oB6nB+U6U/6KAsHp+KZU3J7gPsn+OLCiqn+LA=; b=do4RTCiWuvQKo2BKwIEuGuFbdDfJrin+N9ZDzBzBOMTBp0exWQWk2lsTtTZBrRSWh8 5nKYplzkLKlAObhlg5101Iq9pkicDm+F3ytwaN7VaFqhvOFj36FSp37aJCDGujj858nQ QKxQNzl4J59X+SHJY/TVs0Ijq8rYdGtp7WOda/KkzcGIeSXz5d0cJNZ8m+RQw8uGu/zl ekgNU5qevmpSpAYGCQ2Zgo0exnP4zmNaNHTlG6/cV6ERWa4G58JF31t18FYPO8oDpfQr Rs8iyHtkSgW3OFoFhHfkNEpjgcck2yg/rkcw4u61nA6Xe1qk1zmNjk2QUfuCchW7aAxL 6eXA== X-Gm-Message-State: ALoCoQkuOJQjiQRgg+Y/YbkS+/ueHzMiA7cCleYIFwjYVridWxquGEtkXPBIfHFoOXbsvnxl5jPL X-Received: by 10.112.146.2 with SMTP id sy2mr5221012lbb.104.1444352204250; Thu, 08 Oct 2015 17:56:44 -0700 (PDT) Received: from enkidu.semihalf.local (cardhu.semihalf.com. [213.17.239.108]) by smtp.gmail.com with ESMTPSA id og8sm7668933lbc.5.2015.10.08.17.56.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2015 17:56:43 -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 v2 3/5] ARM: mvebu: set SW polling as SDHCI card detection on A388-GP Date: Fri, 9 Oct 2015 03:03:53 +0200 Message-Id: <1444352635-21965-4-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1444352635-21965-1-git-send-email-mw@semihalf.com> References: <1444352635-21965-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. Revisions < v1.5 based on GPIO detection via I2C expander, but this solution is supposed to be deprecated on new boards. In order to satisfy all type of hardware this commit changes card detection to use software polling mechanism. Signed-off-by: Marcin Wojtas Acked-by: Andrew Lunn --- arch/arm/boot/dts/armada-388-gp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/armada-388-gp.dts b/arch/arm/boot/dts/armada-388-gp.dts index 391dea9..403a86b 100644 --- a/arch/arm/boot/dts/armada-388-gp.dts +++ b/arch/arm/boot/dts/armada-388-gp.dts @@ -213,8 +213,8 @@ sdhci@d8000 { pinctrl-names = "default"; pinctrl-0 = <&sdhci_pins>; - cd-gpios = <&expander0 5 GPIO_ACTIVE_LOW>; no-1-8-v; + broken-cd; wp-inverted; bus-width = <8>; status = "okay";