From: Viresh Kumar <viresh.kumar@linaro.org>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>
Cc: "Vincent Guittot" <vincent.guittot@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Bill Mills" <bill.mills@linaro.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/3] dt-bindings: firmware: Add bindings for ARM FFA
Date: Tue, 21 Jan 2025 12:26:38 +0530 [thread overview]
Message-ID: <505bb9d66e8d4d8e505201eced6751b6fd6b1dcf.1737441631.git.viresh.kumar@linaro.org> (raw)
In-Reply-To: <cover.1737441631.git.viresh.kumar@linaro.org>
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
prev parent reply other threads:[~2025-01-21 6:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-21 6:56 [PATCH 0/3] firmware: arm_ffa: Add DT support Viresh Kumar
2025-01-21 6:56 ` Viresh Kumar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=505bb9d66e8d4d8e505201eced6751b6fd6b1dcf.1737441631.git.viresh.kumar@linaro.org \
--to=viresh.kumar@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=bill.mills@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=vincent.guittot@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).