From patchwork Fri Aug 1 12:32:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 34701 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 636B620670 for ; Fri, 1 Aug 2014 12:33:11 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id m1sf19952267oag.7 for ; Fri, 01 Aug 2014 05:33:10 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=+kF+N93gwyS6wR82gyRyUyFwnz9BJ7lc+7QBNvkrBnY=; b=DK+/IOd+18kS2ZeMONMOSLwOak+gyWt44tAEnCbBpIeaVBftCMPgGqj5Bc212oWKOm qHqbW8nvSuVDAuepRE/TkTySfC6TwsUmfXg6Xg/kFa2V72+rU8iABclO61J2pP7nsUx9 7uH80lMwrKWNbxe+ovLivOtuWj2u3TMj8oiNBk53gJfSutnZ0EYLqMbYM9h6j3r5cCVc GNJn16A85FSqRq5gx9POmMbKReZ5IpUzShrN64lS9ktUoJhEIgu1zoCJTb7M2r+GIA7I 2iutUDCzrMd2MtvMRsk2Gd/TOhrb+BajfzTvlV1UoCvuIrAqFzX5yshlGLj9twmZ+KA/ NnuQ== X-Gm-Message-State: ALoCoQmvGCImc0ZfHDVt7SzqcNtI9x7Ws0pl36rSUH+WIfbwQP4IIBq5006P/Y/pby3/r/5LXfN7 X-Received: by 10.182.18.8 with SMTP id s8mr1975765obd.21.1406896390951; Fri, 01 Aug 2014 05:33:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.142 with SMTP id r14ls1262316qgr.16.gmail; Fri, 01 Aug 2014 05:33:10 -0700 (PDT) X-Received: by 10.52.98.201 with SMTP id ek9mr4656871vdb.35.1406896390863; Fri, 01 Aug 2014 05:33:10 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id v10si7060642vdo.17.2014.08.01.05.33.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 05:33:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so6531092vcb.33 for ; Fri, 01 Aug 2014 05:33:10 -0700 (PDT) X-Received: by 10.52.129.165 with SMTP id nx5mr4589683vdb.25.1406896390713; Fri, 01 Aug 2014 05:33:10 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp106810vcb; Fri, 1 Aug 2014 05:33:10 -0700 (PDT) X-Received: by 10.66.246.229 with SMTP id xz5mr5592653pac.119.1406896389600; Fri, 01 Aug 2014 05:33:09 -0700 (PDT) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by mx.google.com with ESMTPS id e7si4808366pdf.460.2014.08.01.05.33.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 05:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of jaswinder.singh@linaro.org designates 209.85.220.42 as permitted sender) client-ip=209.85.220.42; Received: by mail-pa0-f42.google.com with SMTP id lf10so5695785pab.15 for ; Fri, 01 Aug 2014 05:33:09 -0700 (PDT) X-Received: by 10.66.123.36 with SMTP id lx4mr5544791pab.21.1406896389164; Fri, 01 Aug 2014 05:33:09 -0700 (PDT) Received: from localhost.localdomain ([117.220.130.200]) by mx.google.com with ESMTPSA id ga1sm8576205pbb.82.2014.08.01.05.32.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 05:33:08 -0700 (PDT) From: Jassi Brar To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ks.giri@samsung.com, arnd@arndb.de, ijc+devicetree@hellion.org.uk, mark.rutland@arm.com, robh+dt@kernel.org, pawel.moll@arm.com, courtney.cavin@sonymobile.com, mporter@linaro.org, slapdau@yahoo.com.au, lftan.linux@gmail.com, loic.pallardy@st.com, s-anna@ti.com, ashwin.chaugule@linaro.org, bjorn@kryo.se, patches@linaro.org, mollie.wu@linaro.org, t.takinishi@jp.fujitsu.com, broonie@linaro.org, khilman@linaro.org, lee.jones@linaro.org, andy.green@linaro.org, Jassi Brar Subject: [PATCHv10 4/4] dt: mailbox: add generic bindings Date: Fri, 1 Aug 2014 18:02:45 +0530 Message-Id: <1406896365-4971-1-git-send-email-jaswinder.singh@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1406896194-4667-1-git-send-email-jaswinder.singh@linaro.org> References: <1406896194-4667-1-git-send-email-jaswinder.singh@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: jaswinder.singh@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.220.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Define generic bindings for the framework clients to request mailbox channels. Signed-off-by: Jassi Brar Reviewed-by: Mark Brown --- .../devicetree/bindings/mailbox/mailbox.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mailbox.txt diff --git a/Documentation/devicetree/bindings/mailbox/mailbox.txt b/Documentation/devicetree/bindings/mailbox/mailbox.txt new file mode 100644 index 0000000..bb79678 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/mailbox.txt @@ -0,0 +1,36 @@ +* Generic Mailbox Controller and client driver bindings + +Generic binding to provide a way for Mailbox controller drivers to +assign appropriate mailbox channel to client drivers. + +* Mailbox Controller + +Required property: +- #mbox-cells: Must be at least 1. Number of cells in a mailbox + specifier. + +Example: + mailbox: mailbox { + ... + #mbox-cells = <1>; + }; + + +* Mailbox Client + +Required property: +- mboxes: List of phandle and mailbox channel specifiers. + +Optional property: +- mbox-names: List of identifier strings for each mailbox channel + required by the client. The use of this property + is discouraged in favor of using index in list of + 'mboxes' while requesting a mailbox. + +Example: + pwr_cntrl: power { + ... + mbox-names = "pwr-ctrl", "rpc"; + mboxes = <&mailbox 0 + &mailbox 1>; + };