From patchwork Fri Feb 5 16:34:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 8237111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E833DBEEE5 for ; Fri, 5 Feb 2016 16:36:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 09BCD20390 for ; Fri, 5 Feb 2016 16:36:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11BAA20383 for ; Fri, 5 Feb 2016 16:36:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRjM3-0004bC-ML; Fri, 05 Feb 2016 16:35:31 +0000 Received: from devils.ext.ti.com ([198.47.26.153]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRjL9-0002pj-Vl for linux-arm-kernel@lists.infradead.org; Fri, 05 Feb 2016 16:34:39 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id u15GYC3P025842; Fri, 5 Feb 2016 10:34:12 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id u15GYCwq019478; Fri, 5 Feb 2016 10:34:12 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Fri, 5 Feb 2016 10:34:11 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id u15GYB3j026127; Fri, 5 Feb 2016 10:34:12 -0600 From: Nishanth Menon To: Jassi Brar , Suman Anna Subject: [PATCH 1/2] Documentation: dt: mailbox: Add TI Message Manager Date: Fri, 5 Feb 2016 10:34:03 -0600 Message-ID: <1454690044-2560-2-git-send-email-nm@ti.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454690044-2560-1-git-send-email-nm@ti.com> References: <1454690044-2560-1-git-send-email-nm@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160205_083436_349984_E1E57370 X-CRM114-Status: GOOD ( 11.26 ) X-Spam-Score: -7.2 (-------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nishanth Menon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Franklin S Cooper Jr , Santosh Shilimkar , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Message Manager is a hardware block used to communicate with various processor systems within certain Texas Instrument's Keystone generation SoCs. This hardware engine is used to transfer messages from various compute entities(or processors) within the SoC. It is designed to be self contained without needing software initialization for operation. Signed-off-by: Nishanth Menon --- .../bindings/mailbox/ti,message-manager.txt | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/ti,message-manager.txt diff --git a/Documentation/devicetree/bindings/mailbox/ti,message-manager.txt b/Documentation/devicetree/bindings/mailbox/ti,message-manager.txt new file mode 100644 index 000000000000..f3d73b0b3c66 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/ti,message-manager.txt @@ -0,0 +1,72 @@ +Texas Instruments' Message Manager Driver +======================================== + +The Texas Instruments' Message Manager is a mailbox controller that has +configurable queues selectable at SoC(System on Chip) integration. The Message +manager is broken up into queues in different address regions that are called +"proxies" - each instance is unidirectional and is instantiated at SoC +integration level to indicate receive or transmit path. + +Message Manager Device Node: +=========================== + +Required properties: +-------------------- +- compatible: Shall be: + "ti,k2g-message-manager" + "ti,message-manager" +- reg-names queue_proxy_region - Map the queue Proxy region + queue_state_debug_region - Map the queue state debug + region. +- reg: Contains the register map per reg-names +- #mbox-cells Shall be 1 + +Child Nodes: +============ +A child node is used for representing the actual queue device that is +used for the communication between the host processor and a remote processor. +Each child node should have a unique node name across all the different +message manager device nodes. + +Required Properties: +-------------------- +- ti,queue-id: Indicates the queue number this node represents +- ti,proxy-id: Proxy ID representing the processor in the SoC. + +Optional Properties: +-------------------- +- interrupt-names: 'rx' - indicates a receive interrupt (mandatory ONLY if + this is a receive queue) +- interrupts: Contains the interrupt information corresponding to + interrupt-names property. + +Example: +-------- + + msgmgr: msgmgr@02a00000 { + compatible = "ti,k2g-message-manager", "ti,message-manager"; + #mbox-cells = <1>; + reg-names = "queue_proxy_region", "queue_state_debug_region"; + reg = <0x02a00000 0x400000>, <0x028c3400 0x400>; + + msgmgr_proxy_pmmc_tx_prio0: pmmc_tx_prio0 { + ti,queue-id = <0>; + ti,proxy-id = <0>; + }; + + msgmgr_proxy_pmmc_rx: pmmc_rx { + ti,queue-id = <5>; + ti,proxy-id = <2>; + interrupt-names = "rx"; + interrupts = ; + }; + }; + +... + pmmc { + ... + mbox-names = "tx", "rx"; + mboxes = <&msgmgr &msgmgr_proxy_pmmc_tx> + <&msgmgr &msgmgr_proxy_pmmc_rx>; + ... + };