From patchwork Mon Jan 21 11:43:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amar X-Patchwork-Id: 14135 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 7CA5023E02 for ; Mon, 21 Jan 2013 11:25:11 +0000 (UTC) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by fiordland.canonical.com (Postfix) with ESMTP id 10E5AA18A24 for ; Mon, 21 Jan 2013 11:25:10 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id c13so200055vea.19 for ; Mon, 21 Jan 2013 03:25:10 -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=LWRQpJBhQH/j+mHyk5B8jp+uS+Ri00Y9NCz9oUUxiMs=; b=nq0H348uLx6R+Sq3XJ0eoNIZdblKlbSzZdw+2WxNC0raeQ+6xCCBwtMkvAtkpbZF/X kZ6vvbm2vo0VGvQRXpkVAdIsdJJARRMriKXoOu7lSWqYmNvQ+9iIc4ofBI1/sL3lb/va KB2Prke2e9RRkz1/VNiRJJc9XCiKu4VX2395yLM8iZYnzzpG+jpSEA3q+Z5SH7fjYRMX bjj001Us3njHHOdW9NRxJFVrr1FqF6XnDf87V2HWdq9HscHnbuCKiZ7XWcz9A0f5EWju q9FGW2SYFxzJyMgUFeMi5CemhPvEKntAXCEod/wqwJ8x5rHWy45Z8G3yKzKVc+2YW5Sy yJJg== X-Received: by 10.220.218.197 with SMTP id hr5mr18659924vcb.8.1358767510435; Mon, 21 Jan 2013 03:25:10 -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.145.101 with SMTP id st5csp196354veb; Mon, 21 Jan 2013 03:25:09 -0800 (PST) X-Received: by 10.68.252.100 with SMTP id zr4mr28694261pbc.103.1358767509090; Mon, 21 Jan 2013 03:25:09 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id n8si13761170paw.233.2013.01.21.03.25.08; Mon, 21 Jan 2013 03:25:09 -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 <0MGZ00M0V3PVY7J0@mailout2.samsung.com>; Mon, 21 Jan 2013 20:25:07 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 43.B2.03918.3952DF05; Mon, 21 Jan 2013 20:25:07 +0900 (KST) X-AuditID: cbfee61a-b7f7d6d000000f4e-17-50fd25937d23 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 72.B2.03918.3952DF05; Mon, 21 Jan 2013 20:25:07 +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 <0MGZ0092C3L1A540@mmp2.samsung.com>; Mon, 21 Jan 2013 20:25:07 +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, hs@denx.de Subject: [PATCH V5 02/10] EXYNOS5: FDT: Add DWMMC device node data Date: Mon, 21 Jan 2013 06:43:50 -0500 Message-id: <1358768638-14187-3-git-send-email-amarendra.xt@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1358768638-14187-1-git-send-email-amarendra.xt@samsung.com> References: <1358768638-14187-1-git-send-email-amarendra.xt@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsWyRsSkTney6t8Ag9+7dC0err/JYjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBl/Ni8n6lgpVrF+Y/HWRoYb8l1MXJySAiYSJw8uIYd whaTuHBvPVsXIxeHkMBSRonDV/sYYYo2n3zHCJGYzijx494PFginl0li+8ZdzF2MHBxsAqoS vxbbgzSICBhITH+ynRXEZhaokZg8/xYTiC0s4CQx9+sasDgLUPmCaxvYQVp5BTwkbq5Mg9gl J/FhzyOwgzgFPCX2/90DVi4EVLJrwX9WkLUSAvfZJC7u+skOMUdA4tvkQywgcyQEZCU2HWCG mCMpcXDFDZYJjMILGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgQG4+l/z6R2MK5ssDjE KMDBqMTDmzH1T4AQa2JZcWXuIUYJDmYlEd6fM4BCvCmJlVWpRfnxRaU5qcWHGJOBlk9klhJN zgdGSl5JvKGxibmpsamlkZGZqSlpwkrivIynngQICaQnlqRmp6YWpBbBbGHi4JRqYGTWKOkr ObTjKfsuw1tGR5o/djUoThD7wLV3+bIM1chLPsKvLR6uaJ0rsy58vsxL5hkbyicW33RlmzTR WVv5rpX15gczd+5YO3nlkjs1d38u8VfsiebS/Sxze9abqZPYtsZ6FmznZXfkbO/PKatXPCp1 90X4RYdXndI3fjXlG7K0v3HUk1ypukKJpTgj0VCLuag4EQDaMZiMigIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGIsWRmVeSWpSXmKPExsVy+t9jQd3Jqn8DDNZ0SVk8XH+TxWLK4S8s Dkwed67tYQtgjGpgtMlITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLx CdB1y8wBmq2kUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxhzPixeT9TwUq1 ivMfj7M0MN6S62Lk5JAQMJHYfPIdI4QtJnHh3nq2LkYuDiGB6YwSP+79YIFwepkktm/cxdzF yMHBJqAq8WuxPUiDiICBxPQn21lBbGaBGonJ828xgdjCAk4Sc7+uAYuzAJUvuLaBHaSVV8BD 4ubKNIhdchIf9jxiB7E5BTwl9v/dA1YuBFSya8F/1gmMvAsYGVYxiqYWJBcUJ6XnGuoVJ+YW l+al6yXn525iBIf6M6kdjCsbLA4xCnAwKvHwZkz9EyDEmlhWXJl7iFGCg1lJhPfnDKAQb0pi ZVVqUX58UWlOavEhxmSgoyYyS4km5wPjMK8k3tDYxNzU2NTSxMLEzJI0YSVxXsZTTwKEBNIT S1KzU1MLUotgtjBxcEo1MM76HXQweqFzQdK1nw5ZF298aJga2jehyLBPPcD716l98vdmXl22 JDbGp3XupEjvinO1U5kttm/ZZrm7bevR7wmtwQGntJhDf0X2KmuKfdppvDX+8O4tiywv7d1r Wp7CmvUqa1H83KSA1vdGLozMCy4ztcU8/XYtvOpRH2u0xetbh7JueC+/y6/EUpyRaKjFXFSc CAAwFY4puQIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQkyXtXVypFdMPCV/k9SeBQ3B3Z4lGKlqYNY4YwUE6+F4DdLvMLK08lSSd9fmStrS5C1nDgP 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'. arch/arm/dts/exynos5250.dtsi | 31 +++++++++++++++++++ board/samsung/dts/exynos5250-smdk5250.dts | 22 ++++++++++++++ doc/device-tree-bindings/exynos/dwmmc.txt | 49 +++++++++++++++++++++++++++++++ 3 files changed, 102 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..1d3e42b 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,22 @@ compatible = "maxim,max77686_pmic"; }; }; + + mmc@12200000 { + samsung,bus-width = <8>; + samsung,timing = <1 3 3>; + }; + + mmc@12210000 { + status = "disabled"; + }; + + mmc@12220000 { + samsung,bus-width = <4>; + samsung,timing = <1 2 3>; + }; + + 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..0054ace --- /dev/null +++ b/doc/device-tree-bindings/exynos/dwmmc.txt @@ -0,0 +1,49 @@ +* 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>; +} +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