From patchwork Mon Jan 30 17:49:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 92905 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1560253qgi; Mon, 30 Jan 2017 10:00:32 -0800 (PST) X-Received: by 10.98.147.207 with SMTP id r76mr24577407pfk.111.1485799231931; Mon, 30 Jan 2017 10:00:31 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i61si13231950plb.162.2017.01.30.10.00.31; Mon, 30 Jan 2017 10:00:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753529AbdA3SAV (ORCPT + 4 others); Mon, 30 Jan 2017 13:00:21 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:36263 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752174AbdA3R7x (ORCPT ); Mon, 30 Jan 2017 12:59:53 -0500 Received: by mail-wm0-f48.google.com with SMTP id c85so225082143wmi.1 for ; Mon, 30 Jan 2017 09:58:37 -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=bzrKjX+R9ESU7itZZ2GszHi7iA/zbdcY0ZSjrji6Xtw=; b=F4AcAOszbozFzSaRZ4XN2D2+xeHOMbtovk+gB3Ist+aSNgKSo5a0ucBoDU2H/x4ojf 6sBcZxxG5MyncQCk96AQg2iGzJvZuAHTsFN/iFdfXt6jnDmqWam0Q+xSO3b96H/ho2Sd lF0zL2VuxrhJfnJnEqo+CX9TEQGRUlvH4ESx8XS5GzkuisvHXk+U6fozCTky1Y1mzFm7 /I1SG+LBDYR5+GCbr3M977Fba9RAP2aU+G0xrOsUZqJ4CzQISp+vO9mXOAweKxKx+pe4 xldlcQfQcGAhe56dlKZsnU6UQDjNybi/GkkR6dCq5rJqC5e5LFCcUWniE1qvwo3uu5KR irAA== 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=bzrKjX+R9ESU7itZZ2GszHi7iA/zbdcY0ZSjrji6Xtw=; b=d/oaoxJwZas9yPby52/jmqplO/834Hh5XwrjkBccYI86nPHebb00DpJ56qW7GJMk3a VuIEl3ukRx2+NQTXIx1SCyTOf8hvvGP2ZWa9Q/fj9n4wxFiPkCGuOD7V22+m8gsTQB7R ybTt6J7zgM40oPxXmEmSROtW8QuBaacqXWgY8ERKE/g216UPBKw7Z/UR1eG0bzMoUZ8O wK0L52pOHKNtzMOvkIODBhqkrvhGP8sPiqjXPxoupQUSYXW8lCGEM2WnT883LB4/T7N6 gNSyCUdk9rcOyb9sqwpxZ1ACEvUztSORoNDJPS7daJynT+ZXNK37Wll1lFhaKlTp6aL3 AdZA== X-Gm-Message-State: AIkVDXLVS1pwZ47B94ceAGh0eRWPGK8wuKHeC2ZoD3qVA7LPIDI1e0G1IAx4pcZuKrei0zjt X-Received: by 10.223.175.49 with SMTP id z46mr23794165wrc.84.1485798565511; Mon, 30 Jan 2017 09:49:25 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id b87sm19912333wmi.0.2017.01.30.09.49.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jan 2017 09:49:25 -0800 (PST) From: Alexandre Bailon To: vinod.koul@intel.com Cc: dmaengine@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, b-liu@ti.com, sergei.shtylyov@cogentembedded.com, Alexandre Bailon Subject: [PATCH v4 1/3] dt/bindings: da8xx-usb: Add binding for the CPPI 4.1 DMA controller Date: Mon, 30 Jan 2017 18:49:19 +0100 Message-Id: <20170130174921.28231-2-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170130174921.28231-1-abailon@baylibre.com> References: <20170130174921.28231-1-abailon@baylibre.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx CPPI 4.1 DMA controller. Signed-off-by: Alexandre Bailon Acked-by: Rob Herring --- .../devicetree/bindings/usb/da8xx-usb.txt | 41 +++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/usb/da8xx-usb.txt b/Documentation/devicetree/bindings/usb/da8xx-usb.txt index ccb844a..717c5f6 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,da830-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"; @@ -30,7 +46,10 @@ Example: }; usb0: usb@200000 { compatible = "ti,da830-musb"; - reg = <0x00200000 0x10000>; + reg = <0x00200000 0x1000>; + ranges; + #address-cells = <1>; + #size-cells = <1>; interrupts = <58>; interrupt-names = "mc"; @@ -39,5 +58,25 @@ 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,da830-cppi41"; + reg = <0x201000 0x1000 + 0x202000 0x1000 + 0x204000 0x4000>; + reg-names = "controller", "scheduler", "queuemgr"; + interrupts = <58>; + #dma-cells = <2>; + #dma-channels = <4>; + }; + };