Skip to content

Commit 7d1f435

Browse files
danieldegrassecarlescufi
authored andcommitted
drivers: ipc: Enable messaging unit driver for iMX.RT multicore SOCs
Enable MU messaging unit driver for RT11xx socs. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 398d90f commit 7d1f435

File tree

5 files changed

+38
-3
lines changed

5 files changed

+38
-3
lines changed

drivers/ipm/Kconfig.imx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ config IPM_IMX
1717

1818
config IPM_IMX_REV2
1919
bool "IMX IPM driver (rev 2)"
20-
depends on DT_HAS_NXP_IMX_MU_ENABLED
21-
depends on !IPM_IMX
20+
default y
21+
depends on DT_HAS_NXP_IMX_MU_REV2_ENABLED
2222
help
2323
Rev 2 driver for NXP i.MX messaging unit (MCUX-based)
2424

drivers/ipm/ipm_imx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#define DT_DRV_COMPAT nxp_imx_mu
87

98
#include <errno.h>
109
#include <string.h>
@@ -13,8 +12,10 @@
1312
#include <zephyr/drivers/ipm.h>
1413
#include <zephyr/irq.h>
1514
#if IS_ENABLED(CONFIG_IPM_IMX_REV2)
15+
#define DT_DRV_COMPAT nxp_imx_mu_rev2
1616
#include "fsl_mu.h"
1717
#else
18+
#define DT_DRV_COMPAT nxp_imx_mu
1819
#include <mu_imx.h>
1920
#endif
2021

dts/arm/nxp/nxp_rt11xx_cm4.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@
5252
gpio-controller;
5353
#gpio-cells = <2>;
5454
};
55+
56+
mailbox_b: mailbox@40c4c000 {
57+
compatible = "nxp,imx-mu-rev2";
58+
reg = <0x40c4c000 0x4000>;
59+
interrupts = <118 0>;
60+
rdc = <0>;
61+
};
5562
};
5663
};
5764

dts/arm/nxp/nxp_rt11xx_cm7.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@
7575
gpio-controller;
7676
#gpio-cells = <2>;
7777
};
78+
79+
mailbox_a: mailbox@40c48000 {
80+
compatible = "nxp,imx-mu-rev2";
81+
reg = <0x40c48000 0x4000>;
82+
interrupts = <118 0>;
83+
rdc = <0>;
84+
};
7885
};
7986
};
8087

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) 2018, NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: i.MX Messaging Unit
5+
6+
compatible: "nxp,imx-mu-rev2"
7+
8+
include: base.yaml
9+
10+
properties:
11+
reg:
12+
required: true
13+
14+
interrupts:
15+
required: true
16+
17+
rdc:
18+
type: int
19+
required: true
20+
description: Set the RDC permission for this peripheral

0 commit comments

Comments
 (0)