From patchwork Mon May 4 11:28:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 6325391 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 686439F32E for ; Mon, 4 May 2015 11:28:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 867A2202E6 for ; Mon, 4 May 2015 11:28:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49C5E202EB for ; Mon, 4 May 2015 11:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751984AbbEDL2y (ORCPT ); Mon, 4 May 2015 07:28:54 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:46782 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751615AbbEDL2x (ORCPT ); Mon, 4 May 2015 07:28:53 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNT008DPP82Y1A0@mailout3.w1.samsung.com>; Mon, 04 May 2015 12:28:50 +0100 (BST) X-AuditID: cbfec7f4-f79c56d0000012ee-90-554757f21944 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 68.97.04846.2F757455; Mon, 4 May 2015 12:28:50 +0100 (BST) Received: from AMDN363.digital.local ([106.116.147.81]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NNT00BMWP7XEF00@eusync4.samsung.com>; Mon, 04 May 2015 12:28:50 +0100 (BST) From: Andrzej Hajda To: Krzysztof Kozlowski Cc: Andrzej Hajda , "linux-mmc@vger.kernel.org" , Seungwon Jeon , Jaehoon Chung , Marek Szyprowski , Kyungmin Park , "linux-samsung-soc@vger.kernel.org" , Kukjin Kim , Javier Martinez Canillas Subject: [PATCH RESEND] ARM: dts: exynos5422-odroidxu3: add mmc detect gpio Date: Mon, 04 May 2015 13:28:43 +0200 Message-id: <1430738923-7435-1-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <55473FD1.7060605@gmail.com> References: <55473FD1.7060605@gmail.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsVy+t/xa7qfwt1DDfZf1bW4te4cq8W13zPY LG78amO1eP7vB7tF/+PXzBZnm96wWxz5389oMeP8PiaLtUfuslt8uH+R2YHL4+/sVmaPnbPu sntsWtXJ5tG3ZRWjx+dNcgGsUVw2Kak5mWWpRfp2CVwZ+45+Zil4zFXRs9GmgfELRxcjJ4eE gInE1XtrGSFsMYkL99azdTFycQgJLGWUuPL9NyOE08gkMX/tVCaQKjYBTYm/m2+ygdgiAoYS 03d9ZQYpYhZYxSzRtvY2WJGwgLfE49O7wWwWAVWJni6IFbwCThLvexZArZOTOHlsMiuIzQk0 tOPWfhYQW0hAQ6Lj2HHWCYy8CxgZVjGKppYmFxQnpeca6hUn5haX5qXrJefnbmKEBN2XHYyL j1kdYhTgYFTi4V0g6x4qxJpYVlyZe4hRgoNZSYSXxQYoxJuSWFmVWpQfX1Sak1p8iFGag0VJ nHfurvchQgLpiSWp2ampBalFMFkmDk6pBsaYzWfZ2myfTgtPTZlkXfza95T/5KUmE5Y/PGsT kbq1mqmbwyI6Q9bn5b6F66csU7X+xG9t+2O5tJxui2lZtv/i7b0eRx4Huu2I02f/zTTXqbSI 96lEsmPOlPJ/93KjldIjtZcum/HH/MES730c/7+dmCPWsUNTfFvEsXqWiV7XbvBekzES3qTE UpyRaKjFXFScCABiGSloNgIAAA== 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 when MMC card is missing. Signed-off-by: Andrzej Hajda Reviewed-by: Javier Martinez Canillas --- Hi Krzysztof, This is 2nd try today, previously there were missing some addresses in Cc. The patch is rebased on the latest next. 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 edc25cf..cb649b1 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" / { @@ -306,13 +307,13 @@ &mmc_0 { status = "okay"; mmc-pwrseq = <&emmc_pwrseq>; - 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_bus1 &sd0_bus4 &sd0_bus8>; + pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>; bus-width = <8>; cap-mmc-highspeed; };