Skip to content

Commit

Permalink
samples: mbox: Fix incorrect DT addressing
Browse files Browse the repository at this point in the history
Place the nodes to the proper place into the DT. The driver is calling
directly into the NRFX without using any direct memory addressing so
this is mostly a cosmetic fix.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
  • Loading branch information
carlocaione authored and carlescufi committed Dec 20, 2021
1 parent 11d340f commit 11f936c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 12 additions & 8 deletions samples/drivers/mbox/boards/nrf5340dk_nrf5340_cpuapp.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@

/ {
soc {
mbox: mbox@2a000 {
compatible = "nordic,mbox-nrf-ipc";
reg = <0x2a000 0x1000>;
tx-mask = <0x0000ffff>;
rx-mask = <0x0000ffff>;
interrupts = <42 NRF_DEFAULT_IRQ_PRIORITY>;
#mbox-cells = <1>;
status = "okay";
peripheral@50000000 {
/delete-node/ ipc@2a000;

mbox: mbox@2a000 {
compatible = "nordic,mbox-nrf-ipc";
reg = <0x2a000 0x1000>;
tx-mask = <0x0000ffff>;
rx-mask = <0x0000ffff>;
interrupts = <42 NRF_DEFAULT_IRQ_PRIORITY>;
#mbox-cells = <1>;
status = "okay";
};
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/ {
soc {
/delete-node/ ipc@41012000;

mbox: mbox@41012000 {
compatible = "nordic,mbox-nrf-ipc";
reg = <0x41012000 0x1000>;
Expand Down

0 comments on commit 11f936c

Please sign in to comment.