From patchwork Tue May 5 14:06:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 6338471 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 223BF9F32B for ; Tue, 5 May 2015 14:06:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 97911202A1 for ; Tue, 5 May 2015 14:06:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC7FD20259 for ; Tue, 5 May 2015 14:06:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992983AbbEEOGg (ORCPT ); Tue, 5 May 2015 10:06:36 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:32984 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992900AbbEEOGf (ORCPT ); Tue, 5 May 2015 10:06:35 -0400 Received: by pdbnk13 with SMTP id nk13so197164177pdb.0 for ; Tue, 05 May 2015 07:06:35 -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; bh=gnWrhibGWhvGC56eI7DWiFowXNk4q2PC3qoVDOAmXSk=; b=Zd7NpjRNV2gjg6ocyv/a0F35FhvFpa+WZE2TJQdjStL6BS1DPGONOWzzyyYkYDl6wx Um33VOwxsGygdfFkVJ04E0iHPh0j9kW6f77VW2xDAH6aFPho+Z7Kv4AIjfBryYgzO6Ko IejE63WhaKfN9vuxZ7VfFKS6mgEfwlZMzP0IrqwmazU48kWNQgeYeg2n3TCAtvBCsNU7 hdrBU7bkPT0EsIJBjbp/sZ72cnb7sd+PxDubdb1GuOfGDTdRNF+fb0dfozTD3Fy1CNSt nAl1xhkKYiWAAsT+wP0WFlE9v3uYc/wq+ZbOJgZG6PEYyL45/F2F5RkTpF2HXeascNsr uUSQ== X-Gm-Message-State: ALoCoQk2USJy34gChyQvwTej1FdgYp2wd2mYIPyCKvaDD4DeaiE8cy2GpPe4DQDlIWqsWYcNtgFR X-Received: by 10.68.57.143 with SMTP id i15mr52462543pbq.9.1430834793937; Tue, 05 May 2015 07:06:33 -0700 (PDT) Received: from localhost.localdomain ([113.29.230.35]) by mx.google.com with ESMTPSA id j10sm16120440pdk.48.2015.05.05.07.06.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 May 2015 07:06:32 -0700 (PDT) From: Jun Nie To: vinod.koul@intel.com Cc: maxime.ripard@free-electrons.com, dmaengine@vger.kernel.org, shawn.guo@linaro.org, wan.zhijun@zte.com.cn, zte-lt@lists.linaro.org, Jun Nie Subject: [PATCH v6 1/2] Documentation: dma: Add documentation for ZTE DMA Date: Tue, 5 May 2015 22:06:07 +0800 Message-Id: <1430834768-27745-1-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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"; + }