From patchwork Mon Jul 13 03:37:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 6773761 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8E7CFC05AC for ; Mon, 13 Jul 2015 03:37:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC11B206B0 for ; Mon, 13 Jul 2015 03:37:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8DFAE205E6 for ; Mon, 13 Jul 2015 03:37:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751608AbbGMDhu (ORCPT ); Sun, 12 Jul 2015 23:37:50 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:35932 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432AbbGMDht (ORCPT ); Sun, 12 Jul 2015 23:37:49 -0400 Received: by pdjr16 with SMTP id r16so54962526pdj.3 for ; Sun, 12 Jul 2015 20:37:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gnWrhibGWhvGC56eI7DWiFowXNk4q2PC3qoVDOAmXSk=; b=KgQcMxaN93lIK+C6m7EZJb2tEIBCGPkI1qcqe8/uHUuel7IxaL3co5u+5U8YDqGwLv W2yW4FVY2anAT+ChZCVbzNjvvy+8cvSX+eNEhtP2gjeJuhc0HDhBTXI22OuMF8oklzvV dwVzLSlwYn1ATbbDiUBp7nzwqobDsS9j8RQjJXInqc53F7hnOtwmFOcZsY3tPfT36laj C8KSdjfzryJklHjcDljDBYNkR/6EYcxjEiyypblrKmAqbUYqi73ijCab7xTOweSxbFbi CZbnthnpelzAU/LGbAe/iCIXZN/Xfy4V7vBPLqHkLePxFxOtrUqS4ySuhOHjB65Wxle6 eqgQ== X-Gm-Message-State: ALoCoQkjFTsjPW9iiJi8vzfSHpvVukD0iV/ALPUeUM2rSY9c6MVR0+us4VgkITIwxRhv2Stvl3In X-Received: by 10.70.49.73 with SMTP id s9mr64419628pdn.149.1436758669521; Sun, 12 Jul 2015 20:37:49 -0700 (PDT) Received: from localhost.localdomain ([107.6.117.178]) by smtp.gmail.com with ESMTPSA id vz2sm16597312pbc.71.2015.07.12.20.37.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Jul 2015 20:37:48 -0700 (PDT) From: Jun Nie To: maxime.ripard@free-electrons.com, vinod.koul@intel.com, dmaengine@vger.kernel.org Cc: shawn.guo@linaro.org, wan.zhijun@zte.com.cn, Jun Nie Subject: [PATCH v7 1/3] Documentation: dma: Add documentation for ZTE DMA Date: Mon, 13 Jul 2015 11:37:25 +0800 Message-Id: <1436758647-28796-2-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436758647-28796-1-git-send-email-jun.nie@linaro.org> References: <1436758647-28796-1-git-send-email-jun.nie@linaro.org> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds documentation for the ZTE ZX296702 SoC DMA device DTS binding. Signed-off-by: Jun Nie --- Documentation/devicetree/bindings/dma/zxdma.txt | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/zxdma.txt diff --git a/Documentation/devicetree/bindings/dma/zxdma.txt b/Documentation/devicetree/bindings/dma/zxdma.txt new file mode 100644 index 0000000..3207ceb --- /dev/null +++ b/Documentation/devicetree/bindings/dma/zxdma.txt @@ -0,0 +1,38 @@ +* ZTE ZX296702 DMA controller + +Required properties: +- compatible: Should be "zte,zx296702-dma" +- reg: Should contain DMA registers location and length. +- interrupts: Should contain one interrupt shared by all channel +- #dma-cells: see dma.txt, should be 1, para number +- dma-channels: physical channels supported +- dma-requests: virtual channels supported, each virtual channel + have specific request line +- clocks: clock required + +Example: + +Controller: + dma: dma-controller@0x09c00000{ + compatible = "zte,zx296702-dma"; + reg = <0x09c00000 0x1000>; + clocks = <&topclk ZX296702_DMA_ACLK>; + interrupts = ; + #dma-cells = <1>; + dma-channels = <24>; + dma-requests = <24>; + }; + +Client: +Use specific request line passing from dmax +For example, spdif0 tx channel request line is 4 + spdif0: spdif0@0b004000 { + #sound-dai-cells = <0>; + compatible = "zte,zx296702-spdif"; + reg = <0x0b004000 0x1000>; + clocks = <&lsp0clk ZX296702_SPDIF0_DIV>; + clock-names = "tx"; + interrupts = ; + dmas = <&dma 4>; + dma-names = "tx"; + }