From patchwork Tue Jul 22 18:57:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 34113 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 2A45720540 for ; Tue, 22 Jul 2014 18:57:57 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id m1sf506708oag.3 for ; Tue, 22 Jul 2014 11:57:57 -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=f/5EnsEnxJVIgw91HjeLqFnieaTYzrPAFtr5hwSTAs6t4Xp6kyfpoAF9zv+ZZSNKNe tmM6iK4W6wGQH5tXwvzQR/JlPIr7A75gnwmssWiFePexRg1mlwCJhx6mJRp5QFLFOiKD 9Ofr3Vy4MLTkr1GMhFdtlP3+MKyQ+86H5uu51GvrQbu7Jp577sW6lJig+vxrwRB3jQos xdudsCzge80YV4vEvC2FfrlTd/VoMdj1OgfxzAnXn356HauW8OI7r6gOyzrvz7u34Exv fDR1P90Udz4BUZE/wHmTWU3w7EsP/9gJbJX48tdCmozPJKe2kpBWhvZ3/qMGO3T3Pi+g OyLA== X-Gm-Message-State: ALoCoQkSiiNVN868kel44iUAi0HFXFrAtgITbY8GZ2e7ia5TtDmwriOB8Hr3R88JUjL7TN8QUHHL X-Received: by 10.50.66.236 with SMTP id i12mr4972534igt.5.1406055477454; Tue, 22 Jul 2014 11:57:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.23 with SMTP id 23ls24287qgi.26.gmail; Tue, 22 Jul 2014 11:57:57 -0700 (PDT) X-Received: by 10.221.26.71 with SMTP id rl7mr16117522vcb.69.1406055477295; Tue, 22 Jul 2014 11:57:57 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id cz8si2137237vcb.88.2014.07.22.11.57.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Jul 2014 11:57:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so168598vcb.23 for ; Tue, 22 Jul 2014 11:57:57 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr36707440vdc.8.1406055477189; Tue, 22 Jul 2014 11:57:57 -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 tc5csp219034vcb; Tue, 22 Jul 2014 11:57:56 -0700 (PDT) X-Received: by 10.70.125.233 with SMTP id mt9mr4435359pdb.154.1406055476434; Tue, 22 Jul 2014 11:57:56 -0700 (PDT) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx.google.com with ESMTPS id ch3si1296861pbb.235.2014.07.22.11.57.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Jul 2014 11:57:56 -0700 (PDT) Received-SPF: pass (google.com: domain of jaswinder.singh@linaro.org designates 209.85.220.44 as permitted sender) client-ip=209.85.220.44; Received: by mail-pa0-f44.google.com with SMTP id eu11so95284pac.31 for ; Tue, 22 Jul 2014 11:57:56 -0700 (PDT) X-Received: by 10.68.171.37 with SMTP id ar5mr25884855pbc.61.1406055476050; Tue, 22 Jul 2014 11:57:56 -0700 (PDT) Received: from localhost.localdomain ([117.220.134.12]) by mx.google.com with ESMTPSA id j6sm1539483pdn.23.2014.07.22.11.57.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Jul 2014 11:57:55 -0700 (PDT) From: Jassi Brar To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ks.giri@samsung.com, arnd@arndb.de, ijc@hellion.org.uk, mark.rutland@arm.com, robh@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, t.takinishi@jp.fujitsu.com, broonie@linaro.org, khilman@linaro.org, mollie.wu@linaro.org, andy.green@linaro.org, lee.jones@linaro.org, Jassi Brar Subject: [PATCHv9 4/4] dt: mailbox: add generic bindings Date: Wed, 23 Jul 2014 00:27:36 +0530 Message-Id: <1406055456-29384-1-git-send-email-jaswinder.singh@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1406055250-29159-1-git-send-email-jaswinder.singh@linaro.org> References: <1406055250-29159-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.178 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 --- .../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>; + };