Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1551891

[PATCH v4 2/2] dt-bindings: Add DT bindings info for FlexRM ring manager

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Anup Patel <anup.patel@broadcom.com>
Newsgroups linux.kernel
Subject [PATCH v4 2/2] dt-bindings: Add DT bindings info for FlexRM ring manager
Date Thu, 05 Jan 2017 12:10:01 +0100
Message-ID <sWe5H-2bf-7@gated-at.bofh.it> (permalink)
References <sWe5H-2bf-9@gated-at.bofh.it>
X-Original-To Jassi Brar <jassisinghbrar@gmail.com>, Rob Herring <robh+dt@kernel.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2UQjm5eF5gysc0W9gEqWfXw+xy0f65FoT4CoqqhYM7g=; b=B/lBfVpsQPdozkI14IUpU6cjydwSCFUts5u6VlVmfsCf0nQT3XLO76lyV7mkyTIL1K boCIzjQ95EMK3jxKI+A9e+THTZulJCqOE+zyjkirFsIsjSqU5dezrqOo1YZoTHS/upAc 7cXSMrZeZxyToznMGFvsRS8EkHFEVsCWwb1/k=
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; bh=2UQjm5eF5gysc0W9gEqWfXw+xy0f65FoT4CoqqhYM7g=; b=ePBWWMxzaL7Vr9AOvtmwP2JRkP4A6HbThPnJ3mmg5lb/3oHkMR1QZzD6vzRG+XxnyW QqVbBk+n50HKvRc4eKe8QdqhepGib7+Wc2H0/p8TTfskaZzkNuFFS3OJWp2IWGTIEEhr V+MXKxb8WM5D/lLz0YPTSZYu3cUs6F/oy5pHfZ+UIz9FGwD4geaGMxubvEvYW/dx6dI1 +qOAFaOgjdPw3ATtdfBjMqoT76iVIPS4jdmJhFreTUoSNvPfugxvM/cl6IeyFHLWkfmI mI9H5q6uDH9C4AkWkNU8vEefGLvE8AHqkt74YM86ab6GzNZKEEiRMjEjYQnG9YObZ0B2 KgZA==
X-Gm-Message-State AIkVDXIewtSMTybO+NXYxbQxeE59uQpKvzwvJkA6h/A6fCcbF/JIEaeslQ3sxiXLB567TXAJ
X-Received by 10.223.161.68 with SMTP id r4mr20141wrr.73.1483614506223; Thu, 05 Jan 2017 03:08:26 -0800 (PST)
X-Mailer git-send-email 2.7.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 78
Organization linux.* mail to news gateway
X-Original-Cc Mark Rutland <mark.rutland@arm.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Pramod KUMAR <pramod.kumar@broadcom.com>, Rob Rice <rob.rice@broadcom.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, Anup Patel <anup.patel@broadcom.com>
X-Original-Date Thu, 5 Jan 2017 16:37:55 +0530
X-Original-Message-ID <1483614475-3442-3-git-send-email-anup.patel@broadcom.com>
X-Original-References <1483614475-3442-1-git-send-email-anup.patel@broadcom.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1551891

Show key headers only | View raw


This patch adds device tree bindings document for the FlexRM
ring manager found on Broadcom iProc SoCs.

Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Anup Patel <anup.patel@broadcom.com>
---
 .../bindings/mailbox/brcm,iproc-flexrm-mbox.txt    | 59 ++++++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mailbox/brcm,iproc-flexrm-mbox.txt

diff --git a/Documentation/devicetree/bindings/mailbox/brcm,iproc-flexrm-mbox.txt b/Documentation/devicetree/bindings/mailbox/brcm,iproc-flexrm-mbox.txt
new file mode 100644
index 0000000..752ae6b
--- /dev/null
+++ b/Documentation/devicetree/bindings/mailbox/brcm,iproc-flexrm-mbox.txt
@@ -0,0 +1,59 @@
+Broadcom FlexRM Ring Manager
+============================
+The Broadcom FlexRM ring manager provides a set of rings which can be
+used to submit work to offload engines. An SoC may have multiple FlexRM
+hardware blocks. There is one device tree entry per FlexRM block. The
+FlexRM driver will create a mailbox-controller instance for given FlexRM
+hardware block where each mailbox channel is a separate FlexRM ring.
+
+Required properties:
+--------------------
+- compatible:	Should be "brcm,iproc-flexrm-mbox"
+- reg:		Specifies base physical address and size of the FlexRM
+		ring registers
+- msi-parent:	Phandles (and potential Device IDs) to MSI controllers
+		The FlexRM engine will send MSIs (instead of wired
+		interrupts) to CPU. There is one MSI for each FlexRM ring.
+		Refer devicetree/bindings/interrupt-controller/msi.txt
+- #mbox-cells:	Specifies the number of cells needed to encode a mailbox
+		channel. This should be 3.
+
+		The 1st cell is the mailbox channel number.
+
+		The 2nd cell contains MSI completion threshold. This is the
+		number of completion messages for which FlexRM will inject
+		one MSI interrupt to CPU.
+
+		The 3nd cell contains MSI timer value representing time for
+		which FlexRM will wait to accumulate N completion messages
+		where N is the value specified by 2nd cell above. If FlexRM
+		does not get required number of completion messages in time
+		specified by this cell then it will inject one MSI interrupt
+		to CPU provided atleast one completion message is available.
+
+Optional properties:
+--------------------
+- dma-coherent:	Present if DMA operations made by the FlexRM engine (such
+		as DMA descriptor access, access to buffers pointed by DMA
+		descriptors and read/write pointer updates to DDR) are
+		cache coherent with the CPU.
+
+Example:
+--------
+crypto_mbox: mbox@67000000 {
+	compatible = "brcm,iproc-flexrm-mbox";
+	reg = <0x67000000 0x200000>;
+	msi-parent = <&gic_its 0x7f00>;
+	#mbox-cells = <3>;
+};
+
+crypto@672c0000 {
+	compatible = "brcm,spu2-v2-crypto";
+	reg = <0x672c0000 0x1000>;
+	mboxes = <&crypto_mbox 0 0x1 0xffff>,
+		 <&crypto_mbox 1 0x1 0xffff>,
+		 <&crypto_mbox 16 0x1 0xffff>,
+		 <&crypto_mbox 17 0x1 0xffff>,
+		 <&crypto_mbox 30 0x1 0xffff>,
+		 <&crypto_mbox 31 0x1 0xffff>;
+};
-- 
2.7.4

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 2/2] dt-bindings: Add DT bindings info for FlexRM ring manager Anup Patel <anup.patel@broadcom.com> - 2017-01-05 12:10 +0100
  Re: [PATCH v4 2/2] dt-bindings: Add DT bindings info for FlexRM ring manager Rob Herring <robh+dt@kernel.org> - 2017-01-05 17:40 +0100

csiph-web