forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: enable multicore samples for MCXN947 board
This commit adds support for these multicore samples: - samples/drivers/mbox - samples/drivers/mbox_data - samples/subsys/ipc/ipc_service/static_vrings - samples/subsys/ipc/openamp Signed-off-by: Tomas Galbicka <[email protected]>
- Loading branch information
1 parent
d8ab813
commit 64585b7
Showing
32 changed files
with
260 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SECOND_CORE_MCUX=y |
13 changes: 13 additions & 0 deletions
13
samples/drivers/mbox/boards/frdm_mcxn947_mcxn947_cpu0.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&mbox 1>, <&mbox 0>; | ||
mbox-names = "tx", "rx"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
samples/drivers/mbox/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SECOND_CORE_MCUX=y |
13 changes: 13 additions & 0 deletions
13
samples/drivers/mbox/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&mbox 0>, <&mbox 1>; | ||
mbox-names = "tx", "rx"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
samples/drivers/mbox_data/boards/frdm_mcxn947_mcxn947_cpu0.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SECOND_CORE_MCUX=y |
13 changes: 13 additions & 0 deletions
13
samples/drivers/mbox_data/boards/frdm_mcxn947_mcxn947_cpu0.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&mbox 1>, <&mbox 0>; | ||
mbox-names = "tx", "rx"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
samples/drivers/mbox_data/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SECOND_CORE_MCUX=y |
13 changes: 13 additions & 0 deletions
13
samples/drivers/mbox_data/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
mbox-consumer { | ||
compatible = "vnd,mbox-consumer"; | ||
mboxes = <&mbox 0>, <&mbox 1>; | ||
mbox-names = "tx", "rx"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
samples/subsys/ipc/ipc_service/static_vrings/boards/frdm_mcxn947_mcxn947_cpu0.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SECOND_CORE_MCUX=y |
51 changes: 51 additions & 0 deletions
51
samples/subsys/ipc/ipc_service/static_vrings/boards/frdm_mcxn947_mcxn947_cpu0.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/ipc_service/static_vrings.h> | ||
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h> | ||
|
||
/ { | ||
/* Define memory regions for IPC | ||
* Note that shared memory must have specific MPU attributes set. | ||
*/ | ||
sram1_ipc0: memory@20060000{ | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x20060000 DT_SIZE_K(16)>; | ||
zephyr,memory-region="SRAM1_IPC0"; | ||
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO))>; | ||
}; | ||
|
||
sram1_ipc1: memory@20064000{ | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x20064000 DT_SIZE_K(16)>; | ||
zephyr,memory-region="SRAM1_IPC1"; | ||
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO))>; | ||
}; | ||
|
||
ipc { | ||
/delete-node/ ipc0; | ||
|
||
ipc0: ipc0 { | ||
compatible = "zephyr,ipc-openamp-static-vrings"; | ||
memory-region = <&sram1_ipc0>; | ||
mboxes = <&mbox 0>, <&mbox 1>; | ||
mbox-names = "tx", "rx"; | ||
role = "host"; | ||
status = "okay"; | ||
}; | ||
|
||
ipc1: ipc1 { | ||
compatible = "zephyr,ipc-openamp-static-vrings"; | ||
memory-region = <&sram1_ipc1>; | ||
mboxes = <&mbox 2>, <&mbox 3>; | ||
mbox-names = "tx", "rx"; | ||
role = "host"; | ||
zephyr,priority = <1 PRIO_COOP>; | ||
zephyr,buffer-size = <128>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
1 change: 1 addition & 0 deletions
1
samples/subsys/ipc/ipc_service/static_vrings/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SECOND_CORE_MCUX=y |
51 changes: 51 additions & 0 deletions
51
samples/subsys/ipc/ipc_service/static_vrings/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/ipc_service/static_vrings.h> | ||
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h> | ||
|
||
/ { | ||
/* Define memory regions for IPC | ||
* Note that shared memory must have specific MPU attributes set. | ||
*/ | ||
sram1_ipc0: memory@20060000{ | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x20060000 DT_SIZE_K(16)>; | ||
zephyr,memory-region="SRAM1_IPC0"; | ||
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO))>; | ||
}; | ||
|
||
sram1_ipc1: memory@20064000{ | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x20064000 DT_SIZE_K(16)>; | ||
zephyr,memory-region="SRAM1_IPC1"; | ||
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO))>; | ||
}; | ||
|
||
ipc { | ||
/delete-node/ ipc0; | ||
|
||
ipc0: ipc0 { | ||
compatible = "zephyr,ipc-openamp-static-vrings"; | ||
memory-region = <&sram1_ipc0>; | ||
mboxes = <&mbox 0>, <&mbox 1>; | ||
mbox-names = "rx", "tx"; | ||
role = "remote"; | ||
status = "okay"; | ||
}; | ||
|
||
ipc1: ipc1 { | ||
compatible = "zephyr,ipc-openamp-static-vrings"; | ||
memory-region = <&sram1_ipc1>; | ||
mboxes = <&mbox 2>, <&mbox 3>; | ||
mbox-names = "rx", "tx"; | ||
role = "remote"; | ||
zephyr,priority = <1 PRIO_COOP>; | ||
zephyr,buffer-size = <128>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
samples/subsys/ipc/openamp/boards/frdm_mcxn947_mcxn947_cpu0.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SECOND_CORE_MCUX=y |
28 changes: 28 additions & 0 deletions
28
samples/subsys/ipc/openamp/boards/frdm_mcxn947_mcxn947_cpu0.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
/* | ||
* shared memory reserved for the inter-processor communication | ||
*/ | ||
|
||
zephyr,ipc_shm = &sramh; | ||
zephyr,ipc = &mailbox0; | ||
}; | ||
|
||
/* Delete MBOX Driver node */ | ||
/delete-node/ mbox@b2000; | ||
soc { | ||
mailbox0:mailbox@400b2000 { | ||
compatible = "nxp,lpc-mailbox"; | ||
reg = <0x400b2000 0xEC>; | ||
interrupts = <54 0>; | ||
resets = <&reset NXP_SYSCON_RESET(0, 26)>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
1 change: 1 addition & 0 deletions
1
samples/subsys/ipc/openamp/remote/boards/frdm_mcxn947_mcxn947_cpu1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SECOND_CORE_MCUX=y |
28 changes: 28 additions & 0 deletions
28
samples/subsys/ipc/openamp/remote/boards/frdm_mcxn947_mcxn947_cpu1.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
/* | ||
* shared memory reserved for the inter-processor communication | ||
*/ | ||
|
||
zephyr,ipc_shm = &sramh; | ||
zephyr,ipc = &mailbox0; | ||
}; | ||
|
||
/* Delete MBOX Driver node */ | ||
/delete-node/ mbox@b2000; | ||
soc { | ||
mailbox0:mailbox@400b2000 { | ||
compatible = "nxp,lpc-mailbox"; | ||
reg = <0x400b2000 0xEC>; | ||
interrupts = <54 0>; | ||
resets = <&reset NXP_SYSCON_RESET(0, 26)>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters