All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] dt-binding: soc: qcom: convert rmtfs documentation to yaml
@ 2021-12-18 18:28 David Heidelberg
  2021-12-22 17:23 ` Rob Herring
  2022-01-26 20:43 ` patchwork-bot+linux-arm-msm
  0 siblings, 2 replies; 3+ messages in thread
From: David Heidelberg @ 2021-12-18 18:28 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring
  Cc: Caleb Connolly, David Heidelberg, linux-arm-msm, devicetree,
	linux-kernel

Convert Qualcomm Remote File System Memory binding to the yaml format.

Signed-off-by: David Heidelberg <david@ixit.cz>
---
v2: also removed old txt binding file
 .../reserved-memory/qcom,rmtfs-mem.txt        | 51 ------------------
 .../reserved-memory/qcom,rmtfs-mem.yaml       | 53 +++++++++++++++++++
 2 files changed, 53 insertions(+), 51 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt
 create mode 100644 Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.yaml

diff --git a/Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt b/Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt
deleted file mode 100644
index 8562ba1dce69..000000000000
--- a/Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt
+++ /dev/null
@@ -1,51 +0,0 @@
-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: <stringlist>
-	Definition: must be:
-		    "qcom,rmtfs-mem"
-
-- reg:
-	Usage: required for static allocation
-	Value type: <prop-encoded-array>
-	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: <prop-encoded-array>
-	Definition: must specify a size of the memory region, as described in
-		    reserved-memory.txt
-
-- qcom,client-id:
-	Usage: required
-	Value type: <u32>
-	Definition: identifier of the client to use this region for buffers.
-
-- qcom,vmid:
-	Usage: optional
-	Value type: <u32>
-	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>;
-		};
-	};
diff --git a/Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.yaml b/Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.yaml
new file mode 100644
index 000000000000..2998f1c8f0db
--- /dev/null
+++ b/Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.yaml
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/reserved-memory/qcom,rmtfs-mem.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Qualcomm Remote File System Memory
+
+description: |
+  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.
+
+maintainers:
+  - Bjorn Andersson <bjorn.andersson@linaro.org>
+
+allOf:
+  - $ref: "reserved-memory.yaml"
+
+properties:
+  compatible:
+    const: qcom,rmtfs-mem
+
+  qcom,client-id:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: >
+      identifier of the client to use this region for buffers
+
+  qcom,vmid:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: >
+      vmid of the remote processor, to set up memory protection
+
+required:
+  - qcom,client-id
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    reserved-memory {
+        #address-cells = <1>;
+        #size-cells = <1>;
+        ranges;
+
+        rmtfs@86700000 {
+            compatible = "qcom,rmtfs-mem";
+            reg = <0x86700000 0xe0000>;
+            no-map;
+
+            qcom,client-id = <1>;
+        };
+    };
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] dt-binding: soc: qcom: convert rmtfs documentation to yaml
  2021-12-18 18:28 [PATCH v2] dt-binding: soc: qcom: convert rmtfs documentation to yaml David Heidelberg
@ 2021-12-22 17:23 ` Rob Herring
  2022-01-26 20:43 ` patchwork-bot+linux-arm-msm
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2021-12-22 17:23 UTC (permalink / raw)
  To: David Heidelberg
  Cc: linux-arm-msm, linux-kernel, Caleb Connolly, Andy Gross,
	Rob Herring, Bjorn Andersson, devicetree

On Sat, 18 Dec 2021 19:28:16 +0100, David Heidelberg wrote:
> Convert Qualcomm Remote File System Memory binding to the yaml format.
> 
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> v2: also removed old txt binding file
>  .../reserved-memory/qcom,rmtfs-mem.txt        | 51 ------------------
>  .../reserved-memory/qcom,rmtfs-mem.yaml       | 53 +++++++++++++++++++
>  2 files changed, 53 insertions(+), 51 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt
>  create mode 100644 Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.yaml
> 

Applied, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] dt-binding: soc: qcom: convert rmtfs documentation to yaml
  2021-12-18 18:28 [PATCH v2] dt-binding: soc: qcom: convert rmtfs documentation to yaml David Heidelberg
  2021-12-22 17:23 ` Rob Herring
@ 2022-01-26 20:43 ` patchwork-bot+linux-arm-msm
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2022-01-26 20:43 UTC (permalink / raw)
  To: David Heidelberg; +Cc: linux-arm-msm

Hello:

This patch was applied to qcom/linux.git (for-next)
by Rob Herring <robh@kernel.org>:

On Sat, 18 Dec 2021 19:28:16 +0100 you wrote:
> Convert Qualcomm Remote File System Memory binding to the yaml format.
> 
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> v2: also removed old txt binding file
>  .../reserved-memory/qcom,rmtfs-mem.txt        | 51 ------------------
>  .../reserved-memory/qcom,rmtfs-mem.yaml       | 53 +++++++++++++++++++
>  2 files changed, 53 insertions(+), 51 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.txt
>  create mode 100644 Documentation/devicetree/bindings/reserved-memory/qcom,rmtfs-mem.yaml

Here is the summary with links:
  - [v2] dt-binding: soc: qcom: convert rmtfs documentation to yaml
    https://git.kernel.org/qcom/c/f3a9f2b23c3c

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-26 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-18 18:28 [PATCH v2] dt-binding: soc: qcom: convert rmtfs documentation to yaml David Heidelberg
2021-12-22 17:23 ` Rob Herring
2022-01-26 20:43 ` patchwork-bot+linux-arm-msm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.