RISC-V Platform Management Interface (RPMI) shared memory mailbox
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/riscv,rpmi-shmem-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Anup Patel <anup@brainfault.org>"
The RISC-V Platform Management Interface (RPMI) [1] defines a common shared memory based RPMI transport. This RPMI shared memory transport integrates as mailbox controller in the SBI implementation or supervisor software whereas each RPMI service group is mailbox client in the SBI implementation and supervisor software.
=========================================== References ===========================================
[1] RISC-V Platform Management Interface (RPMI) v1.0 (or higher)
https://github.com/riscv-non-isa/riscv-rpmi/releases
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "riscv,rpmi-shmem-mbox"
reg — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
A2P request queue base address
Item 2
P2A acknowledgment queue base address
Item 3
P2A request queue base address
Item 4
A2P acknowledgment queue base address
Item 5
A2P doorbell address
reg-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"a2p-req"
Item 2
Exact value (
const):"p2a-ack"
Item 3
Item 4
Exact value (
const):"a2p-ack"
Item 5
Exact value (
const):"a2p-doorbell"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
The RPMI shared memory transport supports P2A doorbell as a wired interrupt and this property specifies the interrupt source.
msi-parent — not listed as required here #
The RPMI shared memory transport supports P2A doorbell as a system MSI and this property specifies the target MSI controller.
riscv,slot-size — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 64
Power-of-2 RPMI slot size of the RPMI shared memory transport.
riscv,a2p-doorbell-value — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 1
Value written to the 32-bit A2P doorbell register.
riscv,p2a-doorbell-sysmsi-index — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The RPMI shared memory transport supports P2A doorbell as a system MSI and this property specifies system MSI index to be used for configuring the P2A doorbell MSI.
#mbox-cells — required here #
Exact value (const): 1
The first cell specifies RPMI service group ID.
Required in this object (required): "compatible", "reg", "reg-names", "riscv,slot-size", "#mbox-cells"
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
// Example 1 (RPMI shared memory with only 2 queues):
mailbox@10080000 {
compatible = "riscv,rpmi-shmem-mbox";
reg = <0x10080000 0x10000>,
<0x10090000 0x10000>;
reg-names = "a2p-req", "p2a-ack";
msi-parent = <&imsic_mlevel>;
riscv,slot-size = <64>;
#mbox-cells = <1>;
};
// Example 2 (RPMI shared memory with only 4 queues):
mailbox@10001000 {
compatible = "riscv,rpmi-shmem-mbox";
reg = <0x10001000 0x800>,
<0x10001800 0x800>,
<0x10002000 0x800>,
<0x10002800 0x800>,
<0x10003000 0x4>;
reg-names = "a2p-req", "p2a-ack", "p2a-req", "a2p-ack", "a2p-doorbell";
msi-parent = <&imsic_mlevel>;
riscv,slot-size = <64>;
riscv,a2p-doorbell-value = <0x00008000>;
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)