From patchwork Fri Feb 13 07:48:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 5823701 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4A4AC9F39D for ; Fri, 13 Feb 2015 07:49:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F7C32025B for ; Fri, 13 Feb 2015 07:49:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A372F2022A for ; Fri, 13 Feb 2015 07:49:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751594AbbBMHtJ (ORCPT ); Fri, 13 Feb 2015 02:49:09 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:30857 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751477AbbBMHtI (ORCPT ); Fri, 13 Feb 2015 02:49:08 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NJP00MI59WL1130@mailout3.w1.samsung.com>; Fri, 13 Feb 2015 07:53:09 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-62-54ddabdd2c2a Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 40.FF.26295.DDBADD45; Fri, 13 Feb 2015 07:46:37 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NJP002AD9PP5M00@eusync3.samsung.com>; Fri, 13 Feb 2015 07:49:04 +0000 (GMT) From: Andrzej Hajda To: linux-mmc@vger.kernel.org Cc: Andrzej Hajda , Seungwon Jeon , Jaehoon Chung , Marek Szyprowski , Kyungmin Park , linux-samsung-soc@vger.kernel.org, kgene@kernel.org, javier@dowhile0.org Subject: [PATCH RESEND] ARM: dts: exynos5422-odroidxu3: add mmc detect gpio Date: Fri, 13 Feb 2015 08:48:54 +0100 Message-id: <1423813734-20664-1-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t/xq7p3V98NMVhw39Di1rpzrBbXfs9g s7jxq43Vov/xa2aLs01v2C2O/O9ntJhxfh+Txdojd9ktPty/yOzA6fF3diuzx6ZVnWwefVtW MXp83iQXwBLFZZOSmpNZllqkb5fAlbHiZi9zwSTuiiWP77I2MHZxdjFyckgImEgcvt/EDmGL SVy4t56ti5GLQ0hgKaPEgsZ1zCAJIYE+Jok3F5VAbDYBTYm/m2+ygdgiArISP/9cAGtgFpjP JNF9+wpYg7CAt8Tj07uZQGwWAVWJ090LwWxeAWeJvqM/mCG2yUmcPDaZdQIj9wJGhlWMoqml yQXFSem5RnrFibnFpXnpesn5uZsYIQHzdQfj0mNWhxgFOBiVeHgVG+6GCLEmlhVX5h5ilOBg VhLhnbEYKMSbklhZlVqUH19UmpNafIiRiYNTqoGRqzk/xsS0eNnH03sniZv+UXQuZFuuGeh0 Te/Ngf8+oafVlH9uamdScnjyvVdaRUyy/IhcurWWg6BDsGq8rdEWxZaDJrwrrr2vE9Ko6lhd 9Zhf+nyGheh5Y+065rqUkKv+q5nlbDrmZXyR9F3BYbzY/8XhzbHHOqZvfWBkctPp/nKl7bJ3 BZVYijMSDbWYi4oTAds8/nn2AQAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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=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 patch adds gpio for detecting presence of MMC card. It fixes issue with kernel hang due when MMC card is missing. Signed-off-by: Andrzej Hajda Reviewed-by: Javier Martinez Canillas --- Hi, This is just resend of the patch with added mmc ML and dw-mmc maintainers. Javier, I have no access to peach-pi(t) schematics, so I do not know if they have mmc-cd line connected to gpc0-2 gpio, but I guess it could be the case. You could check if similar patches will fix the issue for them. Regards Andrzej arch/arm/boot/dts/exynos5422-odroidxu3.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts index 47ec9bf..a563811 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts @@ -11,6 +11,7 @@ */ /dts-v1/; +#include #include "exynos5800.dtsi" / { @@ -355,13 +356,13 @@ &mmc_0 { status = "okay"; - broken-cd; + cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>; card-detect-delay = <200>; samsung,dw-mshc-ciu-div = <3>; samsung,dw-mshc-sdr-timing = <0 4>; samsung,dw-mshc-ddr-timing = <0 2>; pinctrl-names = "default"; - pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>; + pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8 &sd0_cd>; bus-width = <8>; cap-mmc-highspeed; };