From patchwork Tue Jan 17 14:20:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9521149 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1CCD26020A for ; Tue, 17 Jan 2017 14:20:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D87C28570 for ; Tue, 17 Jan 2017 14:20:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 024AD28572; Tue, 17 Jan 2017 14:20:28 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable 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 9FC1128570 for ; Tue, 17 Jan 2017 14:20:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751240AbdAQOU0 (ORCPT ); Tue, 17 Jan 2017 09:20:26 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:34144 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdAQOUY (ORCPT ); Tue, 17 Jan 2017 09:20:24 -0500 Received: by mail-wm0-f54.google.com with SMTP id f73so39364117wmf.1 for ; Tue, 17 Jan 2017 06:20:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i6rE//RXFh3MENaJmQQkBvOuWYh2rJxb1PX+oKl4NGQ=; b=NUqy7nzJOpMVVRipfOF5wVosQDlL8OArk17NFHMOmxGrehgbyXdRfzPbCHX+kcdt/P 04DpbmWqtueDBzSGkx4nHmwJlSUKEM2PhqjDpQqgmBklv9rdc46JpRnvqCGpb0ca96Is YE/LXxmngadYtS6/hErRpS3mmXwLrATiNwBCdItROTAHLon98RauViCn9/4eTh+a56Nz HpKhVxoMuk719BC7pbVAriuoU+PEJnirlHCx0aohF5zZXZNh0MOGwjVo8peU2gmpUPIA u5f5y9Z//OzpEP3AT1/cmskzIAaU0K0yNM25KnDAefcRrBkoKu0dViqEHUcvCtgRRk0B jEcw== 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:mime-version:content-transfer-encoding; bh=i6rE//RXFh3MENaJmQQkBvOuWYh2rJxb1PX+oKl4NGQ=; b=kF+SeibsIWwHY5NHH8E57yputgST2ATrMm/hLxHIrOxrT1l01Sp1WIWFt/khZHZkef QqI1IrKYNXmUlvW7+9Dy0MrsLhyIVvJW6DtZhvt8QxPHkahK6yoT+wDN+Il1rCJw4Nds 4cNfCt2kczNqSHsI/qGZgl3u9gx+KSwExzBX2IEx39MI9z43X/3LdLYgMcRLPCTEOExF pfrlhLYCIMTJ+ZMCiYIWRV0/deqb6uAGRHNv18ft/IhX01LHKHpFZ5mg8j/Ocs4Yt44U 8N16y+hX4/jjdAuiYlyWZ1iqDZl9iKb/RSr/sVfIdKy2uae3bP+3cSnj56ucXxtV7s+v EoBQ== X-Gm-Message-State: AIkVDXJ5NKpOAFSJ3ZSdL81zeW4UD7Bx0HPWz2WmWRA38GQ14+plwwUsbFNYPxkJGuN6cIFr X-Received: by 10.28.173.74 with SMTP id w71mr15567778wme.14.1484662823396; Tue, 17 Jan 2017 06:20:23 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id o132sm37203079wmo.17.2017.01.17.06.20.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jan 2017 06:20:22 -0800 (PST) From: Alexandre Bailon To: vinod.koul@intel.com, robh+dt@kernel.org Cc: dmaengine@vger.kernel.org, nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, b-liu@ti.com, sergei.shtylyov@cogentembedded.com, devicetree@vger.kernel.org, Alexandre Bailon Subject: [PATCH v2 1/3] dt/bindings: da8xx-usb: Add binding for the CPPI 4.1 DMA controller Date: Tue, 17 Jan 2017 15:20:14 +0100 Message-Id: <20170117142016.11163-2-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170117142016.11163-1-abailon@baylibre.com> References: <20170117142016.11163-1-abailon@baylibre.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx cppi41 dma controller. Signed-off-by: Alexandre Bailon --- .../devicetree/bindings/usb/da8xx-usb.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/da8xx-usb.txt b/Documentation/devicetree/bindings/usb/da8xx-usb.txt index ccb844a..aed3169 100644 --- a/Documentation/devicetree/bindings/usb/da8xx-usb.txt +++ b/Documentation/devicetree/bindings/usb/da8xx-usb.txt @@ -18,10 +18,26 @@ Required properties: - phy-names: Should be "usb-phy" + - dmas: specifies the dma channels + + - dma-names: specifies the names of the channels. Use "rxN" for receive + and "txN" for transmit endpoints. N specifies the endpoint number. + Optional properties: ~~~~~~~~~~~~~~~~~~~~ - vbus-supply: Phandle to a regulator providing the USB bus power. +DMA +~~~ +- compatible: ti,da8xx-cppi41 +- reg: offset and length of the following register spaces: CPPI DMA Controller, + CPPI DMA Scheduler, Queue Manager +- reg-names: "controller", "scheduler", "queuemgr" +- #dma-cells: should be set to 2. The first number represents the + channel number (0 … 3 for endpoints 1 … 4). + The second number is 0 for RX and 1 for TX transfers. +- #dma-channels: should be set to 4 representing the 4 endpoints. + Example: usb_phy: usb-phy { compatible = "ti,da830-usb-phy"; @@ -31,6 +47,9 @@ Example: usb0: usb@200000 { compatible = "ti,da830-musb"; reg = <0x00200000 0x10000>; + ranges; + #address-cells = <1>; + #size-cells = <1>; interrupts = <58>; interrupt-names = "mc"; @@ -39,5 +58,28 @@ Example: phys = <&usb_phy 0>; phy-names = "usb-phy"; + dmas = <&cppi41dma 0 0 &cppi41dma 1 0 + &cppi41dma 2 0 &cppi41dma 3 0 + &cppi41dma 0 1 &cppi41dma 1 1 + &cppi41dma 2 1 &cppi41dma 3 1>; + dma-names = + "rx1", "rx2", "rx3", "rx4", + "tx1", "tx2", "tx3", "tx4"; + status = "okay"; + + cppi41dma: dma-controller@201000 { + compatible = "ti,da8xx-cppi41"; + reg = <0x201000 0x1000 + 0x202000 0x1000 + 0x204000 0x4000>; + reg-names = "controller", "scheduler", "queuemgr"; + interrupts = <58>; + interrupt-names = "glue"; + #dma-cells = <2>; + #dma-channels = <4>; + #dma-requests = <256>; + status = "okay"; + }; + };