Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ add_subdirectory_ifdef(CONFIG_ADC adc)
add_subdirectory_ifdef(CONFIG_ARM_SIP_SVC_DRIVER sip_svc)
add_subdirectory_ifdef(CONFIG_AUDIO audio)
add_subdirectory_ifdef(CONFIG_AUXDISPLAY auxdisplay)
add_subdirectory_ifdef(CONFIG_BASIC_RADIO basic_radio)
add_subdirectory_ifdef(CONFIG_BBRAM bbram)
add_subdirectory_ifdef(CONFIG_BIOMETRICS biometrics)
add_subdirectory_ifdef(CONFIG_BT_DRIVERS bluetooth)
Expand Down
1 change: 1 addition & 0 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ source "drivers/adc/Kconfig"
source "drivers/audio/Kconfig"
source "drivers/audio/mic_privacy/intel/Kconfig.mic_privacy"
source "drivers/auxdisplay/Kconfig"
source "drivers/basic_radio/Kconfig"
source "drivers/bbram/Kconfig"
source "drivers/biometrics/Kconfig"
source "drivers/bluetooth/Kconfig"
Expand Down
5 changes: 5 additions & 0 deletions drivers/basic_radio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2026 Texas Instruments Incorporated
# SPDX-License-Identifier: Apache-2.0

# Each vendor backend registers its own zephyr_library() inside its subdirectory.
add_subdirectory_ifdef(CONFIG_BASIC_RADIO_CC23X0 backends/ti/cc23x0)
42 changes: 42 additions & 0 deletions drivers/basic_radio/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright (c) 2026 Texas Instruments Incorporated
# SPDX-License-Identifier: Apache-2.0

menuconfig BASIC_RADIO
bool "Basic Radio Drivers [EXPERIMENTAL]"
select EXPERIMENTAL
select POLL
help
Vendor-agnostic API for basic radio commands

if BASIC_RADIO

module = BASIC_RADIO
module-str = basic_radio
source "subsys/logging/Kconfig.template.log_config"

config BASIC_RADIO_INIT_PRIORITY
int "basic_radio initialization priority"
default 90
help
POST_KERNEL init priority for basic_radio drivers. Must be higher
than the priority of any underlying vendor HAL init.

config BASIC_RADIO_MAX_PACKET_LEN
int "Maximum payload length"
range 1 2047
default 255
help
Largest payload in bytes any PHY of the radio can send or receive.
Backends may support a lower maximum.

config BASIC_RADIO_RX_BUFFER_COUNT
int "Number of RX buffers"
range 1 16
default 3
help
Number of RX buffers preallocated by the backend.

rsource "backends/ti/cc23x0/Kconfig"
# add here more "backends/..."

endif # BASIC_RADIO
15 changes: 15 additions & 0 deletions drivers/basic_radio/backends/ti/cc23x0/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2026 Texas Instruments Incorporated
# SPDX-License-Identifier: Apache-2.0

zephyr_library()
zephyr_library_sources(basic_radio_cc23x0.c)

# Certified PHY catalog of the SoC, one file per device. To add a device,
# add basic_radio_cc23x0_phy_catalog_<soc>.c and its SoC to
# BASIC_RADIO_CC23X0_PHY_CATALOG in Kconfig.
zephyr_library_sources_ifdef(
CONFIG_BASIC_RADIO_CC23X0_PHY_CATALOG
basic_radio_cc23x0_phy_catalog_${CONFIG_SOC}.c
)

zephyr_library_include_directories(.)
56 changes: 56 additions & 0 deletions drivers/basic_radio/backends/ti/cc23x0/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright (c) 2026 Texas Instruments Incorporated
# SPDX-License-Identifier: Apache-2.0

config BASIC_RADIO_CC23X0
bool "TI CC23x0 RCL backend"
default y
depends on SOC_SERIES_CC23X0
depends on DT_HAS_TI_CC23X0_BASIC_RADIO_ENABLED
depends on RCL_DRIVER
select SIMPLELINK_F3_RADIO_PHYS
select PM
help
Backend for TI CC23x0 SimpleLink SoCs.

config BASIC_RADIO_CC23X0_RX_BUFFER_SIZE
int "RX MultiBuffer size in bytes"
depends on BASIC_RADIO_CC23X0
default 512
help
Size of each RCL MultiBuffer used for RX. One buffer can hold
several received packets.

config BASIC_RADIO_CC23X0_MAX_HDR_LEN
int "Maximum frame header length in bytes"
depends on BASIC_RADIO_CC23X0
range 1 4
default 2
help
Largest frame header, up to and including the length field, of any
PHY passed to basic_radio_config(). TX buffers are sized for it, and
basic_radio_config() rejects a PHY with a longer header.

config BASIC_RADIO_CC23X0_PHY_CATALOG
bool
depends on BASIC_RADIO_CC23X0
default y if SOC_CC2340R5
help
The SoC has a certified PHY catalog,
basic_radio_cc23x0_phy_catalog_<soc>.c, built when this is set. It
defines the certified PHYs, the default PHY and the PHYs of the
standard PHY profiles.

config BASIC_RADIO_CC23X0_DEFAULT_PHY
bool "Apply the default certified PHY at init"
depends on BASIC_RADIO_CC23X0_PHY_CATALOG
default y
help
Apply basic_radio_cc23x0_phy_default and its default runtime
parameters at init, so the radio is usable without calling
basic_radio_config().

Disable it for an application that selects its own PHY: the
default PHY's configuration is then not linked. No PHY is active
after init and operations return -ENODEV until
basic_radio_config() selects one. The certified PHYs stay
available to basic_radio_config() either way.
Loading
Loading