From patchwork Fri Dec 28 15:52:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amar X-Patchwork-Id: 13742 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 903C323EF7 for ; Fri, 28 Dec 2012 15:30:46 +0000 (UTC) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by fiordland.canonical.com (Postfix) with ESMTP id 29676A181DF for ; Fri, 28 Dec 2012 15:30:46 +0000 (UTC) Received: by mail-vc0-f169.google.com with SMTP id gb23so11033556vcb.28 for ; Fri, 28 Dec 2012 07:30:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-auditid:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:dlp-filter:x-mtr:x-brightmail-tracker :x-brightmail-tracker:x-cfilter-loop:x-gm-message-state; bh=b9U1OUkiImYxxFd/MOFUO9dY7g1W8cr2IYDnWPWCB9Y=; b=camRHRKSgm+n0y1RIBMNQojbq7uMQUcZGBJVaAlzNQXn2B6DuOp+QwMvtqGtxKxjzX pQbK0lt41e2I88aFCX7pmmJz+7UxF85cc5Yl8JBq6+QHnUq8uRunMXav+yfAJqgd99rZ 87Bf6BxgMG20Q7pxk6DEfp2UIuy6eLwSeKH5udAzOFQltrepM2gmgT1zqeNoe50dgoQ/ BdyVl1sxUgkT5zv1nXOspWIHBmAxAzFo7cHjHm1GHZaisLD6cpsde1TA5WwDEEyIxMPH nbFJDhjlRd80G7X6EgcHG7240t/e/JWRuZf1uOUqOX+uqT53DoqjJusH/kofkZxZoPgi vfSQ== X-Received: by 10.58.198.164 with SMTP id jd4mr53577642vec.34.1356708645500; Fri, 28 Dec 2012 07:30:45 -0800 (PST) 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.58.214.195 with SMTP id oc3csp63560vec; Fri, 28 Dec 2012 07:30:44 -0800 (PST) X-Received: by 10.66.77.200 with SMTP id u8mr99708331paw.43.1356708644188; Fri, 28 Dec 2012 07:30:44 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id go4si30607708pbc.294.2012.12.28.07.30.43; Fri, 28 Dec 2012 07:30:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of amarendra.xt@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of amarendra.xt@samsung.com designates 203.254.224.25 as permitted sender) smtp.mail=amarendra.xt@samsung.com Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MFQ00MY1Z2Z6040@mailout2.samsung.com>; Sat, 29 Dec 2012 00:30:42 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F5.F5.01231.22BBDD05; Sat, 29 Dec 2012 00:30:42 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-7d-50ddbb22e88d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 95.F5.01231.22BBDD05; Sat, 29 Dec 2012 00:30:42 +0900 (KST) Received: from chrome-ubuntu.sisodomain.com ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MFQ008MSZ2SO710@mmp2.samsung.com>; Sat, 29 Dec 2012 00:30:42 +0900 (KST) From: Amar To: u-boot@lists.denx.de, jh80.chung@samsung.com Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, afleming@gmail.com Subject: [PATCH 2/9] EXYNOS5: FDT: Add DWMMC device node data Date: Fri, 28 Dec 2012 10:52:45 -0500 Message-id: <1356709972-26549-3-git-send-email-amarendra.xt@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1356709972-26549-1-git-send-email-amarendra.xt@samsung.com> References: <1356709972-26549-1-git-send-email-amarendra.xt@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsWyRsSkVldp990Ag2VtKhYP199ksZhy+AuL A5PHnWt72AIYo7hsUlJzMstSi/TtErgyrq1dylrQK1uxalNCA+Mz8S5GTg4JAROJ92cWskPY YhIX7q1n62Lk4hASWMoo8WRBHyNM0cRT/5ghEtMZJT7cmw/l9DJJtDRcYu1i5OBgE1CV+LXY HqRBRMBAYvqT7WBhZoECiWe7xUDCwgK2EqcW/WYFsVmAqg+eWQ22mFfAQ+LVlHtQR8hJfNjz CMzmFPCUePRsETOILQRUc3XTLjaIXgGJb5MPsYCMlxCQldh0AOwaCYHbbBIdO/cxQcyRlDi4 4gbLBEbhBYwMqxhFUwuSC4qT0nMN9YoTc4tL89L1kvNzNzECQ/H0v2dSOxhXNlgcYhTgYFTi 4V3YcydAiDWxrLgy9xCjBAezkghvX/PdACHelMTKqtSi/Pii0pzU4kOMPkCXTGSWEk3OB8ZJ Xkm8obGJuamxqaWRkZmpKQ5hJXHeZo+UACGB9MSS1OzU1ILUIphxTBycUg2MUm++/nE7G2/c f//TCs8Zp4v/Wrr1sPgfjD12uz9c98FpTkdVyQ/Ns0v36zYHP63n+qtcw9WydpXti6yTl7mt vM49OF5/ub/OLH7R7oVvDpimJ2rUud1q+9R4m2X1xWVeYZ0LXe9svn+h1cxTeYv6h08X/Jpm KV4t//vp2w2dhi+PZY5cdXUJVWIpzkg01GIuKk4EAJTiOXxyAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42I5/e+xoK7S7rsBBm/vy1g8XH+TxWLK4S8s Dkwed67tYQtgjGpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLx CdB1y8wBmq2kUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxhzLi2dilrQa9s xapNCQ2Mz8S7GDk5JARMJCae+scMYYtJXLi3nq2LkYtDSGA6o8SHe/OZIZxeJomWhkusXYwc HGwCqhK/FtuDNIgIGEhMf7IdLMwsUCDxbLcYSFhYwFbi1KLfrCA2C1D1wTOr2UFsXgEPiVdT 7rFD7JKT+LDnEZjNKeAp8ejZIrAbhIBqrm7axTaBkXcBI8MqRtHUguSC4qT0XEO94sTc4tK8 dL3k/NxNjOBAfya1g3Flg8UhRgEORiUe3oU9dwKEWBPLiitzDzFKcDArifD2Nd8NEOJNSays Si3Kjy8qzUktPsToA3TVRGYp0eR8YBTmlcQbGpuYmxqbWppYmJhZ4hBWEudt9kgJEBJITyxJ zU5NLUgtghnHxMEp1cDYvtlpocUsoVdqsVd9dnbnn+/Z2X3grNOsrlXFf2evSWo043LVeC91 +dLcKAEp58zZy3+ynbExSZ6/Kd54n8hfO98fZ42Xn7jVlZMVEJ/m8DnkxcZpKSd5y+U03nC8 aN+/QSIyLnzWbT2ze5Om7v3cf/a9woVt+1LXS+3pKViUVf3zTPSfNwEnlViKMxINtZiLihMB jikp2qECAAA= X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQmg4FRKfkXI+zLpBFYZQyNtxjpK7BHFB1zZkTkcf2ux/jdsXPEwAVF3sFLeCjzou+vvkTFk This patch adds DWMMC device node data for exynos5. This patch also adds binding file for DWMMC device node. Signed-off-by: Vivek Gautam Signed-off-by: Amar --- arch/arm/dts/exynos5250.dtsi | 32 +++++++++++++++++++++++++++++++ board/samsung/dts/exynos5250-smdk5250.dts | 22 +++++++++++++++++++++ doc/device-tree-bindings/exynos/dwmmc.txt | 29 ++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 doc/device-tree-bindings/exynos/dwmmc.txt diff --git a/arch/arm/dts/exynos5250.dtsi b/arch/arm/dts/exynos5250.dtsi index 1008797..b701ae5 100644 --- a/arch/arm/dts/exynos5250.dtsi +++ b/arch/arm/dts/exynos5250.dtsi @@ -138,4 +138,36 @@ reg = <0x131b0000 0x30>; interrupts = <0 130 0>; }; + + dwmmc@12200000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,exynos5250-dwmmc"; + reg = <0x12200000 0x1000>; + interrupts = <0 75 0>; + }; + + dwmmc@12210000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,exynos5250-dwmmc"; + reg = <0x12210000 0x1000>; + interrupts = <0 76 0>; + }; + + dwmmc@12220000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,exynos5250-dwmmc"; + reg = <0x12220000 0x1000>; + interrupts = <0 77 0>; + }; + + dwmmc@12230000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,exynos5250-dwmmc"; + reg = <0x12230000 0x1000>; + interrupts = <0 78 0>; + }; }; diff --git a/board/samsung/dts/exynos5250-smdk5250.dts b/board/samsung/dts/exynos5250-smdk5250.dts index a8e62da..9baf622 100644 --- a/board/samsung/dts/exynos5250-smdk5250.dts +++ b/board/samsung/dts/exynos5250-smdk5250.dts @@ -30,6 +30,10 @@ spi2 = "/spi@12d40000"; spi3 = "/spi@131a0000"; spi4 = "/spi@131b0000"; + dwmmc0 = "/dwmmc@12200000"; + dwmmc1 = "/dwmmc@12210000"; + dwmmc2 = "/dwmmc@12220000"; + dwmmc3 = "/dwmmc@12230000"; }; sromc@12250000 { @@ -59,4 +63,22 @@ compatible = "wolfson,wm8994-codec"; }; }; + + dwmmc@12200000 { + samsung,bus-width = <8>; + samsung,timing = <1 3 3>; + }; + + dwmmc@12210000 { + status = "disabled"; + }; + + dwmmc@12220000 { + samsung,bus-width = <4>; + samsung,timing = <1 2 3>; + }; + + dwmmc@12230000 { + status = "disabled"; + }; }; diff --git a/doc/device-tree-bindings/exynos/dwmmc.txt b/doc/device-tree-bindings/exynos/dwmmc.txt new file mode 100644 index 0000000..6232ad6 --- /dev/null +++ b/doc/device-tree-bindings/exynos/dwmmc.txt @@ -0,0 +1,29 @@ +* Exynos 5250 DWC_mobile_storage + +The Exynos 5250 provides DWC_mobile_storage interface which supports +. Embedded Multimedia Cards (EMMC-version 4.5) +. Secure Digital memory (SD mem-version 2.0) +. Secure Digital I/O (SDIO-version 3.0) +. Consumer Electronics Advanced Transport Architecture (CE-ATA-version 1.1) + +The Exynos 5250 DWC_mobile_storage provides four channels. +SOC specific and Board specific properties are channel specific. + +Required SoC Specific Properties: + +- compatible: should be + - samsung,exynos5250-dwmmc: for exynos5250 platforms + +- reg: physical base address of the controller and length of memory mapped + region. + +- interrupts: The interrupt number to the cpu. + +Required Board Specific Properties: + +- #address-cells: should be 1. +- #size-cells: should be 0. +- samsung,bus-width: The width of the bus used to interface the devices + supported by DWC_mobile_storage (SD-MMC/EMMC/SDIO). +- samsung,timing: The timing values to be written into the + Drv/sample clock selection register of corresponding channel.