From patchwork Mon Feb 2 08:33:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 5760011 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 CA218BF440 for ; Mon, 2 Feb 2015 08:34:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11A2820212 for ; Mon, 2 Feb 2015 08:34:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C0D5201F4 for ; Mon, 2 Feb 2015 08:34:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753142AbbBBIeS (ORCPT ); Mon, 2 Feb 2015 03:34:18 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:34487 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752569AbbBBIeO (ORCPT ); Mon, 2 Feb 2015 03:34:14 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) 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 <0NJ400CF4YNRXO60@mailout3.w1.samsung.com>; Mon, 02 Feb 2015 08:38:15 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-29-54cf35f280f2 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id DA.25.07834.2F53FC45; Mon, 02 Feb 2015 08:31:46 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NJ400L97YGRC600@eusync2.samsung.com>; Mon, 02 Feb 2015 08:34:11 +0000 (GMT) From: Marek Szyprowski To: linux-mmc@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Kukjin Kim , Tobias Jakobi , Daniel Drake , Sebastian Reichel , Seungwon Jeon , Jaehoon Chung , Ulf Hansson , Chris Ball , Joonyoung Shim , Javier Martinez Canillas Subject: [PATCH v2 2/3] ARM: dts: exynos4412-odroid*: add eMMC reset line Date: Mon, 02 Feb 2015 09:33:47 +0100 Message-id: <1422866028-27891-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1422866028-27891-1-git-send-email-m.szyprowski@samsung.com> References: <1422866028-27891-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLLMWRmVeSWpSXmKPExsVy+t/xK7qfTM+HGBx9ZWAx4fJ2RotH8x8z W1z7PYPN4savNlaLF/cuslj0P37NbHHkfz+jxYzz+5gsun7+ZLNYe+Quu8Xp3SUWH+5fZLY4 vjbcgdfj7+xWZo9F37M8Fm/az+axaVUnm8eda3vYPG68Wsjk0bdlFaPH501yARxRXDYpqTmZ ZalF+nYJXBnf5z9nK/jFWbHh/n2mBsY2ji5GTg4JAROJ07O/skPYYhIX7q1nA7GFBJYySnz9 aAxh9zFJ7FsSBGKzCRhKdL3tAqrh4BARcJB4cd6pi5GLg1lgI7PEp+4DjCBxYQFPif87dUHK WQRUJb6t+8oCYvMKeEi8enWXFWKVnMT/lyuYQGxOoPINp2+wQKzykFh3s4llAiPvAkaGVYyi qaXJBcVJ6bmGesWJucWleel6yfm5mxghQfplB+PiY1aHGAU4GJV4eB9wnwsRYk0sK67MPcQo wcGsJMIr/BEoxJuSWFmVWpQfX1Sak1p8iJGJg1OqgVEsb9qiGydM43t5v+bMOzGLIzPD73BN yNonnkF3v5vGy3Fkz/+6xP8dj2K+r8uPSVZVF1Z/9f+QLfBctN+u20/bLtF0dvU0tW2KevK+ pvozrepkrwU9krf4MX26J9NvHm2l9DrJufOmWjoeWMU3L7pzpq8WW/HnY9MbXxtMWlcv98fw wMoJRkosxRmJhlrMRcWJAG5HFJcwAgAA 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=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 This patch adds reset-gpios property to the eMMC slot, so the MMC driver is able to properly reset eMMC card on system restart and thus fixes system hang on software reboot. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi index ffcf17bbf63b..c97ffbf0a6be 100644 --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi @@ -57,10 +57,18 @@ <19200000>; }; + emmc_pwrseq: pwrseq { + pinctrl-0 = <&sd1_cd>; + pinctrl-names = "default"; + compatible = "mmc-pwrseq-emmc"; + reset-gpios = <&gpk1 2 1>; + }; + mmc@12550000 { pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>; pinctrl-names = "default"; vmmc-supply = <&ldo20_reg &buck8_reg>; + mmc-pwrseq = <&emmc_pwrseq>; status = "okay"; num-slots = <1>; @@ -392,6 +400,12 @@ }; }; +/* RSTN signal for eMMC */ +&sd1_cd { + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; +}; + &pinctrl_1 { gpio_power_key: power_key { samsung,pins = "gpx1-3";