Received: by 10.223.185.116 with SMTP id b49csp899403wrg; Fri, 23 Feb 2018 08:30:54 -0800 (PST) X-Google-Smtp-Source: AH8x225X4vYZ2mvu82PnFjBHNrXasVW2Ny3gWPtj51PfbcnYczejoYitvaRL2Mx9/QGygUNlNesk X-Received: by 10.98.237.21 with SMTP id u21mr2331455pfh.190.1519403454511; Fri, 23 Feb 2018 08:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519403454; cv=none; d=google.com; s=arc-20160816; b=DFC+gpXS9Q6a2q0qHlGozJT3P2huJhCaPpiEnx3r1U4mHix43L8/g6kOEZLFmzYfnx fmMNSUINnkk9Xwq8SuHiEaBeud8V7kmy29XpzAW/UFDxwGuaWD9u0EJVhP7DpgunSeRG +IoDreaVrTE1kHxCVa9JW9IaZsOqWX0ydm79u9CUao//90wL1CJnf4komJrnYTehy9zH A+5pZeX9LVAM6t3q3TNxIv8L5qCpeshMJoY1CoY3UfAYe4ggc5gnJXLM+3jUE/j53/04 Ji84FFAe/5G+tzh1tiaXHLk9+nKGslJwNKdzetcbSaryZyH6tqzwgFlT1vfLTXqM8Ftz hYSw== 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=q3UXyp+tnqviAHY2DeuyyRpdyMaApC+pjq/q5ocp9lw=; b=L/FVD01KahNaWS26xcardHKFwsb5zKXRZ2QQe8LDjQkbTDlKVSOL72J6DaVaqlcj+q 9DJq4EcLTSRjf1ttM8RgJcqqLIWF8LSO7oQ8qyuuDH/bukSfxDIijx6DP4wxdY278MJH OIKB9ZTN5qsGVDC/9kle5DMTEA7munsyO+mQ0LOLS6wZlZHy/DL/GnKy4JSMIsGeGeyU rqNQgRAVvZp3f8qCj4GvaX6bhMH4Jn4YuHXm/EMp8X1Kmm2GSGPi7hAiIKJM4rg7d05r ymIJgTM0P8bGaZoVpEN9YrNCXt5U5rAr99Id+hS78xct616iXU5Lta4fiQKuzklIveSs 0itw== 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 c19si2035111pfd.343.2018.02.23.08.30.40; Fri, 23 Feb 2018 08:30:54 -0800 (PST) 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 S1751827AbeBWQYQ (ORCPT + 99 others); Fri, 23 Feb 2018 11:24:16 -0500 Received: from foss.arm.com ([217.140.101.70]:57212 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751686AbeBWQYJ (ORCPT ); Fri, 23 Feb 2018 11:24:09 -0500 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 7654015AD; Fri, 23 Feb 2018 08:24:09 -0800 (PST) Received: from e107155-lin.cambridge.arm.com (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F15E43F25C; Fri, 23 Feb 2018 08:24:07 -0800 (PST) From: Sudeep Holla To: ALKML , LKML , DTML Cc: Sudeep Holla , Alexey Klimov , Arnd Bergmann , Greg Kroah-Hartman , Mark Rutland Subject: [PATCH v6 01/20] dt-bindings: mailbox: add support for mailbox client shared memory Date: Fri, 23 Feb 2018 16:23:31 +0000 Message-Id: <1519403030-21189-2-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519403030-21189-1-git-send-email-sudeep.holla@arm.com> References: <1519403030-21189-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: Mark Rutland Acked-by: Rob Herring Signed-off-by: Sudeep Holla --- .../devicetree/bindings/mailbox/mailbox.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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>; + .. + }; -- 2.7.4