From patchwork Thu Jul 12 12:58:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 9963 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 139F323E3D for ; Thu, 12 Jul 2012 12:45:04 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id D7A99A186D4 for ; Thu, 12 Jul 2012 12:45:03 +0000 (UTC) Received: by mail-gh0-f180.google.com with SMTP id z12so2526364ghb.11 for ; Thu, 12 Jul 2012 05:45:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-tm-as-mml:x-gm-message-state; bh=kD4B8hUS42U6N6sb3Nc1/i3PCQvd8slZ+GDxUKP8SEo=; b=Sr37n5X8FRegQZNIY21yywrL9oBgUcl5EhNuEODoy3H7EPGZ/q8nL/A02vgDriTCbI 7ag/r+ABEa22IOesG22NRpucZrfpFeINjOR5engYgLRDIaaGF+NSM+GXeFI+r2qTfgiL d3pr58y3zFRpc19yfwGgRYsRqky2Qw0WUPXsRba7XQ8DVDSfr6/Y4kNTEEcYdUbLxzJE oQ4+rk4IKexarjDWTg++8HO94O+AZw3ZVmX2mAxEBS/VwB047tQxb7uBrxPUH6WAaP2w zpPKmJHwIbPtK2EOep5UY5FaXQiO5qsCOSzR7JRYjvw619VWxI6ltGYPz3ZWGP/Wh01+ 37uQ== Received: by 10.50.87.227 with SMTP id bb3mr17055216igb.57.1342097103304; Thu, 12 Jul 2012 05:45:03 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.241.2 with SMTP id lc2csp2675ibb; Thu, 12 Jul 2012 05:45:02 -0700 (PDT) Received: by 10.68.227.163 with SMTP id sb3mr5397870pbc.74.1342097102156; Thu, 12 Jul 2012 05:45:02 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id ot3si8915096pbc.41.2012.07.12.05.45.01; Thu, 12 Jul 2012 05:45:02 -0700 (PDT) Received-SPF: neutral (google.com: 203.254.224.33 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.33 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: from epcpsbgm2.samsung.com (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M7100CGQSQVP9C0@mailout3.samsung.com> for patches@linaro.org; Thu, 12 Jul 2012 21:45:01 +0900 (KST) X-AuditID: cbfee61b-b7f566d000005c8a-35-4ffec6cc96c0 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E0.DE.23690.CC6CEFF4; Thu, 12 Jul 2012 21:45:01 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M7100BY3SQSXZ10@mmp1.samsung.com> for patches@linaro.org; Thu, 12 Jul 2012 21:45:00 +0900 (KST) From: Thomas Abraham To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH v2 3/3] ARM: dts: Add nodes for dw_mmc controllers for Samsung Exynos5250 platforms Date: Thu, 12 Jul 2012 18:28:47 +0530 Message-id: <1342097927-25334-4-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1342097927-25334-1-git-send-email-thomas.abraham@linaro.org> References: <1342097927-25334-1-git-send-email-thomas.abraham@linaro.org> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJMWRmVeSWpSXmKPExsVy+t9jAd2zx/75G/zfzWQx5fAXFgdGjzvX 9rAFMEZx2aSk5mSWpRbp2yVwZUxtWspW8Eay4u2m6ewNjE+Fuxg5OSQETCReL3rKCmGLSVy4 t56ti5GLQ0hgEaNE04avLBDOXCaJS/uamECq2AQMJB4tfMcOYosIaEhM6XoMZHNwMAsESNz9 ZgMSFhZIlTh7dApYOYuAqsTlB89ZQGxeAU+Jz3d3QS1TktjQexSshlPAS2LK+9lsILYQUM2Z hbOZJzDyLmBkWMUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kR7PNn0jsYVzVYHGIU4GBU4uF9 sOmfvxBrYllxZe4hRgkOZiUR3v5coBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXFeE++v/kIC6Ykl qdmpqQWpRTBZJg5OqQZGo1/qzCfXn921Pmav3K5OTle1Wxe4trlfi1EO4zl9Su947DreGX8n BW+r3VZwQuDkimKfzltVrDvnnOFezsXqLvdgY/HqZnXTpRyJ0wWDdV10NrfE1IQlBHSvfXjF 9afk403PjWeWpO+ffG/73oOlmx8InLDhNpzMoRlyYdVxAcaKNStZPFLmKbEUZyQaajEXFScC AIBAqFH1AQAA X-TM-AS-MML: No X-Gm-Message-State: ALoCoQn9wFAlaHtcyp9xN10VWiRl4ng2Vh/G0SyGi5rDCVFfBhBYxxJyYiv7rMAZhAO04wSWW0P0 Add device nodes for the four instances of dw_mmc controllers in Exynos5250 and enable instance 0 and 2 for the smdk5250 board. Signed-off-by: Thomas Abraham --- arch/arm/boot/dts/exynos5250-smdk5250.dts | 58 +++++++++++++++++++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 32 ++++++++++++++++ 2 files changed, 90 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 49945cc..8e54e41 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -16,6 +16,13 @@ model = "SAMSUNG SMDK5250 board based on EXYNOS5250"; compatible = "samsung,smdk5250", "samsung,exynos5250"; + aliases { + mshc0 = &mshc_0; + mshc1 = &mshc_1; + mshc2 = &mshc_2; + mshc3 = &mshc_3; + }; + memory { reg = <0x40000000 0x80000000>; }; @@ -71,4 +78,55 @@ i2c@12CD0000 { status = "disabled"; }; + + mshc_0: dwmmc0@12200000 { + num-slots = <1>; + supports-highspeed; + card-detection-broken; + no-write-protect; + fifo-depth = <0x80>; + card-detect-delay = <200>; + samsung,dw-mshc-sdr-timing = <2 3 3>; + samsung,dw-mshc-ddr-timing = <1 2 3>; + + slot@0 { + reg = <0>; + bus-width = <8>; + cd-gpios = <&gpc0 2 2 3 3>; + gpios = <&gpc0 0 2 0 3>, <&gpc0 1 2 0 3>, + <&gpc1 0 2 3 3>, <&gpc1 1 2 3 3>, + <&gpc1 2 2 3 3>, <&gpc1 3 2 3 3>, + <&gpc0 3 2 3 3>, <&gpc0 4 2 3 3>, + <&gpc0 5 2 3 3>, <&gpc0 6 2 3 3>; + }; + }; + + mshc_1: dwmmc1@12210000 { + status = "disabled"; + }; + + mshc_2: dwmmc2@12220000 { + num-slots = <1>; + supports-highspeed; + no-write-protect; + fifo-depth = <0x80>; + card-detect-delay = <200>; + samsung,dw-mshc-sdr-timing = <2 3 3>; + samsung,dw-mshc-ddr-timing = <1 2 3>; + + slot@0 { + reg = <0>; + bus-width = <4>; + cd-gpios = <&gpc3 2 2 3 3>; + gpios = <&gpc3 0 2 0 3>, <&gpc3 1 2 0 3>, + <&gpc3 3 2 3 3>, <&gpc3 4 2 3 3>, + <&gpc3 5 2 3 3>, <&gpc3 6 2 3 3>, + <&gpc4 3 3 3 3>, <&gpc4 3 3 3 3>, + <&gpc4 5 3 3 3>, <&gpc4 6 3 3 3>; + }; + }; + + mshc_3: dwmmc3@12230000 { + status = "disabled"; + }; }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 4272b29..b6ae657 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -146,6 +146,38 @@ #size-cells = <0>; }; + dwmmc0@12200000 { + compatible = "samsung,exynos5250-dw-mshc"; + reg = <0x12200000 0x1000>; + interrupts = <0 75 0>; + #address-cells = <1>; + #size-cells = <0>; + }; + + dwmmc1@12210000 { + compatible = "samsung,exynos5250-dw-mshc"; + reg = <0x12210000 0x1000>; + interrupts = <0 76 0>; + #address-cells = <1>; + #size-cells = <0>; + }; + + dwmmc2@12220000 { + compatible = "samsung,exynos5250-dw-mshc"; + reg = <0x12220000 0x1000>; + interrupts = <0 77 0>; + #address-cells = <1>; + #size-cells = <0>; + }; + + dwmmc3@12230000 { + compatible = "samsung,exynos5250-dw-mshc"; + reg = <0x12230000 0x1000>; + interrupts = <0 78 0>; + #address-cells = <1>; + #size-cells = <0>; + }; + amba { #address-cells = <1>; #size-cells = <1>;