18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/mailbox/fsl,mu.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: NXP i.MX Messaging Unit (MU) 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - Dong Aisheng <aisheng.dong@nxp.com> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cidescription: | 138c2ecf20Sopenharmony_ci The Messaging Unit module enables two processors within the SoC to 148c2ecf20Sopenharmony_ci communicate and coordinate by passing messages (e.g. data, status 158c2ecf20Sopenharmony_ci and control) through the MU interface. The MU also provides the ability 168c2ecf20Sopenharmony_ci for one processor to signal the other processor using interrupts. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci Because the MU manages the messaging between processors, the MU uses 198c2ecf20Sopenharmony_ci different clocks (from each side of the different peripheral buses). 208c2ecf20Sopenharmony_ci Therefore, the MU must synchronize the accesses from one side to the 218c2ecf20Sopenharmony_ci other. The MU accomplishes synchronization using two sets of matching 228c2ecf20Sopenharmony_ci registers (Processor A-facing, Processor B-facing). 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciproperties: 258c2ecf20Sopenharmony_ci compatible: 268c2ecf20Sopenharmony_ci oneOf: 278c2ecf20Sopenharmony_ci - const: fsl,imx6sx-mu 288c2ecf20Sopenharmony_ci - const: fsl,imx7ulp-mu 298c2ecf20Sopenharmony_ci - const: fsl,imx8-mu-scu 308c2ecf20Sopenharmony_ci - items: 318c2ecf20Sopenharmony_ci - enum: 328c2ecf20Sopenharmony_ci - fsl,imx7s-mu 338c2ecf20Sopenharmony_ci - fsl,imx8mq-mu 348c2ecf20Sopenharmony_ci - fsl,imx8mm-mu 358c2ecf20Sopenharmony_ci - fsl,imx8mn-mu 368c2ecf20Sopenharmony_ci - fsl,imx8mp-mu 378c2ecf20Sopenharmony_ci - fsl,imx8qxp-mu 388c2ecf20Sopenharmony_ci - const: fsl,imx6sx-mu 398c2ecf20Sopenharmony_ci - description: To communicate with i.MX8 SCU with fast IPC 408c2ecf20Sopenharmony_ci items: 418c2ecf20Sopenharmony_ci - const: fsl,imx8-mu-scu 428c2ecf20Sopenharmony_ci - const: fsl,imx8qxp-mu 438c2ecf20Sopenharmony_ci - const: fsl,imx6sx-mu 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci reg: 468c2ecf20Sopenharmony_ci maxItems: 1 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci interrupts: 498c2ecf20Sopenharmony_ci maxItems: 1 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci "#mbox-cells": 528c2ecf20Sopenharmony_ci description: | 538c2ecf20Sopenharmony_ci <&phandle type channel> 548c2ecf20Sopenharmony_ci phandle : Label name of controller 558c2ecf20Sopenharmony_ci type : Channel type 568c2ecf20Sopenharmony_ci channel : Channel number 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci This MU support 4 type of unidirectional channels, each type 598c2ecf20Sopenharmony_ci has 4 channels. A total of 16 channels. Following types are 608c2ecf20Sopenharmony_ci supported: 618c2ecf20Sopenharmony_ci 0 - TX channel with 32bit transmit register and IRQ transmit 628c2ecf20Sopenharmony_ci acknowledgment support. 638c2ecf20Sopenharmony_ci 1 - RX channel with 32bit receive register and IRQ support 648c2ecf20Sopenharmony_ci 2 - TX doorbell channel. Without own register and no ACK support. 658c2ecf20Sopenharmony_ci 3 - RX doorbell channel. 668c2ecf20Sopenharmony_ci const: 2 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci clocks: 698c2ecf20Sopenharmony_ci maxItems: 1 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci fsl,mu-side-b: 728c2ecf20Sopenharmony_ci description: boolean, if present, means it is for side B MU. 738c2ecf20Sopenharmony_ci type: boolean 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci power-domains: 768c2ecf20Sopenharmony_ci maxItems: 1 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_cirequired: 798c2ecf20Sopenharmony_ci - compatible 808c2ecf20Sopenharmony_ci - reg 818c2ecf20Sopenharmony_ci - interrupts 828c2ecf20Sopenharmony_ci - "#mbox-cells" 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ciadditionalProperties: false 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ciexamples: 878c2ecf20Sopenharmony_ci - | 888c2ecf20Sopenharmony_ci #include <dt-bindings/interrupt-controller/arm-gic.h> 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci mailbox@5d1b0000 { 918c2ecf20Sopenharmony_ci compatible = "fsl,imx8qxp-mu", "fsl,imx6sx-mu"; 928c2ecf20Sopenharmony_ci reg = <0x5d1b0000 0x10000>; 938c2ecf20Sopenharmony_ci interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>; 948c2ecf20Sopenharmony_ci #mbox-cells = <2>; 958c2ecf20Sopenharmony_ci }; 96