From patchwork Tue Feb 10 12:57:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 5806971 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 DB8F09F336 for ; Tue, 10 Feb 2015 12:58:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 22F3120103 for ; Tue, 10 Feb 2015 12:58:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F8F82011D for ; Tue, 10 Feb 2015 12:58:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754628AbbBJM6M (ORCPT ); Tue, 10 Feb 2015 07:58:12 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:38443 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbbBJM6M (ORCPT ); Tue, 10 Feb 2015 07:58:12 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NJK00K9E47OSH90@mailout2.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 10 Feb 2015 13:02:12 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-12-54d9ffd127e6 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 51.04.07834.1DFF9D45; Tue, 10 Feb 2015 12:55:45 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NJK00F1I40UJJC0@eusync4.samsung.com>; Tue, 10 Feb 2015 12:58:10 +0000 (GMT) From: Andrzej Hajda To: linux-samsung-soc@vger.kernel.org Cc: Andrzej Hajda , Marek Szyprowski , Kyungmin Park , Kukjin Kim Subject: [PATCH] ARM: dts: exynos5422-odroidxu3: add mmc detect gpio Date: Tue, 10 Feb 2015 13:57:11 +0100 Message-id: <1423573031-13856-1-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNJMWRmVeSWpSXmKPExsVy+t/xa7oX/98MMej/zGZxa905Vov+x6+Z Lc42vWG3mHF+H5PF2iN32R1YPTat6mTz6NuyitHj8ya5AOYoLpuU1JzMstQifbsErowZ7zYx F5ziqHhy+hhrA2MPexcjJ4eEgInEv92TmCFsMYkL99azdTFycQgJLGWU2HLoIAuE08cksWHK d7AONgFNib+bb7KB2CICqhKf2xawgxQxCyxilLh5aAUrSEJYwEXi5vx2MJsFqOjCq5VgK3gF nCV+rDjBBrFOTuLkscmsExi5FzAyrGIUTS1NLihOSs811CtOzC0uzUvXS87P3cQICYAvOxgX H7M6xCjAwajEwxsw4WaIEGtiWXFl7iFGCQ5mJRFehk9AId6UxMqq1KL8+KLSnNTiQ4xMHJxS DYy8FZrpWlH83X0aRzt2WUsm7fFXvP7xm4jO+viQ6Pd+E5WyLvc/nf+tqaVQt+veG2HN3xdD AyI2Cz/w1juonKSSIPUh8EC7hIXz55uHe0K/O4eKL27IeZetN1Nf+cqjDg4nJ+vu2P7kE66u DR+m7GSUdE6ewlHt/DT5nefvrqrTcQ/8oz3WKLEUZyQaajEXFScCAKEsfI7eAQAA 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 --- 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; };