From patchwork Fri Jul 17 12:04:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 51238 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F335322A8D for ; Fri, 17 Jul 2015 12:06:19 +0000 (UTC) Received: by wizo10 with SMTP id o10sf11464776wiz.0 for ; Fri, 17 Jul 2015 05:06:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=mNjvZWtUoiSKCIvPdauv/dHwSsoSpJwMOkD5Tw6iO28=; b=I9Zv42WljMWDUTxmhcd5YAoIy1WIJh54C5fYpUx2zGQ52DrZ/0fOUjR2lLNA823U0x 8bq+i3LrIsKDHeVuLWFmZvfFYTeH/es3CzfGgSPYHYhJLhojwN+0o8ou/CpiYncTU3fQ Jp3SDRQxqiZ9U/95R0ozmsvAchZcC6sjhae2ZlYQ86D9mKS/ivbLe01F4AMzOHR9gKla 60AHIsFBsXQ+0wZiyCxjP2om556OoXIfWU16OClMwPtloEVrlT03GpkSTi2BUnTB5Uvr GtpbVGgHL/maZCsrLIkELJNqFKp4AUiZpKE/xage2hPmdLp1zT2PztlpYkqHBlFzcZR4 8cCg== X-Gm-Message-State: ALoCoQnPxDZ3gVof/ep5C7On3L+YYj7XxO07OpsUAqvT12/eJGsDm6Fs7MheAndNR20JUjiRnmN4 X-Received: by 10.112.255.66 with SMTP id ao2mr7491647lbd.15.1437134779274; Fri, 17 Jul 2015 05:06:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.108 with SMTP id ud12ls497743lac.43.gmail; Fri, 17 Jul 2015 05:06:19 -0700 (PDT) X-Received: by 10.112.161.40 with SMTP id xp8mr14197524lbb.71.1437134779003; Fri, 17 Jul 2015 05:06:19 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id de7si9733457lbd.58.2015.07.17.05.06.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jul 2015 05:06:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lagx9 with SMTP id x9so59851920lag.1 for ; Fri, 17 Jul 2015 05:06:18 -0700 (PDT) X-Received: by 10.112.139.103 with SMTP id qx7mr14299629lbb.73.1437134778895; Fri, 17 Jul 2015 05:06:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp874960lbb; Fri, 17 Jul 2015 05:06:17 -0700 (PDT) X-Received: by 10.70.92.10 with SMTP id ci10mr29299605pdb.9.1437134777127; Fri, 17 Jul 2015 05:06:17 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id cz5si18366878pbc.118.2015.07.17.05.06.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jul 2015 05:06:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; 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 1ZG4Nr-0002JT-BX; Fri, 17 Jul 2015 12:04:55 +0000 Received: from mail-wi0-f181.google.com ([209.85.212.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZG4NW-00024X-TB for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2015 12:04:35 +0000 Received: by wibud3 with SMTP id ud3so40896480wib.0 for ; Fri, 17 Jul 2015 05:04:13 -0700 (PDT) X-Received: by 10.194.2.137 with SMTP id 9mr29370394wju.75.1437134653274; Fri, 17 Jul 2015 05:04:13 -0700 (PDT) Received: from localhost.localdomain (host81-129-173-55.range81-129.btcentralplus.com. [81.129.173.55]) by smtp.gmail.com with ESMTPSA id js3sm18076373wjc.5.2015.07.17.05.04.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Jul 2015 05:04:12 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] mailbox: dt: Supply bindings for ST's Mailbox IP Date: Fri, 17 Jul 2015 13:04:02 +0100 Message-Id: <1437134647-28298-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437134647-28298-1-git-send-email-lee.jones@linaro.org> References: <1437134647-28298-1-git-send-email-lee.jones@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150717_050435_120770_E52FCD08 X-CRM114-Status: GOOD ( 13.16 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.181 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.181 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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: devicetree@vger.kernel.org, jassisinghbrar@gmail.com, Lee Jones , kernel@stlinux.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Lee Jones --- .../devicetree/bindings/mailbox/sti-mailbox.txt | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/sti-mailbox.txt diff --git a/Documentation/devicetree/bindings/mailbox/sti-mailbox.txt b/Documentation/devicetree/bindings/mailbox/sti-mailbox.txt new file mode 100644 index 0000000..3390e3e --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/sti-mailbox.txt @@ -0,0 +1,53 @@ +ST Microelectronics Mailbox Driver + +Each ST Mailbox IP currently consists of 4 instances of 32 channels. Messages +are passed between Application and Remote processors using shared memory. + +Controller +---------- + +Required properties: +- compatible : Should be "st,stih407-mailbox" +- reg : Offset and length of the device's register set +- mbox-name : Name of the mailbox +- #mbox-cells: : Must be 3 + <&phandle instance channel direction> + phandle : Label name of controller + instance : Instance number + channel : Channel number + direction : Data flow direction; MBOX_TX or MBOX_RX + +Optional properties +- interrupts : Contains the IRQ line for a Rx mailbox + [NB: The absence of this property denotes Tx only] + +Example: + +mailbox0: mailbox@0 { + compatible = "st,stih407-mailbox"; + reg = <0x8f00000 0x1000>; + interrupts = ; + #mbox-cells = <3>; + mbox-name = "a9"; +}; + +Client +------ + +Required properties: +- compatible : Many (See the client docs) +- reg : Shared (between Application and Remote) memory address +- mboxes : Standard property to specify a Mailbox (See ./mailbox.txt) + Cells must match 'mbox-cells' (See Controller docs above) + +Optional properties +- mbox-names : Name given to channels seen in the 'mboxes' property. + +Example: + +mailbox_test { + compatible = "mailbox_test"; + reg = <0x[shared_memory_address], [shared_memory_size]>; + mboxes = <&mailbox2 0 1 MBOX_TX>, <&mailbox0 2 1 MBOX_RX>; + mbox-names = "tx", "rx"; +};