Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fab3a3b
[nrf fromtree] boards nrfbsim: Enable GPIO & GPIOTE peripherals for n…
aescolar Nov 4, 2024
7659ec5
[nrf fromtree] tests gpio_basic_api: Enable for nrf54l15bsim
aescolar Nov 4, 2024
9e7c502
[nrf fromtree] tests gpio_hogs: Enable for nrf54l15bsim
aescolar Nov 4, 2024
590133a
[nrf fromtree] tests gpio_get_direction: Enable for nrf54l15bsim
aescolar Nov 4, 2024
64d4ce1
[nrf fromtree] boards nrfbsim: Enable GPIO & GPIOTE peripherals for n…
aescolar Nov 6, 2024
712a5ec
[nrf fromtree] tests gpio_hogs: Enable for nrf5340bsim
aescolar Nov 6, 2024
ac3299e
[nrf fromtree] tests gpio_basic_api: Enable for nrf5340bsim
aescolar Nov 6, 2024
2bb37b5
[nrf fromtree] tests gpio_get_direction: Enable for nrf5340bsim
aescolar Nov 6, 2024
d61deb6
[nrf fromtree] doc boards nrfbsim: Mention the GPIO & GPIOTE as suppo…
aescolar Nov 8, 2024
ef72432
[nrf fromtree] boards nrfbsim: Enable UART(E) peripherals for nrf5340…
aescolar Nov 7, 2024
2e9b8db
[nrf fromtree] tests uart_async_api: Enable in nrf5340bsim//cpuapp
aescolar Nov 7, 2024
bbdb5c0
[nrf fromtree] tests uart_mix_fifo_poll: Enable for nrf5340bsim
aescolar Nov 8, 2024
05dd7f6
[nrf fromtree] tests uart_pm: Enable for nrf5340bsim
aescolar Nov 7, 2024
49d158a
[nrf fromtree] doc boards nrfbsim: Mention the UARTE as supported for…
aescolar Nov 8, 2024
4d61299
[nrf fromtree] boards nrfbsim: Enable UART(E) peripherals for nrf54l1…
aescolar Nov 18, 2024
e3c45bc
[nrf fromtree] doc boards nrfbsim: Mention the UARTE as supported for…
aescolar Nov 18, 2024
3208dfb
[nrf fromtree] tests uart_async_api: Enable in nrf54l15bsim//cpuapp
aescolar Nov 18, 2024
d3fe6ee
[nrf fromtree] tests uart_mix_fifo_poll: Enable for nrf54l15bsim
aescolar Nov 18, 2024
edd65be
[nrf fromtree] tests uart_pm: Enable for nrf54l15bsim
aescolar Nov 18, 2024
e37e72a
[nrf fromtree] tests/bsim: Also runtime test the UART drivers for the…
aescolar Nov 18, 2024
24405e6
[nrf fromtree] dts: common: nordic: nrf54l: Add hfpll clock source
nordic-krch Nov 27, 2024
83e7a28
[nrf fromlist] boards: native: nrf_bsim: nrf54l15: Bring back clocks
nordic-krch Dec 12, 2024
e07f124
[nrf fromlist] dts: common: nordic: Add clock source to timers
nordic-krch Dec 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions boards/native/nrf_bsim/doc/nrf5340bsim.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ These boards include models of some of the nRF5340 SOC peripherals:
* DPPI (Distributed Programmable Peripheral Interconnect)
* EGU (Event Generator Unit)
* FICR (Factory Information Configuration Registers)
* GPIO & GPIOTE
* IPC (Interprocessor communication)
* MUTEX (Mutual exclusive peripheral)
* NVMC (Non-Volatile Memory Controller / Flash)
Expand All @@ -42,6 +43,7 @@ These boards include models of some of the nRF5340 SOC peripherals:
* RTC (Real Time Counter)
* TEMP (Temperature sensor)
* TIMER
* UARTE (UART with Easy DMA)
* UICR (User Information Configuration Registers)

and will use the same drivers as the nrf5340dk targets for these.
Expand Down
2 changes: 2 additions & 0 deletions boards/native/nrf_bsim/doc/nrf54l15bsim.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ This boards include models of some of the nRF54L15 SOC peripherals:
* ECB (AES electronic codebook mode encryption)
* EGU (Event Generator Unit)
* FICR (Factory Information Configuration Registers)
* GPIO & GPIOTE
* GRTC (Global Real-time Counter)
* PPIB (PPI Bridge)
* RADIO
* RRAMC (Resistive RAM Controller)
* RTC (Real Time Counter)
* TEMP (Temperature sensor)
* TIMER
* UARTE (UART with Easy DMA)
* UICR (User Information Configuration Registers)

and will use the same drivers as the nrf54l15dk targets for these.
Expand Down
28 changes: 22 additions & 6 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 @@ -35,9 +36,6 @@
/delete-property/ i2s-0;
/delete-property/ qdec-0;
/delete-property/ qdec-1;
/delete-property/ gpio-0;
/delete-property/ gpio-1;
/delete-property/ gpiote-0;
};

chosen {
Expand Down Expand Up @@ -82,11 +80,8 @@
/delete-node/ regulator@37000;
/delete-node/ kmu@39000;
/delete-node/ vmc@81000;
/delete-node/ gpio@842500;
/delete-node/ gpio@842800;
};
/delete-node/ spu@50003000;
/delete-node/ gpiote@5000d000;
/delete-node/ crypto@50844000;
};

Expand All @@ -112,6 +107,27 @@
};
};


&gpiote {
status = "okay";
};

&gpio0 {
status = "okay";
};

&gpio1 {
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
4 changes: 2 additions & 2 deletions boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ toolchain:
- zephyr
testing:
ignore_tags:
- gpio
- modem
- uart
- bsim_skip_CI
supported:
- gpio
28 changes: 22 additions & 6 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 @@ -17,15 +18,13 @@
aliases {
/delete-property/ sram-0;
/delete-property/ sram-1;
/delete-property/ gpiote-0;
/delete-property/ wdt-0;
/delete-property/ i2c-0;
/delete-property/ spi-0;
/delete-property/ gpio-0;
/delete-property/ gpio-1;
};

chosen {
zephyr,console = &uart0;
zephyr,bt-hci-ipc = &ipc0;
nordic,802154-spinel-ipc = &ipc0;
zephyr,ieee802154 = &ieee802154;
Expand All @@ -36,14 +35,11 @@
soc {
/delete-node/ memory@20000000;
/delete-node/ memory@21000000;
/delete-node/ gpiote@4100a000;
/delete-node/ watchdog@4100b000;
/delete-node/ i2c@41013000;
/delete-node/ spi@41013000;
/delete-node/ acl@41080000;
/delete-node/ vmc@41081000;
/delete-node/ gpio@418c0500;
/delete-node/ gpio@418c0800;
};

/delete-node/ cpus;
Expand Down Expand Up @@ -73,6 +69,26 @@
};
};

&gpiote {
status = "okay";
};

&gpio0 {
status = "okay";
};

&gpio1 {
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
4 changes: 2 additions & 2 deletions boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ toolchain:
- zephyr
testing:
ignore_tags:
- gpio
- modem
- uart
- bsim_skip_CI
supported:
- gpio
52 changes: 41 additions & 11 deletions boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,48 @@

#include <mem.h>
#include <arm/nordic/nrf54l15_cpuapp.dtsi>
#include <../boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l_05_10_15-pinctrl.dtsi>

/ {
model = "Nordic NRF54L15 BSIM NRF54L15 Application";
compatible = "bsim,nrf54l15-bsim-nrf54l15-cpuapp", "bsim,nrf54";

chosen {
zephyr,entropy = &rng;
zephyr,bt-c2h-uart = &uart20;
zephyr,flash-controller = &rram_controller;
zephyr,flash = &cpuapp_rram;
};

/delete-node/ cpus;
/delete-node/ clocks;
/delete-node/ sw-pwm;

soc {
/delete-node/ memory@20000000;
/delete-node/ memory@2002f000;
peripheral@50000000 {
/delete-node/ spi@4a000;
/delete-node/ uart@4a000;
/delete-node/ vpr@4c000;
/delete-node/ mailbox@0;
/delete-node/ interrupt-controller@f0000000;
/delete-node/ gpio@50400;
/delete-node/ i2c@c6000;
/delete-node/ spi@c6000;
/delete-node/ uart@c6000;
/delete-node/ i2c@c7000;
/delete-node/ spi@c7000;
/delete-node/ uart@c7000;
/delete-node/ i2c@c8000;
/delete-node/ spi@c8000;
/delete-node/ uart@c8000;
/delete-node/ pwm@d2000;
/delete-node/ pwm@d3000;
/delete-node/ pwm@d4000;
/delete-node/ adc@d5000;
/delete-node/ nfct@d6000;
/delete-node/ gpio@d8200;
/delete-node/ gpiote@da000;
/delete-node/ i2s@dd000;
/delete-node/ qdec@e0000;
/delete-node/ qdec@e1000;
/delete-node/ i2c@104000;
/delete-node/ spi@104000;
/delete-node/ uart@104000;
/delete-node/ watchdog@108000;
/delete-node/ watchdog@109000;
/delete-node/ gpio@10a000;
/delete-node/ gpiote@10c000;
};
};

Expand Down Expand Up @@ -93,6 +84,45 @@
};
};

&uart00 {
/delete-property/ clocks;
};

&uart20 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart20_default>;
pinctrl-1 = <&uart20_sleep>;
pinctrl-names = "default", "sleep";
};

&uart30 {
current-speed = <115200>;
pinctrl-0 = <&uart30_default>;
pinctrl-1 = <&uart30_sleep>;
pinctrl-names = "default", "sleep";
};

&gpio0 {
status = "okay";
};

&gpio1 {
status = "okay";
};

&gpio2 {
status = "okay";
};

&gpiote20 {
status = "okay";
};

&gpiote30 {
status = "okay";
};

&temp {
status = "okay";
};
Expand Down
3 changes: 1 addition & 2 deletions boards/native/nrf_bsim/nrf54l15bsim_nrf54l15_cpuapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ toolchain:
- zephyr
supported:
- counter
- gpio
testing:
ignore_tags:
- gpio
- modem
- uart
- bsim_skip_CI
6 changes: 3 additions & 3 deletions dts/common/nordic/nrf54h20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
status = "disabled";
cc-num = <8>;
interrupts = <40 NRF_DEFAULT_IRQ_PRIORITY>;
clocks = <&fll16m>;
clocks = <&hfxo>;
max-bit-width = <32>;
max-frequency = <DT_FREQ_M(32)>;
prescaler = <0>;
Expand All @@ -386,7 +386,7 @@
status = "disabled";
cc-num = <8>;
interrupts = <41 NRF_DEFAULT_IRQ_PRIORITY>;
clocks = <&fll16m>;
clocks = <&hfxo>;
max-bit-width = <32>;
max-frequency = <DT_FREQ_M(32)>;
prescaler = <0>;
Expand All @@ -398,7 +398,7 @@
status = "disabled";
cc-num = <8>;
interrupts = <42 NRF_DEFAULT_IRQ_PRIORITY>;
clocks = <&fll16m>;
clocks = <&hfxo>;
max-bit-width = <32>;
max-frequency = <DT_FREQ_M(32)>;
prescaler = <0>;
Expand Down
11 changes: 9 additions & 2 deletions dts/common/nordic/nrf54l20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
#clock-cells = <0>;
clock-frequency = <DT_FREQ_M(32)>;
};

hfpll: hfpll {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <DT_FREQ_M(128)>;
};
};

soc {
Expand Down Expand Up @@ -123,6 +129,7 @@
compatible = "nordic,nrf-uarte";
reg = <0x4d000 0x1000>;
interrupts = <77 NRF_DEFAULT_IRQ_PRIORITY>;
clocks = <&hfpll>;
status = "disabled";
endtx-stoptx-supported;
frame-timeout-supported;
Expand All @@ -145,7 +152,7 @@
cc-num = <6>;
max-bit-width = <32>;
interrupts = <85 NRF_DEFAULT_IRQ_PRIORITY>;
max-frequency = <DT_FREQ_M(128)>;
clocks = <&hfpll>;
prescaler = <0>;
};

Expand Down Expand Up @@ -174,7 +181,7 @@
cc-num = <8>;
max-bit-width = <32>;
interrupts = <133 NRF_DEFAULT_IRQ_PRIORITY>;
max-frequency = <DT_FREQ_M(32)>;
clocks = <&hfxo>;
prescaler = <0>;
};

Expand Down
11 changes: 9 additions & 2 deletions dts/common/nordic/nrf54l_05_10_15.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
#clock-cells = <0>;
clock-frequency = <DT_FREQ_M(32)>;
};

hfpll: hfpll {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <DT_FREQ_M(128)>;
};
};

soc {
Expand Down Expand Up @@ -144,6 +150,7 @@
compatible = "nordic,nrf-uarte";
reg = <0x4a000 0x1000>;
interrupts = <74 NRF_DEFAULT_IRQ_PRIORITY>;
clocks = <&hfpll>;
status = "disabled";
endtx-stoptx-supported;
frame-timeout-supported;
Expand Down Expand Up @@ -184,7 +191,7 @@
cc-num = <6>;
max-bit-width = <32>;
interrupts = <85 NRF_DEFAULT_IRQ_PRIORITY>;
max-frequency = <DT_FREQ_M(128)>;
clocks = <&hfpll>;
prescaler = <0>;
};

Expand Down Expand Up @@ -213,7 +220,7 @@
cc-num = <8>;
max-bit-width = <32>;
interrupts = <133 NRF_DEFAULT_IRQ_PRIORITY>;
max-frequency = <DT_FREQ_M(32)>;
clocks = <&hfxo>;
prescaler = <0>;
};

Expand Down
Loading
Loading