From patchwork Sun Aug 26 11:59:31 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: 10962 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 8596F23E00 for ; Sun, 26 Aug 2012 11:41:33 +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 1F0F0A18263 for ; Sun, 26 Aug 2012 11:41:10 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so3780951iaf.11 for ; Sun, 26 Aug 2012 04:41:33 -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=7esJg6v1HDGzLqB5D+OrOYHLStd2q2cRxTDpgoiE9qI=; b=G6xZVtZ0DzX5sZepNe1vRLY/R7NITd0Ww7BEHJ2QMqI4Uq27gA6Lf2PFr4xywpV1bR ANkkrwCVG4DrPSo/mLaX6l4zIvhPbJXWhdC3hJOmCIYQ3BfYpD70izw2eYIpk5hEh/Gf 6DpsDJi1rV3zOmli2qwCDeLW0z8d8fSJbxBTrhBODvXfnm499jX3as5vNAuB/pqzmMPj +nUusPpXxJXJPXpxU8MIBPDti7SAPxuikVsZ8+p3AOlGKww3tSrl9kjQ6tR+RVj0uY9j 9MceI64TCipK8Ooa+w5O9NkoNmN7KF9iG3UKl4WjVHOPwhl0alcY5watjSvzmy+T1SPL uylg== Received: by 10.50.87.164 with SMTP id az4mr7126360igb.43.1345981292973; Sun, 26 Aug 2012 04:41:32 -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 ex8csp396595igc; Sun, 26 Aug 2012 04:41:32 -0700 (PDT) Received: by 10.68.129.168 with SMTP id nx8mr26226600pbb.112.1345981292267; Sun, 26 Aug 2012 04:41:32 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id px5si27215115pbb.262.2012.08.26.04.41.31; Sun, 26 Aug 2012 04:41:32 -0700 (PDT) Received-SPF: neutral (google.com: 203.254.224.34 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.34 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 mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9D0080D1T02H10@mailout4.samsung.com>; Sun, 26 Aug 2012 20:41:31 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-8f-503a0b6b0418 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B9.DA.17335.B6B0A305; Sun, 26 Aug 2012 20:41:31 +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 <0M9D00JEH1SVN450@mmp2.samsung.com>; Sun, 26 Aug 2012 20:41:30 +0900 (KST) From: Thomas Abraham To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, cjb@laptop.org, kgene.kim@samsung.com, girish.shivananjappa@linaro.org, jh80.chung@samsung.com, tgih.jun@samsung.com, patches@linaro.org Subject: [PATCH v3 3/3] ARM: dts: Add nodes for dw_mmc controllers for Samsung Exynos5250 platforms Date: Sun, 26 Aug 2012 17:29:31 +0530 Message-id: <1345982371-26483-4-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1345982371-26483-1-git-send-email-thomas.abraham@linaro.org> References: <1345982371-26483-1-git-send-email-thomas.abraham@linaro.org> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOJMWRmVeSWpSXmKPExsVy+t9jQd1sbqsAgx8v2S2+fD3BZjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBlPD9/mrlgsXTFh0auBsbfIl2MnBwSAiYSk/8eZ4Kw xSQu3FvP1sXIxSEkMJ1R4uvu7WAJIYE2JonD+7xAbDYBA4lHC9+xg9giAhoSU7oes4M0MAts ZpRY8OAAM0hCWCBVYv7xPrBmFgFVibWLZ7OC2LwCnhLnWxuhtilJbOg9CmZzCnhJLH+9mhli mafEsmM7GScw8i5gZFjFKJpakFxQnJSea6hXnJhbXJqXrpecn7uJEez9Z1I7GFc2WBxiFOBg VOLhFSi1DBBiTSwrrsw9xCjBwawkwvt9P1CINyWxsiq1KD++qDQntfgQozQHi5I4L3+fYYCQ QHpiSWp2ampBahFMlomDU6qB8cTRqe7lgidV51S/tUrexv9UbttnE9FEjS/7zpV/MizYFewR lP/Cc7ur0g6mwklOAqXzb3y0zsle8Nc8LPHCE2Nzo+8xvurHX0p/+3B5z/K7nLu8z8h2vJDV /1tnd1h2D59FUlnkxf7EYCsZV/f1L39FVP/84fFMKShrUrAI4+qrBgmizH83K7EUZyQaajEX FScCACJyM+P6AQAA X-Gm-Message-State: ALoCoQmKzIej4kZ/zFP/PBfQn/3sTGSWttm2x/f9mI1cwTea3B7JMvibIafN+FCNPT7g3HKz1uk4 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, 88 insertions(+), 1 deletions(-) diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 8a5e348..6dc9faf 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -16,12 +16,19 @@ 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>; }; chosen { - bootargs = "root=/dev/ram0 rw ramdisk=8192 console=ttySAC1,115200"; + bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC2,115200 init=/linuxrc"; }; i2c@12C60000 { @@ -72,6 +79,54 @@ status = "disabled"; }; + mshc_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>; + }; + }; + + mshc_1: dwmmc1@12210000 { + status = "disabled"; + }; + + mshc_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>; + }; + }; + + mshc_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>;