From patchwork Fri Oct 16 07:21:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 55081 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f72.google.com (mail-lf0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 27B9322EAC for ; Fri, 16 Oct 2015 07:23:36 +0000 (UTC) Received: by lfaz124 with SMTP id z124sf14046962lfa.0 for ; Fri, 16 Oct 2015 00:23:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Y9F+geQTo2fOkECFFq2Lheu3251LxvEiPuEBgYjSv6E=; b=bhP8RLvccAwUTKCCn0rnkQRP/su8IFKLgC7M/P7yqmjGfZyMjFMN5BQda5dIW2/p4Q 8kTKEZaFit2byx2xZsPJgOjVNmXFiUpMp5JrPn6A6ze4Zx1A/Uk2uGX7O/cEsDBVxqQ0 0g+n/hO7sjGvNQl58V5JLTHwZfYfgSIUg4OSFvfOL32y5vg/kuFGbsV2e9PlwXhzF8Y1 YWwEU7f8qk6BZ0g2sic5CcsFwUnGfiIBZqhhGfJUMDpboYy0qf6dizh31db7P1xa9gKq k0p4pn2b3D8jFh9ZeEqqRGG9emeqk138Qrnjy6iuCXNmbFZJY7/5T1/ZT70OlYHW4OqF +Ezw== X-Gm-Message-State: ALoCoQl3RB1JuNtrPRKskyctmju3EMwz1ZzGtZUSKdjeamNAZsL1evZoATHW3wNuINokHmxdaS1y X-Received: by 10.180.87.164 with SMTP id az4mr718481wib.1.1444980215102; Fri, 16 Oct 2015 00:23:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.156.78 with SMTP id f75ls287109lfe.69.gmail; Fri, 16 Oct 2015 00:23:34 -0700 (PDT) X-Received: by 10.25.21.83 with SMTP id l80mr4957433lfi.79.1444980214919; Fri, 16 Oct 2015 00:23:34 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id ru10si11961597lbb.110.2015.10.16.00.23.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2015 00:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbes7 with SMTP id es7so2839155lbb.2 for ; Fri, 16 Oct 2015 00:23:34 -0700 (PDT) X-Received: by 10.112.129.202 with SMTP id ny10mr7239002lbb.112.1444980214793; Fri, 16 Oct 2015 00:23:34 -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.59.35 with SMTP id w3csp1073056lbq; Fri, 16 Oct 2015 00:23:33 -0700 (PDT) X-Received: by 10.68.242.41 with SMTP id wn9mr14948356pbc.79.1444980213626; Fri, 16 Oct 2015 00:23:33 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yd7si27787024pab.46.2015.10.16.00.23.33; Fri, 16 Oct 2015 00:23:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753926AbbJPHXc (ORCPT + 30 others); Fri, 16 Oct 2015 03:23:32 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:36863 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753598AbbJPHV7 (ORCPT ); Fri, 16 Oct 2015 03:21:59 -0400 Received: by lbcao8 with SMTP id ao8so92331038lbc.3 for ; Fri, 16 Oct 2015 00:21:58 -0700 (PDT) X-Received: by 10.194.82.198 with SMTP id k6mr15039882wjy.139.1444980117952; Fri, 16 Oct 2015 00:21:57 -0700 (PDT) Received: from localhost.localdomain (host81-129-170-218.range81-129.btcentralplus.com. [81.129.170.218]) by smtp.gmail.com with ESMTPSA id vr10sm12270721wjc.38.2015.10.16.00.21.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Oct 2015 00:21:57 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, maxime.coquelin@st.com, jassisinghbrar@gmail.com, devicetree@vger.kernel.org, Lee Jones Subject: [PATCH v4 1/5] mailbox: dt: Supply bindings for ST's Mailbox IP Date: Fri, 16 Oct 2015 08:21:27 +0100 Message-Id: <1444980091-16728-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444980091-16728-1-git-send-email-lee.jones@linaro.org> References: <1444980091-16728-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.217.177 as permitted sender) smtp.mailfrom=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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Lee Jones --- .../devicetree/bindings/mailbox/sti-mailbox.txt | 51 ++++++++++++++++++++++ 1 file changed, 51 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..b61eec9 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/sti-mailbox.txt @@ -0,0 +1,51 @@ +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 2 + <&phandle instance channel direction> + phandle : Label name of controller + instance : Instance number + channel : Channel number + +Optional properties +- interrupts : Contains the IRQ line for a Rx mailbox + +Example: + +mailbox0: mailbox@0 { + compatible = "st,stih407-mailbox"; + reg = <0x08f00000 0x1000>; + interrupts = ; + #mbox-cells = <2>; + 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>, <&mailbox0 2 1>; + mbox-names = "tx", "rx"; +};