From patchwork Wed Oct 11 05:08:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 9998695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BBF9660230 for ; Wed, 11 Oct 2017 05:21:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0527288B8 for ; Wed, 11 Oct 2017 05:21:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A511F288BE; Wed, 11 Oct 2017 05:21:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 438E6288B8 for ; Wed, 11 Oct 2017 05:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=SWPaPNdzHd6gpdTmjfT7NMNkfmA5EjhD+b1z/oKbJHo=; b=iXqXQ6+RPHPVVTi8lELd4B4Tly KzRRnsoGA+/BM6IZZbw10jA5STdzuVtApbS5NagaE4D+/T9oTpbsJFbn7d3PCLrj6g2hSli7+iz5r rpZ1bTPesuiKBq4f4VUHLtu/W2870n0C1jFsGHPJc5oNBT5zYY9jlSBY5MaMGsUgXk0PphIctJOdO 6xAZvouz6dgAoQDpph5MSNto782kUVKsfwV6Q95ZsO16RgMO5o7CS6Rwp1ai9nzCnyBzJLUXdlE0n e9Sc2K7vmqGYe3KYx59TMyYH7OnoqZuvpUVhZdJHaJphmpQpX1kxxdyq+HtNsn/IVhVcCz/PZprZw od2/HdwQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e29Rw-0002EP-V5; Wed, 11 Oct 2017 05:20:56 +0000 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e29Gr-00036q-CJ for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2017 05:09:31 +0000 Received: by mail-pf0-x231.google.com with SMTP id x7so562122pfa.1 for ; Tue, 10 Oct 2017 22:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0Jlqb9y6+kJzMWt7nfCr8lCfDPwqsQ1aSqmhAIlqXb4=; b=SJrHzEEAmUaLH275ZSyeCaayNRULeRN+JhCeTBgt1nZDtrVisRhxYdmKou3O91X5Hk GnRIdObchQ2trSuuBCwOpzWSTvKZzADix5t2m9Y8EOuyQbEECG86UkJFuyV6+9MzgbCE s6GEzJccjUnArDdRDZ64eMGRzz3+sbFOMMfgQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0Jlqb9y6+kJzMWt7nfCr8lCfDPwqsQ1aSqmhAIlqXb4=; b=UDbHJhYGvZaYULYK5NwIZicrmdSpaaVTQ/m8e8/vikQ/wWe13FrBaBrgND1ajcBXXQ tUM3WyYPQYhaf/gtX9RkfHhqy3+aG+puezDFB1xjPqpYmXrPkkHd0111UHSo9TLEyHu/ OuEOR8HW0KYf/iu+fBkkB6PBNSUoPLvcqC4yS71TPQr27vc6ZAIiY2n635F6wiA8TQqt CnAyqKHepVSo6GnLjbuAuSO8xbKPjvebToENjxmNjqwAvwD69AB+Zsy9TWY+1S+Qal9q Vxh8mp5Wm42GGwVZiwLGXaDIdKTeHNAxsEmD9QpoM3zd4UEGxG6rmUlOmvWnbA5S1P2k sz+w== X-Gm-Message-State: AMCzsaWrxJn3pF16E3pgmTRSugjG3ds4QBndUg18OAF9xVA7+kodx4/q IDtVVGOiOVXgq0HlGkh2oG03ew== X-Google-Smtp-Source: AOwi7QADrZiqVOayJMTwltGJYD8IXDPtm0vSqR6j8gwfGS0hThs9dFjsjJbilmmGPOAQL5TDzdH9oQ== X-Received: by 10.99.178.15 with SMTP id x15mr8668282pge.243.1507698546802; Tue, 10 Oct 2017 22:09:06 -0700 (PDT) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id n29sm28336361pgd.74.2017.10.10.22.09.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Oct 2017 22:09:06 -0700 (PDT) From: Bjorn Andersson To: Andy Gross Subject: [PATCH v4 3/5] dt-binding: soc: qcom: Add binding for rmtfs memory Date: Tue, 10 Oct 2017 22:08:55 -0700 Message-Id: <20171011050857.7588-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171011050857.7588-1-bjorn.andersson@linaro.org> References: <20171011050857.7588-1-bjorn.andersson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171010_220929_521957_241CC1AC X-CRM114-Status: GOOD ( 17.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Tony Luck , Kees Cook , linux-arm-msm@vger.kernel.org, Anton Vorontsov , linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, David Brown , Rob Herring , Colin Cross , Frank Rowand , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the binding for describing shared memory used to exchange file system blocks between the RMTFS client and service. A client for this is generally found in the modem firmware and is used for accessing persistent storage for things such as radio calibration. Acked-by: Rob Herring Signed-off-by: Bjorn Andersson --- Changes since v3: - None Changes since v2: - Renamed compatible to "rmtfs-mem" in attempt to clarify that this is not a file system, but some chunk of memory. Changed since v1: - Memory described in a single reserved-memory node, rather than by reference from a "dummy" node - qcom,vmdid added .../bindings/reserved-memory/qcom,rmtfs-mem.txt | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt diff --git a/Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt b/Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt new file mode 100644 index 000000000000..8562ba1dce69 --- /dev/null +++ b/Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt @@ -0,0 +1,51 @@ +Qualcomm Remote File System Memory binding + +This binding describes the Qualcomm remote filesystem memory, which serves the +purpose of describing the shared memory region used for remote processors to +access block device data using the Remote Filesystem protocol. + +- compatible: + Usage: required + Value type: + Definition: must be: + "qcom,rmtfs-mem" + +- reg: + Usage: required for static allocation + Value type: + Definition: must specify base address and size of the memory region, + as described in reserved-memory.txt + +- size: + Usage: required for dynamic allocation + Value type: + Definition: must specify a size of the memory region, as described in + reserved-memory.txt + +- qcom,client-id: + Usage: required + Value type: + Definition: identifier of the client to use this region for buffers. + +- qcom,vmid: + Usage: optional + Value type: + Definition: vmid of the remote processor, to set up memory protection. + += EXAMPLE +The following example shows the remote filesystem memory setup for APQ8016, +with the rmtfs region for the Hexagon DSP (id #1) located at 0x86700000. + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + rmtfs@86700000 { + compatible = "qcom,rmtfs-mem"; + reg = <0x0 0x86700000 0x0 0xe0000>; + no-map; + + qcom,client-id = <1>; + }; + };