From patchwork Fri Mar 21 14:04:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3874661 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7217F9F370 for ; Fri, 21 Mar 2014 14:04:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 854DF20279 for ; Fri, 21 Mar 2014 14:04:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 75E0720295 for ; Fri, 21 Mar 2014 14:04:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965742AbaCUOEy (ORCPT ); Fri, 21 Mar 2014 10:04:54 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:45522 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965542AbaCUOEu (ORCPT ); Fri, 21 Mar 2014 10:04:50 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2S004JLHS10650@mailout1.samsung.com>; Fri, 21 Mar 2014 23:04:49 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 95.A6.14803.1074C235; Fri, 21 Mar 2014 23:04:49 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-c9-532c47013541 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 64.24.29263.1074C235; Fri, 21 Mar 2014 23:04:49 +0900 (KST) Received: from DOTGIHJUN01 ([12.36.185.168]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2S00KMTHS0FV90@mmp1.samsung.com>; Fri, 21 Mar 2014 23:04:49 +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' Subject: [PATCH 7/7] ARM: dts: add HS400 support for Exynos5420 Date: Fri, 21 Mar 2014 23:04:49 +0900 Message-id: <002101cf450e$861697c0$9243c740$%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: Ac9FDoXw1GYUG4tRT5alhnFA7U75Lw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zQ11Gd51gg5bjMhYP5m1js5hweTuj xY1fbawWvQuuslkc+d/PaDHj/D4mi+Nrwx3YPe5c28PmcePVQiaPvi2rGD0+b5ILYInisklJ zcksSy3St0vgyji37yZzQbtoxZwbG1kaGKcIdjFycEgImEg8PefTxcgJZIpJXLi3nq2LkYtD SGAZo0T36ytMEAkTiSV/57BAJBYxSkzZdIcVwvnDKNF2eR0jSBWbgJbE3zdvmEFsEQEHiXfX L4B1MwucYJSYt9gYxBYWsJc41HyNDcRmEVCVeHRrHlgvr4CtxL9TM6BsQYkfk++xgFzHLKAu MWVKLsQYeYnNa94yQxytLvHory6IKSKgJ9F0C6pCRGLfi3eMECcfY5f4ct8KYpGAxLfJh1gg OmUlNh1ghiiRlDi44gbLBEaxWUjWzkJYOwvJ2llIFixgZFnFKJpakFxQnJReZKpXnJhbXJqX rpecn7uJERJ5E3cw3j9gfYgxGWj7RGYp0eR8YOTmlcQbGps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3NToNegce1SbsS5eo9nu+eM2RtMrcPZ7OBZmtd+Ijf3uK7Ls0+VPso+7LMzMa j39gC/DXeO0YpLFWiaU4I9FQi7moOBEAepT59DEDAAA= 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=-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 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>;