From patchwork Fri Sep 7 09:43:04 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: 11227 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 C0B9223EFF for ; Fri, 7 Sep 2012 09:24:06 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 5BAEAA1848A for ; Fri, 7 Sep 2012 09:24:06 +0000 (UTC) Received: by ieak11 with SMTP id k11so4363204iea.11 for ; Fri, 07 Sep 2012 02:24:05 -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-gm-message-state; bh=3pqkqegCPPvENWZlwO6htPVR2gpINlAb8iUzKIbJVTY=; b=czcuJ3QeQvNwABxKnZtTrvuhcGWlLACiHTrmFn/te/5CP5p5VAujlKXwVbD0/SW35m i8S/c4FA/uulYf5xVe62jAUKmQg4mWPTAp3IiyhOaLLnyw7ABuggj3ER9/eV8iVQsdzh Njp40xO71dPFke2evT6NZK/p0sa4FRuVOz3OisshIvCXItQGNYJnIbBuy9+zTfMma8JS F6cP8vtXHlq0N7/VzCyKgviF4EjW/QGZTnyqfg9HjhvlAZhCUbSYrAy6PBkYtvFvI01N Xt2aJNbHHYUJjSBowUcpdQUU+7/05kBmduf0FO6Vla4Px2Jb3gmB0pwKk3diJy3TZEfi sy5g== Received: by 10.50.242.3 with SMTP id wm3mr15451422igc.0.1347009845821; Fri, 07 Sep 2012 02:24:05 -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.50.184.232 with SMTP id ex8csp368632igc; Fri, 7 Sep 2012 02:24:05 -0700 (PDT) Received: by 10.66.77.168 with SMTP id t8mr7814992paw.28.1347009844849; Fri, 07 Sep 2012 02:24:04 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id pv1si7976214pbb.239.2012.09.07.02.24.04; Fri, 07 Sep 2012 02:24:04 -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 epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9Z00E633G1LAZ0@mailout3.samsung.com>; Fri, 07 Sep 2012 18:24:03 +0900 (KST) X-AuditID: cbfee61a-b7fba6d000007d5f-d8-5049bd338b06 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 1F.D8.32095.33DB9405; Fri, 07 Sep 2012 18:24:03 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M9Z001AP3FHEU20@mmp2.samsung.com>; Fri, 07 Sep 2012 18:24:03 +0900 (KST) From: Thomas Abraham To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, kgene.kim@samsung.com, girish.shivananjappa@linaro.org, jh80.chung@samsung.com, tgih.jun@samsung.com, patches@linaro.org Subject: [PATCH v4 3/3] ARM: dts: Add nodes for dw_mmc controllers for Samsung Exynos5250 platforms Date: Fri, 07 Sep 2012 15:13:04 +0530 Message-id: <1347010984-9951-1-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <006301cd8b53$40024750$c006d5f0$%jun@samsung.com> References: <006301cd8b53$40024750$c006d5f0$%jun@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOJMWRmVeSWpSXmKPExsVy+t9jQV3jvZ4BBlcXKVl8+XqCzWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DKuHhjCWNBt1TF/E8drA2MzSJdjJwcEgImEtt+NDJC 2GISF+6tZ+ti5OIQEpjOKDHv3QkWCKeNSWLO1HlMIFVsAgYSjxa+YwexRQQ0JKZ0PWYHKWIW OMEocevFe1aQhLBAqsTWnV/AGlgEVCWOHzgCNImDg1fAQ2LKtmyIbUoSG3qPgpVwCthJzNr9 kRmkREjAVmLbbaEJjLwLGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgR7/5nUDsaVDRaH GAU4GJV4eC2ueAQIsSaWFVfmHmKU4GBWEuH9ss0zQIg3JbGyKrUoP76oNCe1+BCjNAeLkjiv 0zm7ACGB9MSS1OzU1ILUIpgsEwenVANj1CazW9ezHYv0juc1hs2UnKt5dsG0kD73X/ZPHd3s jtoqbteQ0l32ft+/J/uXC+o2PvC1O16q8HpugrLwtM8f7oeujz1cU5Mn+FFFdPvWzt3FvyWv 7s1df4P1Wfb9yXOCZv3/x7p8xb5bqw3136cxHP29Z12B9KS1PUcaJbs32V3c5H2+9dHmciWW 4oxEQy3mouJEANIxn0D6AQAA X-Gm-Message-State: ALoCoQlQ9aVO4ykMDkuNSSLXQi532Ih+Fx4zWaFdU2ar+r8Ym4lATg4LyPFMXIyKzqlsqXaGGdtJ 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 | 57 +++++++++++++++++++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 32 ++++++++++++++++ 2 files changed, 89 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 8a5e348..aac8abc 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 = &dwmmc_0; + mshc1 = &dwmmc_1; + mshc2 = &dwmmc_2; + mshc3 = &dwmmc_3; + }; + memory { reg = <0x40000000 0x80000000>; }; @@ -72,6 +79,56 @@ status = "disabled"; }; + dwmmc_0: dwmmc0@12200000 { + num-slots = <1>; + supports-highspeed; + broken-cd; + fifo-depth = <0x80>; + card-detect-delay = <200>; + samsung,dw-mshc-ciu-div = <3>; + samsung,dw-mshc-sdr-timing = <2 3>; + samsung,dw-mshc-ddr-timing = <1 2>; + + slot@0 { + reg = <0>; + bus-width = <8>; + 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>; + }; + }; + + dwmmc_1: dwmmc1@12210000 { + status = "disabled"; + }; + + dwmmc_2: dwmmc2@12220000 { + num-slots = <1>; + supports-highspeed; + fifo-depth = <0x80>; + card-detect-delay = <200>; + samsung,dw-mshc-ciu-div = <3>; + samsung,dw-mshc-sdr-timing = <2 3>; + samsung,dw-mshc-ddr-timing = <1 2>; + + slot@0 { + reg = <0>; + bus-width = <4>; + samsung,cd-pinmux-gpio = <&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>; + }; + }; + + dwmmc_3: dwmmc3@12230000 { + status = "disabled"; + }; + spi_0: spi@12d20000 { status = "disabled"; }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 004aaa8..f69e389 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -182,6 +182,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>;