Browse Source
This commit adds mbox sample support for these NXP boards: - MIMXRT1160-EVK - MIMXRT1170-EVK - MIMXRT1170-EVKB Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>pull/67684/head
18 changed files with 307 additions and 1 deletions
@ -0,0 +1,11 @@ |
|||||||
|
# Copyright 2023 NXP |
||||||
|
# |
||||||
|
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
source "Kconfig.zephyr" |
||||||
|
|
||||||
|
config INCLUDE_REMOTE_DIR |
||||||
|
bool "Include remote core header directory" |
||||||
|
help |
||||||
|
Include remote build header files. Can be used if primary image |
||||||
|
needs to be aware of size or base address of secondary image |
@ -0,0 +1,3 @@ |
|||||||
|
CONFIG_MBOX_NXP_IMX_MU=y |
||||||
|
CONFIG_INCLUDE_REMOTE_DIR=y |
||||||
|
CONFIG_SECOND_CORE_MCUX=y |
@ -0,0 +1,29 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2023 NXP |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
|
||||||
|
/ { |
||||||
|
chosen { |
||||||
|
/* Delete ipc chosen property where old IPM mailbox driver bellow is |
||||||
|
* configured. |
||||||
|
*/ |
||||||
|
/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"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
@ -0,0 +1,3 @@ |
|||||||
|
CONFIG_MBOX_NXP_IMX_MU=y |
||||||
|
CONFIG_INCLUDE_REMOTE_DIR=y |
||||||
|
CONFIG_SECOND_CORE_MCUX=y |
@ -0,0 +1,29 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2023 NXP |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
|
||||||
|
/ { |
||||||
|
chosen { |
||||||
|
/* Delete ipc chosen property where old IPM mailbox driver bellow is |
||||||
|
* configured. |
||||||
|
*/ |
||||||
|
/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"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
@ -0,0 +1,3 @@ |
|||||||
|
CONFIG_MBOX_NXP_IMX_MU=y |
||||||
|
CONFIG_SECOND_CORE_MCUX=y |
||||||
|
CONFIG_INCLUDE_REMOTE_DIR=y |
@ -0,0 +1,29 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2023 NXP |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
|
||||||
|
/ { |
||||||
|
chosen { |
||||||
|
/* Delete ipc chosen property where old IPM mailbox driver bellow is |
||||||
|
* configured. |
||||||
|
*/ |
||||||
|
/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"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
@ -0,0 +1,4 @@ |
|||||||
|
CONFIG_MBOX_NXP_IMX_MU=y |
||||||
|
CONFIG_BUILD_OUTPUT_INFO_HEADER=y |
||||||
|
CONFIG_BUILD_OUTPUT_HEX=y |
||||||
|
CONFIG_SECOND_CORE_MCUX=y |
@ -0,0 +1,48 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2023 NXP |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
|
||||||
|
/ { |
||||||
|
chosen { |
||||||
|
zephyr,flash = &ocram; |
||||||
|
zephyr,console = &lpuart1; |
||||||
|
zephyr,shell-uart = &lpuart1; |
||||||
|
|
||||||
|
/* Delete ipc chosen property where old IPM mailbox driver bellow is |
||||||
|
* configured. |
||||||
|
*/ |
||||||
|
/delete-property/ zephyr,ipc; |
||||||
|
}; |
||||||
|
|
||||||
|
soc { |
||||||
|
/delete-node/ gpt@400f0000; |
||||||
|
|
||||||
|
/* Replace GPT2 with another GPT kernel timer */ |
||||||
|
gpt2_hw_timer:gpt@400f0000 { |
||||||
|
compatible = "nxp,gpt-hw-timer"; |
||||||
|
reg = <0x400f0000 0x4000>; |
||||||
|
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"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
/* Disable primary GPT timer */ |
||||||
|
&gpt_hw_timer { |
||||||
|
status = "disabled"; |
||||||
|
}; |
@ -0,0 +1,4 @@ |
|||||||
|
CONFIG_MBOX_NXP_IMX_MU=y |
||||||
|
CONFIG_BUILD_OUTPUT_INFO_HEADER=y |
||||||
|
CONFIG_BUILD_OUTPUT_HEX=y |
||||||
|
CONFIG_SECOND_CORE_MCUX=y |
@ -0,0 +1,48 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2023 NXP |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
|
||||||
|
/ { |
||||||
|
chosen { |
||||||
|
zephyr,flash = &ocram; |
||||||
|
zephyr,console = &lpuart1; |
||||||
|
zephyr,shell-uart = &lpuart1; |
||||||
|
|
||||||
|
/* Delete ipc chosen property where old IPM mailbox driver bellow is |
||||||
|
* configured. |
||||||
|
*/ |
||||||
|
/delete-property/ zephyr,ipc; |
||||||
|
}; |
||||||
|
|
||||||
|
soc { |
||||||
|
/delete-node/ gpt@400f0000; |
||||||
|
|
||||||
|
/* Replace GPT2 with another GPT kernel timer */ |
||||||
|
gpt2_hw_timer:gpt@400f0000 { |
||||||
|
compatible = "nxp,gpt-hw-timer"; |
||||||
|
reg = <0x400f0000 0x4000>; |
||||||
|
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"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
/* Disable primary GPT timer */ |
||||||
|
&gpt_hw_timer { |
||||||
|
status = "disabled"; |
||||||
|
}; |
@ -0,0 +1,4 @@ |
|||||||
|
CONFIG_MBOX_NXP_IMX_MU=y |
||||||
|
CONFIG_BUILD_OUTPUT_INFO_HEADER=y |
||||||
|
CONFIG_BUILD_OUTPUT_HEX=y |
||||||
|
CONFIG_SECOND_CORE_MCUX=y |
@ -0,0 +1,49 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2023 NXP |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
|
||||||
|
/ { |
||||||
|
chosen { |
||||||
|
zephyr,flash = &ocram; |
||||||
|
zephyr,console = &lpuart1; |
||||||
|
zephyr,shell-uart = &lpuart1; |
||||||
|
|
||||||
|
/* Delete ipc chosen property where old IPM mailbox driver bellow is |
||||||
|
* configured. |
||||||
|
*/ |
||||||
|
/delete-property/ zephyr,ipc; |
||||||
|
}; |
||||||
|
|
||||||
|
soc { |
||||||
|
/delete-node/ gpt@400f0000; |
||||||
|
|
||||||
|
/* Replace GPT2 with another GPT kernel timer */ |
||||||
|
gpt2_hw_timer:gpt@400f0000 { |
||||||
|
compatible = "nxp,gpt-hw-timer"; |
||||||
|
reg = <0x400f0000 0x4000>; |
||||||
|
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"; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
}; |
||||||
|
|
||||||
|
/* Disable primary GPT timer */ |
||||||
|
&gpt_hw_timer { |
||||||
|
status = "disabled"; |
||||||
|
}; |
Loading…
Reference in new issue