From patchwork Wed Mar 26 11:31:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3892941 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 13286BF540 for ; Wed, 26 Mar 2014 11:32:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 311422011B for ; Wed, 26 Mar 2014 11:32:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E18920172 for ; Wed, 26 Mar 2014 11:32:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752149AbaCZLcZ (ORCPT ); Wed, 26 Mar 2014 07:32:25 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:15372 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751601AbaCZLcY (ORCPT ); Wed, 26 Mar 2014 07:32:24 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N310025DK1C5Y70@mailout1.samsung.com>; Wed, 26 Mar 2014 20:32:00 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 40.8A.09028.0BAB2335; Wed, 26 Mar 2014 20:32:00 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-4d-5332bab0360c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C6.5E.29263.FAAB2335; Wed, 26 Mar 2014 20:32:00 +0900 (KST) Received: from DOTGIHJUN01 ([12.36.185.168]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3100BCIK1BA950@mmp2.samsung.com>; Wed, 26 Mar 2014 20:31:59 +0900 (KST) From: Seungwon Jeon To: linux-samsung-soc@vger.kernel.org, linux-mmc@vger.kernel.org Cc: 'Chris Ball' , 'Kukjin Kim' , 'Jaehoon Chung' , 'Ulf Hansson' , 'Alim Akhtar' References: In-reply-to: Subject: [PATCH v2 7/7] ARM: dts: add HS400 support for Exynos5420 Date: Wed, 26 Mar 2014 20:31:58 +0900 Message-id: <000701cf48e6$ffd7e290$ff87a7b0$%jun@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac9FDjtZo1aMTMCOStGdx+bxiO4TmwD1P6hw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJIsWRmVeSWpSXmKPExsVy+t8zA90Nu4yCDRbf4rZ4MG8bm8WEy9sZ LW78amO16F1wlc3iyP9+RosZ5/cxWRxfG+7A7nHn2h42jxuvFjJ59G1ZxejxeZNcAEsUl01K ak5mWWqRvl0CV8a5fTeZC9pFK+bc2MjSwDhFsIuRk0NCwETidMscRghbTOLCvfVsXYxcHEIC yxglfr+fxgxTdHHmHVaIxHRGiZffnjNDOH8YJZb+ncQGUsUmoCXx980bsA4RAQeJd9cvMIHY zAInGCXmLTbuYuQAauCWWN0cBBLmFOCRWPenE6xcWMBJYs38FawgNouAqsTl071grbwCthKb t+9igbAFJX5MvscCMoZZQF1iypRciOnyEpvXvGUGCUsAhR/91YU4wEiivWEiM0SJiMS+F+8Y QS6WEHjELvHk2wtmiFUCEt8mH2KB6JWV2HQA6l1JiYMrbrBMYJSYhWTxLITFs5AsnoVkwwJG llWMoqkFyQXFSelFRnrFibnFpXnp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U6qBkc3onMh/y6++6zd/nFiitUfQ5K/dB8ZPD1Lne5hOKD4QW218Q/fJzBt9KTaGlyRv VW56PuVb788TvV0mJh0OpQ4+JVHuLIe2WZzT4NR79+nim6v27xtMYjafLwhmS/E8c4kj4J+s Dtui9RMnXPxanyafdK/6nyn/Ib3zluLh899fXHjE/uiXFUosxRmJhlrMRcWJACOqs39JAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 HS400 timing value set is added for SMDK5420. And GPIO line for RCLK should be pull-down state. Signed-off-by: Seungwon Jeon --- .../devicetree/bindings/mmc/exynos-dw-mshc.txt | 6 ++++++ arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 7 +++++++ arch/arm/boot/dts/exynos5420-smdk5420.dts | 5 ++++- 3 files changed, 17 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt index ca1914f..39c3014 100644 --- a/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt +++ b/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt @@ -29,6 +29,9 @@ Required Properties: data rate mode operation. Refer notes below for the order of the cells and the valid values. +* samsung,dw-mshc-hs200-timing: Similar with dw-mshc-sdr-timing. +* samsung,dw-mshc-hs400-timing: Similar with dw-mshc-ddr-timing. + Notes for the sdr-timing and ddr-timing values: The order of the cells should be @@ -45,6 +48,9 @@ Required Properties: - if CIU clock divider value is 0 (that is divide by 1), both tx and rx phase shift clocks should be 0. +* read-strobe-delay: RCLK (Data strobe) delay to control HS400 mode + (Latency value for delay line in Read path) + Required properties for a slot: * gpios: specifies a list of gpios used for command, clock and data bus. The diff --git a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi index e62c8eb..51233ee 100644 --- a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi @@ -194,6 +194,13 @@ samsung,pin-drv = <3>; }; + sd0_rclk: sd0-rclk { + samsung,pins = "gpc0-7"; + samsung,pin-function = <2>; + samsung,pin-pud = <1>; + samsung,pin-drv = <3>; + }; + sd1_clk: sd1-clk { samsung,pins = "gpc1-0"; samsung,pin-function = <2>; diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts b/arch/arm/boot/dts/exynos5420-smdk5420.dts index 3ad4ef3..4796d44 100644 --- a/arch/arm/boot/dts/exynos5420-smdk5420.dts +++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts @@ -38,8 +38,11 @@ card-detect-delay = <200>; samsung,dw-mshc-sdr-timing = <0 4 3>; samsung,dw-mshc-ddr-timing = <0 2 3>; + samsung,dw-mshc-hs200-timing = <0 2 3>; + samsung,dw-mshc-hs400-timing = <0 2 1>; + read-strobe-delay = <90>; pinctrl-names = "default"; - pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>; + pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8 &sd0_rclk>; slot@0 { reg = <0>;