From patchwork Fri May 22 18:03:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 6466991 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 70C82C0020 for ; Fri, 22 May 2015 18:06:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A2A6A204D2 for ; Fri, 22 May 2015 18:06:20 +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 BCA55204B5 for ; Fri, 22 May 2015 18:06:19 +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 1YvrIg-0007ae-7a; Fri, 22 May 2015 18:04:02 +0000 Received: from mail-pd0-f176.google.com ([209.85.192.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YvrIO-0007OJ-RX for linux-arm-kernel@lists.infradead.org; Fri, 22 May 2015 18:03:45 +0000 Received: by pdbqa5 with SMTP id qa5so25066616pdb.0 for ; Fri, 22 May 2015 11:03:23 -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=3g9IagUxrOWGRVCXku2DhGDCwfJDi1dpIojufUaHJBs=; b=MKoOaFPQLbj0/1whkwoAh2f9Fqu+z8DwTgY1ywsqn+9txgQz2xks84OSMx4BPWMdhP 7Utkl39raA+3jqNCwbu+IQk9lKPT/Sqgcxj18Uy7p/UehQowfGyK45sRmj2+238wODJe XgbOLGgfS5IVHWqX5uwbrbBXE/NBgouCUK2SmeSiSK3TtnCvaOi84K3Ple3yNsrGRFUP pyKaZizsLtq45lxVbrjYzBbjkcIZwQUbpdpiA5lgrDbB0MTSy1PXbQ1++oxBDfvPhfCm aTzxJTfUl882/j2q5wiHnc5Z+AKak5u3O62qkobktYqqJ0ir9Uo2WErgN+wo5IFbT+Zs bc6Q== X-Gm-Message-State: ALoCoQlVJGC8v4M/u+tjPpS/ooI7ZLQV0xZNPwG3Wm+m7f+0xEo8ZHBfVz/frLpdSUlqGjitAB7H X-Received: by 10.70.18.130 with SMTP id w2mr9150577pdd.73.1432317803439; Fri, 22 May 2015 11:03:23 -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 ql9sm2739608pbc.65.2015.05.22.11.03.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 May 2015 11:03:21 -0700 (PDT) From: Moritz Fischer To: jassisinghbrar@gmail.com Subject: [PATCHv1 1/2] dts: Adding docs for Xilinx LogiCORE IP mailbox driver. Date: Fri, 22 May 2015 11:03:10 -0700 Message-Id: <1432317791-26851-2-git-send-email-moritz.fischer@ettus.com> X-Mailer: git-send-email 2.4.1 In-Reply-To: <1432317791-26851-1-git-send-email-moritz.fischer@ettus.com> References: <1432317791-26851-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_110344_976217_EEFB2AEA X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) 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..b735105 --- /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@40400000 { + compatible = "xlnx,axi-mailbox-2.1"; + reg = <0x40400000 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@400 { + compatible = "client-1.0"; + reg = <0x400 0x10>; + mbox-names = "mbox"; + mboxes = <&mbox 0>; + };