From patchwork Thu Nov 13 20:58:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bresticker X-Patchwork-Id: 5300721 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 50E349F2ED for ; Thu, 13 Nov 2014 20:58:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 688D3201F4 for ; Thu, 13 Nov 2014 20:58:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8CB4E201C0 for ; Thu, 13 Nov 2014 20:58:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934157AbaKMU6l (ORCPT ); Thu, 13 Nov 2014 15:58:41 -0500 Received: from mail-pa0-f74.google.com ([209.85.220.74]:57685 "EHLO mail-pa0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933988AbaKMU6O (ORCPT ); Thu, 13 Nov 2014 15:58:14 -0500 Received: by mail-pa0-f74.google.com with SMTP id kx10so2454269pab.5 for ; Thu, 13 Nov 2014 12:58:13 -0800 (PST) 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=6wvImsTrL/aSQ2pMflROjIHZ7bbjq4uI1OJh76y2s3o=; b=JQWdSr4wKI25CIzFdxYSRyNXfu2JGapX3LkFIKiAAY2ygDx4W/PTtdum02YuuqPrUe m3n0z3a8qPMyZTWVVRYgcasMJ3d1afXJH5YiKODrVMXFWRdRYmaVPuCGDftwSooVw/4o jMtVkRJ/yP+NlK9aG76q7J8Ko0/kA1JZ19mEPucwfPjOyu6QpssWI89p5TLNVyZstgJm rSBC1F5ioT3c5s+BNr5xXlKLY6GPAon3snk+J1l94xATmNGDDy66F91M0x3pjGYUVtuW PQ1Xq9Jd3RcO1p+oteEraxKKtFIq3HJefJptEGmfAVbg149wjVGLZ7QdREG6tkPRELrK LaHg== X-Gm-Message-State: ALoCoQkxNsAP9i1yP/G12/HBlWtDYbqm26sZNhWBqGJMGfTCIsLVHQ+zOfbjGGKFgYIVA86FkLHQ X-Received: by 10.68.125.134 with SMTP id mq6mr13008036pbb.7.1415912293593; Thu, 13 Nov 2014 12:58:13 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id t24si490657yht.2.2014.11.13.12.58.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Nov 2014 12:58:13 -0800 (PST) Received: from abrestic.mtv.corp.google.com ([172.22.65.70]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id i6Wrjyn1.1; Thu, 13 Nov 2014 12:58:13 -0800 Received: by abrestic.mtv.corp.google.com (Postfix, from userid 137652) id 08D062205C1; Thu, 13 Nov 2014 12:58:12 -0800 (PST) From: Andrew Bresticker To: Vinod Koul , Dan Williams Cc: Andrew Bresticker , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , James Hartley , James Hogan , Ezequiel Garcia , Damien Horsley , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dmaengine: Add binding document for IMG MDC Date: Thu, 13 Nov 2014 12:58:07 -0800 Message-Id: <1415912288-26926-2-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1415912288-26926-1-git-send-email-abrestic@chromium.org> References: <1415912288-26926-1-git-send-email-abrestic@chromium.org> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Add a binding document for the IMG Multi-threaded DMA Controller (MDC) present on the MIPS-based Pistachio and other IMG SoCs. Signed-off-by: Andrew Bresticker --- .../devicetree/bindings/dma/img-mdc-dma.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/img-mdc-dma.txt diff --git a/Documentation/devicetree/bindings/dma/img-mdc-dma.txt b/Documentation/devicetree/bindings/dma/img-mdc-dma.txt new file mode 100644 index 0000000..28c1341 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/img-mdc-dma.txt @@ -0,0 +1,57 @@ +* IMG Multi-threaded DMA Controller (MDC) + +Required properties: +- compatible: Must be "img,pistachio-mdc-dma". +- reg: Must contain the base address and length of the MDC registers. +- interrupts: Must contain all the per-channel DMA interrupts. +- clocks: Must contain an entry for each entry in clock-names. + See ../clock/clock-bindings.txt for details. +- clock-names: Must include the following entries: + - sys: MDC system interface clock. +- img,cr-periph: Must contain a phandle to the peripheral control syscon + node which contains the DMA request to channel mapping registers. +- img,max-burst-multiplier: Must be the maximum supported burst size multiplier. + The maximum burst size is this value multiplied by the hardware-reported bus + width. +- #dma-cells: Must be 3: + - The first cell is the peripheral's DMA request line. + - The second cell is a bitmap specifying to which channels the DMA request + line may be mapped (i.e. bit N set indicates channel N is usable). + - The third cell is the thread ID to be used by the channel. + +Optional properties: +- dma-channels: Number of supported DMA channels, up to 32. If not specified + the number reported by the hardware is used. + +Example: + +mdc: dma-controller@18143000 { + compatible = "img,pistachio-mdc-dma"; + reg = <0x18143000 0x1000>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + clocks = <&system_clk>; + clock-names = "sys"; + + img,max-burst-multiplier = <16>; + img,cr-periph = <&cr_periph>; + + #dma-cells = <3>; +}; + +spi@18100f00 { + ... + dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>; + dma-names = "tx", "rx"; + ... +};