Skip to content

Commit

Permalink
[nrf fromlist] boards: nordic: ipc node added dcache alignement
Browse files Browse the repository at this point in the history
dcache-alignement needs to be defined for ipc to have
consistent memory organization on both endpoints, when
shared memory is cacheable. nrf54h20 and nrf9280 are
using cacheable shared memory.
This is applied for ipc with icmsg backend.

Upstream PR: zephyrproject-rtos/zephyr#79389

Signed-off-by: Lukasz Stepnicki <[email protected]>
  • Loading branch information
lstnl committed Oct 9, 2024
1 parent ed62533 commit 61872c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20-ipc_conf.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
cpusec_cpuapp_ipc: ipc-1-2 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpusec_bellboard 12>,
<&cpuapp_bellboard 0>;
};

cpusec_cpurad_ipc: ipc-1-3 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpusec_bellboard 18>,
<&cpurad_bellboard 0>;
};
Expand All @@ -30,27 +32,31 @@
cpuapp_cpusys_ipc: ipc-2-12 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpuapp_bellboard 6>,
<&cpusys_vevif 12>;
};

cpuapp_cpuppr_ipc: ipc-2-13 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpuapp_bellboard 13>,
<&cpuppr_vevif 12>;
};

cpuapp_cpuflpr_ipc: ipc-2-14 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpuapp_bellboard 14>,
<&cpuflpr_vevif 16>;
};

cpurad_cpusys_ipc: ipc-3-12 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpurad_bellboard 6>,
<&cpusys_vevif 18>;
};
Expand Down
5 changes: 5 additions & 0 deletions boards/nordic/nrf9280pdk/nrf9280pdk_nrf9280-ipc_conf.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
cpusec_cpuapp_ipc: ipc-1-2 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpusec_bellboard 12>,
<&cpuapp_bellboard 0>;
};

cpusec_cpurad_ipc: ipc-1-3 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpusec_bellboard 18>,
<&cpurad_bellboard 0>;
};
Expand All @@ -30,20 +32,23 @@
cpuapp_cpusys_ipc: ipc-2-12 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpuapp_bellboard 6>,
<&cpusys_vevif 12>;
};

cpuapp_cpuppr_ipc: ipc-2-13 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpuapp_bellboard 13>,
<&cpuppr_vevif 12>;
};

cpurad_cpusys_ipc: ipc-3-12 {
compatible = "zephyr,ipc-icmsg";
status = "disabled";
dcache-alignment = <32>;
mboxes = <&cpurad_bellboard 6>,
<&cpusys_vevif 18>;
};
Expand Down

0 comments on commit 61872c6

Please sign in to comment.