xref: /freebsd/sys/contrib/device-tree/Bindings/mailbox/fsl,mu.yaml (revision 5b56413d04e608379c9a306373554a8e4d321bc0)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mailbox/fsl,mu.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP i.MX Messaging Unit (MU)
8
9maintainers:
10  - Dong Aisheng <aisheng.dong@nxp.com>
11
12description: |
13  The Messaging Unit module enables two processors within the SoC to
14  communicate and coordinate by passing messages (e.g. data, status
15  and control) through the MU interface. The MU also provides the ability
16  for one processor to signal the other processor using interrupts.
17
18  Because the MU manages the messaging between processors, the MU uses
19  different clocks (from each side of the different peripheral buses).
20  Therefore, the MU must synchronize the accesses from one side to the
21  other. The MU accomplishes synchronization using two sets of matching
22  registers (Processor A-facing, Processor B-facing).
23
24properties:
25  compatible:
26    oneOf:
27      - const: fsl,imx6sx-mu
28      - const: fsl,imx7ulp-mu
29      - const: fsl,imx8ulp-mu
30      - const: fsl,imx8-mu-scu
31      - const: fsl,imx8-mu-seco
32      - const: fsl,imx93-mu-s4
33      - const: fsl,imx8ulp-mu-s4
34      - items:
35          - const: fsl,imx93-mu
36          - const: fsl,imx8ulp-mu
37      - items:
38          - enum:
39              - fsl,imx7s-mu
40              - fsl,imx8mq-mu
41              - fsl,imx8mm-mu
42              - fsl,imx8mn-mu
43              - fsl,imx8mp-mu
44              - fsl,imx8qm-mu
45              - fsl,imx8qxp-mu
46          - const: fsl,imx6sx-mu
47      - description: To communicate with i.MX8 SCU with fast IPC
48        items:
49          - const: fsl,imx8-mu-scu
50          - enum:
51              - fsl,imx8qm-mu
52              - fsl,imx8qxp-mu
53          - const: fsl,imx6sx-mu
54
55  reg:
56    maxItems: 1
57
58  interrupts:
59    minItems: 1
60    maxItems: 2
61
62  interrupt-names:
63    minItems: 1
64    items:
65      - const: tx
66      - const: rx
67
68  "#mbox-cells":
69    description: |
70      <&phandle type channel>
71      phandle   : Label name of controller
72      type      : Channel type
73      channel   : Channel number
74
75      This MU support 6 type of unidirectional channels, each type
76      has 4 channels except RST channel which only has 1 channel.
77      A total of 21 channels.  Following types are
78      supported:
79      0 - TX channel with 32bit transmit register and IRQ transmit
80          acknowledgment support.
81      1 - RX channel with 32bit receive register and IRQ support
82      2 - TX doorbell channel. Without own register and no ACK support.
83      3 - RX doorbell channel.
84      4 - RST channel
85      5 - Tx doorbell channel. With S/W ACK from the other side.
86    const: 2
87
88  clocks:
89    maxItems: 1
90
91  fsl,mu-side-b:
92    description: boolean, if present, means it is for side B MU.
93    type: boolean
94
95  power-domains:
96    maxItems: 1
97
98required:
99  - compatible
100  - reg
101  - interrupts
102  - "#mbox-cells"
103
104allOf:
105  - if:
106      properties:
107        compatible:
108          enum:
109            - fsl,imx93-mu-s4
110    then:
111      properties:
112        interrupt-names:
113          minItems: 2
114        interrupts:
115          minItems: 2
116
117    else:
118      properties:
119        interrupts:
120          maxItems: 1
121      not:
122        required:
123          - interrupt-names
124
125additionalProperties: false
126
127examples:
128  - |
129    #include <dt-bindings/interrupt-controller/arm-gic.h>
130
131    mailbox@5d1b0000 {
132        compatible = "fsl,imx8qxp-mu", "fsl,imx6sx-mu";
133        reg = <0x5d1b0000 0x10000>;
134        interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
135        #mbox-cells = <2>;
136    };
137