Mailbox bindings
Single-page view · as markdown
Allwinner sunxi Message Box
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/allwinner,sun6i-a31-msgbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Samuel Holland <samuel@sholland.org>"
The hardware message box on sun6i, sun8i, sun9i, and sun50i SoCs is a two-user mailbox controller containing 8 unidirectional FIFOs. An interrupt is raised for received messages, but software must poll to know when a transmitted message has been acknowledged by the remote user. Each FIFO can hold four 32-bit messages; when a FIFO is full, clients must wait before attempting more transmissions.
Refer to ./mailbox.txt for generic information about mailbox device-tree bindings.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun8i-a83t-msgbox","allwinner,sun8i-h3-msgbox","allwinner,sun9i-a80-msgbox","allwinner,sun50i-a64-msgbox","allwinner,sun50i-h6-msgbox"Item 2
Exact value (
const):"allwinner,sun6i-a31-msgbox"
Rule 2
Exact value (
const):"allwinner,sun6i-a31-msgbox"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
bus clock
resets — required here #
Maximum number of items (maxItems): 1
bus reset
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 1
first cell is the channel number (0-7)
Required in this object (required): "compatible", "reg", "clocks", "resets", "interrupts", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/sun8i-h3-ccu.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/sun8i-h3-ccu.h>
msgbox: mailbox@1c17000 {
compatible = "allwinner,sun8i-h3-msgbox",
"allwinner,sun6i-a31-msgbox";
reg = <0x01c17000 0x1000>;
clocks = <&ccu CLK_BUS_MSGBOX>;
resets = <&ccu RST_BUS_MSGBOX>;
interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Amlogic Meson Message-Handling-Unit Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/amlogic,meson-gxbb-mhu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
The Amlogic's Meson SoCs Message-Handling-Unit (MHU) is a mailbox controller that has 3 independent channels/links to communicate with remote processor(s). MHU links are hardwired on a platform. A link raises interrupt for any received data. However, there is no specified way of knowing if the sent data has been read by the remote. This driver assumes the sender polls STAT register and the remote clears it after having read the data.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amlogic,meson-gxbb-mhu"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 3
Contains the interrupt information corresponding to each of the 3 links of MHU.
#mbox-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mailbox@c883c404 {
compatible = "amlogic,meson-gxbb-mhu";
reg = <0xc883c404 0x4c>;
interrupts = <208>, <209>, <210>;
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 BayLibre, SAS
APM X-Gene SLIMpro mailbox
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/apm,xgene-slimpro-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Khuong Dinh <khuong@os.amperecomputing.com>"
The APM X-Gene SLIMpro mailbox is used to communicate messages between the ARM64 processors and the Cortex M3 (dubbed SLIMpro). It uses a simple interrupt based door bell mechanism and can exchange simple messages using the internal registers.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "apm,xgene-slimpro-mbox"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
mailbox channel 0 doorbell
Item 2
mailbox channel 1 doorbell
Item 3
mailbox channel 2 doorbell
Item 4
mailbox channel 3 doorbell
Item 5
mailbox channel 4 doorbell
Item 6
mailbox channel 5 doorbell
Item 7
mailbox channel 6 doorbell
Item 8
mailbox channel 7 doorbell
#mbox-cells — required here #
Number of mailbox channel.
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mailbox@10540000 {
compatible = "apm,xgene-slimpro-mbox";
reg = <0x10540000 0xa000>;
#mbox-cells = <1>;
interrupts = <0x0 0x0 0x4>,
<0x0 0x1 0x4>,
<0x0 0x2 0x4>,
<0x0 0x3 0x4>,
<0x0 0x4 0x4>,
<0x0 0x5 0x4>,
<0x0 0x6 0x4>,
<0x0 0x7 0x4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Apple Mailbox Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/apple,mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hector Martin <marcan@marcan.st>", "Sven Peter <sven@svenpeter.dev>"
The Apple mailbox consists of two FIFOs used to exchange 64+32 bit messages between the main CPU and a co-processor. Multiple instances of this mailbox can be found on Apple SoCs. One of the two FIFOs is used to send data to a co-processor while the other FIFO is used for the other direction. Various clients implement different IPC protocols based on these simple messages and shared memory buffers.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
ASC mailboxes are the most common variant found on the M1 used for example for the display controller, the system management controller and the NVMe coprocessor.
Array item rules (
items)Item 1
Allowed values (
enum):"apple,t8103-asc-mailbox","apple,t8112-asc-mailbox","apple,t6000-asc-mailbox","apple,t6020-asc-mailbox"Item 2
Exact value (
const):"apple,asc-mailbox-v4"
Rule 2
An older ASC mailbox interface found on T2 and A11 that is also used for the NVMe coprocessor and the system management controller.
Array item rules (
items)Item 1
Exact value (
const):"apple,t8015-asc-mailbox"
Rule 3
M3 mailboxes are an older variant with a slightly different MMIO interface still found on the M1. It is used for the Thunderbolt co-processors.
Array item rules (
items)Item 1
Allowed values (
enum):"apple,t8103-m3-mailbox","apple,t8112-m3-mailbox","apple,t6000-m3-mailbox"Item 2
Exact value (
const):"apple,m3-mailbox-v2"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
send fifo is empty interrupt
Item 2
send fifo is not empty interrupt
Item 3
receive fifo is empty interrupt
Item 4
receive fifo is not empty interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"send-empty"
Item 2
Exact value (
const):"send-not-empty"
Item 3
Exact value (
const):"recv-empty"
Item 4
Exact value (
const):"recv-not-empty"
#mbox-cells — required here #
Exact value (const): 0
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mailbox@77408000 {
compatible = "apple,t8103-asc-mailbox", "apple,asc-mailbox-v4";
reg = <0x77408000 0x4000>;
interrupts = <1 583 4>, <1 584 4>, <1 585 4>, <1 586 4>;
interrupt-names = "send-empty", "send-not-empty",
"recv-empty", "recv-not-empty";
#mbox-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
ARM MHU Mailbox Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/arm,mhu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jassi Brar <jaswinder.singh@linaro.org>"
The ARM's Message-Handling-Unit (MHU) is a mailbox controller that has 3 independent channels/links to communicate with remote processor(s). MHU links are hardwired on a platform. A link raises interrupt for any received data. However, there is no specified way of knowing if the sent data has been read by the remote. This driver assumes the sender polls STAT register and the remote clears it after having read the data. The last channel is specified to be a 'Secure' resource, hence can't be used by Linux running NS.
The MHU hardware also allows operations in doorbell mode. The MHU drives the interrupt signal using a 32-bit register, with all 32-bits logically ORed together. It provides a set of registers to enable software to set, clear and check the status of each of the bits of this register independently. The use of 32 bits per interrupt line enables software to provide more information about the source of the interrupt. For example, each bit of the register can be associated with a type of event that can contribute to raising the interrupt. Each of the 32-bits can be used as "doorbell" to alert the remote processor.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Data transfer mode
Array item rules (
items)Item 1
Exact value (
const):"arm,mhu"Item 2
Exact value (
const):"arm,primecell"
Rule 2
Doorbell mode
Array item rules (
items)Item 1
Exact value (
const):"arm,mhu-doorbell"Item 2
Exact value (
const):"arm,primecell"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
low-priority non-secure
Item 2
high-priority non-secure
Item 3
Secure
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"apb_pclk"
#mbox-cells — required here #
Set to 1 in data transfer mode and represents index of the channel. Set to 2 in doorbell mode and represents index of the channel and doorbell number.
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <2>;
#size-cells = <2>;
mhuA: mailbox@2b1f0000 {
#mbox-cells = <1>;
compatible = "arm,mhu", "arm,primecell";
reg = <0 0x2b1f0000 0 0x1000>;
interrupts = <0 36 4>, /* LP-NonSecure */
<0 35 4>, /* HP-NonSecure */
<0 37 4>; /* Secure */
clocks = <&clock 0 2 1>;
clock-names = "apb_pclk";
};
};
firmware {
scpi {
compatible = "arm,scpi";
mboxes = <&mhuA 1>; /* HP-NonSecure */
shmem = <&cpu_scp_hpri>; /* HP-NonSecure */
scpi_devpd: power-controller {
compatible = "arm,scpi-power-domains";
num-domains = <2>;
#power-domain-cells = <1>;
};
};
};
soc {
#address-cells = <2>;
#size-cells = <2>;
mhuB: mailbox@2b2f0000 {
#mbox-cells = <2>;
compatible = "arm,mhu-doorbell", "arm,primecell";
reg = <0 0x2b2f0000 0 0x1000>;
interrupts = <0 36 4>, /* LP-NonSecure */
<0 35 4>, /* HP-NonSecure */
<0 37 4>; /* Secure */
clocks = <&clock 0 2 1>;
clock-names = "apb_pclk";
};
};
firmware {
scmi {
compatible = "arm,scmi";
mboxes = <&mhuB 0 0>, /* LP-NonSecure, 1st doorbell */
<&mhuB 0 1>; /* LP-NonSecure, 2nd doorbell */
mbox-names = "tx", "rx";
shmem = <&cpu_scp_lpri0>,
<&cpu_scp_lpri1>;
#address-cells = <1>;
#size-cells = <0>;
scmi_devpd: protocol@11 {
reg = <0x11>;
#power-domain-cells = <1>;
};
scmi_dvfs: protocol@13 {
reg = <0x13>;
#clock-cells = <1>;
mboxes = <&mhuB 1 2>, /* HP-NonSecure, 3rd doorbell */
<&mhuB 1 3>; /* HP-NonSecure, 4th doorbell */
mbox-names = "tx", "rx";
shmem = <&cpu_scp_hpri0>,
<&cpu_scp_hpri1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 31: We need a select here so we don't match all nodes with 'arm,primecell'
Line 88: Data transfer mode.
Line 120: Doorbell mode.
ARM MHUv2 Mailbox Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/arm,mhuv2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tushar Khandelwal <tushar.khandelwal@arm.com>", "Viresh Kumar <viresh.kumar@linaro.org>"
The Arm Message Handling Unit (MHU) Version 2 is a mailbox controller that has between 1 and 124 channel windows (each 32-bit wide) to provide unidirectional communication with remote processor(s), where the number of channel windows are implementation dependent.
Given the unidirectional nature of the controller, an MHUv2 mailbox may only be written to or read from. If a pair of MHU controllers is implemented between two processing elements to provide bidirectional communication, these must be specified as two separate mailboxes.
If the interrupts property is present in device tree node, then its treated as a "receiver" mailbox, otherwise a "sender".
An MHU controller must be specified along with the supported transport protocols. The transport protocols determine the method of data transmission as well as the number of provided mailbox channels.
Following are the possible transport protocols.
- Data-transfer: Each transfer is made of one or more words, using one or more
channel windows.
- Doorbell: Each transfer is made up of single bit flag, using any one of the
bits in a channel window. A channel window can support up to 32 doorbells
and the entire window shall be used in doorbell protocol. Optionally, data
may be transmitted through a shared memory region, wherein the MHU is used
strictly as an interrupt generation mechanism but that is out of the scope
of these bindings.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Sender mode
Array item rules (
items)Item 1
Exact value (
const):"arm,mhuv2-tx"Item 2
Exact value (
const):"arm,primecell"
Rule 2
Receiver-mode
Array item rules (
items)Item 1
Exact value (
const):"arm,mhuv2-rx"Item 2
Exact value (
const):"arm,primecell"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
The MHUv2 controller always implements an interrupt in the "receiver" mode, while the interrupt in the "sender" mode was not available in the version MHUv2.0, but the later versions do have it.
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Maximum number of items (maxItems): 1
arm,mhuv2-protocols — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
The MHUv2 controller may contain up to 124 channel windows (each 32-bit wide). The hardware and the DT bindings allows any combination of those to be used for various transport protocols.
This property allows a platform to describe how these channel windows are used in various transport protocols. The entries in this property shall be present as an array of tuples, where each tuple describes details about one of the transport protocol being implemented over some channel window(s).
The first field of a tuple signifies the transfer protocol, 0 is reserved for doorbell protocol, and 1 is reserved for data-transfer protocol. Using any other value in the first field of a tuple makes it invalid.
The second field of a tuple signifies the number of channel windows where the protocol would be used and should be set to a non zero value. For doorbell protocol this field signifies the number of 32-bit channel windows that implement the doorbell protocol. For data-transfer protocol, this field signifies the number of 32-bit channel windows that implement the data-transfer protocol.
The total number of channel windows specified here shouldn't be more than the ones implemented by the platform, though one can specify lesser number of windows here than what the platform implements.
mhu: mailbox@2b1f0000 {
...
arm,mhuv2-protocols = <0 2>, <1 1>, <1 5>, <1 7>;
}
The above example defines the protocols of an ARM MHUv2 mailbox controller, where a total of 15 channel windows are used. The first two windows are used in doorbell protocol (64 doorbells), followed by 1, 5 and 7 windows (separately) used in data-transfer protocol.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 124
Array item rules (items) #
Array item rules (
items)Item 1
Item 2
Minimum value (
minimum):0Maximum value (
maximum):124
#mbox-cells — required here #
It is always set to 2. The first argument in the consumers 'mboxes' property represents the channel window group, which may be used in doorbell, or data-transfer protocol, and the second argument (only relevant in doorbell protocol, should be 0 otherwise) represents the doorbell number within the 32 bit wide channel window.
From the example given above for arm,mhuv2-protocols, here is how a client node can reference them.
mboxes = <&mhu 0 5>; // Channel Window Group 0, doorbell 5. mboxes = <&mhu 1 7>; // Channel Window Group 1, doorbell 7. mboxes = <&mhu 2 0>; // Channel Window Group 2, data transfer protocol with 1 window. mboxes = <&mhu 3 0>; // Channel Window Group 3, data transfer protocol with 5 windows. mboxes = <&mhu 4 0>; // Channel Window Group 4, data transfer protocol with 7 windows.
Exact value (const): 2
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"arm,mhuv2-rx"
When the condition matches (then) #
Required in this object (required): "compatible", "reg", "#mbox-cells", "arm,mhuv2-protocols"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <2>;
#size-cells = <2>;
mhu_tx: mailbox@2b1f0000 {
#mbox-cells = <2>;
compatible = "arm,mhuv2-tx", "arm,primecell";
reg = <0 0x2b1f0000 0 0x1000>;
clocks = <&clock 0>;
clock-names = "apb_pclk";
interrupts = <0 45 4>;
arm,mhuv2-protocols = <1 5>, <1 2>, <1 5>, <1 7>, <0 2>;
};
mhu_rx: mailbox@2b1f1000 {
#mbox-cells = <2>;
compatible = "arm,mhuv2-rx", "arm,primecell";
reg = <0 0x2b1f1000 0 0x1000>;
clocks = <&clock 0>;
clock-names = "apb_pclk";
interrupts = <0 46 4>;
arm,mhuv2-protocols = <1 1>, <1 7>, <0 2>;
};
mhu_client: dsp@596e8000 {
compatible = "fsl,imx8qxp-dsp";
reg = <0 0x596e8000 0 0x88000>;
clocks = <&adma_lpcg 0>, <&adma_lpcg 1>, <&adma_lpcg 2>;
clock-names = "ipg", "ocram", "core";
power-domains = <&pd 0>, <&pd 1>;
mbox-names = "txdb0", "txdb1", "rxdb0", "rxdb1";
mboxes = <&mhu_tx 2 0>, //data-transfer protocol with 5 windows, mhu-tx
<&mhu_tx 3 0>, //data-transfer protocol with 7 windows, mhu-tx
<&mhu_rx 2 27>, //doorbell protocol channel 2, doorbell 27, mhu-rx
<&mhu_rx 0 0>; //data-transfer protocol with 1 window, mhu-rx
memory-region = <&dsp_reserved>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 43: We need a select here so we don't match all nodes with 'arm,primecell'
Line 150: Interrupt is compulsory for receiver
Line 168: Multiple transport protocols implemented by the mailbox controllers
ARM MHUv3 Mailbox Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/arm,mhuv3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sudeep Holla <sudeep.holla@arm.com>", "Cristian Marussi <cristian.marussi@arm.com>"
The Arm Message Handling Unit (MHU) Version 3 is a mailbox controller that enables unidirectional communications with remote processors through various possible transport protocols. The controller can optionally support a varying number of extensions that, in turn, enable different kinds of transport to be used for communication. Number, type and characteristics of each supported extension can be discovered dynamically at runtime.
Given the unidirectional nature of the controller, an MHUv3 mailbox controller is composed of a MHU Sender (MHUS) containing a PostBox (PBX) block and a MHU Receiver (MHUR) containing a MailBox (MBX) block, where
PBX is used to
- Configure the MHU
- Send Transfers to the Receiver
- Optionally receive acknowledgment of a Transfer from the Receiver
MBX is used to
- Configure the MHU
- Receive Transfers from the Sender
- Optionally acknowledge Transfers sent by the Sender
Both PBX and MBX need to be present and defined in the DT description if you need to establish a bidirectional communication, since you will have to acquire two distinct unidirectional channels, one for each block.
As a consequence both blocks needs to be represented separately and specified as distinct DT nodes in order to properly describe their resources.
Note that, though, thanks to the runtime discoverability, there is no need to identify the type of blocks with distinct compatibles.
Following are the MHUv3 possible extensions.
- Doorbell Extension (DBE): DBE defines a type of channel called a Doorbell
Channel (DBCH). DBCH enables a single bit Transfer to be sent from the
Sender to Receiver. The Transfer indicates that an event has occurred.
When DBE is implemented, the number of DBCHs that an implementation of the
MHU can support is between 1 and 128, numbered starting from 0 in ascending
order and discoverable at run-time.
Each DBCH contains 32 individual fields, referred to as flags, each of which
can be used independently. It is possible for the Sender to send multiple
Transfers at once using a single DBCH, so long as each Transfer uses
a different flag in the DBCH.
Optionally, data may be transmitted through an out-of-band shared memory
region, wherein the MHU Doorbell is used strictly as an interrupt generation
mechanism, but this is out of the scope of these bindings.
- FastChannel Extension (FCE): FCE defines a type of channel called a Fast
Channel (FCH). FCH is intended for lower overhead communication between
Sender and Receiver at the expense of determinism. An FCH allows the Sender
to update the channel value at any time, regardless of whether the previous
value has been seen by the Receiver. When the Receiver reads the channel's
content it gets the last value written to the channel.
FCH is considered lossy in nature, and means that the Sender has no way of
knowing if, or when, the Receiver will act on the Transfer.
FCHs are expected to behave as RAM which generates interrupts when writes
occur to the locations within the RAM.
When FCE is implemented, the number of FCHs that an implementation of the
MHU can support is between 1-1024, if the FastChannel word-size is 32-bits,
or between 1-512, when the FastChannel word-size is 64-bits.
FCHs are numbered from 0 in ascending order.
Note that the number of FCHs and the word-size are implementation defined,
not configurable but discoverable at run-time.
Optionally, data may be transmitted through an out-of-band shared memory
region, wherein the MHU FastChannel is used as an interrupt generation
mechanism which carries also a pointer to such out-of-band data, but this
is out of the scope of these bindings.
- FIFO Extension (FE): FE defines a Channel type called a FIFO Channel (FFCH).
FFCH allows a Sender to send
- Multiple Transfers to the Receiver without having to wait for the
previous Transfer to be acknowledged by the Receiver, as long as the
FIFO has room for the Transfer.
- Transfers which require the Receiver to provide acknowledgment.
- Transfers which have in-band payload.
In all cases, the data is guaranteed to be observed by the Receiver in the
same order which the Sender sent it.
When FE is implemented, the number of FFCHs that an implementation of the
MHU can support is between 1 and 64, numbered starting from 0 in ascending
order. The number of FFCHs, their depth (same for all implemented FFCHs) and
the access-granularity are implementation defined, not configurable but
discoverable at run-time.
Optionally, additional data may be transmitted through an out-of-band shared
memory region, wherein the MHU FIFO is used to transmit, in order, a small
part of the payload (like a header) and a reference to the shared memory
area holding the remaining, bigger, chunk of the payload, but this is out of
the scope of these bindings.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "arm,mhuv3"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 74
interrupt-names — required here #
The MHUv3 controller generates a number of events some of which are used to generate interrupts; as a consequence it can expose a varying number of optional PBX/MBX interrupts, representing the events generated during the operation of the various transport protocols associated with different extensions. All interrupts of the MHU are level-sensitive. Some of these optional interrupts are defined per-channel, where the number of channels effectively available is implementation defined and run-time discoverable. In the following names are enumerated using patterns, with per-channel interrupts implicitly capped at the maximum channels allowed by the specification for each extension type. For the sake of simplicity maxItems is anyway capped to a most plausible number, assuming way less channels would be implemented than actually possible.
The only mandatory interrupts on the MHU are:
- combined
- mbx-fch-xfer-<N> but only if mbx-fcgrp-xfer-<N> is not implemented.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 74
Array item rules (items) #
Exactly one of these rules must match (
oneOf)Rule 1
Exact value (
const):"combined"PBX/MBX Combined interrupt
Rule 2
Exact value (
const):"combined-ffch"PBX/MBX FIFO Combined interrupt
Rule 3
String pattern (
pattern):"^ffch-low-tide-[0-9]+$"PBX/MBX FIFO Channel <N> Low Tide interrupt
Rule 4
String pattern (
pattern):"^ffch-high-tide-[0-9]+$"PBX/MBX FIFO Channel <N> High Tide interrupt
Rule 5
String pattern (
pattern):"^ffch-flush-[0-9]+$"PBX/MBX FIFO Channel <N> Flush interrupt
Rule 6
String pattern (
pattern):"^mbx-dbch-xfer-[0-9]+$"MBX Doorbell Channel <N> Transfer interrupt
Rule 7
String pattern (
pattern):"^mbx-fch-xfer-[0-9]+$"MBX FastChannel <N> Transfer interrupt
Rule 8
String pattern (
pattern):"^mbx-fchgrp-xfer-[0-9]+$"MBX FastChannel <N> Group Transfer interrupt
Rule 9
String pattern (
pattern):"^mbx-ffch-xfer-[0-9]+$"MBX FIFO Channel <N> Transfer interrupt
Rule 10
String pattern (
pattern):"^pbx-dbch-xfer-ack-[0-9]+$"PBX Doorbell Channel <N> Transfer Ack interrupt
Rule 11
String pattern (
pattern):"^pbx-ffch-xfer-ack-[0-9]+$"PBX FIFO Channel <N> Transfer Ack interrupt
#mbox-cells — required here #
The first argument in the consumers 'mboxes' property represents the extension type, the second is for the channel number while the third depends on extension type.
Extension types constants are defined in <dt-bindings/arm/mhuv3-dt.h>.
Extension type for DBE is DBE_EXT and the third parameter represents the doorbell flag number to use. Extension type for FCE is FCE_EXT, third parameter unused. Extension type for FE is FE_EXT, third parameter unused.
mboxes = <&mhu DBE_EXT 0 5>; // DBE, Doorbell Channel Window 0, doorbell 5. mboxes = <&mhu DBE_EXT 7>; // DBE, Doorbell Channel Window 1, doorbell 7. mboxes = <&mhu FCE_EXT 0 0>; // FCE, FastChannel Window 0. mboxes = <&mhu FCE_EXT 3 0>; // FCE, FastChannel Window 3. mboxes = <&mhu FE_EXT 1 0>; // FE, FIFO Channel Window 1. mboxes = <&mhu FE_EXT 7 0>; // FE, FIFO Channel Window 7.
Exact value (const): 3
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "#mbox-cells"
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>
soc {
#address-cells = <2>;
#size-cells = <2>;
mailbox@2aaa0000 {
compatible = "arm,mhuv3";
#mbox-cells = <3>;
reg = <0 0x2aaa0000 0 0x10000>;
clocks = <&clock 0>;
interrupt-names = "combined", "pbx-dbch-xfer-ack-1",
"ffch-high-tide-0";
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
};
mailbox@2ab00000 {
compatible = "arm,mhuv3";
#mbox-cells = <3>;
reg = <0 0x2aab0000 0 0x10000>;
clocks = <&clock 0>;
interrupt-names = "combined", "mbx-dbch-xfer-1", "ffch-low-tide-0";
interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ASPEED AST2700 mailbox controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/aspeed,ast2700-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jammy Huang <jammy_huang@aspeedtech.com>"
ASPEED AST2700 has multiple processors that need to communicate with each other. The mailbox controller provides a way for these processors to send messages to each other. It is a hardware-based inter-processor communication mechanism that allows processors to send and receive messages through dedicated channels. The mailbox's tx/rx are independent, meaning that one processor can send a message while another processor is receiving a message simultaneously. There are 4 channels available for both tx and rx operations. Each channel has a FIFO buffer that can hold messages of a fixed size (32 bytes in this case). The mailbox controller also supports interrupt generation, allowing processors to notify each other when a message is available or when an event occurs.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "aspeed,ast2700-mailbox"
reg — required here #
Array item rules (items) #
Item 1
TX control register
Item 2
RX control register
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "#mbox-cells"
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>
mailbox@12c1c200 {
compatible = "aspeed,ast2700-mailbox";
reg = <0x12c1c200 0x100>, <0x12c1c300 0x100>;
reg-names = "tx", "rx";
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Broadcom BCM2835 VideoCore mailbox IPC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/brcm,bcm2835-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stefan Wahren <stefan.wahren@i2se.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "brcm,bcm2835-mbox"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mailbox@7e00b880 {
compatible = "brcm,bcm2835-mbox";
reg = <0x7e00b880 0x40>;
interrupts = <0 1>;
#mbox-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom BCM74110 Mailbox
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/brcm,bcm74110-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Justin Chen <justin.chen@broadcom.com>", "Florian Fainelli <florian.fainelli@broadcom.com>"
Broadcom mailbox hardware first introduced with 74110
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "brcm,bcm74110-mbox"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
RX doorbell and watermark interrupts
Item 2
TX doorbell and watermark interrupts
#mbox-cells — required here #
Exact value (const): 2
The first cell is channel type and second cell is shared memory slot
brcm,rx — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
RX Mailbox number
brcm,tx — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
TX Mailbox number
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells", "brcm,rx", "brcm,tx"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
mailbox@a552000 {
compatible = "brcm,bcm74110-mbox";
reg = <0xa552000 0x1104>;
interrupts = <GIC_SPI 0x67 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 0x66 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <0x2>;
brcm,rx = <0x7>;
brcm,tx = <0x6>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom FlexRM Ring Manager
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/brcm,iproc-flexrm-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ray Jui <rjui@broadcom.com>", "Scott Branden <sbranden@broadcom.com>"
The Broadcom FlexRM ring manager provides a set of rings which can be used to submit work to offload engines. An SoC may have multiple FlexRM hardware blocks. There is one device tree entry per FlexRM block. The FlexRM driver will create a mailbox-controller instance for given FlexRM hardware block where each mailbox channel is a separate FlexRM ring.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "brcm,iproc-flexrm-mbox"
reg — required here #
Maximum number of items (maxItems): 1
msi-parent — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
The 1st cell is the mailbox channel number. The 2nd cell contains MSI completion threshold. This is the number of completion messages for which FlexRM will inject one MSI interrupt to CPU. The 3rd cell contains MSI timer value representing time for which FlexRM will wait to accumulate N completion messages where N is the value specified by 2nd cell above. If FlexRM does not get required number of completion messages in time specified by this cell then it will inject one MSI interrupt to CPU provided at least one completion message is available.
Exact value (const): 3
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "msi-parent", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mailbox@67000000 {
compatible = "brcm,iproc-flexrm-mbox";
reg = <0x67000000 0x200000>;
msi-parent = <&gic_its 0x7f00>;
#mbox-cells = <3>;
dma-coherent;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom iProc PDC mailbox
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/brcm,iproc-pdc-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ray Jui <rjui@broadcom.com>", "Scott Branden <sbranden@broadcom.com>"
The PDC driver manages data transfer to and from various offload engines on some Broadcom SoCs. An SoC may have multiple PDC hardware blocks. There is one device tree entry per block. On some chips, the PDC functionality is handled by the FA2 (Northstar Plus).
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "brcm,iproc-pdc-mbox", "brcm,iproc-fa2-mbox"
reg — required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 1
brcm,rx-status-len — required here #
Length of metadata preceding received frames, in bytes.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
brcm,use-bcm-hdr — not listed as required here #
Value type (type): "boolean"
Present if a BCM header precedes each frame.
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells", "brcm,rx-status-len"
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>
mailbox0@612c0000 {
compatible = "brcm,iproc-pdc-mbox";
reg = <0x612c0000 0x445>;
interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <1>;
brcm,rx-status-len = <32>;
brcm,use-bcm-hdr;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cixtech mailbox controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/cix,sky1-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Guomin Chen <Guomin.Chen@cixtech.com>"
The Cixtech mailbox controller, used in the Cixtech Sky1 SoC, is used for message transmission between multiple processors within the SoC, such as the AP, PM, audio DSP, SensorHub MCU, and others Each Cixtech mailbox controller is unidirectional, so they are typically used in pairs-one for receiving and one for transmitting. Each Cixtech mailbox supports 11 channels with different transmission modes channel 0-7 - Fast channel with 32bit transmit register and IRQ support channel 8 - Doorbell mode,using the mailbox as an interrupt-generating mechanism. channel 9 - Fifo based channel with 32*32bit depth fifo and IRQ support channel 10 - Reg based channel with 32*32bit transmit register and Doorbell+transmit acknowledgment IRQ support In the CIX Sky1 SoC use case, there are 4 pairs of mailbox controllers AP <--> PM - using Doorbell transfer mode AP <--> SE - using REG transfer mode AP <--> DSP - using FIFO transfer mode AP <--> SensorHub - using FIFO transfer mode
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cix,sky1-mbox"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 1
cix,mbox-dir — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Direction of the mailbox relative to the AP
Allowed values (enum): "tx", "rx"
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells", "cix,mbox-dir"
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>
soc {
#address-cells = <2>;
#size-cells = <2>;
mbox_ap2pm: mailbox@30000000 {
compatible = "cix,sky1-mbox";
reg = <0 0x30000000 0 0x10000>;
interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH 0>;
#mbox-cells = <1>;
cix,mbox-dir = "tx";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
NXP i.MX Messaging Unit (MU)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/fsl,mu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dong Aisheng <aisheng.dong@nxp.com>"
The Messaging Unit module enables two processors within the SoC to communicate and coordinate by passing messages (e.g. data, status and control) through the MU interface. The MU also provides the ability for one processor to signal the other processor using interrupts.
Because the MU manages the messaging between processors, the MU uses different clocks (from each side of the different peripheral buses). Therefore, the MU must synchronize the accesses from one side to the other. The MU accomplishes synchronization using two sets of matching registers (Processor A-facing, Processor B-facing).
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fsl,imx6sx-mu"
Rule 2
Exact value (
const):"fsl,imx7ulp-mu"
Rule 3
Exact value (
const):"fsl,imx8ulp-mu"
Rule 4
Exact value (
const):"fsl,imx8-mu-scu"
Rule 5
Exact value (
const):"fsl,imx8-mu-seco"
Rule 6
Exact value (
const):"fsl,imx8ulp-mu-s4"
Rule 7
Exact value (
const):"fsl,imx93-mu-s4"
Rule 8
Exact value (
const):"fsl,imx95-mu"
Rule 9
Exact value (
const):"fsl,imx95-mu-ele"
Rule 10
Exact value (
const):"fsl,imx95-mu-v2x"
Rule 11
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx93-mu"Item 2
Exact value (
const):"fsl,imx8ulp-mu"
Rule 12
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx7s-mu","fsl,imx8mq-mu","fsl,imx8mm-mu","fsl,imx8mn-mu","fsl,imx8mp-mu","fsl,imx8qm-mu","fsl,imx8qxp-mu"Item 2
Exact value (
const):"fsl,imx6sx-mu"
Rule 13
To communicate with i.MX8 SCU with fast IPC
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx8-mu-scu"Item 2
Item 3
Exact value (
const):"fsl,imx6sx-mu"
Rule 14
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx95-mu"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
#mbox-cells — required here #
<&phandle type channel> phandle : Label name of controller type : Channel type channel : Channel number
This MU support 6 type of unidirectional channels, each type
has 4 channels except RST channel which only has 1 channel.
A total of 21 channels. Following types are
supported:
0 - TX channel with 32bit transmit register and IRQ transmit
acknowledgment support.
1 - RX channel with 32bit receive register and IRQ support
2 - TX doorbell channel. Without own register and no ACK support.
3 - RX doorbell channel.
4 - RST channel
5 - Tx doorbell channel. With S/W ACK from the other side.
Exact value (const): 2
clocks — not listed as required here #
Maximum number of items (maxItems): 1
fsl,mu-side-b — not listed as required here #
boolean, if present, means it is for side B MU.
Value type (type): "boolean"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^sram@[a-f0-9]+ — name matches this regular expression #
Shared schema rule ($ref): /schemas/sram/sram.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
interrupt-names— not listed as required hereMinimum number of items (
minItems):2
interrupts— not listed as required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1This rule must not match (
not)
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,imx95-mu"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^sram@[a-f0-9]+— name matches this regular expression
false— Not permitted by this property rule.
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>
mailbox@5d1b0000 {
compatible = "fsl,imx8qxp-mu", "fsl,imx6sx-mu";
reg = <0x5d1b0000 0x10000>;
interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <2>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
mailbox@445b0000 {
compatible = "fsl,imx95-mu";
reg = <0x445b0000 0x10000>;
ranges;
interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <1>;
#mbox-cells = <2>;
sram@445b1000 {
compatible = "mmio-sram";
reg = <0x445b1000 0x400>;
ranges = <0x0 0x445b1000 0x400>;
#address-cells = <1>;
#size-cells = <1>;
scmi-sram-section@0 {
compatible = "arm,scmi-shmem";
reg = <0x0 0x80>;
};
scmi-sram-section@80 {
compatible = "arm,scmi-shmem";
reg = <0x80 0x80>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Samsung Exynos Mailbox Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/google,gs101-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tudor Ambarus <tudor.ambarus@linaro.org>"
The Samsung Exynos mailbox controller, used on Google GS101 SoC, has 16 flag bits for hardware interrupt generation and a shared register for passing mailbox messages. When the controller is used by the ACPM interface the shared register is ignored and the mailbox controller acts as a doorbell. The controller just raises the interrupt to the firmware after the ACPM interface has written the message to SRAM.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "google,gs101-mbox"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
interrupts — required here #
IRQ line for the RX mailbox.
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "#mbox-cells"
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>
#include <dt-bindings/clock/google,gs101.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
ap2apm_mailbox: mailbox@17610000 {
compatible = "google,gs101-mbox";
reg = <0x17610000 0x1000>;
clocks = <&cmu_apm CLK_GOUT_APM_MAILBOX_APM_AP_PCLK>;
clock-names = "pclk";
interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH 0>;
#mbox-cells = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2024 Linaro Ltd.
Marvell Armada 3700 rWTM Mailbox
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/marvell,armada-3700-rwtm-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Behún <kabel@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "marvell,armada-3700-rwtm-mailbox"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
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>
mailbox@b0000 {
compatible = "marvell,armada-3700-rwtm-mailbox";
reg = <0xb0000 0x100>;
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Mediatek Global Command Engine Mailbox
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/mediatek,gce-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Houlong Wei <houlong.wei@mediatek.com>"
The Global Command Engine (GCE) is used to help read/write registers with critical time limitation, such as updating display configuration during the vblank. The GCE can be used to implement the Command Queue (CMDQ) driver.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"mediatek,mt6779-gce","mediatek,mt8173-gce","mediatek,mt8183-gce","mediatek,mt8186-gce","mediatek,mt8188-gce","mediatek,mt8192-gce","mediatek,mt8195-gce","mediatek,mt8196-gce"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"mediatek,mt6795-gce"Item 2
Exact value (
const):"mediatek,mt8173-gce"
#mbox-cells — required here #
Exact value (const): 2
The first cell describes the Thread ID of the GCE, the second cell describes the priority of the GCE thread
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Global Command Engine clock
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"gce"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "#mbox-cells", "reg", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
gce: mailbox@10212000 {
compatible = "mediatek,mt8173-gce";
reg = <0 0x10212000 0 0x1000>;
interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_LOW>;
#mbox-cells = <2>;
clocks = <&infracfg CLK_INFRA_GCE>;
clock-names = "gce";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MediaTek Global Command Engine Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/mediatek,gce-props.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Houlong Wei <houlong.wei@mediatek.com>"
The Global Command Engine (GCE) is an instruction based, multi-threaded, single-core command dispatcher for MediaTek hardware. The Command Queue (CMDQ) mailbox driver is a driver for GCE, implemented using the Linux mailbox framework. It is used to receive messages from mailbox consumers and configure GCE to execute the specified instruction set in the message. We use mediatek,gce-mailbox.yaml to define the properties for CMDQ mailbox driver. A device driver that uses the CMDQ driver to configure its hardware registers is a mailbox consumer. The mailbox consumer can request a mailbox channel corresponding to a GCE hardware thread to send a message, specifying that the GCE thread to configure its hardware. The mailbox provider can also reserve a mailbox channel to configure GCE hardware register by the specific GCE thread. This binding defines the common GCE properties for both mailbox provider and consumers.
Properties and child nodes (properties) #
mediatek,gce-events — not listed as required here #
GCE has an event table in SRAM, consisting of 1024 event IDs (0~1023). Each event ID has a boolean event value with the default value 0. The property mediatek,gce-events is used to obtain the event IDs. Some gce-events are hardware-bound and cannot be changed by software. For instance, in MT8195, when VDO0_MUTEX is stream done, VDO_MUTEX will send an event signal to GCE, setting the value of event ID 597 to 1. Similarly, in MT8188, the value of event ID 574 will be set to 1 when VOD0_MUTEX is stream done. On the other hand, some gce-events are not hardware-bound and can be changed by software. For example, in MT8188, we can set the value of event ID 855, which is not bound to any hardware, to 1 when the driver in the secure world completes a task. However, in MT8195, event ID 855 is already bound to VDEC_LAT1, so we need to select another event ID to achieve the same purpose. This event ID can be any ID that is not bound to any hardware and is not yet used in any software driver. To determine if the event ID is bound to the hardware or used by a software driver, refer to the GCE header include/dt-bindings/gce/<chip>-gce.h of each chip.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MediaTek MFlexGraphics GPUEB Mailbox Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/mediatek,mt8196-gpueb-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nicolas Frattaroli <nicolas.frattaroli@collabora.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt8196-gpueb-mbox"
reg — required here #
Array item rules (items) #
Item 1
mailbox data registers
Item 2
mailbox control registers
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"data"
Item 2
Exact value (
const):"ctl"
clocks — required here #
Array item rules (items) #
Item 1
main clock of the GPUEB MCU
interrupts — required here #
Array item rules (items) #
Item 1
fires when a new message is received
#mbox-cells — required here #
Exact value (const): 1
The number of the mailbox channel.
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "interrupts", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mediatek,mt8196-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
mailbox@4b09fd80 {
compatible = "mediatek,mt8196-gpueb-mbox";
reg = <0x4b09fd80 0x280>,
<0x4b170000 0x7c>;
reg-names = "data", "ctl";
clocks = <&topckgen CLK_TOP_MFG_EB>;
interrupts = <GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH 0>;
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
MediaTek Video Companion Processor (VCP) mailbox
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/mediatek,mt8196-vcp-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jjian Zhou <Jjian.Zhou@mediatek.com>"
The MTK VCP mailbox enables the SoC to communicate with the VCP by passing messages through 64 32-bit wide registers. It has 32 interrupt vectors in either direction for signalling purposes.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt8196-vcp-mbox"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
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>
#include <dt-bindings/interrupt-controller/irq.h>
mailbox@31b80000 {
compatible = "mediatek,mt8196-vcp-mbox";
reg = <0x31b80000 0x1000>;
interrupts = <GIC_SPI 789 IRQ_TYPE_LEVEL_HIGH 0>;
#mbox-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip PolarFire SoC (MPFS) MSS (microprocessor subsystem) mailbox controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/microchip,mpfs-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Conor Dooley <conor.dooley@microchip.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"microchip,pic64gx-mailbox"Item 2
Exact value (
const):"microchip,mpfs-mailbox"
Rule 2
Exact value (
const):"microchip,mpfs-mailbox"
reg — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
mailbox data registers
Rule 2
Array item rules (
items)Item 1
mailbox control & data registers
Item 2
mailbox interrupt registers
Deprecated (
deprecated):true
Rule 3
Array item rules (
items)Item 1
mailbox control registers
Item 2
mailbox interrupt registers
Item 3
mailbox data registers
Deprecated (
deprecated):true
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <1>;
#size-cells = <1>;
mailbox@37020800 {
compatible = "microchip,mpfs-mailbox";
reg = <0x37020800 0x100>;
interrupt-parent = <&L1>;
interrupts = <96>;
#mbox-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip Inter-processor communication (IPC) mailbox controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/microchip,sbi-ipc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Valentina Fernandez <valentina.fernandezalanis@microchip.com>"
The Microchip Inter-processor Communication (IPC) facilitates message passing between processors using an interrupt signaling mechanism.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Intended for use by software running in supervisor privileged mode (s-mode). This SBI interface is compatible with the Mi-V Inter-hart Communication (IHC) IP.
Exact value (
const):"microchip,sbi-ipc"
Rule 2
Intended for use by the SBI implementation in machine mode (m-mode), this compatible string is for the MIV_IHC Soft-IP.
Exact value (
const):"microchip,miv-ihc-rtl-v2"
reg — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
interrupt-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
Array item rules (items) #
Allowed values (
enum):"hart-0","hart-1","hart-2","hart-3","hart-4","hart-5"
#mbox-cells — required here #
For "microchip,sbi-ipc", the cell represents the global "logical" channel IDs. The meaning of channel IDs are platform firmware dependent. For "microchip,miv-ihc-rtl-v2", the cell represents the physical channel and does not vary based on the platform firmware.
Exact value (const): 1
microchip,ihc-chan-disabled-mask — not listed as required here #
Represents the enable/disable state of the bi-directional IHC channels within the MIV-IHC IP configuration. A bit set to '1' indicates that the corresponding channel is disabled, and any read or write operations to that channel will return zero. A bit set to '0' indicates that the corresponding channel is enabled and will be accessible through its dedicated address range registers. The actual enable/disable state of each channel is determined by the IP block’s configuration.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Maximum value (maximum): 32767
Default value (default): 0
Required in this object (required): "compatible", "interrupts", "interrupt-names", "#mbox-cells"
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)Exact value (
const):"microchip,sbi-ipc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereThis rule must not match (
not)This rule adds no constraints.
The 'microchip,sbi-ipc' operates in a programming model that does not require memory-mapped I/O (MMIO) registers since it uses SBI ecalls provided by the m-mode/firmware SBI implementation to access hardware registers.
microchip,ihc-chan-disabled-mask— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Required in this object (
required):"reg","microchip,ihc-chan-disabled-mask"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mailbox {
compatible = "microchip,sbi-ipc";
interrupt-parent = <&plic>;
interrupts = <180>, <179>, <178>;
interrupt-names = "hart-1", "hart-2", "hart-3";
#mbox-cells = <1>;
};
mailbox@50000000 {
compatible = "microchip,miv-ihc-rtl-v2";
microchip,ihc-chan-disabled-mask = /bits/ 16 <0>;
reg = <0x50000000 0x1c000>;
interrupt-parent = <&plic>;
interrupts = <180>, <179>, <178>;
interrupt-names = "hart-1", "hart-2", "hart-3";
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Mediatek ADSP mailbox
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/mtk,adsp-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Allen-KH Cheng <Allen-KH.Cheng@mediatek.com>"
The MTK ADSP mailbox Inter-Processor Communication (IPC) enables the SoC to communicate with ADSP by passing messages through two mailbox channels. The MTK ADSP mailbox IPC also provides the ability for one processor to signal the other processor using interrupts.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"mediatek,mt8186-adsp-mbox","mediatek,mt8195-adsp-mbox"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt8186-adsp-mbox"
#mbox-cells — required here #
Exact value (const): 0
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "#mbox-cells", "reg", "interrupts"
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>
#include <dt-bindings/interrupt-controller/irq.h>
adsp_mailbox0:mailbox@10816000 {
compatible = "mediatek,mt8195-adsp-mbox";
#mbox-cells = <0>;
reg = <0x10816000 0x1000>;
interrupts = <GIC_SPI 702 IRQ_TYPE_LEVEL_HIGH 0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NVIDIA Tegra Hardware Synchronization Primitives (HSP)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/nvidia,tegra186-hsp.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
The HSP modules are used for the processors to share resources and communicate together. It provides a set of hardware synchronization primitives for interprocessor communication. So the interprocessor communication (IPC) protocols can use hardware synchronization primitives, when operating between two processors not in an SMP relationship.
The features that HSP supported are shared mailboxes, shared semaphores, arbitrated semaphores and doorbells.
The mbox specifier of the "mboxes" property in the client node should contain two cells. The first cell determines the HSP type and the second cell is used to identify the mailbox that the client is going to use.
For shared mailboxes, the first cell composed of two fields:
- bits 15..8:
A bit mask of flags that further specifies the type of shared
mailbox to be used (based on the data size). If no flag is
specified then, 32-bit shared mailbox is used.
- bits 7..0:
Defines the type of the mailbox to be used. This field should be
TEGRA_HSP_MBOX_TYPE_SM for shared mailboxes.
For doorbells, the second cell specifies the index of the doorbell to use.
For shared mailboxes, the second cell is composed of two fields:
- bits 31..24:
A bit mask of flags that further specify how the shared mailbox
will be used. Valid flags are:
- bit 31:
Defines the direction of the mailbox. If set, the mailbox
will be used as a producer (i.e. used to send data). If
cleared, the mailbox is the consumer of data sent by a
producer.
- bits 23..0:
The index of the shared mailbox to use. The number of available
mailboxes may vary by instance of the HSP block and SoC
generation.
The following file contains definitions that can be used to
construct mailbox specifiers:
<dt-bindings/mailbox/tegra186-hsp.h>
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"nvidia,tegra186-hsp","nvidia,tegra194-hsp","nvidia,tegra264-hsp"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"nvidia,tegra234-hsp"Item 2
Exact value (
const):"nvidia,tegra194-hsp"
reg — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 17
interrupt-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"doorbell"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"doorbell"Item 2
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 3
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 4
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 5
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 6
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 7
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 8
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 9
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 10
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 11
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 12
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 13
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 14
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 15
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 16
String pattern (
pattern):"^shared([0-9]|1[0-5])$"Item 17
String pattern (
pattern):"^shared([0-9]|1[0-5])$"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"doorbell"Item 2
String pattern (
pattern):"^shared[0-7]$"Item 3
String pattern (
pattern):"^shared[0-7]$"Item 4
String pattern (
pattern):"^shared[0-7]$"Item 5
String pattern (
pattern):"^shared[0-7]$"Item 6
String pattern (
pattern):"^shared[0-7]$"Item 7
String pattern (
pattern):"^shared[0-7]$"Item 8
String pattern (
pattern):"^shared[0-7]$"Item 9
String pattern (
pattern):"^shared[0-7]$"
Rule 4
Array item rules (
items)Item 1
String pattern (
pattern):"^shared[0-7]$"Item 2
String pattern (
pattern):"^shared[0-7]$"Item 3
String pattern (
pattern):"^shared[0-7]$"Item 4
String pattern (
pattern):"^shared[0-7]$"
#mbox-cells — not listed as required here #
Exact value (const): 2
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>
#include <dt-bindings/mailbox/tegra186-hsp.h>
mailbox@3c00000 {
compatible = "nvidia,tegra186-hsp";
reg = <0x03c00000 0xa0000>;
interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "doorbell";
#mbox-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 81: shared interrupts are optional
Qualcomm APCS global block
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/qcom,apcs-kpss-global.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding describes the APCS "global" block found in various Qualcomm platforms.
Maintainers (maintainers): "Jassi Brar <jassisinghbrar@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,ipq5018-apcs-apps-global","qcom,ipq5332-apcs-apps-global","qcom,ipq5424-apcs-apps-global","qcom,ipq8074-apcs-apps-global","qcom,ipq9574-apcs-apps-global"Item 2
Exact value (
const):"qcom,ipq6018-apcs-apps-global"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,msm8226-apcs-kpss-global","qcom,qcs404-apcs-apps-global"Item 2
Exact value (
const):"qcom,msm8916-apcs-kpss-global"Item 3
Exact value (
const):"syscon"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,msm8974-apcs-kpss-global","qcom,msm8976-apcs-kpss-global"Item 2
Exact value (
const):"qcom,msm8994-apcs-kpss-global"Item 3
Exact value (
const):"syscon"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,msm8998-apcs-hmss-global","qcom,sdm660-apcs-hmss-global","qcom,sm4250-apcs-hmss-global","qcom,sm6115-apcs-hmss-global","qcom,sm6125-apcs-hmss-global"Item 2
Exact value (
const):"qcom,msm8994-apcs-kpss-global"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,qcs615-apss-shared","qcom,sc7180-apss-shared","qcom,sc8180x-apss-shared","qcom,sm7150-apss-shared","qcom,sm8150-apss-shared"Item 2
Exact value (
const):"qcom,sdm845-apss-shared"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,msm8916-apcs-kpss-global","qcom,msm8939-apcs-kpss-global","qcom,msm8953-apcs-kpss-global","qcom,msm8994-apcs-kpss-global","qcom,sdx55-apcs-gcc"Item 2
Exact value (
const):"syscon"
Rule 7
Allowed values (
enum):"qcom,ipq6018-apcs-apps-global","qcom,msm8996-apcs-hmss-global","qcom,qcm2290-apcs-hmss-global","qcom,sdm845-apss-shared"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
phandles to the parent clocks of the clock driver
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
Deprecated (deprecated): true
#mbox-cells — required here #
Exact value (const): 1
#clock-cells — not listed as required here #
clock-names — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
Deprecated (deprecated): true
clock-controller — not listed as required here #
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) #
clocks — not listed as required here
phandles to the parent clocks of the clock driver
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
#clock-cells — not listed as required here
clock-names — not listed as required here
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
Required in this object (required): "compatible", "reg", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Exactly one of these rules must match (oneOf) #
Rule 1 #
Required in this object (
required):"clock-controller"Properties and child nodes (
properties) #
clocks— not listed as required here
false— Not permitted by this property rule.
clock-names— not listed as required here
false— Not permitted by this property rule.
#clock-cells— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Properties and child nodes (
properties) #
clock-controller— not listed as required here
false— Not permitted by this property rule.
Reusable definitions ($defs) #
msm8916-apcs-clock-controller #
Properties and child nodes (properties) #
clocks — not listed as required here
Array item rules (items)
Item 1
primary pll parent of the clock driver
Item 2
auxiliary parent
clock-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"pll"
Item 2
Exact value (
const):"aux"
#clock-cells — not listed as required here
Exact value (const): 0
msm8939-apcs-clock-controller #
Properties and child nodes (properties) #
clocks — not listed as required here
Array item rules (items)
Item 1
primary pll parent of the clock driver
Item 2
auxiliary parent
Item 3
reference clock
clock-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"pll"
Item 2
Exact value (
const):"aux"
Item 3
Exact value (
const):"ref"
#clock-cells — not listed as required here
Exact value (const): 0
sdx55-apcs-clock-controller #
Properties and child nodes (properties) #
clocks — not listed as required here
Array item rules (items)
Item 1
reference clock
Item 2
primary pll parent of the clock driver
Item 3
auxiliary parent
clock-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"ref"
Item 2
Exact value (
const):"pll"
Item 3
Exact value (
const):"aux"
#clock-cells — not listed as required here
Exact value (const): 0
ipq6018-apcs-clock-controller #
Properties and child nodes (properties) #
clocks — not listed as required here
Array item rules (items)
Item 1
primary pll parent of the clock driver
Item 2
XO clock
Item 3
GCC GPLL0 clock source
clock-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"pll"
Item 2
Exact value (
const):"xo"
Item 3
Exact value (
const):"gpll0"
#clock-cells — not listed as required here
Exact value (const): 1
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) #Shared schema rule (
$ref):#/$defs/msm8916-apcs-clock-controllerProperties and child nodes (
properties)
clock-controller— not listed as required hereShared schema rule (
$ref):#/$defs/msm8916-apcs-clock-controller
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Shared schema rule (
$ref):#/$defs/msm8939-apcs-clock-controllerProperties and child nodes (
properties)
clock-controller— not listed as required hereShared schema rule (
$ref):#/$defs/msm8939-apcs-clock-controller
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Shared schema rule (
$ref):#/$defs/sdx55-apcs-clock-controllerProperties and child nodes (
properties)
clock-controller— not listed as required hereShared schema rule (
$ref):#/$defs/sdx55-apcs-clock-controller
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Shared schema rule (
$ref):#/$defs/ipq6018-apcs-clock-controllerProperties and child nodes (
properties)
clock-controller— not listed as required hereShared schema rule (
$ref):#/$defs/ipq6018-apcs-clock-controller
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,msm8953-apcs-kpss-global","qcom,msm8994-apcs-kpss-global","qcom,msm8996-apcs-hmss-global","qcom,qcm2290-apcs-hmss-global","qcom,sdm845-apss-shared"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required here
false— Not permitted by this property rule.
clock-names— not listed as required here
false— Not permitted by this property rule.
clock-controller— not listed as required here
false— Not permitted by this property rule.
#clock-cells— not listed as required hereExact value (
const):0
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
mailbox@9820000 {
compatible = "qcom,msm8996-apcs-hmss-global";
reg = <0x9820000 0x1000>;
#mbox-cells = <1>;
#clock-cells = <0>;
};
#define GCC_APSS_AHB_CLK_SRC 1
#define GCC_GPLL0_AO_OUT_MAIN 123
mailbox@b011000 {
compatible = "qcom,qcs404-apcs-apps-global",
"qcom,msm8916-apcs-kpss-global", "syscon";
reg = <0x0b011000 0x1000>;
#mbox-cells = <1>;
apcs_clk: clock-controller {
clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
clock-names = "pll", "aux";
#clock-cells = <0>;
};
};
#define GCC_APSS_AHB_CLK_SRC 1
#define GCC_GPLL0_AO_OUT_MAIN 123
apcs: mailbox@b011000 {
compatible = "qcom,qcs404-apcs-apps-global",
"qcom,msm8916-apcs-kpss-global", "syscon";
reg = <0x0b011000 0x1000>;
#mbox-cells = <1>;
clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
clock-names = "pll", "aux";
#clock-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 112: Clocks should be specified either on the parent node or on the child node
Line 251: Example apcs with msm8996
Line 262: Example apcs with qcs404
Line 279: Example apcs with qcs404 (deprecated: use clock-controller subnode)
Qualcomm Technologies, Inc. CPUCP Mailbox Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/qcom,cpucp-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sibi Sankar <quic_sibis@quicinc.com>"
The CPUSS Control Processor (CPUCP) mailbox controller enables communication between AP and CPUCP by acting as a doorbell between them.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,glymur-cpucp-mbox","qcom,kaanapali-cpucp-mbox","qcom,sm8750-cpucp-mbox"Item 2
Exact value (
const):"qcom,x1e80100-cpucp-mbox"
Rule 2
reg — required here #
Array item rules (items) #
Item 1
CPUCP rx register region
Item 2
CPUCP tx register region
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
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>
mailbox@17430000 {
compatible = "qcom,x1e80100-cpucp-mbox";
reg = <0x17430000 0x10000>, <0x18830000 0x10000>;
interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Qualcomm Technologies, Inc. Inter-Processor Communication Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/qcom-ipcc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>"
The Inter-Processor Communication Controller (IPCC) is a centralized hardware to route interrupts across various subsystems. It involves a three-level addressing scheme called protocol, client and signal. For example, consider an entity on the Application Processor Subsystem (APSS) that wants to listen to Modem's interrupts via Shared Memory Point to Point (SMP2P) interface. In such a case, the client would be Modem (client-id is 2) and the signal would be SMP2P (signal-id is 2). The SMP2P itself falls under the Multiprocessor (MPROC) protocol (protocol-id is 0). Refer include/dt-bindings/mailbox/qcom-ipcc.h for the list of such IDs.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"qcom,glymur-ipcc","qcom,kaanapali-ipcc","qcom,milos-ipcc","qcom,qcs8300-ipcc","qcom,qdu1000-ipcc","qcom,sa8255p-ipcc","qcom,sa8775p-ipcc","qcom,sar2130p-ipcc","qcom,sc7280-ipcc","qcom,sc8280xp-ipcc","qcom,sdx75-ipcc","qcom,sm6350-ipcc","qcom,sm6375-ipcc","qcom,sm8250-ipcc","qcom,sm8350-ipcc","qcom,sm8450-ipcc","qcom,sm8550-ipcc","qcom,sm8650-ipcc","qcom,sm8750-ipcc","qcom,x1e80100-ipcc"
Item 2
Exact value (
const):"qcom,ipcc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
Exact value (const): 3
The first cell is the client-id, the second cell is the signal-id and the third cell is the interrupt type.
#mbox-cells — required here #
Exact value (const): 2
The first cell is the client-id, and the second cell is the signal-id.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "#mbox-cells"
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>
#include <dt-bindings/mailbox/qcom-ipcc.h>
mailbox@408000 {
compatible = "qcom,sm8250-ipcc", "qcom,ipcc";
reg = <0x408000 0x1000>;
interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
#interrupt-cells = <3>;
#mbox-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
RISC-V Platform Management Interface (RPMI) shared memory mailbox
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
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)
RISC-V SBI Message Proxy (MPXY) extension based mailbox
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/riscv,sbi-mpxy-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Anup Patel <anup@brainfault.org>"
The RISC-V SBI Message Proxy (MPXY) extension [1] allows supervisor software to send messages through the SBI implementation (M-mode firmware or HS-mode hypervisor). The underlying message protocol and message format used by the supervisor software could be some other standard protocol compatible with the SBI MPXY extension (such as RISC-V Platform Management Interface (RPMI) [2]).
=========================================== References ===========================================
[1] RISC-V Supervisor Binary Interface (SBI) v3.0 (or higher)
https://github.com/riscv-non-isa/riscv-sbi-doc/releases
[2] 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,sbi-mpxy-mbox"
#mbox-cells — required here #
Exact value (const): 2
The first cell specifies channel_id of the SBI MPXY channel, the second cell specifies MSG_PROT_ID of the SBI MPXY channel
Required in this object (required): "compatible", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mailbox {
compatible = "riscv,sbi-mpxy-mbox";
#mbox-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Rockchip RK3368 Mailbox Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/rockchip,rk3368-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
The Rockchip mailbox is used by the Rockchip CPU cores to communicate requests to MCU processor.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rockchip,rk3368-mailbox"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "pclk_mailbox"
interrupts — required here #
One interrupt for each channel
Maximum number of items (maxItems): 4
#mbox-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
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>
mailbox@ff6b0000 {
compatible = "rockchip,rk3368-mailbox";
reg = <0xff6b0000 0x1000>;
interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Sophgo CV1800/SG2000 mailbox controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/sophgo,cv1800b-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yuntao Dai <d1581209858@live.com>", "Junhui Liu <junhui.liu@pigmoral.tech>"
Mailboxes integrated in Sophgo CV1800/SG2000 SoCs have 8 channels, each shipping an 8-byte FIFO. Any processor can write to an arbitrary channel and raise interrupts to receivers. Sending messages to itself is also supported.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sophgo,cv1800b-mailbox"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 2
<&phandle channel target> phandle : Label name of mailbox controller channel : 0-7, Channel index target : 0-3, Target processor ID
Sophgo CV1800/SG2000 SoCs include the following processors, numbered as: <0> Cortex-A53 (Only available on CV181X/SG200X) <1> C906B <2> C906L <3> 8051
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
mailbox@1900000 {
compatible = "sophgo,cv1800b-mailbox";
reg = <0x01900000 0x1000>;
interrupts = <101 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Spreadtrum mailbox controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/sprd-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sprd,sc9860-mailbox", "sprd,sc9863a-mailbox", "sprd,ums9230-mailbox"
reg — required here #
Array item rules (items) #
Item 1
inbox registers' base address
Item 2
outbox registers' base address
interrupts — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
interrupt-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"inbox"
Item 2
Exact value (
const):"outbox"
Item 3
Exact value (
const):"supp-outbox"
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"enable"
#mbox-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "#mbox-cells", "clocks", "clock-names"
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>
mailbox: mailbox@400a0000 {
compatible = "sprd,sc9860-mailbox";
reg = <0x400a0000 0x8000>, <0x400a8000 0x8000>;
#mbox-cells = <1>;
clock-names = "enable";
clocks = <&aon_gate 53>;
interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "inbox", "outbox";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicroelectronics Mailbox Driver for STi platform
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/st,sti-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Each ST Mailbox IP currently consists of 4 instances of 32 channels. Messages are passed between Application and Remote processors using shared memory.
Maintainers (maintainers): "Patrice Chotard <patrice.chotard@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,stih407-mailbox"
reg — required here #
Maximum number of items (maxItems): 1
mbox-name — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
name of the mailbox IP
interrupts — not listed as required here #
the irq line for the RX mailbox
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 2
Required in this object (required): "compatible", "reg", "#mbox-cells"
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>
mailbox0: mailbox@8f00000 {
compatible = "st,stih407-mailbox";
reg = <0x8f00000 0x1000>;
interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <2>;
mbox-name = "a9";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicroelectronics STM32 IPC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/st,stm32-ipcc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The IPCC block provides a non blocking signaling mechanism to post and retrieve messages in an atomic way between two processors. It provides the signaling for N bidirectionnal channels. The number of channels (N) can be read from a dedicated register.
Maintainers (maintainers): "Fabien Dessenne <fabien.dessenne@foss.st.com>", "Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,stm32mp1-ipcc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
rx channel occupied
Item 2
tx channel free
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
#mbox-cells — required here #
Exact value (const): 1
st,proc-id — required here #
Processor id using the mailbox (0 or 1)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "compatible", "reg", "st,proc-id", "clocks", "interrupt-names", "#mbox-cells", "interrupts"
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>
#include <dt-bindings/clock/stm32mp1-clks.h>
ipcc: mailbox@4c001000 {
compatible = "st,stm32mp1-ipcc";
#mbox-cells = <1>;
reg = <0x4c001000 0x400>;
st,proc-id = <0>;
interrupts-extended = <&exti 61 1>,
<&intc GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "rx", "tx";
clocks = <&rcc_clk IPCC>;
wakeup-source;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
T-head TH1520 Mailbox Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/thead,th1520-mbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The T-head mailbox controller enables communication and coordination between cores within the SoC by passing messages (e.g., data, status, and control) through mailbox channels. It also allows one core to signal another processor using interrupts via the Interrupt Controller Unit (ICU).
Maintainers (maintainers): "Michal Wilczynski <m.wilczynski@samsung.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "thead,th1520-mbox"
clocks — required here #
Array item rules (items) #
Item 1
Clock for the local mailbox
Item 2
Clock for remote ICU 0
Item 3
Clock for remote ICU 1
Item 4
Clock for remote ICU 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"clk-local"
Item 2
Exact value (
const):"clk-remote-icu0"
Item 3
Exact value (
const):"clk-remote-icu1"
Item 4
Exact value (
const):"clk-remote-icu2"
reg — required here #
Array item rules (items) #
Item 1
Mailbox local base address
Item 2
Remote ICU 0 base address
Item 3
Remote ICU 1 base address
Item 4
Remote ICU 2 base address
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"local"
Item 2
Exact value (
const):"remote-icu0"
Item 3
Exact value (
const):"remote-icu1"
Item 4
Exact value (
const):"remote-icu2"
interrupts — required here #
Maximum number of items (maxItems): 1
#mbox-cells — required here #
Exact value (const): 1
The one and only cell describes destination CPU ID.
Required in this object (required): "compatible", "clocks", "clock-names", "reg", "reg-names", "interrupts", "#mbox-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/thead,th1520-clk-ap.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
mailbox@ffffc38000 {
compatible = "thead,th1520-mbox";
reg = <0xff 0xffc38000 0x0 0x4000>,
<0xff 0xffc44000 0x0 0x1000>,
<0xff 0xffc4c000 0x0 0x1000>,
<0xff 0xffc54000 0x0 0x1000>;
reg-names = "local", "remote-icu0", "remote-icu1", "remote-icu2";
clocks = <&clk CLK_MBOX0>, <&clk CLK_MBOX1>, <&clk CLK_MBOX2>,
<&clk CLK_MBOX3>;
clock-names = "clk-local", "clk-remote-icu0", "clk-remote-icu1",
"clk-remote-icu2";
interrupts = <28>;
#mbox-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI OMAP2+ and K3 Mailbox devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/ti,omap-mailbox.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Suman Anna <s-anna@ti.com>"
The OMAP Mailbox hardware facilitates communication between different processors using a queued mailbox interrupt mechanism. The IP block is external to the various processor subsystems and is connected on an interconnect bus. The communication is achieved through a set of registers for message storage and interrupt configuration registers.
Each mailbox IP block/cluster has a certain number of h/w fifo queues and output interrupt lines. An output interrupt line is routed to an interrupt controller within a processor subsystem, and there can be more than one line going to a specific processor's interrupt controller. The interrupt line connections are fixed for an instance and are dictated by the IP integration into the SoC (excluding the SoCs that have an Interrupt Crossbar or an Interrupt Router IP). Each interrupt line is programmable through a set of interrupt configuration registers, and have a rx and tx interrupt source per h/w fifo. Communication between different processors is achieved through the appropriate programming of the rx and tx interrupt sources on the appropriate interrupt lines.
The number of h/w fifo queues and interrupt lines dictate the usable registers. All the current OMAP SoCs except for the newest DRA7xx SoC has a single IP instance. DRA7xx has multiple instances with different number of h/w fifo queues and interrupt lines between different instances. The interrupt lines can also be routed to different processor sub-systems on DRA7xx as they are routed through the Crossbar, a kind of interrupt router/multiplexer. The K3 AM65x, J721E and J7200 SoCs has each of these instances form a cluster and combine multiple clusters into a single IP block present within the Main NavSS. The interrupt lines from all these clusters are multiplexed and routed to different processor subsystems over a limited number of common interrupt output lines of an Interrupt Router. The AM64x SoCS also uses a single IP block comprising of multiple clusters, but the number of clusters are smaller, and the interrupt output lines are connected directly to various processors.
Mailbox Controller Nodes ========================= A Mailbox device node is used to represent a Mailbox IP instance/cluster within a SoC. The sub-mailboxes (actual communication channels) are represented as child nodes of this parent node.
Mailbox Users ============== A device needing to communicate with a target processor device should specify them using the common mailbox binding properties, "mboxes" and the optional "mbox-names" (please see Documentation/devicetree/bindings/mailbox/mailbox.txt for details). Each value of the mboxes property should contain a phandle to the mailbox controller device node and an args specifier that will be the phandle to the intended sub-mailbox child node to be used for communication. The equivalent "mbox-names" property value can be used to give a name to the communication channel to be used by the client user.
Reusable definitions ($defs) #
omap-mbox-descriptor #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
The omap-mbox-descriptor is made of up of 3 cells and represents a single uni-directional communication channel. A typical sub-mailbox device uses two such channels - one for transmitting (Tx) and one for receiving (Rx).
Array item rules (items) #
Item 1
mailbox fifo id used either for transmitting on ti,mbox-tx channel or for receiving on ti,mbox-rx channel (fifo_id). This is the hardware fifo number within a mailbox cluster.
Item 2
irq identifier index number to use from the parent's interrupts data. Should be 0 for most of the cases, a positive index value is seen only on mailboxes that have multiple interrupt lines connected to the MPU processor (irq_id). This is an index number in the listed interrupts property in the DT nodes.
Item 3
mailbox user id for identifying the interrupt line associated with generating a tx/rx fifo interrupt (usr_id). This is the hardware user id number within a mailbox cluster.
omap-sub-mailbox #
Value type (type): "object"
The omap-sub-mailbox is a child node within a Mailbox controller device node and represents the actual communication channel used to send and receive messages between the host processor and a remote processor. Each child node should have a unique node name across all the different mailbox device nodes.
Properties and child nodes (properties) #
ti,mbox-tx — required here
Shared schema rule ($ref): #/$defs/omap-mbox-descriptor
sub-mailbox descriptor property defining a Tx fifo.
ti,mbox-rx — required here
Shared schema rule ($ref): #/$defs/omap-mbox-descriptor
sub-mailbox descriptor property defining a Rx fifo.
ti,mbox-send-noirq — not listed as required here
Value type (type): "boolean"
Quirk flag to allow the client user of this sub-mailbox to send messages without triggering a Tx ready interrupt, and to control the Tx ticker. Should be used only on sub-mailboxes used to communicate with WkupM3 remote processor on AM33xx/AM43xx SoCs.
Required in this object (required): "ti,mbox-tx", "ti,mbox-rx"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,omap2-mailbox", "ti,omap3-mailbox", "ti,omap4-mailbox", "ti,am654-mailbox", "ti,am64-mailbox"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Contains the interrupt information for the mailbox device. The format is dependent on which interrupt controller the Mailbox device uses. The number of interrupts listed will at most be the value specified in ti,mbox-num-users property, but is usually limited by the number of interrupts reaching the main processor. An interrupt-parent property is required on SoCs where the interrupt lines are connected through a Interrupt Router before reaching the main processor's GIC.
#mbox-cells — required here #
Exact value (const): 1
The specifier is a phandle to an omap-sub-mailbox device.
ti,mbox-num-users — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of targets (processor devices) that the mailbox device can interrupt.
ti,mbox-num-fifos — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of h/w fifo queues within the mailbox IP block.
ti,hwmods — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Deprecated (deprecated): true
Name of the hwmod associated with the mailbox. This should be defined in the mailbox node only if the node is not defined as a child node of a corresponding sysc interconnect node. This property is only needed on some legacy OMAP SoCs which have not yet been converted to the ti,sysc interconnect hierarchy, but is otherwise considered obsolete.
Properties matching a name pattern (patternProperties) #
^mbox-[a-z0-9-]+$ — name matches this regular expression #
Shared schema rule ($ref): #/$defs/omap-sub-mailbox
Required in this object (required): "compatible", "reg", "interrupts", "#mbox-cells", "ti,mbox-num-users", "ti,mbox-num-fifos"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"ti,am654-mailbox","ti,am64-mailbox"When the condition matches (
then) #Properties and child nodes (
properties)
ti,mbox-num-users— not listed as required hereExact value (
const):4
ti,mbox-num-fifos— not listed as required hereExact value (
const):16
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):4
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
ti,mbox-num-users— not listed as required here
ti,mbox-num-fifos— not listed as required here
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):4
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
ti,mbox-num-users— not listed as required hereExact value (
const):2
ti,mbox-num-fifos— not listed as required hereExact value (
const):2
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
ti,mbox-num-users— not listed as required hereExact value (
const):4
ti,mbox-num-fifos— not listed as required hereExact value (
const):6
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
/* OMAP4 */
#include <dt-bindings/interrupt-controller/arm-gic.h>
mailbox@4a0f4000 {
compatible = "ti,omap4-mailbox";
reg = <0x4a0f4000 0x200>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
#mbox-cells = <1>;
ti,mbox-num-users = <3>;
ti,mbox-num-fifos = <8>;
mbox_ipu: mbox-ipu {
ti,mbox-tx = <0 0 0>;
ti,mbox-rx = <1 0 0>;
};
mbox_dsp: mbox-dsp {
ti,mbox-tx = <3 0 0>;
ti,mbox-rx = <2 0 0>;
};
};
/* AM33xx */
mailbox@480c8000 {
compatible = "ti,omap4-mailbox";
reg = <0x480c8000 0x200>;
interrupts = <77>;
#mbox-cells = <1>;
ti,mbox-num-users = <4>;
ti,mbox-num-fifos = <8>;
mbox_wkupm3: mbox-wkup-m3 {
ti,mbox-tx = <0 0 0>;
ti,mbox-rx = <0 0 3>;
ti,mbox-send-noirq;
};
};
/* AM65x */
mailbox@31f80000 {
compatible = "ti,am654-mailbox";
reg = <0x31f80000 0x200>;
#mbox-cells = <1>;
ti,mbox-num-users = <4>;
ti,mbox-num-fifos = <16>;
interrupt-parent = <&intr_main_navss>;
interrupts = <436>;
mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
ti,mbox-tx = <1 0 0>;
ti,mbox-rx = <0 0 0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 119: for OMAP2420, OMAP2430 SoCs
Line 120: for OMAP3430, OMAP3630 SoCs
Line 121: for OMAP44xx, OMAP54xx, AM33xx, AM43xx and DRA7xx SoCs
Line 122: for K3 AM65x, J721E and J7200 SoCs
Line 123: for K3 AM64x SoCs
Texas Instruments' Secure Proxy
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
Schema identifier ($id): "http://devicetree.org/schemas/mailbox/ti,secure-proxy.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nishanth Menon <nm@ti.com>"
The Texas Instruments' secure proxy is a mailbox controller that has configurable queues selectable at SoC(System on Chip) integration. The Message manager is broken up into different address regions that are called "threads" or "proxies" - each instance is unidirectional and is instantiated at SoC integration level by system controller to indicate receive or transmit path.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^mailbox@[0-9a-f]+$"
compatible — required here #
Exact value (const): "ti,am654-secure-proxy"
#mbox-cells — required here #
Exact value (const): 1
Contains the secure proxy thread ID used for the specific transfer path.
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"target_data"
Item 2
Exact value (
const):"rt"
Item 3
Exact value (
const):"scfg"
reg — required here #
Maximum number of items (maxItems): 3
interrupt-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 100
Array item rules (items) #
String pattern (
pattern):"^rx_[0-9]{3}$"
Contains the interrupt name information for the Rx interrupt path for secure proxy thread in the form 'rx_<PID>'.
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 100
Contains the interrupt information for the Rx interrupt path for secure proxy.
Required in this object (required): "compatible", "reg-names", "reg", "interrupt-names", "interrupts", "#mbox-cells"
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>
secure_proxy: mailbox@32c00000 {
compatible = "ti,am654-secure-proxy";
#mbox-cells = <1>;
reg-names = "target_data", "rt", "scfg";
reg = <0x32c00000 0x100000>,
<0x32400000 0x100000>,
<0x32800000 0x100000>;
interrupt-names = "rx_011";
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Xilinx IPI(Inter Processor Interrupt) mailbox controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mailbox bindings
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