Skip to content

Commit

Permalink
[nrf fromtree] boards nrfbsim: Enable UART(E) peripherals for nrf5340…
Browse files Browse the repository at this point in the history
…bsim

The HW models now support this peripheral for these targets.
Let's enable them.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit a7abf80)
  • Loading branch information
aescolar authored and nordicjm committed Dec 18, 2024
1 parent 30138ab commit 77cff4c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
9 changes: 9 additions & 0 deletions boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <mem.h>
#include <arm/nordic/nrf5340_cpuapp.dtsi>
#include <../boards/nordic/nrf5340dk/nrf5340_cpuapp_common-pinctrl.dtsi>

/ {
model = "Nordic NRF5340 BSIM NRF5340 Application";
Expand Down Expand Up @@ -119,6 +120,14 @@
status = "okay";
};

&uart0 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart0_default>;
pinctrl-1 = <&uart0_sleep>;
pinctrl-names = "default", "sleep";
};

/* We re-use the IPC shared buffer definition from the real HW. But note the start address of the
* buffer won't be used.
*/
Expand Down
1 change: 0 additions & 1 deletion boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ toolchain:
testing:
ignore_tags:
- modem
- uart
- bsim_skip_CI
supported:
- gpio
10 changes: 10 additions & 0 deletions boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <mem.h>
#include <arm/nordic/nrf5340_cpunet.dtsi>
#include <../boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpunet-pinctrl.dtsi>

/ {
model = "Nordic NRF5340 BSIM NRF5340 Network";
Expand All @@ -23,6 +24,7 @@
};

chosen {
zephyr,console = &uart0;
zephyr,bt-hci-ipc = &ipc0;
nordic,802154-spinel-ipc = &ipc0;
zephyr,ieee802154 = &ieee802154;
Expand Down Expand Up @@ -79,6 +81,14 @@
status = "okay";
};

&uart0 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart0_default>;
pinctrl-1 = <&uart0_sleep>;
pinctrl-names = "default", "sleep";
};

/* We re-use the IPC shared buffer definition from the real HW. But note the start address of the
* buffer won't be used.
*/
Expand Down
1 change: 0 additions & 1 deletion boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ toolchain:
testing:
ignore_tags:
- modem
- uart
- bsim_skip_CI
supported:
- gpio

0 comments on commit 77cff4c

Please sign in to comment.