Skip to content

Commit

Permalink
[nrf fromtree] boards nrfbsim: Enable GPIO & GPIOTE peripherals for n…
Browse files Browse the repository at this point in the history
…rf5340bsim

The HW models now support these pheripherals, let's enable them

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit d0746f1)
  • Loading branch information
aescolar authored and nordicjm committed Dec 18, 2024
1 parent 7bbebcd commit 52e6e31
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
19 changes: 13 additions & 6 deletions boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,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 +79,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 +106,19 @@
};
};


&gpiote {
status = "okay";
};

&gpio0 {
status = "okay";
};

&gpio1 {
status = "okay";
};

/* 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
3 changes: 2 additions & 1 deletion boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpuapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ toolchain:
- zephyr
testing:
ignore_tags:
- gpio
- modem
- uart
- bsim_skip_CI
supported:
- gpio
18 changes: 12 additions & 6 deletions boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@
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 {
Expand All @@ -36,14 +33,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 +67,18 @@
};
};

&gpiote {
status = "okay";
};

&gpio0 {
status = "okay";
};

&gpio1 {
status = "okay";
};

/* 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
3 changes: 2 additions & 1 deletion boards/native/nrf_bsim/nrf5340bsim_nrf5340_cpunet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ toolchain:
- zephyr
testing:
ignore_tags:
- gpio
- modem
- uart
- bsim_skip_CI
supported:
- gpio

0 comments on commit 52e6e31

Please sign in to comment.