From patchwork Fri Feb 23 16:23:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 129434 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp789196lja; Fri, 23 Feb 2018 08:24:21 -0800 (PST) X-Google-Smtp-Source: AH8x2255g8e3aqWTR2ogOnJaeHPhE9unRrDtUe7iUpKRni1RPU+MmcUTiEqsOS/pZgJimbHGmQcI X-Received: by 10.98.237.21 with SMTP id u21mr2312398pfh.190.1519403061320; Fri, 23 Feb 2018 08:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519403061; cv=none; d=google.com; s=arc-20160816; b=BusDa02miF2js8BY1cLBnvZyLwZ7vN/l5SQ6PXFf7e6dWEZ/kS8SIlUCqTEwg+MiPJ kTHSdcq6BJMlF7iHnYVIfttthtlv+ltX7MyC39ej85vNfKbEaEzMrBiNfAP9FcWyoMrs OAk2aBPw0Vb+3yu6eShusvplaR0tcv0LZHlgihVeO6kgz6LF4I8gcrt6Lv99Krq9sNDn CB1blavKVKeNHPrq3qujMZKwG4k0YYUmS4/PZ4BQu2virqio768zpgt7Io6hjdCGY92X 8Q4uEHJzOMqQ9HF4mIgWZ4JY1qOyNSavr91Yvxhb9tMougISdHH3YbYwn53lZ72aViRY bpHA== 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 v187si2040603pfv.173.2018.02.23.08.24.21; Fri, 23 Feb 2018 08:24:21 -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 S1751836AbeBWQYQ (ORCPT + 28 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(+) -- 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>; + .. + };