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: 9505361 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 652E8606E1 for ; Mon, 9 Jan 2017 16:08:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 558BB28474 for ; Mon, 9 Jan 2017 16:08:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47E4C28497; Mon, 9 Jan 2017 16:08:40 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 EECAC28474 for ; Mon, 9 Jan 2017 16:08:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762394AbdAIQIN (ORCPT ); Mon, 9 Jan 2017 11:08:13 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:38678 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970236AbdAIQHZ (ORCPT ); Mon, 9 Jan 2017 11:07:25 -0500 Received: by mail-wm0-f48.google.com with SMTP id k184so126048933wme.1 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=RdcmirUTrVp0yBHt3Mnnhp6wyQO/urOt0jgxWFnrhCxhWE9EUm3B2j0UmyJFvZYCM6 h6sitdYi09cLYS5xrJXyL0DJskyaC25d9Tq8oa9JeLq2UrjVhB7PW/HTLNeiyHxQ97C7 rXvzwsQF/6F5eZfEyal3TxgACgVYatLRAco/mjToiLeXNe7civ+B/A+NO2NWc3/XFLTh KXZFxFU4+NA4XK0Ep/kwiFKyzp7AZO5l7lN3ojYLvU0zBguN4NjLane8TDSk0q4Ac70m OkF5owKmJEw9eOVTZpkPjG2VpJjFNw/j5V3aUgPy2R7CaYmNfizbkJMCI9qaMjsuEOga NMRA== X-Gm-Message-State: AIkVDXIaFnorcTKLXvgWJz+XIXyC/ACn/Sb1HB6MxB+nFzRi2LkD94oAKXQAJcSndtpij8kk 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: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@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 | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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"; + + };