CONFIG_SPI is not set in GPIO+SPI config of nRF21540 with nRF5340

Hello,

I am using nRf21540 and nRF5340 in GPIO+SPI config, where SPI is controlled via MPSL and separate spi0 bus.

I have configured the board files based on nordic,nrf21540-fem — Zephyr Project Documentation, and Enabling GPIO+SPI mode support for nRF21540

I get following in MPSL config in hci_ipc/build/zephyr/.config file:

#
# Multiprotocol service layer (MPSL)
#
# CONFIG_MPSL_FEM_ONLY is not set
CONFIG_MPSL_FEM_ANY_SUPPORT=y
CONFIG_MPSL_FEM_NRF21540_GPIO_SUPPORT=y
CONFIG_MPSL_FEM_NRF21540_GPIO_SPI_SUPPORT=y
# CONFIG_MPSL_FEM_DEVICE_CONFIG_254 is not set
# CONFIG_MPSL_FEM_LOG_LEVEL_OFF is not set
# CONFIG_MPSL_FEM_LOG_LEVEL_ERR is not set
# CONFIG_MPSL_FEM_LOG_LEVEL_WRN is not set
# CONFIG_MPSL_FEM_LOG_LEVEL_INF is not set
# CONFIG_MPSL_FEM_LOG_LEVEL_DBG is not set
CONFIG_MPSL_FEM_LOG_LEVEL_DEFAULT=y
CONFIG_MPSL_FEM_LOG_LEVEL=3
CONFIG_MPSL_THREAD_COOP_PRIO=8
CONFIG_MPSL_TIMESLOT_SESSION_COUNT=0
# CONFIG_MPSL_ASSERT_HANDLER is not set
# CONFIG_MPSL_TRIGGER_IPC_TASK_ON_RTC_START is not set
CONFIG_MPSL_LOW_PRIO_IRQN=26
# CONFIG_MPSL_LOG_LEVEL_OFF is not set
# CONFIG_MPSL_LOG_LEVEL_ERR is not set
# CONFIG_MPSL_LOG_LEVEL_WRN is not set
# CONFIG_MPSL_LOG_LEVEL_INF is not set
# CONFIG_MPSL_LOG_LEVEL_DBG is not set
CONFIG_MPSL_LOG_LEVEL_DEFAULT=y
CONFIG_MPSL_LOG_LEVEL=3
# end of Multiprotocol service layer (MPSL)

I am setting CONFIG_SPI=y in prj.conf for app core and mcuboot, but not for hci_ipc (net core). 

Hence *.config does not have CONFIG_SPI set for netcore. Is this ok? 

Is CONFIG_MPSL_FEM_NRF21540_GPIO_SPI_SUPPORT=y sufficient to allow netcore to control gain over SPI?

Thanks

Related