From patchwork Mon Nov 21 04:58:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9438719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7C0C860235 for ; Mon, 21 Nov 2016 04:58:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 703DD2892D for ; Mon, 21 Nov 2016 04:58:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 623DA28930; Mon, 21 Nov 2016 04:58:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 306342892D for ; Mon, 21 Nov 2016 04:58:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751993AbcKUE6o (ORCPT ); Sun, 20 Nov 2016 23:58:44 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:44100 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751428AbcKUE6n (ORCPT ); Sun, 20 Nov 2016 23:58:43 -0500 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OGZ02EGQ75PIXB0@mailout4.samsung.com>; Mon, 21 Nov 2016 13:58:40 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-a1-58327f000cc2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id AD.74.16530.00F72385; Mon, 21 Nov 2016 13:58:40 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OGZ0083I75SBF20@mmp2.samsung.com>; Mon, 21 Nov 2016 13:58:40 +0900 (KST) From: Jaehoon Chung To: linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgene@kernel.org, krzk@kernel.org, cw00.choi@samsung.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, m.szyprowski@samsung.com, Jaehoon Chung Subject: [PATCHv2] arm64: dts: exynos: add the mshc_2 node for supporting T-Flash Date: Mon, 21 Nov 2016 13:58:39 +0900 Message-id: <20161121045839.1444-1-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsVy+t9jQV2GeqMIg3snNSzeL+thtLj+5Tmr xfwj51gtbvxqY7Xof/ya2eL8+Q3sFpd3zWGzmHF+H5PF2iN32S2WXr/IZNG69wi7xcuPJ1gc eDzWzFvD6LFpVSebR9+WVYwenzfJBbBEudlkpCampBYppOYl56dk5qXbKoWGuOlaKCnkJeam 2ipF6PqGBCkplCXmlAJ5RgZowME5wD1YSd8uwS1j64bVLAUbuSsWXtjA1sC4mLOLkYNDQsBE 4t1ulS5GTiBTTOLCvfVsXYxcHEICsxgllh3+ywrh/GCUePO8mRWkik1AR2L7t+NMILaIgKrE 57YF7CBFzALTmCRuHj/GDJIQFgiWmPV/LzuIzQJUtO5BH1icV8BK4kfLGzaIdfISF66eYpnA yL2AkWEVo0RqQXJBcVJ6rlFearlecWJucWleul5yfu4mRnAwP5PewXh4l/shRgEORiUe3hsJ RhFCrIllxZW5hxglOJiVRHj3VwCFeFMSK6tSi/Lji0pzUosPMZoCHTCRWUo0OR8YaXkl8YYm 5ibmxgYW5paWJkZK4ryNs5+FCwmkJ5akZqemFqQWwfQxcXBKNTAWvZuvGrq1+ptYfPmC6gam qS+a+22rXqgvU2c3qv8vl3vAmGXCi2ufNU2twtXPy6Q4LYvPkC+YUlM0ZzPbe1uuxZvVNF+2 x7E8Sn+cNeekb5RA+P4bexPyV28X3BG4m+lq/I2Xz3cu+He6e7WbsGhypYyqVHb1VYE3azYv 9J0jyW/IWlLzR1KJpTgj0VCLuag4EQDJFax8fAIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the mshc_2 node for supporting T-flash. And it needs to add the "mshc*" aliases. Because dwmmc driver should be assigned to "ctrl_id" after parsing to "mshc". If there is no aliases for mshc, then it might be set to the wrong capabilities. Signed-off-by: Jaehoon Chung --- Changelog on V2: - Changed from 0 to GPIO_ACTIVE_HIGH arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts index ce41781..88cb6c1 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts @@ -45,6 +45,8 @@ spi2 = &spi_2; spi3 = &spi_3; spi4 = &spi_4; + mshc0 = &mshc_0; + mshc2 = &mshc_2; }; chosen { @@ -715,6 +717,23 @@ assigned-clock-rates = <800000000>; }; +&mshc_2 { + status = "okay"; + num-slots = <1>; + cap-sd-highspeed; + disable-wp; + cd-gpios = <&gpa2 4 GPIO_ACTIVE_HIGH>; + cd-inverted; + card-detect-delay = <200>; + samsung,dw-mshc-ciu-div = <3>; + samsung,dw-mshc-sdr-timing = <0 4>; + samsung,dw-mshc-ddr-timing = <0 2>; + fifo-depth = <0x80>; + pinctrl-names = "default"; + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus1 &sd2_bus4>; + bus-width = <4>; +}; + &pinctrl_alive { pinctrl-names = "default"; pinctrl-0 = <&initial_alive>;