From patchwork Thu Aug 3 02:57:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 109287 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp212888qge; Wed, 2 Aug 2017 19:58:11 -0700 (PDT) X-Received: by 10.84.178.129 with SMTP id z1mr231346plb.260.1501729091756; Wed, 02 Aug 2017 19:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501729091; cv=none; d=google.com; s=arc-20160816; b=zyY5ZLFxunB5/STMQ3zznOMO2mg5qmM9L1WWw9KxLyAO21U6j48Wn6mPA3c9X9kZyD 9GF/yblzbq7g4/Tm/U/Z8i5FSohHsBjhT4tecVCquVdf6GYRknYlYHZv3U9i1Sj1Os5C /hpEP0/eknxzZxzGkjR5Gtr6yPDT+y/saPy6aHA01cJbLrrBJznsIA8NVDUGIgQ2d9vw IeDzDljtLCBfFdSi7Lged5V3kdP72f88tgWAns45oTyVDNYF0rwBKF9Eg/HKncvKO0sq 2zEb8BkXWiF3W1/1sAW2l6pMNO8F9a0XO9IT16DnFDA37OLybXe69De0ntGV03ZWuPId BHmA== 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:dkim-signature:arc-authentication-results; bh=lndZoWBcJEIXmSMZtTQsfQTfJW/xxNKcX/h5wS8R2dk=; b=si2xD83PmslGQFgPojL/3Q5sJlFwraa0Ao1pzBru2+Sm9pYT5/VCsGA1e5siDvvMag VRrW4Hu0ajcnZkvBQZFVsfVsO7J/63y8ZW1Q4ONk+4bfALkYbITore3uXzFPYcmhSJ70 FsYcD3d+fURM31MLqGY21imW/xbCWdIC9cMqQbEoIivg4Km0WP17jRFM3+GvrTn7i6wv 01ibOrgGLlcx/ratVMzzlP1D8N9PtXf0h3Ph4Zkbs3FlW/Op9f9EC9nr3193BWPsYK/4 cqMSHaC2ASwLDPC7ScBtKNOhbIRkbDP5fcPZcI371iOzVlLfg8X4JBwOruOGP0qDqjMv vD+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=WDLihPZj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k184si4175040pgc.754.2017.08.02.19.58.11; Wed, 02 Aug 2017 19:58:11 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=WDLihPZj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752177AbdHCC6H (ORCPT + 25 others); Wed, 2 Aug 2017 22:58:07 -0400 Received: from mail-pg0-f48.google.com ([74.125.83.48]:35071 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752133AbdHCC6D (ORCPT ); Wed, 2 Aug 2017 22:58:03 -0400 Received: by mail-pg0-f48.google.com with SMTP id v189so790014pgd.2 for ; Wed, 02 Aug 2017 19:58:03 -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=lndZoWBcJEIXmSMZtTQsfQTfJW/xxNKcX/h5wS8R2dk=; b=WDLihPZj96NmMNEAZlBgFl76ytzJSdKRBjGpqZYrSniWUe7wUBckGWo9Kthk/3WD/7 UlvR7wkG6/xMErfgH15l/da27QUxrxlte7HlOTfgbvrACQrQKfv/VsVjk2r5oc6Qd4zh Op+JHdDz8h3rMNNgjFyI1aQFMLjgj8GWJ+r3A= 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=lndZoWBcJEIXmSMZtTQsfQTfJW/xxNKcX/h5wS8R2dk=; b=mqdUQMKXgAysrxgsrTSnQzxcOYIT/bWmnN0dEUdnqS2cW19VBVlKV1emQemqw1pq5d TxWyoFR7oMbQ91iSORY2jvhEKlTxwtob6Z9eqnpx6um5+45gqwXn5i5GgRnlQs1ujIZQ WLhtXjlzj1Kvv9GzWByh0y3ZFy1e+r9UXz36v5Qaotom87x32+jCEHNa4GVE/zq00/cj MVeABr4xiUTXvZtSbBcjWTdmwhcqHHGX1KEG8Q9tRv2r5neWgtDcS9fXobA7UwrArqEB c/YQ7a/pzcmz1Uw83ZWMKNgGYJVdrRVTrvwCdODmUb+A29V2ITRzpXrGNwxy1omGktV9 xdgw== X-Gm-Message-State: AIVw110MYO+4GXH4+6jr3iHFFXp5O0MQ/PelKMMp06aLLNSTRsozDi1u cK1IduwKpTxhUxYu X-Received: by 10.99.119.76 with SMTP id s73mr185480pgc.374.1501729083142; Wed, 02 Aug 2017 19:58:03 -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 z83sm10722573pfd.10.2017.08.02.19.58.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 19:58:02 -0700 (PDT) From: Bjorn Andersson To: Rob Herring , Frank Rowand , Andy Gross , David Brown , Mark Rutland Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v2 3/5] dt-binding: soc: qcom: Add binding for RFSA Date: Wed, 2 Aug 2017 19:57:52 -0700 Message-Id: <20170803025754.19101-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170803025754.19101-1-bjorn.andersson@linaro.org> References: <20170803025754.19101-1-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the binding for describing shared memory used to exchange file system blocks between the RMTFS client and service. Signed-off-by: Bjorn Andersson --- 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,rfsa.txt | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/reserved-memory/qcom,rfsa.txt -- 2.12.0 diff --git a/Documentation/devicetree/bindings/reserved-memory/qcom,rfsa.txt b/Documentation/devicetree/bindings/reserved-memory/qcom,rfsa.txt new file mode 100644 index 000000000000..d9bec8eec696 --- /dev/null +++ b/Documentation/devicetree/bindings/reserved-memory/qcom,rfsa.txt @@ -0,0 +1,51 @@ +Qualcomm Remote File System Access binding + +This binding describes the Qualcomm RFSA, 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,rfsa" + +- 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 RFSA setup for APQ8016, with the RFSA region +for the Hexagon DSP (id #1) located at 0x86700000. + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + rmtfs@86700000 { + compatible = "qcom,rfsa"; + reg = <0x0 0x86700000 0x0 0xe0000>; + no-map; + + qcom,client-id = <1>; + }; + };