Skip to content

Commit

Permalink
samples: basic: blinky: modify to use eGPIO
Browse files Browse the repository at this point in the history
Modify blinky sample to use emulated GPIO.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
  • Loading branch information
magp-nordic committed Jun 26, 2024
1 parent 46d3878 commit 6f74f10
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions samples/basic/blinky/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
soc {
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;

sram_rx: memory@20018000 {
reg = <0x20018000 0x0800>;
};

sram_tx: memory@20020000 {
reg = <0x20020000 0x0800>;
};
};
};

ipc {
ipc0: ipc0 {
compatible = "zephyr,ipc-icmsg";
tx-region = <&sram_tx>;
rx-region = <&sram_rx>;
mboxes = <&cpuapp_vevif_rx 15>, <&cpuapp_vevif_tx 16>;
mbox-names = "rx", "tx";
status = "okay";
};
};
};

&gpio2 {
status = "disabled";
};

&egpio {
status = "okay";
};

&cpuapp_vevif_rx {
status = "okay";
};

&cpuapp_vevif_tx {
status = "okay";
};

&led0 {
gpios = <&egpio 9 GPIO_ACTIVE_HIGH>;
};

0 comments on commit 6f74f10

Please sign in to comment.