Xilinx IPI(Inter Processor Interrupt) mailbox controller
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/xlnx,zynqmp-ipi-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Xilinx IPI(Inter Processor Interrupt) mailbox controller is to manage messaging between two Xilinx Zynq UltraScale+ MPSoC IPI agents. Each IPI agent owns registers used for notification and buffers for message.
For Versal devices, there are two types of IPI channels:
- Buffered channels: Support message passing and require the "msg"
register region to be present on both the host and remote IPI agents.
- Buffer-less channels: Support notification only and do not require the
"msg" register region. For these channels, the "msg" region should be
omitted.
For message passing, both the host and remote IPI agents must define the "msg" register region. If either agent omits the "msg" region, only notification based communication is possible.
+-------------------------------------+
| Xilinx ZynqMP IPI Controller |
+-------------------------------------+
+--------------------------------------------------+
TF-A | |
| |
| |
+--------------------------+ |
| |
| |
+--------------------------------------------------+
+------------------------------------------+
| +----------------+ +----------------+ |
Hardware | | IPI Agent | | IPI Buffers | |
| | Registers | | | |
| | | | | |
| +----------------+ +----------------+ |
| |
| Xilinx IPI Agent Block |
+------------------------------------------+
Maintainers (maintainers): "Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "xlnx,zynqmp-ipi-mailbox", "xlnx,versal-ipi-mailbox"
method — not listed as required here #
The method of calling the PM-API firmware layer. Permitted values are. - "smc" : SMC #0, following the SMCCC - "hvc" : HVC #0, following the SMCCC
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "smc", "hvc"
Default value (default): "smc"
#address-cells — required here #
Exact value (const): 2
#size-cells — required here #
Exact value (const): 2
reg — not listed as required here #
Maximum number of items (maxItems): 2
reg-names — not listed as required here #
Maximum number of items (maxItems): 2
xlnx,ipi-id — required here #
Remote Xilinx IPI agent ID of which the mailbox is connected to.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
interrupts — required here #
Maximum number of items (maxItems): 1
ranges — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^mailbox@[0-9a-f]+$ — name matches this regular expression #
Internal ipi mailbox node
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "xlnx,zynqmp-ipi-dest-mailbox", "xlnx,versal-ipi-dest-mailbox"
reg — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
reg-names — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
xlnx,ipi-id — required here
Remote Xilinx IPI agent ID of which the mailbox is connected to.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
#mbox-cells — required here
Exact value (const): 1
It contains tx(0) or rx(1) channel IPI id number.
All of these rules must match (allOf) #
Rule 1
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then)Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):4
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"local_request_region"Item 2
Exact value (
const):"local_response_region"Item 3
Exact value (
const):"remote_request_region"Item 4
Exact value (
const):"remote_response_region"When the condition does not match (
else)Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Remote IPI agent control register region
Item 2
Remote IPI agent optional message buffers
reg-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"ctrl"Item 2
Exact value (
const):"msg"
Required in this object (required): "compatible", "reg", "reg-names", "#mbox-cells", "xlnx,ipi-id"
Required in this object (required): "compatible", "interrupts", "#address-cells", "#size-cells", "xlnx,ipi-id"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required here
false— Not permitted by this property rule.
reg-names— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
reg— required hereArray item rules (
items)Item 1
Host IPI agent control register region
Item 2
Host IPI agent optional message buffers
reg-names— required hereArray item rules (
items)Item 1
Exact value (
const):"ctrl"Item 2
Exact value (
const):"msg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include<dt-bindings/interrupt-controller/arm-gic.h>
amba {
#address-cells = <0x2>;
#size-cells = <0x2>;
zynqmp-mailbox {
compatible = "xlnx,zynqmp-ipi-mailbox";
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
xlnx,ipi-id = <0>;
#address-cells = <2>;
#size-cells = <2>;
ranges;
mailbox: mailbox@ff9905c0 {
compatible = "xlnx,zynqmp-ipi-dest-mailbox";
reg = <0x0 0xff9905c0 0x0 0x20>,
<0x0 0xff9905e0 0x0 0x20>,
<0x0 0xff990e80 0x0 0x20>,
<0x0 0xff990ea0 0x0 0x20>;
reg-names = "local_request_region",
"local_response_region",
"remote_request_region",
"remote_response_region";
#mbox-cells = <1>;
xlnx,ipi-id = <4>;
};
};
};
#include<dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
mailbox@ff300000 {
compatible = "xlnx,versal-ipi-mailbox";
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <2>;
#size-cells = <2>;
reg = <0x0 0xff300000 0x0 0x1000>,
<0x0 0xff990000 0x0 0x1ff>;
reg-names = "ctrl", "msg";
xlnx,ipi-id = <0>;
ranges;
/* buffered IPI */
mailbox@ff340000 {
compatible = "xlnx,versal-ipi-dest-mailbox";
reg = <0x0 0xff340000 0x0 0x1000>,
<0x0 0xff990400 0x0 0x1ff>;
reg-names = "ctrl", "msg";
#mbox-cells = <1>;
xlnx,ipi-id = <4>;
};
/* bufferless IPI */
mailbox@ff370000 {
compatible = "xlnx,versal-ipi-dest-mailbox";
reg = <0x0 0xff370000 0x0 0x1000>;
reg-names = "ctrl";
#mbox-cells = <1>;
xlnx,ipi-id = <7>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 93: DT nodes are json objects