From patchwork Tue Sep 30 00:34:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 4999611 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9BAF4BEEA6 for ; Tue, 30 Sep 2014 00:38:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C1CAF201EC for ; Tue, 30 Sep 2014 00:38:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DF36B20109 for ; Tue, 30 Sep 2014 00:38:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYlPl-0007nq-8z; Tue, 30 Sep 2014 00:35:37 +0000 Received: from seldrel01.sonyericsson.com ([212.209.106.2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYlPR-0006Z3-BT for linux-arm-kernel@lists.infradead.org; Tue, 30 Sep 2014 00:35:19 +0000 From: Bjorn Andersson To: Kumar Gala , Andy Gross , Arnd Bergmann , Grant Likely , Ian Campbell , Mark Rutland , Pawel Moll , Rob Herring Subject: [RFC 1/7] soc: qcom: Add device tree binding for SMEM Date: Mon, 29 Sep 2014 17:34:45 -0700 Message-ID: <1412037291-16880-2-git-send-email-bjorn.andersson@sonymobile.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1412037291-16880-1-git-send-email-bjorn.andersson@sonymobile.com> References: <1412037291-16880-1-git-send-email-bjorn.andersson@sonymobile.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140929_173518_746368_D24F64E3 X-CRM114-Status: GOOD ( 11.38 ) X-Spam-Score: -5.0 (-----) Cc: devicetree@vger.kernel.org, Samuel Ortiz , linux-arm-msm@vger.kernel.org, Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown , Lee Jones , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add device tree binding documentation for the Qualcom Shared Memory manager. Signed-off-by: Bjorn Andersson --- Exposed by this node is a set of items of different sizes. For many things a standard of_xlate method of referencing the individual nodes would be preferable, so a #something-cells would make sense. We do however also needs access to these items without explicitly stating the references in devicetree (e.g. SMD references 257 of these). I haven't found any good example of how to implement this, so suggestions are welcome. Note that the hwspinlock reference is not yet supported in the mainline, but this will likely need a few iterations so I wanted to get this out. .../devicetree/bindings/soc/qcom/qcom,smem.txt | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt new file mode 100644 index 0000000..ddd58c7 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt @@ -0,0 +1,34 @@ +Qualcomm Shared Memory binding + +This binding describes the Qualcomm Shared Memory, used to share data between +various subsystems and OSes in Qualcomm platforms. + +- compatible: + Usage: required + Value type: + Definition: must be: + "qcom,smem" + +- reg: + Usage: required + Value type: + Definition: base address and size pair for each area representing the + shared memory. The first pair will must represent the "main" + area, where the shared memory header and table-of-content + can be found. + +- hwspinlocks: + Usage: required + Value type: + Definition: reference to a hwspinlock used to protect allocations from + the shared memory + += EXAMPLE + + smem: smem@fa00000 { + compatible = "qcom,smem"; + reg = <0x0fa00000 0x200000>, + <0xfc428000 0x4000>; + + hwspinlocks = <&tcsr_mutex 3>; + };