File tree Expand file tree Collapse file tree 5 files changed +38
-3
lines changed Expand file tree Collapse file tree 5 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ config IPM_IMX
1717
1818config 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
Original file line number Diff line number Diff line change 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>
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments