From patchwork Mon Jan 9 16:06:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 90510 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp152096qgi; Mon, 9 Jan 2017 08:08:20 -0800 (PST) X-Received: by 10.84.164.106 with SMTP id m39mr193097625plg.97.1483978100206; Mon, 09 Jan 2017 08:08:20 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g76si7768349pfb.262.2017.01.09.08.08.20; Mon, 09 Jan 2017 08:08:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762386AbdAIQIK (ORCPT + 4 others); Mon, 9 Jan 2017 11:08:10 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:37241 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970239AbdAIQHZ (ORCPT ); Mon, 9 Jan 2017 11:07:25 -0500 Received: by mail-wm0-f53.google.com with SMTP id c206so37929580wme.0 for ; Mon, 09 Jan 2017 08:07:25 -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=OQVeg8pyQYZ61WitOX8U61gOZqno1tcHceerCUDuix8=; b=iDlVsuih8Yy37+UkvY2FwDAVeUn5L+N3Dy84LeqVwZwDyrcbd8PGt8N1yUnOYpZn0K OpvRUZ7y+COZO3R78rEw3/IUBKMAL/fKHqV5J9tf3TVwlD4/lm2Q4y5IMnb/l1hnk8Nw +7Uu9QDaBXmQa6THx2VpX++JOfsWbAlMa6aOx+f1Ww03ybkswJ+BanCfkyo4QkuwDmUg brW3TJjPObIGgZ4vQZgsb7hWWNOkrmEia9Hq2NMn8ba8jwj8mlUEMeuqRZxb+Jw+303K xmK5qoLYcCoHJQt9UnSC8P8mcEGcYgqykOIHUp86qYWTPOvvyb8Qvxo0z5dggj9GbEQ6 6UlQ== 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=OQVeg8pyQYZ61WitOX8U61gOZqno1tcHceerCUDuix8=; b=VSc6CJC1lm4Etgfg9bTQWV/hFn7G4OQfbf/ddnaSYGLTmKtP1TysmKjOrrHk+MJ9xu EYGEkeo94aR0C6omElQsfxZtn7ZYwSDSvqcmuAzyg4dyKa23QlH3SvoX+6YILtVwPpmL FhU3tlyjBgmLRuOCfipxRscWLCFx5XxmGGh38wWlC492ZPrxj7z9jnT96cj4PgTqgKyv E4EgTgBnTzARdosNE9DVk8JSEMq0ijjmQxIeRnUegVpoQOzBOPZzs71Zn91gjeTniJf/ Ons2IUV1rP/9hAYlgnX2JAOsYcMiATU6QrjFK9CXwN7IE2r+D2THU0lstbUrmgLfWE49 c/aA== X-Gm-Message-State: AIkVDXK1ScCogpUsHVCzZ0LukwYB+ilaUbOa1QfSB3h2IUDRqqGOlY6Z0ZzidKnVQV0q4vl/ X-Received: by 10.223.146.135 with SMTP id 7mr262317wrn.105.1483978044188; Mon, 09 Jan 2017 08:07:24 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w18sm19656244wme.9.2017.01.09.08.07.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Jan 2017 08:07:23 -0800 (PST) From: Alexandre Bailon To: vinod.koul@intel.com Cc: dmaengine@vger.kernel.org, linux-usb@vger.kernel.org, nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, b-liu@ti.com, Alexandre Bailon Subject: [PATCH 07/11] dt/bindings: da8xx-usb: Add binding for the cppi41 dma controller Date: Mon, 9 Jan 2017 17:06:52 +0100 Message-Id: <20170109160656.3470-8-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170109160656.3470-1-abailon@baylibre.com> References: <20170109160656.3470-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 DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx cppi41 dma controller. Signed-off-by: Alexandre Bailon --- .../devicetree/bindings/usb/da8xx-usb.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" 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..2a4d737 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: USBSS, USB + CPPI DMA Controller, USB CPPI DMA Scheduler, USB Queue Manager +- reg-names: glue, controller, scheduler, queuemgr +- #dma-cells: should be set to 2. The first number represents the + endpoint 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"; @@ -39,5 +55,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 = <0x200000 0x1000 + 0x201000 0x1000 + 0x202000 0x1000 + 0x204000 0x4000>; + reg-names = "glue", "controller", "scheduler", "queuemgr"; + interrupts = <58>; + interrupt-names = "glue"; + #dma-cells = <2>; + #dma-channels = <4>; + #dma-requests = <256>; + status = "disabled"; + + };