From patchwork Tue Jan 2 14:42:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 123130 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp9041557qgn; Tue, 2 Jan 2018 06:43:04 -0800 (PST) X-Google-Smtp-Source: ACJfBotWL9TIFgVvqvgv4bsNyWaHVNnCooufI8KF6m9VEECDZYkTr5kfPew395wmww/xWI6akDhJ X-Received: by 10.99.181.24 with SMTP id y24mr39183561pge.270.1514904184737; Tue, 02 Jan 2018 06:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514904184; cv=none; d=google.com; s=arc-20160816; b=KQxPNW7TIR6MQ0tF7NJseqBVExwDNkz56O2p1mJzyngGWkg8XSKvXgoa3CW7ygm2PQ 8MHTW7lNqhyew6HkcnC5qAHqk/Kb8tOs9/Gp/TEqdPbVccUo/DPhd7uNqz0Oz7f4crT6 4Ikyhipnu1DDUmDwtgieix2cx6iXfOuBefZ8yhcWwqHVVE5bx/EKHFDFp3pezGNKDTHU f6GogTThF2NEtIBZKVTApA9P5aXCL5DVdinb8WURVuxUVppSPEsJxtebYU7wgA8x+lQr EdzHZqQz8t4ZGa10/KqqD8wt/JhamwX261OD/zfNCbjX1Vh4k6Asr7jjAHx8zUjb6NI5 GC9A== 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=V4LW9rt3eGtyy/2c6zORVxeOGQA5keecQDu7Lr2Tjwo=; b=w7Ii6IwUDEd734KOJMYtBN2p3AVfxjPhPGuePOzpQ2xrBzStJRk4BjTcMnSbsWKQeH IpOzL3ZxWg6FIoFPSDqXDfS5Nfs053B6mIuJmn/Vn2mOh8hD82yTwlVBW2buB+yn6nQ6 JF/eMGW+oKkJi//3ivkSE+FnLBw2KAXhHpqNwBDaaCVK9eYQeiXhUJUdMOz/YsCczAsh FK7apydl4i1CEL2pE1a0pKmkzHJGx+/YZFUP7UZA3R4o51oqqWukD9iRR1E/k/AF7DdL bTmrheIn+KJyWY+Gs3qP2lQpdofnPcPzGn3stF2ygu2bAh2frYu7+SfiEMKL/vJXnGso zbhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 a4si33957464pfj.350.2018.01.02.06.43.04; Tue, 02 Jan 2018 06:43:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753154AbeABOnB (ORCPT + 6 others); Tue, 2 Jan 2018 09:43:01 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39594 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753007AbeABOnA (ORCPT ); Tue, 2 Jan 2018 09:43:00 -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 BC7FF15A2; Tue, 2 Jan 2018 06:42:59 -0800 (PST) Received: from e107155-lin.cambridge.arm.com (e107155-lin.cambridge.arm.com [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 86A603F25C; Tue, 2 Jan 2018 06:42:57 -0800 (PST) From: Sudeep Holla To: ALKML , LKML , DTML Cc: Sudeep Holla , Roy Franz , Harb Abdulhamid , Nishanth Menon , Arnd Bergmann , Loc Ho , Alexey Klimov , Ryan Harkin , Jassi Brar , Mark Rutland Subject: [PATCH v5 01/20] dt-bindings: mailbox: add support for mailbox client shared memory Date: Tue, 2 Jan 2018 14:42:23 +0000 Message-Id: <1514904162-11201-2-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514904162-11201-1-git-send-email-sudeep.holla@arm.com> References: <1514904162-11201-1-git-send-email-sudeep.holla@arm.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + .. + };