From patchwork Fri Nov 18 07:12:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9435853 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 D13D460237 for ; Fri, 18 Nov 2016 07:12:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3D302976C for ; Fri, 18 Nov 2016 07:12:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7AAD29784; Fri, 18 Nov 2016 07:12:31 +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 387FB2976C for ; Fri, 18 Nov 2016 07:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751574AbcKRHMa (ORCPT ); Fri, 18 Nov 2016 02:12:30 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:34488 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058AbcKRHM3 (ORCPT ); Fri, 18 Nov 2016 02:12:29 -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 <0OGT00T41TCQ1A50@mailout4.samsung.com>; Fri, 18 Nov 2016 16:12:26 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-f1-582ea9da701a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 50.C8.16530.AD9AE285; Fri, 18 Nov 2016 16:12:26 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OGT00DDUTCQJW90@mmp1.samsung.com>; Fri, 18 Nov 2016 16:12:26 +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, Jaehoon Chung Subject: [PATCH] arm64: dts: exynos: add the mshc_2 node for supporting T-Flash Date: Fri, 18 Nov 2016 16:12:24 +0900 Message-id: <20161118071224.12876-1-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsVy+t9jAd1bK/UiDGbdF7d4v6yH0eL6l+es FvOPnGO1uPGrjdWi//FrZovz5zewW1zeNYfNYsb5fUwWS69fZLJo3XuE3eLlxxMsDtwea+at YfTYtKqTzaNvyypGj8+b5AJYotxsMlITU1KLFFLzkvNTMvPSbZVCQ9x0LZQU8hJzU22VInR9 Q4KUFMoSc0qBPCMDNODgHOAerKRvl+CWsXbPWdaCF1wVN3bPY2lgfM7RxcjJISFgInGsdzIz hC0mceHeerYuRi4OIYGljBJndh5hgnB+MEosuDmBHaSKTUBHYvu340wgtoiAqsTntgXsIEXM An8YJRqPPWbpYuTgEBbwl9h2JQikhgWo5vW6s2wgNq+AtcT7e/PYIbbJS1y4eoplAiP3AkaG VYwSqQXJBcVJ6blGeanlesWJucWleel6yfm5mxjBIfxMegfj4V3uhxgFOBiVeHg7GPQihFgT y4orcw8xSnAwK4nwBiwFCvGmJFZWpRblxxeV5qQWH2I0BTpgIrOUaHI+ML7ySuINTcxNzI0N LMwtLU2MlMR5G2c/CxcSSE8sSc1OTS1ILYLpY+LglGpgzP05zU5/Y/K6FwV/31cp9jeXL87d mSEnlvyXqUN2f4r6+2v6j9pCbzR4VH4S//Eo3qhDZqsDi2Bk1W25slsrvu4t63RnXVqd48d8 eGfvP5H876Zrn051jS3Inu+cutFPwvfDpiuKoSJ+LnEb7t70zGmwvF/w2FTFVedgazcD34GN ekbZobeUWIozEg21mIuKEwGLkn4MdwIAAA== 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 --- 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 9ea3f32..75dab01 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts @@ -42,6 +42,8 @@ spi2 = &spi_2; spi3 = &spi_3; spi4 = &spi_4; + mshc0 = &mshc_0; + mshc2 = &mshc_2; }; chosen { @@ -661,6 +663,23 @@ assigned-clock-rates = <800000000>; }; +&mshc_2 { + status = "okay"; + num-slots = <1>; + cap-sd-highspeed; + disable-wp; + cd-gpios = <&gpa2 4 0>; + 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>;