From patchwork Mon Dec 31 10:58:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amar X-Patchwork-Id: 13750 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 27D4623E03 for ; Mon, 31 Dec 2012 10:36:17 +0000 (UTC) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by fiordland.canonical.com (Postfix) with ESMTP id C1F6AA18257 for ; Mon, 31 Dec 2012 10:36:16 +0000 (UTC) Received: by mail-vc0-f171.google.com with SMTP id n11so12587918vch.16 for ; Mon, 31 Dec 2012 02:36:16 -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=DQ3k70PWilVNb99ErSlFKAulcA8Zec9zCGNGeZM0J7s=; b=HJaJphspHcpEd4RNaO+AyIN7kLYWKwSHvWREOPTmm8lwq7DBn18OYQq+CfecFwKi2O eWHSn/zVbYtKL8tsh+f5YaGXvupOhdZPBADoC+nxnywnf9j/BTeiRNV3nOhH35QvCUbq srxJAX6vqH0DTwyhxkkgrULS43dcuiit9P9MzsMET6MtMGj2TIkS1EZ/VRD/Z1zkcMTb 7Y4J2AmRHT/wImIS4HhD5ae+yiRpdAjlenCY7Gqqb/GrIxikhhwOCiNvmSddks/yXgzV 1L4PK26Q1nxNErRULwfAAI4SxpTf4SWhrHsLq2ZaN4K26AcL8CM8caTLnJtIxMgY2LPc JLRA== X-Received: by 10.220.8.18 with SMTP id f18mr60968463vcf.14.1356950176291; Mon, 31 Dec 2012 02:36:16 -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 oc3csp153805vec; Mon, 31 Dec 2012 02:36:15 -0800 (PST) X-Received: by 10.68.229.194 with SMTP id ss2mr127167645pbc.17.1356950174633; Mon, 31 Dec 2012 02:36:14 -0800 (PST) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id wk7si38974622pbc.139.2012.12.31.02.36.13; Mon, 31 Dec 2012 02:36:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of amarendra.xt@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of amarendra.xt@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=amarendra.xt@samsung.com 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 <0MFW009QX5G7FY70@mailout4.samsung.com>; Mon, 31 Dec 2012 19:36:12 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 28.B2.01231.C9A61E05; Mon, 31 Dec 2012 19:36:12 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-64-50e16a9c166b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B7.B2.01231.C9A61E05; Mon, 31 Dec 2012 19:36:12 +0900 (KST) Received: from chrome-ubuntu.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MFW00JL05G0TP80@mmp1.samsung.com>; Mon, 31 Dec 2012 19:36:12 +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 V3 2/9] EXYNOS5: FDT: Add DWMMC device node data Date: Mon, 31 Dec 2012 05:58:13 -0500 Message-id: <1356951500-22490-3-git-send-email-amarendra.xt@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1356951500-22490-1-git-send-email-amarendra.xt@samsung.com> References: <1356951500-22490-1-git-send-email-amarendra.xt@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsWyRsSkSndO1sMAg7lPTSwerr/JYjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBlzLk1i73ggXzFzBkfGRsY/0p2MXJwSAiYSCw+mtrF yAlkiklcuLeeDcQWEljKKLH2fTZE3ETi4LZzUPFFjBJvdnpD2L1MEgsPKoCMYRNQlfi12B4k LCJgIDH9yXZWkDCzQIHEs91iIGFhAQeJpY2z2UFsFqDqmedeMoLYvAIeEvcb9zBBbJKT+LDn EVgNp4CnxOktO5ghNnlI3OxeCNUrIPFt8iEWiONlJTYdACrhAjIvs0l0H9/ACjFHUuLgihss ExiFFzAyrGIUTS1ILihOSs811CtOzC0uzUvXS87P3cQIDMLT/55J7WBc2WBxiFGAg1GJh5eL 6WGAEGtiWXFl7iFGCQ5mJRHet1pAId6UxMqq1KL8+KLSnNTiQ4w+QJdMZJYSTc4HRkheSbyh sYm5qbGppZGRmakpDmElcd5mj5QAIYH0xJLU7NTUgtQimHFMHJxSDYyHeU5s64tYe9DBdqGD 1iz5JNPTv7aHvbViDBduPNVXH/S6usw8KdrtodvGvtzQQIldFmtskme5/aj4brxo/rHq5TrP uydufuHIv+TH/ZW/+Lbq3rGa9+Vtxu8VUtqnTl6Vb9rjsITH//eKpQea7hoKNmTw/WRbH7do XsSOczIHnotJxTjyW5QrsRRnJBpqMRcVJwIAXO9T/W8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42I5/e+xgO6crIcBBicPa1g8XH+TxWLK4S8s Dkwed67tYQtgjGpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLx CdB1y8wBmq2kUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxhzJhzaxZ7wQP5 ipkzPjI2MP6V7GLk5JAQMJE4uO0cG4QtJnHh3nowW0hgEaPEm53eEHYvk8TCgwpdjBwcbAKq Er8W24OERQQMJKY/2c4KEmYWKJB4tlsMJCws4CCxtHE2O4jNAlQ989xLRhCbV8BD4n7jHiaI TXISH/Y8AqvhFPCUOL1lBzPEJg+Jm90L2Scw8i5gZFjFKJpakFxQnJSea6hXnJhbXJqXrpec n7uJERzmz6R2MK5ssDjEKMDBqMTDy8X0MECINbGsuDL3EKMEB7OSCO9bLaAQb0piZVVqUX58 UWlOavEhRh+gqyYyS4km5wNjMK8k3tDYxNzU2NTSxMLEzBKHsJI4b7NHSoCQQHpiSWp2ampB ahHMOCYOTqkGRpGm5ZbP8peccopgnLpkQvq9O6JuN/13eNSx/VzT4NbzScP7xALemht90zaq W7XP+j71qXiyYnNjc2Uye1yjwbc5Gjfvz5R/YebDoHlgPs+ms537El9f9nbyv5gV4BneuGJH DdfiV6rCM99siW+eFRp5r0/rAbvG4r2vu/fInb/8McKug7NPSYmlOCPRUIu5qDgRANbbbB+g AgAA X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQly5D63tDMebZQjmLKz6reEKSRG9/VX3k+/pUksU5f4XQY/yafF2hw8zI+G1w73HTJHML2V This patch adds DWMMC device node data for exynos5. This patch also adds binding file for DWMMC device node. Changes from V1: 1)Added binding file for DWMMC device node at the location "doc/device-tree-bindings/exynos/dwmmc.txt". 2)Removed the propname 'index' from device node. 3)Prefixed the vendor name 'samsung' before propname in device node. Changes from V2: 1)Updation of commit message and resubmition of proper patch set. Signed-off-by: Vivek Gautam Signed-off-by: Amar X --- 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.