Skip to content

Commit 1f4f341

Browse files
aescolarmstasiaknordic
authored andcommitted
[nrf fromtree] boards nrfbsim: Enable UART(E) peripherals for nrf5340bsim
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)
1 parent 897f254 commit 1f4f341

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <mem.h>
1010
#include <arm/nordic/nrf5340_cpuapp.dtsi>
11+
#include <../boards/nordic/nrf5340dk/nrf5340_cpuapp_common-pinctrl.dtsi>
1112

1213
/ {
1314
model = "Nordic NRF5340 BSIM NRF5340 Application";
@@ -119,6 +120,14 @@
119120
status = "okay";
120121
};
121122

123+
&uart0 {
124+
status = "okay";
125+
current-speed = <115200>;
126+
pinctrl-0 = <&uart0_default>;
127+
pinctrl-1 = <&uart0_sleep>;
128+
pinctrl-names = "default", "sleep";
129+
};
130+
122131
/* We re-use the IPC shared buffer definition from the real HW. But note the start address of the
123132
* buffer won't be used.
124133
*/

boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ toolchain:
1010
testing:
1111
ignore_tags:
1212
- modem
13-
- uart
1413
- bsim_skip_CI
1514
supported:
1615
- gpio

boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <mem.h>
1010
#include <arm/nordic/nrf5340_cpunet.dtsi>
11+
#include <../boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpunet-pinctrl.dtsi>
1112

1213
/ {
1314
model = "Nordic NRF5340 BSIM NRF5340 Network";
@@ -23,6 +24,7 @@
2324
};
2425

2526
chosen {
27+
zephyr,console = &uart0;
2628
zephyr,bt-hci-ipc = &ipc0;
2729
nordic,802154-spinel-ipc = &ipc0;
2830
zephyr,ieee802154 = &ieee802154;
@@ -79,6 +81,14 @@
7981
status = "okay";
8082
};
8183

84+
&uart0 {
85+
status = "okay";
86+
current-speed = <115200>;
87+
pinctrl-0 = <&uart0_default>;
88+
pinctrl-1 = <&uart0_sleep>;
89+
pinctrl-names = "default", "sleep";
90+
};
91+
8292
/* We re-use the IPC shared buffer definition from the real HW. But note the start address of the
8393
* buffer won't be used.
8494
*/

boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ toolchain:
1010
testing:
1111
ignore_tags:
1212
- modem
13-
- uart
1413
- bsim_skip_CI
1514
supported:
1615
- gpio

0 commit comments

Comments
 (0)