From patchwork Tue Mar 5 13:11:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amar X-Patchwork-Id: 15231 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 4698723E00 for ; Tue, 5 Mar 2013 12:53:46 +0000 (UTC) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by fiordland.canonical.com (Postfix) with ESMTP id D5E58A18864 for ; Tue, 5 Mar 2013 12:53:45 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id f13so4025927vcb.26 for ; Tue, 05 Mar 2013 04:53: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:x-brightmail-tracker:x-brightmail-tracker :dlp-filter:x-mtr:x-cfilter-loop:x-gm-message-state; bh=TlmSagCTTylcUAE5nXX53Xs5WOlWnH6rMDpPaitBaMI=; b=afzLVkVJoyq6AUYKeW6ZLPVCdTcw+lE5qttPpQvOlgwPmX2S3lJk5Wej2IyMCLlKVm KD+XYrrkNbV//NS4sxnZixfxZxCpPEJBucwCA6F8LM6FxrvFJP9VybapzU5W1U+abOCc OtapvCKw/Vmes4sc2KHmTtslBEUPijGrxfv6wHO79FvcRpfLYO/Jp0msD22SSj2tXzsg DPaixyzvjZWX27Y+i4epJkkNvuGHwHS0aU2j0vICV4RwyYKoMj3n5gyFj9msckMn1jps 95kzfdy1LJ/2DX1FW0gYroIauhUkk0bNpZK5LRheJ18fmEqASDaL0GDaL8WOrSrh0G5A kaSQ== X-Received: by 10.52.18.148 with SMTP id w20mr8319162vdd.8.1362488025324; Tue, 05 Mar 2013 04:53: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.127.98 with SMTP id nf2csp109830veb; Tue, 5 Mar 2013 04:53:44 -0800 (PST) X-Received: by 10.68.63.194 with SMTP id i2mr38132053pbs.4.1362488023053; Tue, 05 Mar 2013 04:53:43 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id ib1si26983097pbc.313.2013.03.05.04.53.42; Tue, 05 Mar 2013 04:53:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of amarendra.xt@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of amarendra.xt@samsung.com designates 203.254.224.24 as permitted sender) smtp.mail=amarendra.xt@samsung.com Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ600L07UHC9C30@mailout1.samsung.com>; Tue, 05 Mar 2013 21:53:41 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F2.DD.17763.5DAE5315; Tue, 05 Mar 2013 21:53:41 +0900 (KST) X-AuditID: cbfee690-b7f6b6d000004563-a9-5135ead5d967 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 3C.31.03880.5DAE5315; Tue, 05 Mar 2013 21:53:41 +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 <0MJ600GDUUCXH840@mmp1.samsung.com>; Tue, 05 Mar 2013 21:53:41 +0900 (KST) From: Amar To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, afleming@gmail.com, jh80.chung@samsung.com Subject: [PATCH V7 02/10] EXYNOS5: FDT: Add DWMMC device node data Date: Tue, 05 Mar 2013 08:11:22 -0500 Message-id: <1362489090-7745-3-git-send-email-amarendra.xt@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1362489090-7745-1-git-send-email-amarendra.xt@samsung.com> References: <1362489090-7745-1-git-send-email-amarendra.xt@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFLMWRmVeSWpSXmKPExsWyRsSkWvfqK9NAg5PzRC0err/JYjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBlXGlfzFjwVbOiaVFAA+M/xS5GTg4JAROJ8w0vWCFs MYkL99azdTFycQgJLGWUePB2AxtM0bVl/YwQiUWMEsfuXmOFcHqZJCbPns3UxcjBwSagKvFr sT1Ig4iAhMSv/qtgDcwCHYwSOyZuZgRJCAs4SWyf2MIOYrMA1XefWQ8W5xVwl+hcMQvqDDmJ D3segdVwCnhILPq8kBnEFgKqudSziAVkqITAfTaJIw8WskEMEpD4NvkQC8gREgKyEpsOMEPM kZQ4uOIGywRG4QWMDKsYRVMLkguKk9KLTPSKE3OLS/PS9ZLzczcxAsPx9L9nE3Yw3jtgfYgx GWjcRGYp0eR8YDjnlcQbGpuYmxqbmhlZWlqakiasJM4rf0kmUEggPbEkNTs1tSC1KL6oNCe1 +BAjEwenVAOjztOF54O5pqYcE2bwP1qwxOrfioORM9pbDpZmpTgW/98rePPQmy+TdeuMe2bP PvaNXVgytdm8bfVO8zk6n8Lv/LdNueokluTGbrs055NV1nPHk6oKK78kSv5bxD8ph3GXYNv5 SR9XM3re4WZgenFg6falMw+/UH+d+2tW8/IPBl9U5eb/ZNutqMRSnJFoqMVcVJwIANYEcURd AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRmVeSWpSXmKPExsVy+t9jAd2rr0wDDWYs5bB4uP4mi8WUw19Y HJg87lzbwxbAGNXAaJORmpiSWqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+Ti E6DrlpkDNFtJoSwxpxQoFJBYXKykb4dpQmiIm64FTGOErm9IEFyPkQEaSFjDmHGlfTFjwVfN iqZFAQ2M/xS7GDk5JARMJK4t62eEsMUkLtxbz9bFyMUhJLCIUeLY3WusEE4vk8Tk2bOZuhg5 ONgEVCV+LbYHaRARkJD41X+VEaSGWaCDUWLHxM1gk4QFnCS2T2xhB7FZgOq7z6wHi/MKuEt0 rpjFCrFNTuLDnkdgNZwCHhKLPi9kBrGFgGou9SximcDIu4CRYRWjaGpBckFxUnqukV5xYm5x aV66XnJ+7iZGcLA/k97BuKrB4hCjAAejEg8vw1GTQCHWxLLiytxDjBIczEoivDufmgYK8aYk VlalFuXHF5XmpBYfYkwGumois5Rocj4wEvNK4g2NTcxNjU0tTSxMzCxJE1YS52U89SRASCA9 sSQ1OzW1ILUIZgsTB6dUA6PyTpurczvP/SkVUfvmvNpgc6ANt/j8TOP4/uKlOaGn9kopvTjJ YHHkk+i0K9Zyeflb0s7N95lgythx+EsM75OTe/flH11QZ33q6ttJoufaBUpvrs97sEf0WW7k Sb+1wnKLuE6uDlv2LOS63C+fu+rcm7+Jr3HdMe+O5KSayE/ctclZK6+pThJUYinOSDTUYi4q TgQAhRPI6roCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQl9EIprhc3+wbTLdD+KrQ45TgcKUqiXpEWWYPBJKwAh6Nf6ShU+krJN4ph4IJQRrC5vYJ7F 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 Acked-by: Jaehoon Chung Acked-by: Simon Glass --- Changes since 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 since V2: 1)Updation of commit message and resubmition of proper patch set. Changes since V3: No change. Changes since V4: 1)Updated the doc/device-tree-bindings/exynos/dwmmc.txt with more information regarding the property 'samsung,timing'. 2)Replaced the name 'dwmmc' with 'mmc'. Changes since V5: 1)Added the 'removable' flag to mmc device node. Changes since V6: No change. arch/arm/dts/exynos5250.dtsi | 31 ++++++++++++++++++ board/samsung/dts/exynos5250-smdk5250.dts | 24 ++++++++++++++ doc/device-tree-bindings/exynos/dwmmc.txt | 54 +++++++++++++++++++++++++++++++ 3 files changed, 109 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 ed8c8dd..6c08eb7 100644 --- a/arch/arm/dts/exynos5250.dtsi +++ b/arch/arm/dts/exynos5250.dtsi @@ -151,4 +151,35 @@ }; }; + mmc@12200000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,exynos5250-dwmmc"; + reg = <0x12200000 0x1000>; + interrupts = <0 75 0>; + }; + + mmc@12210000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,exynos5250-dwmmc"; + reg = <0x12210000 0x1000>; + interrupts = <0 76 0>; + }; + + mmc@12220000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "samsung,exynos5250-dwmmc"; + reg = <0x12220000 0x1000>; + interrupts = <0 77 0>; + }; + + mmc@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 cbfab6f..00c973a 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"; + mmc0 = "/mmc@12200000"; + mmc1 = "/mmc@12210000"; + mmc2 = "/mmc@12220000"; + mmc3 = "/mmc@12230000"; }; sromc@12250000 { @@ -66,4 +70,24 @@ compatible = "maxim,max77686_pmic"; }; }; + + mmc@12200000 { + samsung,bus-width = <8>; + samsung,timing = <1 3 3>; + samsung,removable = <0>; + }; + + mmc@12210000 { + status = "disabled"; + }; + + mmc@12220000 { + samsung,bus-width = <4>; + samsung,timing = <1 2 3>; + samsung,removable = <1>; + }; + + mmc@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..566da3b --- /dev/null +++ b/doc/device-tree-bindings/exynos/dwmmc.txt @@ -0,0 +1,54 @@ +* 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). + . Typically the bus width is 4 or 8. +- samsung,timing: The timing values to be written into the + Drv/sample clock selection register of corresponding channel. + . It is comprised of 3 values corresponding to the 3 fileds + 'SelClk_sample', 'SelClk_drv' and 'DIVRATIO' of CLKSEL register. + . SelClk_sample: Select sample clock among 8 shifted clocks. + . SelClk_drv: Select drv clock among 8 shifted clocks. + . DIVRATIO: Clock Divide ratio select. + . The above 3 values are used by the clock phase shifter. + +Example: + +mmc@12200000 { + samsung,bus-width = <8>; + samsung,timing = <1 3 3>; + samsung,removable = <1>; +} +In the above example, + . The bus width is 8 + . Timing is comprised of 3 values as explained below + 1 - SelClk_sample + 3 - SelClk_drv + 3 - DIVRATIO + . The 'removable' flag indicates whether the the particilar device + cannot be removed (always present) or it is a removable device. + 1 - Indicates that the device is removable. + 0 - Indicates that the device cannot be removed.