drivers: ipc: Enable messaging unit driver for iMX.RT multicore SOCs

Enable MU messaging unit driver for RT11xx socs.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2022-11-15 15:28:16 -06:00 committed by Carles Cufí
commit 7d1f435a2a
5 changed files with 38 additions and 3 deletions

View file

@ -17,8 +17,8 @@ config IPM_IMX
config IPM_IMX_REV2 config IPM_IMX_REV2
bool "IMX IPM driver (rev 2)" bool "IMX IPM driver (rev 2)"
depends on DT_HAS_NXP_IMX_MU_ENABLED default y
depends on !IPM_IMX depends on DT_HAS_NXP_IMX_MU_REV2_ENABLED
help help
Rev 2 driver for NXP i.MX messaging unit (MCUX-based) Rev 2 driver for NXP i.MX messaging unit (MCUX-based)

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#define DT_DRV_COMPAT nxp_imx_mu
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
@ -13,8 +12,10 @@
#include <zephyr/drivers/ipm.h> #include <zephyr/drivers/ipm.h>
#include <zephyr/irq.h> #include <zephyr/irq.h>
#if IS_ENABLED(CONFIG_IPM_IMX_REV2) #if IS_ENABLED(CONFIG_IPM_IMX_REV2)
#define DT_DRV_COMPAT nxp_imx_mu_rev2
#include "fsl_mu.h" #include "fsl_mu.h"
#else #else
#define DT_DRV_COMPAT nxp_imx_mu
#include <mu_imx.h> #include <mu_imx.h>
#endif #endif

View file

@ -52,6 +52,13 @@
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
}; };
mailbox_b: mailbox@40c4c000 {
compatible = "nxp,imx-mu-rev2";
reg = <0x40c4c000 0x4000>;
interrupts = <118 0>;
rdc = <0>;
};
}; };
}; };

View file

@ -75,6 +75,13 @@
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
}; };
mailbox_a: mailbox@40c48000 {
compatible = "nxp,imx-mu-rev2";
reg = <0x40c48000 0x4000>;
interrupts = <118 0>;
rdc = <0>;
};
}; };
}; };

View file

@ -0,0 +1,20 @@
# Copyright (c) 2018, NXP
# SPDX-License-Identifier: Apache-2.0
description: i.MX Messaging Unit
compatible: "nxp,imx-mu-rev2"
include: base.yaml
properties:
reg:
required: true
interrupts:
required: true
rdc:
type: int
required: true
description: Set the RDC permission for this peripheral