From patchwork Thu Oct 5 03:32:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 114828 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp132404qgn; Wed, 4 Oct 2017 20:33:16 -0700 (PDT) X-Received: by 10.99.191.75 with SMTP id i11mr19917217pgo.136.1507174396371; Wed, 04 Oct 2017 20:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507174396; cv=none; d=google.com; s=arc-20160816; b=vx1njWVUr9Qo4bAjni2F465WgVpBun6qQ9v2/KG1m15a7HpvrgvcaJOH4W3ViejMiE JI8VOXUQO6rlnJXvMNTXOTzCZB5lmQorLetFQElcRrRTtRowS1vQiA9JBMF9rXikcfSw TtFXxMzY5/0szr2crsG/jBmB7llkGPgSlDPoTDGa1lpcPSFOIsk/pjHCc4P3uDARgkXn grwZqGLKHKxjBToDV/KWlUp1DvLu6kC6GqfGm1U1e3Lu475wv/RZilPk1T6n5ltiN+c2 Jmb4UmogglM+dApe1giDPM1ikG98S34Ll2Oex6t0MuXip1bZ9UsmjrynUtJ42cZvhwf8 RxcQ== 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=bblqEr0oAlCAn7QrbWSKCShA+/K1LGJRZ/8rdzEb9Fs=; b=iSrmuSqBxD4kDntw7XC9xIyMvQmSeRpNZHoZPcVorHx8y7dpb7B/W0BbEu8Xg9jaTA B701LoOGfNs4hN8o2CxOYh41GFN+HPHazMDO7IH4bqfTfJQp+xbhhrBhTPRqaEjTfHS/ jCkCBZ5qhZ+CLmBuoV64LXfEn4Rprgcx4xHi5IuJjLQ/fjUn21rUbwdNv9xzCFPeovpi ET4zmaltjIBlf8u7ba7ECalc/mQuamtxfvx6WTHBYBoJ1vgSeS37o/BHSodYrKGhlSBe TSdeNREcNa7DX3ZUbc+T6+gwTbERhbJo1kcyEcJc3GpShfFgGak+THZlhbNv/YC0CqhJ OjIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fUdFmM44; 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 h5si8293447pgf.245.2017.10.04.20.33.16; Wed, 04 Oct 2017 20:33:16 -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.s=google header.b=fUdFmM44; 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 S1751515AbdJEDdN (ORCPT + 26 others); Wed, 4 Oct 2017 23:33:13 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:50437 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbdJEDdI (ORCPT ); Wed, 4 Oct 2017 23:33:08 -0400 Received: by mail-pf0-f171.google.com with SMTP id m63so7304484pfk.7 for ; Wed, 04 Oct 2017 20:33: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=bblqEr0oAlCAn7QrbWSKCShA+/K1LGJRZ/8rdzEb9Fs=; b=fUdFmM44oKqQac55MSpKdUmshrlv7tLyqAAXTT5TqYVgNmi9aT2huGnJXZFASt69pz sehy2JuDlsx2IJtDqDs4AEktE7a+XJrNvNnLv02ffo9KEU/90DUWgh4lvPacrH1PSsZC UOClIhHvGuJuV/PR12X2ord+eQ3bnsHvQlv7Y= 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=bblqEr0oAlCAn7QrbWSKCShA+/K1LGJRZ/8rdzEb9Fs=; b=ulXMpFmOfxEGRqzQ6/PeXBk3/2PFx6mwwxgj8AhzQ9gJ3svUZQzTztCvm0iTo9qUss M2iymRIIrLvFCrCGBFIaM0rNGVLfpnceAJa6q+vMdYshQ5nQSfbYDZDEGyO5u2dthJKK YskQbVjsV2shpO1muTCW4Bt2S5ANf6aM+KVmns9+XrtAFCnqxnzcLZWqHxeIhYXuqTDP lwXndKZcsVRHr0Uhas0nFFt79TeexjEHcb17CjdPcx4CW/+6VpJXkGod8si3imSGo0rs Ls/y+O7CYF5H+l1YvYCOxkWsDwvnT8+lFNdxn4tp0oN5qD5Nbx6vdTNChFdMC4V8sdC0 ih4w== X-Gm-Message-State: AMCzsaW+ZyipWPWUsWgHapyVkuZnkbSDti1PTomlIkKZ5veGfWZzysfX n/BtebeiwdC+71IlDCUJ6ZVmKQ== X-Google-Smtp-Source: AOwi7QDQ7G3shy+x972uTzun8j0yITQcEYYhPS3xi3lCvSyrqjdFlGQvXwVfeGeCggFkWK1zdS02Qg== X-Received: by 10.98.220.220 with SMTP id c89mr595922pfl.167.1507174387310; Wed, 04 Oct 2017 20:33:07 -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 h70sm28945700pfc.51.2017.10.04.20.33.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 20:33:06 -0700 (PDT) From: Bjorn Andersson To: Andy Gross Cc: Anton Vorontsov , Colin Cross , David Brown , Frank Rowand , Kees Cook , Rob Herring , Tony Luck , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org Subject: [PATCH v3 3/5] dt-binding: soc: qcom: Add binding for rmtfs memory Date: Wed, 4 Oct 2017 20:32:56 -0700 Message-Id: <20171005033258.12825-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171005033258.12825-1-bjorn.andersson@linaro.org> References: <20171005033258.12825-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. 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 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 -- 2.12.0 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>; + }; + };