From patchwork Tue Jan 22 13:20:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10775489 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 2AB1E14E5 for ; Tue, 22 Jan 2019 13:21:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1161429066 for ; Tue, 22 Jan 2019 13:21:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3CA12A0DB; Tue, 22 Jan 2019 13:21:43 +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 861A029066 for ; Tue, 22 Jan 2019 13:21:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728460AbfAVNVn (ORCPT ); Tue, 22 Jan 2019 08:21:43 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34876 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728454AbfAVNVm (ORCPT ); Tue, 22 Jan 2019 08:21:42 -0500 Received: by mail-pl1-f195.google.com with SMTP id p8so11496537plo.2 for ; Tue, 22 Jan 2019 05:21:42 -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; bh=euK4ZIyk6B19PT813VSDOnPJkx4d5LHCeMqPJd1aM7s=; b=ifqNeXZWBx+cSJs+BkrC38f3XF88AhaIyImBMv0oNKRrpwVKoNXtInlwfbqYw0UebY +4EH3Ry0FtdIIDBbkAC/8XAds81tNArKoVFQLhRvfGLJLLno7l4BP+zpVtIQOvVYCxfd UeXzZ3Hewmv+k0WwxS+vGHQykIMx64UYi/3z4= 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; bh=euK4ZIyk6B19PT813VSDOnPJkx4d5LHCeMqPJd1aM7s=; b=KmXwxp95oQXv7peSBOA421SHRQM+xeE/gfU38YakvlEg/kMZHn5AiM87NGRmSyM1kg pyisCZHTQhKkSXVLwl/IgAWO8F5w8abYUKAp4rv2vwKdGh0NxnhygRZ5h7fRS9hP7k1v tsU6onRy++dnCoqF+Ayq3jQPC7lqqfHCtySiqAU1f6DBOZHPKVYEPi46pxFEA4RiBAEM P4PQZk0rbOjRe5Ux6UFfVYOcRH8JoeNNzXokEXV4uZ7kFJXtdsQYtnfbs5Q5BeMHJNFW IQZX4YfU3Ds4UKpUwSDUoeLUlwUvT1TTn+Ictyc18NMZ60zOeYyEyKDZdpEfO6LICI9l YegQ== X-Gm-Message-State: AJcUukd32gSna5RoZW1imOeTxQZcQCpTTCaL7diaG2ccL9tFYtqTveVN UTC0Q1p7Ne5g5f2hbVnblmxTRw== X-Google-Smtp-Source: ALg8bN7o9RYueCBe0lZNaR5aIq2epf1WyUYhHSDbVeRj+xDQpH350xWmTJItTx1o4/fQxRnAchpVDg== X-Received: by 2002:a17:902:583:: with SMTP id f3mr35085581plf.202.1548163302104; Tue, 22 Jan 2019 05:21:42 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id l185sm21609574pfl.54.2019.01.22.05.21.37 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Jan 2019 05:21:41 -0800 (PST) From: Baolin Wang To: vkoul@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: arnd@arndb.de, olof@lixom.net, orsonzhai@gmail.com, zhang.lyra@gmail.com, dan.j.williams@intel.com, devicetree@vger.kernel.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, eric.long@unisoc.com, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH 1/3] dt-bindings: dmaengine: Add one new cell to present hardware slave id Date: Tue, 22 Jan 2019 21:20:51 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The DMA engine clients can trigger DMA engine automatically by setting the corresponding hardware slave id for the DMA engine. Thus add one cell to present the hardware slave id for DMA clients. Signed-off-by: Baolin Wang Acked-by: Arnd Bergmann --- Documentation/devicetree/bindings/dma/sprd-dma.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/sprd-dma.txt b/Documentation/devicetree/bindings/dma/sprd-dma.txt index 7a10fea..7812cf0 100644 --- a/Documentation/devicetree/bindings/dma/sprd-dma.txt +++ b/Documentation/devicetree/bindings/dma/sprd-dma.txt @@ -6,8 +6,8 @@ Required properties: - compatible: Should be "sprd,sc9860-dma". - reg: Should contain DMA registers location and length. - interrupts: Should contain one interrupt shared by all channel. -- #dma-cells: must be <1>. Used to represent the number of integer - cells in the dmas property of client device. +- #dma-cells: must be <2>. Used to represent the channel id and slave id + of integer cells in the dmas property of client device. - #dma-channels : Number of DMA channels supported. Should be 32. - clock-names: Should contain the clock of the DMA controller. - clocks: Should contain a clock specifier for each entry in clock-names. @@ -28,14 +28,16 @@ apdma: dma-controller@20100000 { Client: DMA clients connected to the Spreadtrum DMA controller must use the format -described in the dma.txt file, using a two-cell specifier for each channel. -The two cells in order are: +described in the dma.txt file, using a three-cell specifier for each channel. +The three cells in order are: 1. A phandle pointing to the DMA controller. 2. The channel id. +3. The hardware slave id which is used for clients to trigger DMA engine +automatically. spi0: spi@70a00000{ ... dma-names = "rx_chn", "tx_chn"; - dmas = <&apdma 11>, <&apdma 12>; + dmas = <&apdma 11 11>, <&apdma 12 12>; ... };