From patchwork Mon Jun 26 15:55:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 106358 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp166720qge; Mon, 26 Jun 2017 08:55:50 -0700 (PDT) X-Received: by 10.98.74.194 with SMTP id c63mr806978pfj.58.1498492550343; Mon, 26 Jun 2017 08:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498492550; cv=none; d=google.com; s=arc-20160816; b=erzjKVNYCoTLYGFZXuV1NNN0HZyOEgvOI5g/Xj64yzTrYBjmQsDFJjvmY6l17Z3VUK WwQvQgUBCunNcogN21FgpPA41IldVZB261QCukRfY07OqZU2g2jmh6K8wSsRf978ccbt 4tOzE7p582/KdLgn3uJZDzWu0iGlKaqz2kumBHle8d+Eh7QVlDUma84tgfPmHa4y/KOZ QOY+n/bQoYKPR2eqBKSJ5f3jJF79PJz73NjnUbSL9ubUukJfe5tpGy8AybFhc0CDKLim b/buOIIt/tUWcTNiB9GbM9HzsXWvi4SdvWP0zUCPODgNw+Yt6I9TWbxaSrteXAcExcb2 naNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=4A8NBaVCtyLsOL0o4ujDCT/OkCBzMPsA2NQfn1d8Er0=; b=nChEZcxkVi0jrOdw2R8ZP49pQ/7HwqUoaaDUYRvgrRUA2W6MRmkIEI/SVKeRBurVu3 BYbjprqkEDA++UWTNtiY7nTfjDFROShSD8ktL0mf1uXNj33GIj5cs/oQxzZUQtAXZFIy xpdVrPH9dff0zQHvXxrk5Y594nH3/bQ2+2Se84Rc6x/4sezUbdvSpNUkRknmzfEpYm/p H3HCYSzlToxbCgTb0kr9r21DKH4eJkq5xJYDwoJGmIpr2BT+r7uYrjjyfJXiBB4IZIjW U57ZKQZDRD50bTaOid3QUMkYHyDPPOtk8XHEC7wI234jiZcoeWTHTNr5mfjzcANQh7fX 8IQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si266516pld.526.2017.06.26.08.55.49; Mon, 26 Jun 2017 08:55:50 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752289AbdFZPzk (ORCPT + 25 others); Mon, 26 Jun 2017 11:55:40 -0400 Received: from foss.arm.com ([217.140.101.70]:46000 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751806AbdFZPzY (ORCPT ); Mon, 26 Jun 2017 11:55:24 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7FBBF15AD; Mon, 26 Jun 2017 08:55:23 -0700 (PDT) Received: from e107155-lin.cambridge.arm.com (e107155-lin.cambridge.arm.com [10.1.211.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A4ABE3F4FF; Mon, 26 Jun 2017 08:55:21 -0700 (PDT) From: Sudeep Holla To: ALKML , LKML , DTML Cc: Sudeep Holla , Roy Franz , Harb Abdulhamid , Nishanth Menon , Arnd Bergmann , Loc Ho , Alexey Klimov , Matt Sealey , Rob Herring Subject: [PATCH 1/9] Documentation: dt-bindings: add support for mailbox client shared memory Date: Mon, 26 Jun 2017 16:55:05 +0100 Message-Id: <1498492513-29771-2-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498492513-29771-1-git-send-email-sudeep.holla@arm.com> References: <1498492513-29771-1-git-send-email-sudeep.holla@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Many users of the mailbox controllers depend on the shared memory between the two end points to exchange the main data while using simple doorbell mechanism to alert the end points of the presence of a message. This patch defines device tree bindings to represent such shared memory in a generic way. Cc: Rob Herring Signed-off-by: Sudeep Holla --- .../devicetree/bindings/mailbox/mailbox.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/mailbox/mailbox.txt b/Documentation/devicetree/bindings/mailbox/mailbox.txt index be05b9746c69..af8ecee2ac68 100644 --- a/Documentation/devicetree/bindings/mailbox/mailbox.txt +++ b/Documentation/devicetree/bindings/mailbox/mailbox.txt @@ -23,6 +23,11 @@ assign appropriate mailbox channel to client drivers. Optional property: - mbox-names: List of identifier strings for each mailbox channel. +- shmem : List of phandle pointing to the shared memory(SHM) area between the + users of these mailboxes for IPC, one for each mailbox. This shared + memory can be part of any memory reserved for the purpose of this + communication between the mailbox client and the remote. + Example: pwr_cntrl: power { @@ -30,3 +35,26 @@ assign appropriate mailbox channel to client drivers. mbox-names = "pwr-ctrl", "rpc"; mboxes = <&mailbox 0 &mailbox 1>; }; + +Example with shared memory(shmem): + + sram: sram@50000000 { + compatible = "mmio-sram"; + reg = <0x50000000 0x10000>; + + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x50000000 0x10000>; + + cl_shmem: shmem@0 { + compatible = "client-shmem"; + reg = <0x0 0x200>; + }; + }; + + client@2e000000 { + ... + mboxes = <&mailbox 0>; + shmem = <&cl_shmem>; + .. + };