Skip to content

Commit 70419bd

Browse files
dchat-nordicfabiobaltieri
authored andcommitted
dts: nordic: nrf5340: Change nRF5340 IPC backend to icbmsg
Change the default IPC backend of nRF5340 to icbmsg. Signed-off-by: Dominik Chat <[email protected]>
1 parent 670bd3b commit 70419bd

File tree

6 files changed

+29
-44
lines changed

6 files changed

+29
-44
lines changed

boards/ezurio/bl5340_dvk/bl5340_dvk_nrf5340_cpuapp_partition_conf.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@
5757
reg = <0x20040000 0x30000>;
5858
};
5959

60-
/* Include shared RAM configuration file */
61-
#include "bl5340_dvk_nrf5340_shared_sram_planning_conf.dtsi"
60+
/* Include default shared RAM configuration file */
61+
#include <common/nordic/nrf5340_shared_sram_partition.dtsi>

boards/ezurio/bl5340_dvk/bl5340_dvk_nrf5340_cpunet_common.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@
6363
};
6464
};
6565

66-
/* Include shared RAM configuration file */
67-
#include "bl5340_dvk_nrf5340_shared_sram_planning_conf.dtsi"
66+
/* Include default shared RAM configuration file */
67+
#include <common/nordic/nrf5340_shared_sram_partition.dtsi>

boards/ezurio/bl5340_dvk/bl5340_dvk_nrf5340_shared_sram_planning_conf.dtsi

Lines changed: 0 additions & 31 deletions
This file was deleted.

dts/arm/nordic/nrf5340_cpuapp_ipc.dtsi

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
*/
66

77
ipc0: ipc0 {
8-
compatible = "zephyr,ipc-openamp-static-vrings";
9-
memory-region = <&sram0_shared>;
8+
compatible = "zephyr,ipc-icbmsg";
9+
status = "okay";
1010
mboxes = <&mbox 0>, <&mbox 1>;
1111
mbox-names = "tx", "rx";
12-
role = "host";
13-
status = "okay";
12+
tx-region = <&cpuapp_cpunet_ipc_shm>;
13+
rx-region = <&cpunet_cpuapp_ipc_shm>;
14+
tx-blocks = <32>;
15+
rx-blocks = <32>;
1416

1517
bt_hci_ipc0: bt_hci_ipc0 {
1618
compatible = "zephyr,bt-hci-ipc";

dts/arm/nordic/nrf5340_cpunet.dtsi

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,14 @@
348348
/* Default IPC description */
349349
ipc {
350350
ipc0: ipc0 {
351-
compatible = "zephyr,ipc-openamp-static-vrings";
352-
memory-region = <&sram0_shared>;
351+
compatible = "zephyr,ipc-icbmsg";
352+
status = "okay";
353353
mboxes = <&mbox 0>, <&mbox 1>;
354354
mbox-names = "rx", "tx";
355-
role = "remote";
356-
status = "okay";
355+
tx-region = <&cpunet_cpuapp_ipc_shm>;
356+
rx-region = <&cpuapp_cpunet_ipc_shm>;
357+
tx-blocks = <32>;
358+
rx-blocks = <32>;
357359
};
358360
};
359361
};

dts/common/nordic/nrf5340_shared_sram_partition.dtsi

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
* the memory range allocated to the non-secure image (sram0_ns).
1515
*
1616
* By default the last 64 kB of application core SRAM is allocated as shared
17-
* memory (sram0_shared).
17+
* memory (sram0_shared) which is divided in:
18+
* - 32 kB CPUAPP to CPUNET communication (cpuapp_cpunet_ipc_shm)
19+
* - 32 kB CPUNET to CPUAPP communication (cpunet_cpuapp_ipc_shm)
1820
*/
1921

2022
/ {
@@ -28,8 +30,18 @@
2830
ranges;
2931

3032
sram0_shared: memory@20070000 {
33+
#address-cells = <1>;
34+
#size-cells = <1>;
3135
/* Last 64 kB of sram0 */
3236
reg = <0x20070000 0x10000>;
37+
38+
cpuapp_cpunet_ipc_shm: memory@20070000 {
39+
reg = <0x20070000 DT_SIZE_K(32)>;
40+
};
41+
42+
cpunet_cpuapp_ipc_shm: memory@20078000 {
43+
reg = <0x20078000 DT_SIZE_K(32)>;
44+
};
3345
};
3446
};
3547
};

0 commit comments

Comments
 (0)