From de29c45c921f2bc849ec04af11c0461775d0cac3 Mon Sep 17 00:00:00 2001 From: Magdalena Pastula Date: Thu, 13 Jun 2024 17:53:45 +0200 Subject: [PATCH] samples: basic: blinky: modify to use eGPIO Modify blinky sample to use emulated GPIO. Signed-off-by: Magdalena Pastula --- .../nrf54l15pdk_nrf54l15_cpuapp.overlay | 45 +++++++++++++++++++ samples/basic/blinky/prj.conf | 6 +++ 2 files changed, 51 insertions(+) create mode 100644 samples/basic/blinky/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay diff --git a/samples/basic/blinky/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay b/samples/basic/blinky/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay new file mode 100644 index 000000000000000..dbf19d173ebe427 --- /dev/null +++ b/samples/basic/blinky/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay @@ -0,0 +1,45 @@ +/* + * 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"; + }; + }; +}; + +&cpuapp_vevif_rx { + status = "okay"; +}; + +&cpuapp_vevif_tx { + status = "okay"; +}; + +&led0 { + gpios = <&egpio 9 GPIO_ACTIVE_HIGH>; +}; diff --git a/samples/basic/blinky/prj.conf b/samples/basic/blinky/prj.conf index 91c3c15b37d1ee4..ef91941b90e835c 100644 --- a/samples/basic/blinky/prj.conf +++ b/samples/basic/blinky/prj.conf @@ -1 +1,7 @@ CONFIG_GPIO=y +CONFIG_GPIO_NRFX=n +CONFIG_GPIO_NRFE=y + +CONFIG_IPC_SERVICE=y +CONFIG_IPC_SERVICE_BACKEND_ICMSG=y +CONFIG_MBOX=y