From patchwork Thu May 21 23:37:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 6460421 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 E8E80C0020 for ; Thu, 21 May 2015 23:40:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1537220558 for ; Thu, 21 May 2015 23:40:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4175E20557 for ; Thu, 21 May 2015 23:40:30 +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 1Yva31-0000RU-Vt; Thu, 21 May 2015 23:38:43 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yva2V-0000It-QQ for linux-arm-kernel@bombadil.infradead.org; Thu, 21 May 2015 23:38:11 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yva2T-0000mW-0t for linux-arm-kernel@lists.infradead.org; Thu, 21 May 2015 23:38:10 +0000 Received: by pabts4 with SMTP id ts4so3149290pab.3 for ; Thu, 21 May 2015 16:37:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wS0Fxffvk8bBv5Xs6ihpW7DKZvgGcY7KNg+hgOof584=; b=gzWF8PXZU2qNJPmTN5G2p2R8thXmUX8Ug5bIRzvdBWD56xRd8SMasKNZQ8hY3sm42P eH+xmn5snbUQoGtopSnbHj/PBGXRG4SL9txlNqAjfRiAOgbDupd6dVS+iEcJtUKLM7o5 5kRuuBFYjcRemYCLLszX7uzi56BUqm1LrudquP+WrsHACg/dDnrFD6NyJMz5h1DXD0wI /h2jMcLCKtqOQEvb57VqhvMWMtqrwqvG6JZpbLs7j3kPVXyJr/BLabTtFcWqOQkhpM/i iDTvgBgy6QHoY/XbUaieeg119BXtZhT4SARD9c99JFH6ZP9KNvsOob4Q5Yz+pOcy/uQX cONA== X-Gm-Message-State: ALoCoQkrYuvKbkQ9AAlSD9kfTyuAMIfV1HJQ3ERB9uLuBla5OQB5GlpOP94SIyoh9Y+xsL1TjoSD X-Received: by 10.66.102.37 with SMTP id fl5mr10211757pab.88.1432251465344; Thu, 21 May 2015 16:37:45 -0700 (PDT) Received: from fenrir.amer.corp.natinst.com (209-234-137-234.static.twtelecom.net. [209.234.137.234]) by mx.google.com with ESMTPSA id df7sm184539pdb.32.2015.05.21.16.37.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 May 2015 16:37:44 -0700 (PDT) From: Moritz Fischer To: jassisinghbrar@gmail.com Subject: [PATCH 2/3] dts: Adding docs for Xilinx LogiCORE IP mailbox driver. Date: Thu, 21 May 2015 16:37:29 -0700 Message-Id: <1432251450-26352-3-git-send-email-moritz.fischer@ettus.com> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1432251450-26352-1-git-send-email-moritz.fischer@ettus.com> References: <1432251450-26352-1-git-send-email-moritz.fischer@ettus.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150522_003809_203383_DCF2C933 X-CRM114-Status: GOOD ( 10.66 ) X-Spam-Score: -2.6 (--) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Moritz Fischer , arnd@arndb.de, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, gregkh@linuxfoundation.org, mchehab@osg.samsung.com, linux-kernel@vger.kernel.org, michal.simek@xilinx.com, jingoohan1@gmail.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, galak@codeaurora.org, joe@perches.com, akpm@linux-foundation.org, soren.brinkmann@xilinx.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 Signed-off-by: Moritz Fischer --- .../bindings/mailbox/xilinx-mailbox.txt | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/Documentation/devicetree/bindings/mailbox/xilinx-mailbox.txt b/Documentation/devicetree/bindings/mailbox/xilinx-mailbox.txt new file mode 100644 index 0000000..e559743 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/xilinx-mailbox.txt @@ -0,0 +1,40 @@ +Xilinx Mailbox Driver +===================== + +Required properties: +- compatible : "xlnx,mailbox-2.1". +- reg : physical base address of the mailbox and length of + memory mapped region. +- #mbox-cells: Common mailbox binding property to identify the number + of cells required for the mailbox specifier. Should be 1. + +Optional properties: +- interrupt-parent : interrupt source phandle. +- interrupts : interrupt number. The interrupt specifier format + depends on the interrupt controller parent. + +Example: + mbox: mailbox@0x40400000 { + compatible = "xlnx,axi-mailbox-2.1"; + reg = <0x100 0x3c>; + interrupt-parent = <&intc>; + interrupts = <5>; + #mbox-cells = <1>; + }; + +Mailbox client +=============== +"mboxes" and the optional "mbox-names" (please see +Documentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value +of the mboxes property should contain a phandle to the mailbox controller +device node and second argument is the channel index. It must be 0 (hardware +support only one channel).The equivalent "mbox-names" property value can be +used to give a name to the communication channel to be used by the client user. + +Example: + mclient0: mclient0@0x400 { + compatible = "client-1.0"; + reg = <0x400 0x10>; + mbox-names = "mbox", "mbox-rx"; + mboxes = <&mbox 0>; + };