Skip to content

Commit

Permalink
dts: boards: sample: Make MBOX default for NXP CM boards
Browse files Browse the repository at this point in the history
This commit changes to use IPC MBOX driver as default instead of
using older IPM driver.

Change is done for NXP multicore Cortex M boards.
RT1160, RT1170 and LPC55s69

Signed-off-by: Tomas Galbicka <[email protected]>
  • Loading branch information
TomasGalbickaNXP committed Feb 1, 2025
1 parent 94cd786 commit 5f0c19a
Show file tree
Hide file tree
Showing 41 changed files with 96 additions and 348 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
pinctrl-names = "default";
};

&mailbox0 {
&mbox {
status = "okay";
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
status = "okay";
};

&mailbox0 {
&mbox {
status = "okay";
};

Expand Down
4 changes: 2 additions & 2 deletions boards/nxp/mimxrt1160_evk/mimxrt1160_evk_mimxrt1166_cm4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
zephyr,flash-controller = &is25wp128;
zephyr,flash = &is25wp128;
nxp,m4-partition = &slot1_partition;
zephyr,ipc = &mailbox_b;
zephyr,ipc = &mbox;
};


Expand Down Expand Up @@ -63,6 +63,6 @@
status = "okay";
};

&mailbox_b {
&mbox {
status = "okay";
};
4 changes: 2 additions & 2 deletions boards/nxp/mimxrt1160_evk/mimxrt1160_evk_mimxrt1166_cm7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
zephyr,code-partition = &slot0_partition;
zephyr,uart-mcumgr = &lpuart1;
zephyr,cpu1-region = &ocram;
zephyr,ipc = &mailbox_a;
zephyr,ipc = &mbox;
};

sdram0: memory@80000000 {
Expand Down Expand Up @@ -124,7 +124,7 @@ zephyr_udc0: &usb1 {
status = "okay";
};

&mailbox_a {
&mbox {
status = "okay";
};

Expand Down
4 changes: 2 additions & 2 deletions boards/nxp/mimxrt1170_evk/mimxrt1170_evk_mimxrt1176_cm4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
zephyr,flash-controller = &is25wp128;
zephyr,flash = &ocram;
nxp,m4-partition = &slot1_partition;
zephyr,ipc = &mailbox_b;
zephyr,ipc = &mbox;
};

sdram0: memory@80000000 {
Expand Down Expand Up @@ -67,6 +67,6 @@
status = "okay";
};

&mailbox_b {
&mbox {
status = "okay";
};
4 changes: 2 additions & 2 deletions boards/nxp/mimxrt1170_evk/mimxrt1170_evk_mimxrt1176_cm7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
zephyr,code-partition = &slot0_partition;
zephyr,uart-mcumgr = &lpuart1;
zephyr,cpu1-region = &ocram;
zephyr,ipc = &mailbox_a;
zephyr,ipc = &mbox;
};

sdram0: memory@80000000 {
Expand Down Expand Up @@ -160,7 +160,7 @@ zephyr_udc0: &usb1 {
tx-cal-45-dm-ohms = <6>;
};

&mailbox_a {
&mbox {
status = "okay";
};

Expand Down
6 changes: 4 additions & 2 deletions dts/arm/nxp/nxp_lpc55S6x_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,12 @@
#dma-cells = <1>;
};

mailbox0:mailbox@8b000 {
compatible = "nxp,lpc-mailbox";
mbox:mailbox0@8b000 {
compatible = "nxp,mbox-mailbox";
reg = <0x8b000 0xEC>;
interrupts = <31 0>;
rx-channels = <4>;
#mbox-cells = <1>;
resets = <&reset NXP_SYSCON_RESET(0, 26)>;
status = "disabled";
};
Expand Down
6 changes: 4 additions & 2 deletions dts/arm/nxp/nxp_rt11xx_cm4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@
#gpio-cells = <2>;
};

mailbox_b: mailbox@40c4c000 {
compatible = "nxp,imx-mu";
mbox:mbox@40c4c000 {
compatible = "nxp,mbox-imx-mu";
reg = <0x40c4c000 0x4000>;
interrupts = <118 0>;
rx-channels = <4>;
#mbox-cells = <1>;
rdc = <0>;
};
};
Expand Down
38 changes: 20 additions & 18 deletions dts/arm/nxp/nxp_rt11xx_cm7.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021-2023 NXP
* Copyright 2021-2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -36,21 +36,21 @@
flexram,has-magic-addr;
/* same as default fuse value */
flexram,bank-spec = <FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>;
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_DTCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>,
<FLEXRAM_ITCM>;

itcm: itcm@0 {
compatible = "zephyr,memory-region", "nxp,imx-itcm";
Expand Down Expand Up @@ -102,10 +102,12 @@
#gpio-cells = <2>;
};

mailbox_a: mailbox@40c48000 {
compatible = "nxp,imx-mu";
mbox:mbox@40c48000 {
compatible = "nxp,mbox-imx-mu";
reg = <0x40c48000 0x4000>;
interrupts = <118 0>;
rx-channels = <4>;
#mbox-cells = <1>;
rdc = <0>;
};
};
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/mbox/nxp,mbox-imx-mu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: |
compatible: "nxp,mbox-imx-mu"

include: [base.yaml, mailbox-controller.yaml]
include: [base.yaml, mailbox-controller.yaml, "nxp,rdc-policy.yaml"]

properties:
interrupts:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/mbox/nxp,mbox-mailbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: |
compatible: "nxp,mbox-mailbox"

include: [base.yaml, mailbox-controller.yaml]
include: [base.yaml, mailbox-controller.yaml , reset-device.yaml]

properties:
interrupts:
Expand Down
15 changes: 0 additions & 15 deletions samples/drivers/mbox/boards/lpcxpresso55s69_lpc55s69_cpu0.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,6 @@
/delete-property/ zephyr,ipc;
};

soc {
/* Delete IPM Driver node nxp,lpc-mailbox */
/delete-node/ mailbox@8b000;

/* Attach MBOX driver to Mailbox Unit */
mbox:mailbox0@5008b000 {
compatible = "nxp,mbox-mailbox";
reg = <0x5008b000 0xEC>;
interrupts = <31 0>;
rx-channels = <4>;
#mbox-cells = <1>;
status = "okay";
};
};

mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 1>, <&mbox 0>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 NXP
* Copyright 2023-2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -12,21 +12,6 @@
/delete-property/ zephyr,ipc;
};

soc {
/* Delete IPM Driver node nxp,imx-mu */
/delete-node/ mailbox@40c48000;

/* Attach MBOX driver to MU Unit */
mbox:mbox@40c48000 {
compatible = "nxp,mbox-imx-mu";
reg = <0x40c48000 0x4000>;
interrupts = <118 0>;
rx-channels = <4>;
#mbox-cells = <1>;
status = "okay";
};
};

mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 1>, <&mbox 0>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,6 @@
/delete-property/ zephyr,ipc;
};

soc {
/* Delete IPM Driver node nxp,imx-mu */
/delete-node/ mailbox@40c48000;

/* Attach MBOX driver to MU Unit */
mbox:mbox@40c48000 {
compatible = "nxp,mbox-imx-mu";
reg = <0x40c48000 0x4000>;
interrupts = <118 0>;
rx-channels = <4>;
#mbox-cells = <1>;
status = "okay";
};
};

mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 1>, <&mbox 0>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,6 @@
/delete-property/ zephyr,ipc;
};

soc {
/* Delete IPM Driver node nxp,imx-mu */
/delete-node/ mailbox@40c48000;

/* Attach MBOX driver to MU Unit */
mbox:mbox@40c48000 {
compatible = "nxp,mbox-imx-mu";
reg = <0x40c48000 0x4000>;
interrupts = <118 0>;
rx-channels = <4>;
#mbox-cells = <1>;
status = "okay";
};
};

mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 1>, <&mbox 0>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@
zephyr,shell-uart = &flexcomm0;
};

soc {
/* Delete IPM Driver node nxp,lpc-mailbox */
/delete-node/ mailbox@8b000;

/* Attach MBOX driver to Mailbox Unit */
mbox:mbox@5008b000 {
compatible = "nxp,mbox-mailbox";
reg = <0x5008b000 0xEC>;
interrupts = <31 0>;
rx-channels = <4>;
#mbox-cells = <1>;
status = "okay";
};
};

mbox-consumer {
compatible = "vnd,mbox-consumer";
mboxes = <&mbox 0>, <&mbox 1>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 NXP
* Copyright 2023-2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -26,19 +26,6 @@
interrupts = <120 0>;
status = "okay";
};

/* Delete IPM Driver node nxp,imx-mu */
/delete-node/ mailbox@40c4c000;

/* Attach MBOX driver to MU Unit */
mbox:mbox@40c4c000 {
compatible = "nxp,mbox-imx-mu";
reg = <0x40c4c000 0x4000>;
interrupts = <118 0>;
rx-channels = <4>;
#mbox-cells = <1>;
status = "okay";
};
};

mbox-consumer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,6 @@
interrupts = <120 0>;
status = "okay";
};

/* Delete IPM Driver node nxp,imx-mu */
/delete-node/ mailbox@40c4c000;

/* Attach MBOX driver to MU Unit */
mbox:mbox@40c4c000 {
compatible = "nxp,mbox-imx-mu";
reg = <0x40c4c000 0x4000>;
interrupts = <118 0>;
rx-channels = <4>;
#mbox-cells = <1>;
status = "okay";
};
};

mbox-consumer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,6 @@
interrupts = <120 0>;
status = "okay";
};

/* Delete IPM Driver node nxp,imx-mu */
/delete-node/ mailbox@40c4c000;

/* Attach MBOX driver to MU Unit */
mbox:mbox@40c4c000 {
compatible = "nxp,mbox-imx-mu";
reg = <0x40c4c000 0x4000>;
interrupts = <118 0>;
rx-channels = <4>;
#mbox-cells = <1>;
status = "okay";
};
};

mbox-consumer {
Expand Down
Loading

0 comments on commit 5f0c19a

Please sign in to comment.