From patchwork Mon Nov 5 03:16:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 10667383 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CD8BD175A for ; Mon, 5 Nov 2018 03:17:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB494292E8 for ; Mon, 5 Nov 2018 03:17:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC9EB295EF; Mon, 5 Nov 2018 03:17:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AD97292E8 for ; Mon, 5 Nov 2018 03:17:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729193AbeKEMek (ORCPT ); Mon, 5 Nov 2018 07:34:40 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41611 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728283AbeKEMej (ORCPT ); Mon, 5 Nov 2018 07:34:39 -0500 Received: by mail-pg1-f196.google.com with SMTP id k13so3531247pga.8 for ; Sun, 04 Nov 2018 19:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MHt2HL1hPxLUZSU8tjk/yq874I7NV4UEGg3K2dqYbuQ=; b=juK4sSuciGH3p7UyCKmk/sHoO1J/IiWYZbwQfBYDWg/eZVH3viQ6O6QnMJ3R+jKcpG vH4ZqO4q0mrMlhqiDAy1JaLbeC9AISX9kQAjKe/pp7WB/CaqQCgS6PngvtcOYLNWLacp QVEUg2kzbiRD/QSTdF8bSFtvq/AGe16kdLzuU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MHt2HL1hPxLUZSU8tjk/yq874I7NV4UEGg3K2dqYbuQ=; b=p5bEmWM3GdlAd2BkOo1HOi1CrHWe76r8tf7e0vu5X18asS6+cikvKZqStxEVleqPrh p0EeusfjM+BbIfwBlo4DoZsRwsi94PKLQugvnYScaaQkFMnhLhc0X0LwWdZzVIigLgJu 9Hk1U2igpoMPhHO6jt0yRp6tUlLOHlkUVM1kZM1aIQmz5Gzo0tJ2GFyDaHsiOMHlN12q bsVJ1dZAGJzWDuTRjieATd7EX28FDEX5qg82IujFMZcHSHd+LUX2NtxwabyXP+rYQxAz bCdbrGHYt4I+aofoFyRb3vYv+z3ygu0rOyvLGRSjuVMdwWEuEIOR8PxyMWZ3dfaKm44f D35A== X-Gm-Message-State: AGRZ1gKAmc0R46jVYdNyATmTBd6zcU8XkngrjN/Sk7ZdfXD30dnBZaKR tZPjFxdpbHx+7VMnKTMKG+/loQ== X-Google-Smtp-Source: AJdET5dlRsdvkPkjUWj6YEWtrhlqOU6vbQaVvURWfABWwImtHKSrnG9Ub3j//hH5sX+bNj/g6ZYjaw== X-Received: by 2002:a65:610e:: with SMTP id z14-v6mr18683200pgu.138.1541387831678; Sun, 04 Nov 2018 19:17:11 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id f10-v6sm40182773pgp.72.2018.11.04.19.17.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Nov 2018 19:17:10 -0800 (PST) From: Chunyan Zhang To: Ulf Hansson , Adrian Hunter Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Mark Brown , Kishon Vijay Abraham I , Sekhar Nori , Chunyan Zhang Subject: [PATCH RFC 3/3] dt-bindings: sdhci-omap: Add example for using dmaengine Date: Mon, 5 Nov 2018 11:16:50 +0800 Message-Id: <1541387810-24867-4-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1541387810-24867-1-git-send-email-zhang.chunyan@linaro.org> References: <1541387810-24867-1-git-send-email-zhang.chunyan@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP sdhci-omap can support both external dma controllers via dmaengine framework as well as ADMA in which the controller acts as DMA master. Signed-off-by: Chunyan Zhang --- Documentation/devicetree/bindings/mmc/sdhci-omap.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-omap.txt b/Documentation/devicetree/bindings/mmc/sdhci-omap.txt index 393848c..c73fd47 100644 --- a/Documentation/devicetree/bindings/mmc/sdhci-omap.txt +++ b/Documentation/devicetree/bindings/mmc/sdhci-omap.txt @@ -12,6 +12,11 @@ Required properties: "ddr_1_8v-rev11", "ddr_1_8v" or "ddr_3_3v", "hs200_1_8v-rev11", "hs200_1_8v", - pinctrl- : Pinctrl states as described in bindings/pinctrl/pinctrl-bindings.txt +- 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. Example: mmc1: mmc@4809c000 { @@ -20,4 +25,6 @@ Example: ti,hwmods = "mmc1"; bus-width = <4>; vmmc-supply = <&vmmc>; /* phandle to regulator node */ + dmas = <&sdma 61 &sdma 62>; + dma-names = "tx", "rx"; };