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: 796973 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="WDLihPZj"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xNFB214Qtz9s65 for ; Thu, 3 Aug 2017 12:58:34 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752122AbdHCC6G (ORCPT ); Wed, 2 Aug 2017 22:58:06 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:35071 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbdHCC6D (ORCPT ); Wed, 2 Aug 2017 22:58:03 -0400 Received: by mail-pg0-f47.google.com with SMTP id v189so790013pgd.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=fKt1sPCzTZQvtUzIPUKns4bBffO4bn7xhSB7Cf2iqiLOcAuopQpvcnM5stI35emvw6 9FDUV5gySMPZwIuAZec8DxxCTi0ch7gmLv2x6VjsLXgg1Id7YybOqH1Yi2O16O9dstOa 3eb3rtBbm5mLvPPhmM2Yo8HI4YkMjonqMC1zpQxDB171rTpc+6mntYSJrnKLW6thSZ5T mV1/bmafCp2IV5honwnr12js/dgaktrWAGFZUJzTOq/em/fylGAimIiZwNwiHik1gudv fqAY3+ZcC3GRJVZpAlv7uk1DVKPd+yTWvuTPntQHDZ5UOTrKlgk3H9NJtbWtqWlnXvvS c9QQ== X-Gm-Message-State: AIVw110suEZrAJ3UqSEQGMd9BsYBsW0BUB9but/lge92vMjQNQiManz3 kUtVGmN2rvSzb3Q4 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Acked-by: Rob Herring --- 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 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>; + }; + };