From patchwork Fri Jan 4 09:34:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amar X-Patchwork-Id: 13791 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 4B1A823EDC for ; Fri, 4 Jan 2013 09:12:13 +0000 (UTC) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by fiordland.canonical.com (Postfix) with ESMTP id D79E1A19059 for ; Fri, 4 Jan 2013 09:12:12 +0000 (UTC) Received: by mail-vb0-f53.google.com with SMTP id b23so15934643vbz.26 for ; Fri, 04 Jan 2013 01:12:12 -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=yVfghCZYxbsEliVkQ7izhwWVXrRqX3d3YVL+7eqJcws=; b=KABepKXDQm85l31heA8qum1MA9USUTWN2v1iKCamrg8KgqUDRY+phmGRpIOM3cpb9g /jkfpLhMqI7vSnv9xXi4g2Vy03bBJ5si2TPl+JwrZx8ggl3QteQAWjJM1x63yHdJuzZG Zh7LWazhT9LjfoOFvJuqSElGYhzsLzL3V8daXAa2X+yC76SQrpsTIuGbUxrMZNY3VjgG exZNVKciSQDH7Cm0UEbm/ur0seioVTnmqaEHeOTY8JW4IrAFpxxnm4nPaHr8TB6xGWpC c5kG+4kDIvYtL1PRVLpI5jPS/aaISpD30CL+y7Wf8m8wyUhEEiueDmZhdlqqxtfJ8qMO cr9w== X-Received: by 10.52.176.6 with SMTP id ce6mr66525335vdc.57.1357290732338; Fri, 04 Jan 2013 01:12:12 -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 st5csp128037veb; Fri, 4 Jan 2013 01:12:11 -0800 (PST) X-Received: by 10.68.238.165 with SMTP id vl5mr162226798pbc.0.1357290729073; Fri, 04 Jan 2013 01:12:09 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id d7si50348399paw.298.2013.01.04.01.12.08; Fri, 04 Jan 2013 01:12:09 -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 epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MG300AEHG7XGLC0@mailout1.samsung.com>; Fri, 04 Jan 2013 18:12:07 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 97.50.01231.7EC96E05; Fri, 04 Jan 2013 18:12:07 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-c1-50e69ce77ac7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 27.50.01231.7EC96E05; Fri, 04 Jan 2013 18:12:07 +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 <0MG30081AG7XXLA0@mmp1.samsung.com>; Fri, 04 Jan 2013 18:12: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 Subject: [PATCH V4 2/9] EXYNOS5: FDT: Add DWMMC device node data Date: Fri, 04 Jan 2013 04:34:03 -0500 Message-id: <1357292050-12137-3-git-send-email-amarendra.xt@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1357292050-12137-1-git-send-email-amarendra.xt@samsung.com> References: <1357292050-12137-1-git-send-email-amarendra.xt@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLLMWRmVeSWpSXmKPExsWyRsSkWvf5nGcBBn8nqFk8XH+TxWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DKmHv4ElNBh0LFmfeH2BsYp0h1MXJySAiYSDzo/sUO YYtJXLi3nq2LkYtDSGApo8TqzWuZYIpO9DUzQSQWMUrM+nOUBcLpZZKYeOUBUIaDg01AVeLX YnuQBhEBA4npT7azgoSZBQoknu0WAwkLCzhI7H/ezQISZgGqXnGWAyTMK+Ah0fvhMjPEKjmJ D3sesYOUcAp4Smy6IgJiCgGVXD1UAlLBIiAg8W3yIbAhEgKyEpsOMIOcIiFwnU2i/fJkqIMl JQ6uuMEygVF4ASPDKkbR1ILkguKk9FxDveLE3OLSvHS95PzcTYzAMDz975nUDsaVDRaHGAU4 GJV4eC3vPA0QYk0sK67MPcQowcGsJML7WftZgBBvSmJlVWpRfnxRaU5q8SFGH6BLJjJLiSbn A2MkryTe0NjE3NTY1NLIyMzUFIewkjgv46knAUIC6YklqdmpqQWpRTDjmDg4pRoYK5+p3WcU ES5Z9dGWQcXb4IvP3bw7qxbW3S7e5x9WseGG2dQ8bnOmbxtLo25GLL8pXPpJw++cmqa/V0Pr tpYZfqtve3xvWLFYwNbhzT6WIx8t0mx3GZbpFV5b0nRJW/OFSuy5aac2RT3/tKlU4s7We4+F 7wpEZf2pPTdjdnXNzNdJJxvu7vDersRSnJFoqMVcVJwIAJ6stxhwAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42I5/e+xgO7zOc8CDJ6skrR4uP4mi8WUw19Y HJg87lzbwxbAGNXAaJORmpiSWqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+Ti E6DrlpkDNFtJoSwxpxQoFJBYXKykb4dpQmiIm64FTGOErm9IEFyPkQEaSFjDmDH38CWmgg6F ijPvD7E3ME6R6mLk5JAQMJE40dfMBGGLSVy4t56ti5GLQ0hgEaPErD9HWSCcXiaJiVceAFVx cLAJqEr8WmwP0iAiYCAx/cl2VpAws0CBxLPdYiBhYQEHif3Pu1lAwixA1SvOcoCEeQU8JHo/ XGaGWCUn8WHPI3aQEk4BT4lNV0RATCGgkquHSiYw8i5gZFjFKJpakFxQnJSea6hXnJhbXJqX rpecn7uJERzkz6R2MK5ssDjEKMDBqMTDa3nnaYAQa2JZcWXuIUYJDmYlEd7P2s8ChHhTEiur Uovy44tKc1KLDzH6AJ00kVlKNDkfGIF5JfGGxibmpsamliYWJmaWOISVxHkZTz0JEBJITyxJ zU5NLUgtghnHxMEp1cBYwxBbHRB7f1LGcbFcSQ+W9/feWZu08815t8sqvY/vkdU8jvCHRUfP LRY32mq8c/OD5DqBj8K63hsab7XOCI6yc99umZddcottu8TxpDMx5YZ3wx11dGrCax0uH3Kc tf+iUSNbQ36WfM0qBXaGw1PfvhY0e9rJ19v81TbJg9dD6XPshrv/25RYijMSDbWYi4oTAQt8 mN6fAgAA X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQlFdOs+Qxh5r4ce1C3XGJ+oU7QG+7iOZfrWP3W/sm30k7ZMeCgkt2B6bO1t6HSNf/C1kQCM 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. Changes from V3: No change. 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.