devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] firmware: arm_ffa: Add DT support
@ 2025-01-21  6:56 Viresh Kumar
  2025-01-21  6:56 ` [PATCH 1/3] dt-bindings: firmware: Add bindings for ARM FFA Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Viresh Kumar @ 2025-01-21  6:56 UTC (permalink / raw)
  To: Conor Dooley, Krzysztof Kozlowski, Rob Herring, Sudeep Holla,
	Viresh Kumar
  Cc: Vincent Guittot, Alex Bennée, Bill Mills, devicetree,
	linux-arm-kernel, linux-kernel

Hello,

This series proposes basic DT bindings for FFA devices, and sets up the of_node
and dma_configure() callback for the devices.

Viresh Kumar (3):
  dt-bindings: firmware: Add bindings for ARM FFA
  firmware: arm_ffa: Setup of_node for ffa devices
  firmware: arm_ffa: Provide .dma_configure()

 .../devicetree/bindings/firmware/arm,ffa.yaml | 75 +++++++++++++++++++
 drivers/firmware/arm_ffa/bus.c                | 39 ++++++++++
 2 files changed, 114 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/firmware/arm,ffa.yaml

-- 
2.31.1.272.g89b43f80a514


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

* [PATCH 1/3] dt-bindings: firmware: Add bindings for ARM FFA
  2025-01-21  6:56 [PATCH 0/3] firmware: arm_ffa: Add DT support Viresh Kumar
@ 2025-01-21  6:56 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2025-01-21  6:56 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Viresh Kumar
  Cc: Vincent Guittot, Alex Bennée, Bill Mills, devicetree,
	linux-kernel

This adds DT bindings for ARM's FFA framework. The bindings are used to
provide a reserved memory region per FFA device.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 .../devicetree/bindings/firmware/arm,ffa.yaml | 75 +++++++++++++++++++
 1 file changed, 75 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/firmware/arm,ffa.yaml

diff --git a/Documentation/devicetree/bindings/firmware/arm,ffa.yaml b/Documentation/devicetree/bindings/firmware/arm,ffa.yaml
new file mode 100644
index 000000000000..b88d6cec7e16
--- /dev/null
+++ b/Documentation/devicetree/bindings/firmware/arm,ffa.yaml
@@ -0,0 +1,75 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+# Copyright 2021 ARM Ltd.
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/firmware/arm,ffa.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Arm Firmware Framework for A-class
+
+maintainers:
+  - Viresh Kumar <viresh.kumar@linaro.org>
+
+description: |
+  ARM FFA (Arm Firmware Framework for A-class) is a framework designed to
+  facilitate communication and resource sharing between various software
+  components in an Arm system, such as operating systems, hypervisors, and
+  trusted execution environments (TEEs). It's particularly used in systems
+  leveraging the Armv8-A architecture and later.
+
+  This binding is intended to define the interface the firmware implementing the
+  FFA provide in the device tree.
+
+  https://developer.arm.com/documentation/den0077/
+
+properties:
+  $nodename:
+    pattern: '^ffa(-[a-z0-9]+)?$'
+
+  compatible:
+    const: arm,ffa
+
+  vm-id:
+    description: Virtual machine identifier.
+    $ref: /schemas/types.yaml#/definitions/uint32
+
+  uuid:
+    description: Universally Unique Identifier.
+    $ref: /schemas/types.yaml#/definitions/uint32-matrix
+    minItems: 4
+    maxItems: 4
+
+  memory-region:
+    maxItems: 1
+    description:
+      Reserved memory allocated for sharing with other software components.
+
+additionalProperties: false
+
+required:
+  - compatible
+  - vm-id
+  - uuid
+
+examples:
+  - |
+    reserved-memory {
+        #address-cells = <1>;
+        #size-cells = <1>;
+        ranges;
+
+        ffa_2_mem: ffamem@81000000 {
+            compatible = "restricted-dma-pool";
+            reg = <0x81000000 0x00800000>;
+        };
+    };
+
+    firmware {
+        ffa {
+            compatible = "arm,ffa";
+            vm-id = <2>;
+            uuid = <0xc5b82091 0x48bbd4fe 0x244de7b7 0xbe28bb6e>;
+            memory-region = <&ffa_2_mem>;
+        };
+    };
+...
-- 
2.31.1.272.g89b43f80a514


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

end of thread, other threads:[~2025-01-21  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-21  6:56 [PATCH 0/3] firmware: arm_ffa: Add DT support Viresh Kumar
2025-01-21  6:56 ` [PATCH 1/3] dt-bindings: firmware: Add bindings for ARM FFA Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).