2020-06-01 18:37:44 +08:00
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id : http://devicetree.org/schemas/mailbox/fsl,mu.yaml#
$schema : http://devicetree.org/meta-schemas/core.yaml#
title : NXP i.MX Messaging Unit (MU)
maintainers :
- Dong Aisheng <aisheng.dong@nxp.com>
description : |
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 :
compatible :
oneOf :
- const : fsl,imx6sx-mu
- const : fsl,imx7ulp-mu
2021-05-28 18:06:00 +08:00
- const : fsl,imx8ulp-mu
2020-06-01 18:37:44 +08:00
- const : fsl,imx8-mu-scu
2022-02-07 09:52:09 +08:00
- const : fsl,imx8-mu-seco
2022-03-09 18:03:42 +08:00
- const : fsl,imx93-mu-s4
2021-10-22 18:18:55 +08:00
- const : fsl,imx8ulp-mu-s4
2022-03-09 18:03:41 +08:00
- items :
- const : fsl,imx93-mu
- const : fsl,imx8ulp-mu
2020-06-01 18:37:44 +08:00
- items :
- enum :
2020-04-20 21:24:47 -05:00
- fsl,imx7s-mu
- fsl,imx8mq-mu
- fsl,imx8mm-mu
- fsl,imx8mn-mu
- fsl,imx8mp-mu
2021-03-05 21:17:32 +08:00
- fsl,imx8qm-mu
2020-04-20 21:24:47 -05:00
- fsl,imx8qxp-mu
2020-06-01 18:37:44 +08:00
- const : fsl,imx6sx-mu
- description : To communicate with i.MX8 SCU with fast IPC
items :
- const : fsl,imx8-mu-scu
2021-03-05 21:17:32 +08:00
- enum :
- fsl,imx8qm-mu
- fsl,imx8qxp-mu
dt-bindings: mailbox: fsl,mu: Fix i.MX 8QXP compatible matching
The Mailbox on i.MX 8QXP (fsl,imx8qxp-mu) can also be compatible with
fsl,imx8-mu-scu (for fast IPC) so adjust the compatibles to fix
dtbs_check warnings like:
arch/arm64/boot/dts/freescale/imx8qxp-mek.dt.yaml: mailbox@5d1f0000:
compatible: ['fsl,imx8-mu-scu', 'fsl,imx8qxp-mu', 'fsl,imx6sx-mu']
is not valid under any of the given schemas (Possible causes of the failure):
arch/arm64/boot/dts/freescale/imx8qxp-mek.dt.yaml: mailbox@5d1f0000:
compatible: ['fsl,imx8-mu-scu', 'fsl,imx8qxp-mu', 'fsl,imx6sx-mu'] is too long
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200903195325.5394-1-krzk@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
2020-09-03 21:53:23 +02:00
- const : fsl,imx6sx-mu
2020-06-01 18:37:44 +08:00
reg :
maxItems : 1
interrupts :
2022-03-09 18:03:42 +08:00
minItems : 1
maxItems : 2
interrupt-names :
minItems : 1
items :
- const : tx
- const : rx
2020-06-01 18:37:44 +08:00
"#mbox-cells" :
description : |
<&phandle type channel>
phandle : Label name of controller
type : Channel type
channel : Channel number
2022-06-15 21:00:08 +08:00
This MU support 5 type of unidirectional channels, each type
has 4 channels except RST channel which only has 1 channel.
A total of 17 channels. Following types are
2020-06-01 18:37:44 +08:00
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.
2022-06-15 21:00:08 +08:00
4 - RST channel
2020-06-01 18:37:44 +08:00
const : 2
clocks :
maxItems : 1
fsl,mu-side-b :
description : boolean, if present, means it is for side B MU.
type : boolean
2020-10-02 18:18:37 +02:00
power-domains :
maxItems : 1
2020-06-01 18:37:44 +08:00
required :
- compatible
- reg
- interrupts
- "#mbox-cells"
2022-03-09 18:03:42 +08:00
allOf :
- if :
properties :
compatible :
enum :
- fsl,imx93-mu-s4
then :
properties :
interrupt-names :
minItems : 2
interrupts :
minItems : 2
else :
properties :
interrupts :
maxItems : 1
not :
required :
- interrupt-names
2020-06-01 18:37:44 +08:00
additionalProperties : false
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>;
};