xref: /freebsd/sys/contrib/device-tree/Bindings/mailbox/fsl,mu.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/mailbox/fsl,mu.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: NXP i.MX Messaging Unit (MU)
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Dong Aisheng <aisheng.dong@nxp.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  The Messaging Unit module enables two processors within the SoC to
14c66ec88fSEmmanuel Vadot  communicate and coordinate by passing messages (e.g. data, status
15c66ec88fSEmmanuel Vadot  and control) through the MU interface. The MU also provides the ability
16c66ec88fSEmmanuel Vadot  for one processor to signal the other processor using interrupts.
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel Vadot  Because the MU manages the messaging between processors, the MU uses
19c66ec88fSEmmanuel Vadot  different clocks (from each side of the different peripheral buses).
20c66ec88fSEmmanuel Vadot  Therefore, the MU must synchronize the accesses from one side to the
21c66ec88fSEmmanuel Vadot  other. The MU accomplishes synchronization using two sets of matching
22c66ec88fSEmmanuel Vadot  registers (Processor A-facing, Processor B-facing).
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadotproperties:
25c66ec88fSEmmanuel Vadot  compatible:
26c66ec88fSEmmanuel Vadot    oneOf:
27c66ec88fSEmmanuel Vadot      - const: fsl,imx6sx-mu
28c66ec88fSEmmanuel Vadot      - const: fsl,imx7ulp-mu
29c66ec88fSEmmanuel Vadot      - const: fsl,imx8-mu-scu
30c66ec88fSEmmanuel Vadot      - items:
31c66ec88fSEmmanuel Vadot          - enum:
32c66ec88fSEmmanuel Vadot              - fsl,imx7s-mu
33c66ec88fSEmmanuel Vadot              - fsl,imx8mq-mu
34c66ec88fSEmmanuel Vadot              - fsl,imx8mm-mu
35c66ec88fSEmmanuel Vadot              - fsl,imx8mn-mu
36c66ec88fSEmmanuel Vadot              - fsl,imx8mp-mu
37*2eb4d8dcSEmmanuel Vadot              - fsl,imx8qm-mu
38c66ec88fSEmmanuel Vadot              - fsl,imx8qxp-mu
39c66ec88fSEmmanuel Vadot          - const: fsl,imx6sx-mu
40c66ec88fSEmmanuel Vadot      - description: To communicate with i.MX8 SCU with fast IPC
41c66ec88fSEmmanuel Vadot        items:
42c66ec88fSEmmanuel Vadot          - const: fsl,imx8-mu-scu
43*2eb4d8dcSEmmanuel Vadot          - enum:
44*2eb4d8dcSEmmanuel Vadot              - fsl,imx8qm-mu
45*2eb4d8dcSEmmanuel Vadot              - fsl,imx8qxp-mu
466be33864SEmmanuel Vadot          - const: fsl,imx6sx-mu
47c66ec88fSEmmanuel Vadot
48c66ec88fSEmmanuel Vadot  reg:
49c66ec88fSEmmanuel Vadot    maxItems: 1
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadot  interrupts:
52c66ec88fSEmmanuel Vadot    maxItems: 1
53c66ec88fSEmmanuel Vadot
54c66ec88fSEmmanuel Vadot  "#mbox-cells":
55c66ec88fSEmmanuel Vadot    description: |
56c66ec88fSEmmanuel Vadot      <&phandle type channel>
57c66ec88fSEmmanuel Vadot      phandle   : Label name of controller
58c66ec88fSEmmanuel Vadot      type      : Channel type
59c66ec88fSEmmanuel Vadot      channel   : Channel number
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadot      This MU support 4 type of unidirectional channels, each type
62c66ec88fSEmmanuel Vadot      has 4 channels. A total of 16 channels. Following types are
63c66ec88fSEmmanuel Vadot      supported:
64c66ec88fSEmmanuel Vadot      0 - TX channel with 32bit transmit register and IRQ transmit
65c66ec88fSEmmanuel Vadot          acknowledgment support.
66c66ec88fSEmmanuel Vadot      1 - RX channel with 32bit receive register and IRQ support
67c66ec88fSEmmanuel Vadot      2 - TX doorbell channel. Without own register and no ACK support.
68c66ec88fSEmmanuel Vadot      3 - RX doorbell channel.
69c66ec88fSEmmanuel Vadot    const: 2
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel Vadot  clocks:
72c66ec88fSEmmanuel Vadot    maxItems: 1
73c66ec88fSEmmanuel Vadot
74c66ec88fSEmmanuel Vadot  fsl,mu-side-b:
75c66ec88fSEmmanuel Vadot    description: boolean, if present, means it is for side B MU.
76c66ec88fSEmmanuel Vadot    type: boolean
77c66ec88fSEmmanuel Vadot
786be33864SEmmanuel Vadot  power-domains:
796be33864SEmmanuel Vadot    maxItems: 1
806be33864SEmmanuel Vadot
81c66ec88fSEmmanuel Vadotrequired:
82c66ec88fSEmmanuel Vadot  - compatible
83c66ec88fSEmmanuel Vadot  - reg
84c66ec88fSEmmanuel Vadot  - interrupts
85c66ec88fSEmmanuel Vadot  - "#mbox-cells"
86c66ec88fSEmmanuel Vadot
87c66ec88fSEmmanuel VadotadditionalProperties: false
88c66ec88fSEmmanuel Vadot
89c66ec88fSEmmanuel Vadotexamples:
90c66ec88fSEmmanuel Vadot  - |
91c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
92c66ec88fSEmmanuel Vadot
93c66ec88fSEmmanuel Vadot    mailbox@5d1b0000 {
94c66ec88fSEmmanuel Vadot        compatible = "fsl,imx8qxp-mu", "fsl,imx6sx-mu";
95c66ec88fSEmmanuel Vadot        reg = <0x5d1b0000 0x10000>;
96c66ec88fSEmmanuel Vadot        interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
97c66ec88fSEmmanuel Vadot        #mbox-cells = <2>;
98c66ec88fSEmmanuel Vadot    };
99