From patchwork Fri Feb 1 21:01:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Porter X-Patchwork-Id: 2083121 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 963ECDF264 for ; Fri, 1 Feb 2013 21:01:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757596Ab3BAVAy (ORCPT ); Fri, 1 Feb 2013 16:00:54 -0500 Received: from mail-ia0-f171.google.com ([209.85.210.171]:50126 "EHLO mail-ia0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757551Ab3BAVAu (ORCPT ); Fri, 1 Feb 2013 16:00:50 -0500 Received: by mail-ia0-f171.google.com with SMTP id z13so5923864iaz.16 for ; Fri, 01 Feb 2013 13:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=Rya6TiO8XMRb5dr21W/kKPsrlD0jGfay48V/6CCOKOE=; b=o5t0+N5ZwcMF9Qqsh90LPaRXyAHOEXXmEtUc9Po5Wc1SOaFgmfG5r3LIOMc8mSbGzD xTZo4cwXAEVwhzD17KYtxZ7IE1s7vyMWGukYetftBNG4jz+qgM2Af3i0xiEl8sCzsv7J vzU1nw3RffAJsBppcCkdgbicK22/5Ah7Vp5TJCrX+E41jIPJLW0dJ6YG6ChxVJkKqgkX dY52X5z0DWxOCBfmQwxgaSw2EuXHWzm6iCs0SOofq3LlDoi8bIns0QoJoIa1bXPqSBpG 4rNQeZ59Y8L0jLXvipep0T469tomicPAMOfpDadAMX404cgGlvNPUqB7gsJDq3FP2X0r 6kxg== X-Received: by 10.50.153.169 with SMTP id vh9mr20426igb.68.1359752449700; Fri, 01 Feb 2013 13:00:49 -0800 (PST) Received: from beef.ohporter.com (cpe-24-166-64-7.neo.res.rr.com. [24.166.64.7]) by mx.google.com with ESMTPS id eg7sm3728002igc.7.2013.02.01.13.00.48 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Feb 2013 13:00:49 -0800 (PST) From: Matt Porter To: Venkatraman S , Chris Ball , Grant Likely , Rob Herring Cc: Vinod Koul , Tony Lindgren , Devicetree Discuss , Linux OMAP List , Linux Kernel Mailing List , Linux MMC List , Arnd Bergmann , Dan Williams , Jon Hunter , Santosh Shilimkar Subject: [PATCH 3/3] mmc: omap_hsmmc: add generic DMA request support to the DT binding Date: Fri, 1 Feb 2013 16:01:19 -0500 Message-Id: <1359752479-29427-4-git-send-email-mporter@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1359752479-29427-1-git-send-email-mporter@ti.com> References: <1359752479-29427-1-git-send-email-mporter@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The binding definition is based on the generic DMA request binding. Signed-off-by: Matt Porter Acked-by: Tony Lindgren Acked-by: Santosh Shilimkar --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 26 +++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt b/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt index ed271fc..8c8908a 100644 --- a/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt +++ b/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt @@ -20,8 +20,29 @@ ti,dual-volt: boolean, supports dual voltage cards ti,non-removable: non-removable slot (like eMMC) ti,needs-special-reset: Requires a special softreset sequence ti,needs-special-hs-handling: HSMMC IP needs special setting for handling High Speed +dmas: List of DMA specifiers with the controller specific format +as described in the generic DMA client binding. A tx and rx +specifier is required. +dma-names: List of DMA request names. These strings correspond +1:1 with the DMA specifiers listed in dmas. The string naming is +to be "rx" and "tx" for RX and TX DMA requests, respectively. + +Examples: + +[hwmod populated DMA resources] + + mmc1: mmc@0x4809c000 { + compatible = "ti,omap4-hsmmc"; + reg = <0x4809c000 0x400>; + ti,hwmods = "mmc1"; + ti,dual-volt; + bus-width = <4>; + vmmc-supply = <&vmmc>; /* phandle to regulator node */ + ti,non-removable; + }; + +[generic DMA request binding] -Example: mmc1: mmc@0x4809c000 { compatible = "ti,omap4-hsmmc"; reg = <0x4809c000 0x400>; @@ -30,4 +51,7 @@ Example: bus-width = <4>; vmmc-supply = <&vmmc>; /* phandle to regulator node */ ti,non-removable; + dmas = <&edma 24 + &edma 25>; + dma-names = "tx", "rx"; };