From patchwork Wed Aug 29 11:01:12 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: 11027 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 732D123E02 for ; Wed, 29 Aug 2012 10:43:51 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 28957A191FF for ; Wed, 29 Aug 2012 10:43:19 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so751214iaf.11 for ; Wed, 29 Aug 2012 03:43:50 -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=daPsneYIUabh2qX3pKGDzCn5hNrEOgOmiAfed30Zb+g=; b=emI23fOvD3ddrIB7jM/JtdqcAdZ//39xw9xqmYnhIRUX2WZkEDsv7dMVqEU/IF0Bhq FI6frhJDqBD7pfIKMmZh+pI7eAqszSTajscYsicWIZ4uVgIKiID+/J0xiso1AIMPr874 9t9j70iYN3LQ+xdVoBxNIOlE4+WIOUM8C7S1XST9v2QERwr3d4P1BGkuR3gQhCwCeFUU G6dydBYIjxLoZOMdWRi3V77BrDjwFa8P/RBDunK9BF97HaM92cz+hj8ypTRifL3uggrh v3zniE8FQd+Jse8tIplOywaUo1L0fQVr8q0bfyVnvnk7pkmeXOAtfKeIuRfwlI5R+X/n rp0w== Received: by 10.50.207.106 with SMTP id lv10mr1146407igc.0.1346237030798; Wed, 29 Aug 2012 03:43:50 -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 ex8csp77933igc; Wed, 29 Aug 2012 03:43:50 -0700 (PDT) Received: by 10.68.130.65 with SMTP id oc1mr3884076pbb.29.1346237030071; Wed, 29 Aug 2012 03:43:50 -0700 (PDT) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id vn9si29636496pbc.137.2012.08.29.03.43.49; Wed, 29 Aug 2012 03:43:50 -0700 (PDT) Received-SPF: neutral (google.com: 203.254.224.24 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.24 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 mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9I008HZJ4KEG01@mailout1.samsung.com>; Wed, 29 Aug 2012 19:43:48 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-13-503df264f612 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 84.A2.17335.462FD305; Wed, 29 Aug 2012 19:43:48 +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 <0M9I00K0KJ3AVK60@mmp1.samsung.com>; Wed, 29 Aug 2012 19:43:48 +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: Wed, 29 Aug 2012 16:31:12 +0530 Message-id: <1346238072-7324-4-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1346238072-7324-1-git-send-email-thomas.abraham@linaro.org> References: <1346238072-7324-1-git-send-email-thomas.abraham@linaro.org> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBJMWRmVeSWpSXmKPExsVy+t9jAd2UT7YBBg2PLSy+fD3BZjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBlPDm+g7HgnGRFx6E/TA2M54S7GDk5JARMJA5OeMMO YYtJXLi3nq2LkYtDSGARo0Tf5fvMEE4bk8TpvXtZQarYBAwkHi18B9YhIqAhMaXrMTtIEbPA CUaJWy/egxUJC6RKbN35hQnEZhFQlZg99QTQWA4OXgEPieMzSiG2KUls6D0KVsIp4Cmx5st1 NhBbCKhk+6FDjBMYeRcwMqxiFE0tSC4oTkrPNdQrTswtLs1L10vOz93ECPb/M6kdjCsbLA4x CnAwKvHwXuC2DRBiTSwrrsw9xCjBwawkwpv6CijEm5JYWZValB9fVJqTWnyIUZqDRUmcl7/P MEBIID2xJDU7NbUgtQgmy8TBKdXAyPPhYVOUrKm+De/5wB+aAgc+/eKxcq+2XsS58szNhdP+ qE7xXCcQGPrJy7IzXawtTpEhlvm9Xtrc2cxMNl8T4s9KLte/wiXR5HSG2WlvrVD3W9FQDUtr H1eGlxd1zpd9NS96dV9nksr0D7Ub2J791rjGzCtR8qLrkUc+X6WxyFNOi8bYuaVKLMUZiYZa zEXFiQCjmKX0+wEAAA== X-Gm-Message-State: ALoCoQlnXFMPUp8dC5MRC6ua9lmKZRinMmhk+qi2bk6wUSnVPIfb6yjz1EaUVGeUoE07RoJ1yCov 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 | 55 +++++++++++++++++++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 32 +++++++++++++++++ 2 files changed, 87 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 8a5e348..d57e8e0 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,54 @@ status = "disabled"; }; + dwmmc_0: dwmmc0@12200000 { + num-slots = <1>; + supports-highspeed; + broken-cd; + 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>; + 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-sdr-timing = <2 3 3>; + samsung,dw-mshc-ddr-timing = <1 2 3>; + + 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>;