From bb81347dfb1109bb41c85a75dcdab8d507b18565 Mon Sep 17 00:00:00 2001 From: Jamel Arbi Date: Wed, 28 May 2025 11:09:51 +0200 Subject: [PATCH] samples: openthread: net: shell: Add NXP rcp host configuration Add the NXP shell configuration for openthread RCP host Signed-off-by: Jamel Arbi --- samples/net/openthread/shell/README.rst | 29 ++++++++++- .../shell/overlay-ot-rcp-host-nxp.conf | 51 +++++++++++++++++++ samples/net/openthread/shell/sample.yaml | 9 ++++ 3 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 samples/net/openthread/shell/overlay-ot-rcp-host-nxp.conf diff --git a/samples/net/openthread/shell/README.rst b/samples/net/openthread/shell/README.rst index 70e9cc39709..2b44d00e9b8 100644 --- a/samples/net/openthread/shell/README.rst +++ b/samples/net/openthread/shell/README.rst @@ -15,11 +15,38 @@ Building and Running Verify that the board and chip you are targeting provide IEEE 802.15.4 support. -For instance you can use Nordic's nRF52840 DK. +There are configuration files for different boards and setups in the shell directory: + +- :file:`prj.conf` + Generic config file. + +- :file:`overlay-ot-rcp-host-nxp.conf` + This overlay config enables support of OpenThread RCP host running on NXP chips over IMU interface. + +Build shell application like this: + +.. zephyr-app-commands:: + :zephyr-app: samples/net/openthread/shell + :board: + :conf: + :goals: build + :compact: + +Example building for Nordic's nRF52840 DK. .. zephyr-app-commands:: :zephyr-app: samples/net/openthread/shell :board: nrf52840dk/nrf52840 + :conf: "prj.conf" + :goals: build + :compact: + +Example building for NXP's RW612 FRDM (RCP host). + +.. zephyr-app-commands:: + :zephyr-app: samples/net/openthread/shell + :board: frdm_rw612 + :conf: "prj.conf overlay-ot-rcp-host-nxp.conf" :goals: build :compact: diff --git a/samples/net/openthread/shell/overlay-ot-rcp-host-nxp.conf b/samples/net/openthread/shell/overlay-ot-rcp-host-nxp.conf new file mode 100644 index 00000000000..21501757b77 --- /dev/null +++ b/samples/net/openthread/shell/overlay-ot-rcp-host-nxp.conf @@ -0,0 +1,51 @@ +# +# Copyright 2025, NXP +# + +# OS +CONFIG_MAIN_STACK_SIZE=8192 + +# CPP library +CONFIG_CPP=y + +# IMU & FW loader +CONFIG_NXP_RF_IMU=y +CONFIG_NXP_FW_LOADER=y + +# Shell +CONFIG_SHELL_ARGC_MAX=26 +CONFIG_SHELL_CMD_BUFF_SIZE=512 +CONFIG_SHELL_STACK_SIZE=5120 + +# Enable Openthread RCP host interface +CONFIG_HDLC_RCP_IF=y +CONFIG_OPENTHREAD_MANUAL_START=y + +# Enable OpenThread features set +CONFIG_OPENTHREAD_THREAD_VERSION_1_3=y +CONFIG_OPENTHREAD_DHCP6_SERVER=y +CONFIG_OPENTHREAD_COMMISSIONER=y +CONFIG_OPENTHREAD_BORDER_AGENT=y +CONFIG_OPENTHREAD_BORDER_ROUTER=y +CONFIG_OPENTHREAD_UDP_FORWARD=y +CONFIG_OPENTHREAD_ENABLE_SERVICE=y +CONFIG_OPENTHREAD_EXTERNAL_HEAP=y +CONFIG_OPENTHREAD_PING_SENDER=y +CONFIG_OPENTHREAD_SLAAC=y +CONFIG_OPENTHREAD_SETTINGS_RAM=y +CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS=256 +CONFIG_OPENTHREAD_COAP=y +CONFIG_OPENTHREAD_JOINER=y +CONFIG_OPENTHREAD_REFERENCE_DEVICE=y +CONFIG_OPENTHREAD_DHCP6_CLIENT=y +CONFIG_OPENTHREAD_LINK_METRICS_INITIATOR=y +CONFIG_OPENTHREAD_LINK_METRICS_SUBJECT=y +CONFIG_OPENTHREAD_DUA=y +CONFIG_OPENTHREAD_MLR=y +CONFIG_OPENTHREAD_ECDSA=y +CONFIG_OPENTHREAD_DNS_CLIENT=y +CONFIG_OPENTHREAD_DNSSD_SERVER=y +CONFIG_OPENTHREAD_SRP_CLIENT=y +CONFIG_OPENTHREAD_SRP_SERVER=y +CONFIG_OPENTHREAD_MAC_FILTER=y +CONFIG_OPENTHREAD_IP6_FRAGM=y diff --git a/samples/net/openthread/shell/sample.yaml b/samples/net/openthread/shell/sample.yaml index 98d3212297a..acebdbee4c7 100644 --- a/samples/net/openthread/shell/sample.yaml +++ b/samples/net/openthread/shell/sample.yaml @@ -15,3 +15,12 @@ tests: - nrf52840dongle/nrf52840 integration_platforms: - nrf52840dk/nrf52840 + sample.net.openthread.shell.rw612_openthread_rcp_host: + build_only: true + extra_args: + # Disabling monolithic since CI environment doesn't use blobs + - CONFIG_NXP_MONOLITHIC_NBU=n + - EXTRA_CONF_FILE="overlay-ot-rcp-host-nxp.conf" + platform_allow: + - frdm_rw612 + - rd_rw612_bga