blob: 34290f811773b02eae814c50558ee0ad310e6a05 [file] [log] [blame]
Olivier Deprez1b17f4f2021-04-21 11:22:23 +02001FF-A manifest binding to device tree
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -05002====================================
Louis Mayencourt79c70cc2019-11-29 15:05:14 +00003
4This document defines the nodes and properties used to define a partition,
Olivier Deprez1b17f4f2021-04-21 11:22:23 +02005according to the FF-A specification.
Louis Mayencourt79c70cc2019-11-29 15:05:14 +00006
Louis Mayencourt00f85082020-04-08 13:04:33 +01007Partition Properties
Olivier Deprez79a91382022-05-12 18:17:05 +02008--------------------
Louis Mayencourt79c70cc2019-11-29 15:05:14 +00009
10- compatible [mandatory]
11 - value type: <string>
J-Alves662af362020-05-07 18:42:25 +010012 - Must be the string "arm,ffa-manifest-X.Y" which specifies the major and
David Horstmann5d9101b2020-11-12 15:19:04 +000013 minor versions of the device tree binding for the FFA manifest represented
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000014 by this node. The minor number is incremented if the binding changes in a
15 backwards compatible manner.
Louis Mayencourta5bb3892020-03-27 11:49:20 +000016
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000017 - X is an integer representing the major version number of this document.
18 - Y is an integer representing the minor version number of this document.
19
J-Alves662af362020-05-07 18:42:25 +010020- ffa-version [mandatory]
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000021 - value type: <u32>
22 - Must be two 16 bits values (X, Y), concatenated as 31:16 -> X,
23 15:0 -> Y, where:
Louis Mayencourta5bb3892020-03-27 11:49:20 +000024
Olivier Deprez1b17f4f2021-04-21 11:22:23 +020025 - X is the major version of FF-A expected by the partition at the FFA
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000026 instance it will execute.
Olivier Deprez1b17f4f2021-04-21 11:22:23 +020027 - Y is the minor version of FF-A expected by the partition at the FFA
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000028 instance it will execute.
29
30- uuid [mandatory]
31 - value type: <prop-encoded-array>
Sudeep Holla4a7916a2025-03-26 15:26:34 +000032 - An array of comma separated tuples each consisting of 4 <u32> values,
33 identifying the UUID of the services implemented by this partition.
34 The UUID format is described in RFC 4122.
Sami Mujawar657d1da2025-03-03 10:08:54 +000035 - These 4 <u32> values are packed similar to the UUID register mapping
36 specified in section '5.3 Unique Identification format', SMC Calling
37 Convention, DEN0028, v1.6 G BET0
38 (https://developer.arm.com/documentation/den0028/latest/).
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000039
40- id
41 - value type: <u32>
42 - Pre-allocated partition ID.
43
44- auxiliary-id
45 - value type: <u32>
46 - Pre-allocated ID that could be used in memory management transactions.
47
48- description
49 - value type: <string>
50 - Name of the partition e.g. for debugging purposes.
51
52- execution-ctx-count [mandatory]
53 - value type: <u32>
54 - Number of vCPUs that a VM or SP wants to instantiate.
Louis Mayencourta5bb3892020-03-27 11:49:20 +000055
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000056 - In the absence of virtualization, this is the number of execution
57 contexts that a partition implements.
58 - If value of this field = 1 and number of PEs > 1 then the partition is
59 treated as UP & migrate capable.
60 - If the value of this field > 1 then the partition is treated as a MP
61 capable partition irrespective of the number of PEs.
62
63- exception-level [mandatory]
64 - value type: <u32>
65 - The target exception level for the partition:
Louis Mayencourta5bb3892020-03-27 11:49:20 +000066
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000067 - 0x0: EL1
68 - 0x1: S_EL0
69 - 0x2: S_EL1
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000070
71- execution-state [mandatory]
72 - value type: <u32>
73 - The target execution state of the partition:
Louis Mayencourta5bb3892020-03-27 11:49:20 +000074
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000075 - 0: AArch64
76 - 1: AArch32
77
78- load-address
79 - value type: <u64>
80 - Physical base address of the partition in memory. Absence of this field
81 indicates that the partition is position independent and can be loaded at
82 any address chosen at boot time.
83
84- entrypoint-offset
85 - value type: <u64>
86 - Offset from the base of the partition's binary image to the entry point of
87 the partition. Absence of this field indicates that the entry point is at
88 offset 0x0 from the base of the partition's binary.
89
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -050090- xlat-granule
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000091 - value type: <u32>
92 - Translation granule used with the partition:
Louis Mayencourta5bb3892020-03-27 11:49:20 +000093
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000094 - 0x0: 4k
95 - 0x1: 16k
Louis Mayencourt00f85082020-04-08 13:04:33 +010096 - 0x2: 64k
Louis Mayencourt79c70cc2019-11-29 15:05:14 +000097
98- boot-order
Madhukar Pappireddy9a010892024-07-25 17:46:08 -050099 - value type: <u32>
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000100 - A unique number amongst all partitions that specifies if this partition
101 must be booted before others. The partition with the smaller number will be
Madhukar Pappireddy9a010892024-07-25 17:46:08 -0500102 booted first. Highest vlue allowed for this field is 0xFFFF.
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000103
104- rx-tx-buffer
105 - value type: "memory-regions" node
106 - Specific "memory-regions" nodes that describe the RX/TX buffers expected
107 by the partition.
J-Alves662af362020-05-07 18:42:25 +0100108 The "compatible" must be the string "arm,ffa-manifest-rx_tx-buffer".
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000109
110- messaging-method [mandatory]
Madhukar Pappireddy9a010892024-07-25 17:46:08 -0500111 - value type: <u32>
Maksims Svecovsbb320db2021-05-06 14:17:00 +0100112 - Specifies which messaging methods are supported by the partition, set bit
113 means the feature is supported, clear bit - not supported:
Louis Mayencourta5bb3892020-03-27 11:49:20 +0000114
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -0500115 - Bit[0]: partition can receive direct requests via FFA_MSG_SEND_DIRECT_REQ ABI if set
116 - Bit[1]: partition can send direct requests via FFA_MSG_SEND_DIRECT_REQ ABI if set
Maksims Svecovs12349d32021-05-06 19:03:48 +0100117 - Bit[2]: partition can send and receive indirect messages
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -0500118 - Bit[9]: partition can receive direct requests via FFA_MSG_SEND_DIRECT_REQ2 ABI if set
119 - Bit[10]: partition can send direct requests via FFA_MSG_SEND_DIRECT_REQ2 ABI if set
Maksims Svecovs12349d32021-05-06 19:03:48 +0100120
121- managed-exit
122 - value type: <empty>
123 - Specifies if managed exit is supported.
Madhukar Pappireddy10b292e2022-09-01 10:57:21 -0500124 - This field is deprecated in favor of ns-interrupts-action field in the FF-A
125 v1.1 EAC0 spec.
126
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -0500127- managed-exit-virq
128 - value type: <empty>
129 - Indicates if the partition needs managed exit, if supported, to be signaled
Madhukar Pappireddy3406ff02024-09-18 10:20:07 -0500130 through vIRQ signal.
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -0500131
Madhukar Pappireddy10b292e2022-09-01 10:57:21 -0500132- ns-interrupts-action [mandatory]
133 - value type: <u32>
134 - Specifies the action that the SPMC must take in response to a Non-secure
135 physical interrupt.
136
137 - 0x0: Non-secure interrupt is queued
138 - 0x1: Non-secure interrupt is signaled after a managed exit
139 - 0x2: Non-secure interrupt is signaled
140
141 - This field supersedes the managed-exit field in the FF-A v1.0 spec.
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000142
Madhukar Pappireddyae1d9d92023-01-26 08:47:58 -0600143- other-s-interrupts-action
144 - value type: <u32>
145 - Specifies the action that the SPMC must take in response to a Other-Secure
146 physical interrupt.
147
148 - 0x0: Other-Secure interrupt is queued
149 - 0x1: Other-Secure interrupt is signaled
150
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000151- has-primary-scheduler
152 - value type: <empty>
153 - Presence of this field indicates that the partition implements the primary
154 scheduler. If so, run-time EL must be EL1.
155
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000156- time-slice-mem
157 - value type: <empty>
158 - Presence of this field indicates that the partition doesn't expect the
159 partition manager to time slice long running memory management functions.
160
161- gp-register-num
162 - value type: <u32>
J-Alves573ac372022-05-24 12:13:08 +0100163 - The field specifies the general purpose register number but not its width.
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000164 The width is derived from the partition's execution state, as specified in
165 the partition properties. For example, if the number value is 1 then the
166 general-purpose register used will be x1 in AArch64 state and w1 in AArch32
167 state.
J-Alves573ac372022-05-24 12:13:08 +0100168 Presence of this field indicates that the partition expects the address of
169 the FF-A boot information blob to be passed in the specified general purpose
170 register.
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000171
Marc Bonnici59bd2ad2022-04-12 17:18:13 +0100172- power-management-messages
173 - value type: <u32>
174 - Specifies which power management messages a partition subscribes to.
175 A set bit means the partition should be informed of the power event, clear
176 bit - should not be informed of event:
177
178 - Bit[0]: CPU_OFF
179 - Bit[1]: CPU_SUSPEND
180 - Bit[2]: CPU_SUSPEND_RESUME
181
Balint Dobszaya22f84f2024-07-10 11:46:37 +0200182- vm-availability-messages
183 - value type: <u32>
184 - Specifies which VM availability messages a partition subscribes to. A set
185 bit means the partition should be informed of the event, clear bit - should
186 not be informed of event:
187
188 - Bit[0]: VM created
189 - Bit[1]: VM destroyed
190
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -0500191.. _memory_region_node:
192
Louis Mayencourt00f85082020-04-08 13:04:33 +0100193Memory Regions
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000194--------------
195
196- compatible [mandatory]
197 - value type: <string>
J-Alves662af362020-05-07 18:42:25 +0100198 - Must be the string "arm,ffa-manifest-memory-regions".
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000199
200- description
201 - value type: <string>
202 - Name of the memory region e.g. for debugging purposes.
203
204- pages-count [mandatory]
205 - value type: <u32>
206 - Count of pages of memory region as a multiple of the translation granule
207 size
208
209- attributes [mandatory]
210 - value type: <u32>
Louis Mayencourt00f85082020-04-08 13:04:33 +0100211 - Mapping modes: ORed to get required permission
212
213 - 0x1: Read
214 - 0x2: Write
215 - 0x4: Execute
Olivier Deprez79a91382022-05-12 18:17:05 +0200216 - 0x8: Security state
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000217
218- base-address
219 - value type: <u64>
220 - Base address of the region. The address must be aligned to the translation
221 granule size.
222 The address given may be a Physical Address (PA), Virtual Address (VA), or
Olivier Deprez79a91382022-05-12 18:17:05 +0200223 Intermediate Physical Address (IPA). Refer to the FF-A specification for
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000224 more information on the restrictions around the address type.
225 If the base address is omitted then the partition manager must map a memory
226 region of the specified size into the partition's translation regime and
227 then communicate the region properties (including the base address chosen
228 by the partition manager) to the partition.
229
Davidson Kac22a772024-09-03 16:35:37 +0530230- load-address-relative-offset
231 - value type: <u64>
232 - Offset relative to the load address of the partition.
233 When this is provided in the partition manifest, it should be added to the
234 load address to get the base address of the region. The secure partition
235 manifest can have either "base-address" or "load-address-relative-offset".
236 It cannot have both.
237
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -0500238- stream-ids
239 - value type: <prop-encoded-array>
240 - List of IDs belonging to a DMA capable peripheral device that has access to
241 the memory region represented by current node.
242 - Each ID must have been declared in exactly one device region node.
243
244- smmu-id
245 - value type: <u32>
246 - Identifies the SMMU IP that enforces the access control for the DMA device
247 that owns the above stream-ids.
248
249- stream-ids-access-permissions
250 - value type: <prop-encoded-array>
251 - List of attributes representing the instruction and data access permissions
252 used by the DMA device streams to access the memory region represented by
253 current node.
254
255.. _device_region_node:
256
Louis Mayencourt00f85082020-04-08 13:04:33 +0100257Device Regions
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000258--------------
259
260- compatible [mandatory]
261 - value type: <string>
J-Alves662af362020-05-07 18:42:25 +0100262 - Must be the string "arm,ffa-manifest-device-regions".
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000263
264- description
265 - value type: <string>
266 - Name of the device region e.g. for debugging purposes.
267
Olivier Deprez79a91382022-05-12 18:17:05 +0200268- pages-count [mandatory]
269 - value type: <u32>
270 - Count of pages of memory region as a multiple of the translation granule
271 size
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000272
273- attributes [mandatory]
274 - value type: <u32>
Louis Mayencourt00f85082020-04-08 13:04:33 +0100275 - Mapping modes: ORed to get required permission
276
277 - 0x1: Read
278 - 0x2: Write
279 - 0x4: Execute
Olivier Deprez79a91382022-05-12 18:17:05 +0200280 - 0x8: Security state
281
282- base-address [mandatory]
283 - value type: <u64>
284 - Base address of the region. The address must be aligned to the translation
285 granule size.
286 The address given may be a Physical Address (PA), Virtual Address (VA), or
287 Intermediate Physical Address (IPA). Refer to the FF-A specification for
288 more information on the restrictions around the address type.
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000289
290- smmu-id
291 - value type: <u32>
292 - On systems with multiple System Memory Management Units (SMMUs) this
293 identifier is used to inform the partition manager which SMMU the device is
294 upstream of. If the field is omitted then it is assumed that the device is
295 not upstream of any SMMU.
296
Louis Mayencourt00f85082020-04-08 13:04:33 +0100297- stream-ids
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000298 - value type: <prop-encoded-array>
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -0500299 - List of IDs where an ID is a unique <u32> value amongst all devices assigned
300 to the partition.
Louis Mayencourta5bb3892020-03-27 11:49:20 +0000301
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -0500302- interrupts
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000303 - value type: <prop-encoded-array>
304 - A list of (id, attributes) pair describing the device interrupts, where:
Louis Mayencourta5bb3892020-03-27 11:49:20 +0000305
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000306 - id: The <u32> interrupt IDs.
Olivier Deprez79a91382022-05-12 18:17:05 +0200307 - attributes: A <u32> value, containing attributes for each interrupt ID:
Louis Mayencourta5bb3892020-03-27 11:49:20 +0000308
Olivier Deprez79a91382022-05-12 18:17:05 +0200309 +----------------------+----------+
310 |Field | Bit(s) |
311 +----------------------+----------+
312 | Priority | 7:0 |
313 +----------------------+----------+
314 | Security state | 8 |
315 +----------------------+----------+
316 | Config(Edge/Level) | 9 |
317 +----------------------+----------+
318 | Type(SPI/PPI/SGI) | 11:10 |
319 +----------------------+----------+
320
321 Security state:
322 - Secure: 1
323 - Non-secure: 0
324
325 Configuration:
326 - Edge triggered: 0
327 - Level triggered: 1
328
329 Type:
330 - SPI: 0b10
331 - PPI: 0b01
332 - SGI: 0b00
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000333
Raghu Krishnamurthy9b5a3602023-01-16 12:43:40 -0800334- interrupts-target
335 - value type: <prop-encoded-array>
336 - A list of (id, mpdir upper bits, mpidr lower bits) tuples describing which
337 mpidr the interrupt is routed to, where:
338
339 - id: The <u32> interrupt ID. Must be one of those specified in the
340 "interrupts" field.
341 - mpidr upper bits: The <u32> describing the upper bits of the 64 bits
342 mpidr
343 - mpidr lower bits: The <u32> describing the lower bits of the 64 bits
344 mpidr
345
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000346- exclusive-access
347 - value type: <empty>
348 - Presence of this field implies that this endpoint must be granted exclusive
David Horstmann5d9101b2020-11-12 15:19:04 +0000349 access and ownership of this device's MMIO region.
Louis Mayencourt79c70cc2019-11-29 15:05:14 +0000350
351--------------
352
Madhukar Pappireddy3b63eef2024-07-25 17:40:23 -0500353*Copyright (c) 2019-2024, Arm Limited and Contributors. All rights reserved.*