NXP i.MX Messaging Unit (MU)
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)