Migration guide to Zephyr v4.6.0 (Working Draft)
This document describes the changes required when migrating your application from Zephyr v4.5.0 to Zephyr v4.6.0.
Any other changes (not directly related to migrating applications) can be found in the release notes.
Common
The
scripts/footprint/size_report,scripts/footprint/compare_footprint, andscripts/kconfig/diffconfigscripts have been renamed toscripts/footprint/size_report.py,scripts/footprint/compare_footprint.py, andscripts/kconfig/diffconfig.py, respectively. Users must update their invocations.
Build System
CONFIG_ROMSTART_RELOCATION_ROM,CONFIG_ROMSTART_REGION_ADDRESSandCONFIG_ROMSTART_REGION_SIZEhave been deprecated in favour of the new chosenzephyr,romstartproperty that should be used instead. While the old option created a new linker script memory region based on the Kconfig settings, the new behaviour uses the memory region that gets generated by the devicetree via thezephyr,memory-regioncompatible. If an overwrite over the board defaults is detected the Kconfig optionCONFIG_ROMSTART_DEPRECATED_SETis set and old behaviour is preserved while indicating the deprecation. (GitHub #114974)
Kernel
k_queue_cancel_wait()andk_fifo_cancel_waitnow wake everyk_poll()call waiting on the queue with-EINTRand submit everyk_work_poll_submit()item waiting on it, not only the first. Code that treated a cancel as addressed to one waiter must re-check its own condition.z_clock_hw_cycles_per_seccan no longer be assigned. Timer drivers and SoC code that set the system timer frequency at run time must callz_sys_clock_hw_cycles_per_sec_set()instead.
Boards
On the Nordic nRF54L and nRF71 Series SoCs, the push area that the Key Management Unit (KMU) of CRACEN uses to push keys is now reserved at the start of the SRAM by the
kmu_push_areadevicetree node of the SoC. Thezephyr,sramchosen node of the in-tree boards is nowcpuapp_sram_app, a child node ofcpuapp_sramthat starts after the push area. The nodes are not present whenUSE_NON_SECURE_ADDRESS_MAPis used. Out-of-tree boards that use the CRACEN KMU key push should be updated, as otherwise the application RAM overlaps the push area without any diagnostic. Boards that do not use it can keep using the whole RAM:Replace
zephyr,sram = &cpuapp_sramwithzephyr,sram = &cpuapp_sram_app.To limit the SRAM available to the application, resize
cpuapp_sram_appand keep its offset, for examplereg = <0x60 (DT_SIZE_K(184) - 0x60)>. Changingregofcpuapp_sramno longer changes the SRAM thatzephyr,sramrefers to.If the memory layout deletes and redefines
cpuapp_sram, assign the redefined node tozephyr,sramand leave the first0x60bytes of the SRAM free.Remove custom nodes and linker sections that reserve the push area, such as
nrf_kmu_reserved_push_area. They would overlap thekmu_push_areanode.
On Nordic SoCs,
CONFIG_TRUSTED_EXECUTION_NONSECUREno longer enablesCONFIG_BUILD_WITH_TFMby default, as TF-M is not the only possible secure firmware. The in-tree/nsboard targets now enable TF-M themselves. Out-of-tree non-secure board targets that use TF-M must do the same, in theirKconfig.defconfig:configdefault BUILD_WITH_TFM default y if BOARD_MY_BOARD_NRF9160_NS
STM32 Minimum Development Board now declares two SoCs, so the SoC qualifier is mandatory. Applications and test configurations that used
stm32_min_dev,stm32_min_dev@blueorstm32_min_dev@blackmust usestm32_min_dev@blue/stm32f103x8orstm32_min_dev@black/stm32f103x8instead.stm32_min_dev_defconfigwas renamed accordingly tostm32_min_dev_stm32f103x8_defconfig.The Adafruit ESP32 Feather board target
adafruit_feather_esp32has been renamed to Adafruit Feather ESP32 V2 (adafruit_feather_esp32_v2) to match the manufacturer’s naming: Adafruit ESP32 Feather V2. The oldadafruit_feather_esp32board target is deprecated and now automatically redirects to the new target with a warning. Update board targets fromadafruit_feather_esp32/esp32/procpuandadafruit_feather_esp32/esp32/appcputoadafruit_feather_esp32_v2/esp32/procpuandadafruit_feather_esp32_v2/esp32/appcpurespectively. The new board defines no revisions, so drop the@2revision suffix if it was specified:adafruit_feather_esp32@2is not redirected and fails with an invalid board revision error.PSOC™ 4100S Max pioneer kit: the console moved from SCB2 to SCB1 on the same pins (P0.4, P0.5), and its node label changed from
uart2touart1. Thespi1node on SCB1 (P2.0 to P2.2) was removed. SCB2 is nowarduino_spion the Arduino header pins D11 to D13 (P10.0 to P10.2), disabled by default.LiteX: The deprecated
CONFIG_LITEX_CSR_DATA_WIDTHKconfig option has been removed. Only the 32 bit CSR data width is supported. Designs that use an 8 bit CSR data width must be rebuilt with a 32 bit CSR data width. (GitHub #124793)The Andes AE350 SoC is now provided per AndesCore core, for example
ae350_a25for the A25 core. Theae350SoC andCONFIG_SOC_AE350are deprecated and will be removed in a future release. Kconfig, CMake and code checkingCONFIG_SOC_AE350should checkCONFIG_SOC_SERIES_AE350instead. (GitHub #122288)The AE350 board targets of ADP-XC7K and Tang Mega 138K Pro Dock have been renamed after the core. The previous board targets are deprecated and map to the new board targets:
adp_xc7k/ae350toadp_xc7k/ae350_a25adp_xc7k/ae350/clictoadp_xc7k/ae350_d23/clictang_mega_138k_pro_dock/ae350totang_mega_138k_pro_dock/ae350_a25tang_mega_138k_pro_dock/ae350/demototang_mega_138k_pro_dock/ae350_a25/demo
Applications must rename their board specific files after the new board targets, for example
boards/adp_xc7k_ae350.overlaytoboards/adp_xc7k_ae350_a25.overlay, as the files named after the previous board targets are no longer applied. Kconfig, CMake and code checkingCONFIG_BOARD_ADP_XC7K_AE350must checkCONFIG_BOARD_ADP_XC7K_AE350_A25instead.Out-of-tree boards using the
ae350SoC should use theae350_<core>SoC of their core inboard.yml, rename the board files named after the SoC, selectSOC_AE350_<core>instead ofSOC_AE350, and include theriscv/andes/andes_v5_ae350_<core>.dtsiof their core. Boards describing their own CPU nodes must use the compatible of the core, for exampleandestech,a25, which enables theCONFIG_CPU_ANDES_<core>option selecting the CPU features of the core.riscv/andes/andes_v5_ae350.dtsinow describes a single CPU instead of eight, and the PLIC also has the supervisor mode context of the hart. Out-of-tree boards including it must drop the deletes of the other CPU nodes. Multicore boards must add the other CPU nodes and add them to theinterrupts-extendedofplic0,mtimerandplic_sw, or include theriscv/andes/andes_v5_ae350_<core>mp.dtsiof their core.
The RAKwireless
rak3172board is renamed to RAK3272S Breakout Board. It was named after the WisDuo stamp module it carries rather than the board it describes, which is the RAK3272S Breakout Board. The other carrier for the same module is the new RAK3372 WisBlock Core Module WisBlock Core Module.boards/deprecated.cmakekeeps-b rak3172working with a warning, but out-of-tree code testingCONFIG_BOARD_RAK3172must switch toCONFIG_BOARD_RAK3272S.RAK3272S Breakout Board no longer defines
led0. The RAK3272S carries no LEDs and leaves the two module pins the nodes used unrouted. Applications that relied on the alias, such as Blinky, need an overlay pointing at a LED wired to the headers.The Espressif SoC family is renamed from
espressif_esp32toespressif. TheCONFIG_SOC_FAMILYstring is now"espressif"and the family option isCONFIG_SOC_FAMILY_ESPRESSIF.CONFIG_SOC_FAMILY_ESPRESSIF_ESP32is still set for Espressif SoCs, but it is deprecated and will be removed in a future release. UseCONFIG_SOC_FAMILY_ESPRESSIFinstead.The Kconfig options defined by the Espressif SoCs in
soc/espressifnow use the SoC symbol prefixes required by the Kconfig naming conventions. Options shared by the Espressif SoC family useSOC_FAMILY_ESPRESSIF_and options that belong to a single SoC useSOC_<SoC>_. The formerESP_,ESP32_,ESP32<SoC>_andSOC_ESP32_prefixes are dropped, and options that had no vendor prefix, such asSPIRAM_*,SPI_FLASH_*andBOOTLOADER_*, gain the family prefix. The flash options lose theESPTOOLPY_tool name (FLASHFREQandFLASHMODEbecomeFLASH_FREQandFLASH_MODE), and a few redundant words are dropped. For example:CONFIG_ESP_SPIRAMis nowCONFIG_SOC_FAMILY_ESPRESSIF_SPIRAM.CONFIG_SPIRAM_MODE_OCTis nowCONFIG_SOC_FAMILY_ESPRESSIF_SPIRAM_MODE_OCT.CONFIG_ESPTOOLPY_FLASHFREQ_80Mis nowCONFIG_SOC_FAMILY_ESPRESSIF_FLASH_FREQ_80M.CONFIG_ESPTOOLPY_OCT_FLASHis nowCONFIG_SOC_ESP32S3_FLASH_OCTAL.CONFIG_ESP32_ULP_COPROC_ENABLEDis nowCONFIG_SOC_FAMILY_ESPRESSIF_ULP_ENABLED.CONFIG_ESP_CONSOLE_UART_NUMis nowCONFIG_SOC_FAMILY_ESPRESSIF_CONSOLE_UART_NUM.CONFIG_SOC_ESP32_PM_SUPPORT_CPU_PDis nowCONFIG_SOC_FAMILY_ESPRESSIF_PM_SUPPORT_CPU_PD.CONFIG_ESP32S3_DATA_CACHE_64KBis nowCONFIG_SOC_ESP32S3_DATA_CACHE_64KB.CONFIG_ESP32_CACHE_L2_512KBis nowCONFIG_SOC_ESP32P4_CACHE_L2_512KB.
The old names of the options that can be set by users are kept as deprecated options and will be removed in a future release. Setting one of them forwards the value to the renamed option and prints a deprecation warning when the value differs from the default of that option. Configuration files should still be updated, because the following uses of the old names are not covered:
Code that tests an old boolean
CONFIG_macro. A deprecated boolean option only appears inautoconf.hwhen it is set.Board
Kconfig.defconfigfiles that change the default of a renamed option or choice, for examplechoice SPIRAM_MODE. They must use the new option and choice names.A deprecated option set by an application does not override a value that a board sets for the renamed option.
The options
CONFIG_ESPTOOLPY_FLASHSIZE_*,CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE,CONFIG_ESPTOOLPY_BEFORE_*,CONFIG_ESPTOOLPY_AFTER_*,CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY,CONFIG_SPIRAM_TYPE_ESPPSRAM*,CONFIG_ESP32S3_INSTRUCTION_CACHE_WRAP,CONFIG_ESP32S3_DATA_CACHE_WRAP,CONFIG_ESP32_ULP_PANIC_OUTPUT_ENABLEandCONFIG_ESP32_ULP_RISCV_INTERRUPT_ENABLEhave been removed because they had no effect. Remove them from configuration files. BoardKconfig.defconfigfiles must drop theirchoice SPIRAM_TYPEoverrides. The flash size comes from thezephyr,flashdevicetree node.On LiteX SoCs,
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SECno longer falls back to the CPUclock-frequencywhen/cpushas notimebase-frequency. Out-of-tree boards must settimebase-frequencyon the/cpusnode. (GitHub #124446)The NXP LPC54xxx DTSI files are named after the sub-family they describe and all live in
dts/arm/nxp/lpc/lpc54xxx/. Out-of-tree boards must update their includes:LPC5411x:
nxp/lpc/lpc54xxx/nxp_lpc54xxx.dtsi,nxp/lpc/lpc54xxx/nxp_lpc54xxx_m4.dtsiandnxp/lpc/lpc54xxx/nxp_lpc54xxx_m0.dtsiare nownxp/lpc/lpc54xxx/nxp_lpc5411x.dtsi,nxp/lpc/lpc54xxx/nxp_lpc5411x_m4.dtsiandnxp/lpc/lpc54xxx/nxp_lpc5411x_m0.dtsi.LPC546xx:
nxp/lpc/nxp_lpc546xx.dtsiis nownxp/lpc/lpc54xxx/nxp_lpc546xx.dtsi.
The root compatible of the LPCXpresso54114 board is now
nxp,lpc5411xinstead ofnxp,lpc54xxx. (GitHub #125465)Antmicro
stm32h7_renode_reference_boardhas been renamed tostm32h7_renode_reference_platform. The previous-b stm32h7_renode_reference_boardand-b stm32h7_renode_reference_board/stm32h753xxare deprecated and now map tostm32h7_renode_reference_platformandstm32h7_renode_reference_platform/stm32h753xx.On MIMXRT1180-EVK, the optional DTS overlay files (
cm33_sram_dtcm.overlay,cm7_code_hyperram.overlay,cm7_flash_boot.overlay) and on FRDM-iMXRT1186 thecm33_sram_dtcm.overlayfile were moved from the board root directory into a dedicateddts/subdirectory. Out-of-tree applications that referenced these files with an explicit path must update it to include thedts/component (e.g. use boards/nxp/mimxrt1180_evk/dts/cm7_flash_boot.overlay instead ofboards/nxp/mimxrt1180_evk/cm7_flash_boot.overlay).On the Alif Ensemble RTSS and Balletto cores,
CONFIG_NUM_IRQSnow defaults to the highest IRQ of the enabled devicetree nodes plus one, instead of 480. Applications that connect a higher IRQ withIRQ_CONNECT()orirq_connect_dynamic()must setCONFIG_NUM_IRQSexplicitly.
Device Drivers and Devicetree
ADC
nxp,lpc-lpadcchannels that useADC_GAIN_1_2for the 30/64 partial scale should useADC_GAIN_15_32: withADC_GAIN_1_2, which still selects that scale, the conversions ofadc_raw_to_millivolts_dt()andadc_raw_to_millivolts()are 6.25% too low.
Audio Codec
The
wolfson,wm8904binding now requires theclocksandclock-namesproperties. The MCLK input must always be described in devicetree, either by a clock controller or by afixed-clocknode when it is not backed by a controllable clock source. The driver no longer falls back to computing MCLK asfs-ratio * <sample rate>.The
fs-ratioproperty has been replaced byfll-sysclk-fs-ratio, which now only sets the SYSCLK to sample rate ratio generated by the FLL whenclock-sourceis"FLL". It is ignored whenclock-sourceis"MCLK".Out-of-tree boards and overlays must be updated, for example:
mclk: mclk { compatible = "fixed-clock"; clock-frequency = <12288000>; #clock-cells = <0>; }; &wm8904 { clocks = <&mclk>; clock-names = "mclk"; };
When using a
fixed-clocknode,CONFIG_CLOCK_CONTROL_FIXED_RATE_CLOCKmust be enabled.
Clock control
NXP MCXC and K32L2B3 SoCs now use the
nxp,mcg-litebinding and driver for the MCG-Lite clock generator. Out-of-tree devicetrees must update the mcg node to use the new compatible and replace any use ofKINETIS_MCG_OUT_CLKwithNXP_MCG_LITE_OUT_CLK. Thelircdiv2property is no longer supported bynxp,kinetis-mcgand should be removed from existing devicetrees.
Comparator
The deprecated
mcux_lpcmpsensor driver, its public headerzephyr/drivers/sensor/mcux_lpcmp.h, theCONFIG_MCUX_LPCMP_TRIGGERoption and its sample have been removed. Applications usingCONFIG_MCUX_LPCMPmust enableCONFIG_COMPARATORandCONFIG_COMPARATOR_NXP_LPCMPand migrate to the Comparator instead of the sensor API.The
nxp,lpcmpdevicetree compatible is unchanged, but existing overlays must be updated for the comparator driver. Legacy sensor properties remain in the binding but are not consumed by the comparator driver:Replace
hysteresis-levelwithhysteresis-mode, converting integer values0through3to strings"LEVEL0"through"LEVEL3".power-level = "low"becomespower-mode = "low_speed"andpower-level = "high"becomespower-mode = "high_speed". The old"nano"value has no correspondingpower-modesetting.Replace
enable-output-pinwithenable-pin-out. Useinvert-outputfor output inversion.The
function-clockproperty is not used by the comparator driver. Review the SoC clock configuration and the standardclocksproperty separately;clocksis not a direct replacement for the LPCMP internal functional clock-source selection.
Refer to dts/bindings/comparator/nxp,lpcmp.yaml for the property definitions. The tests/drivers/comparator/gpio_loopback test provides an example of the comparator API. (GitHub #124232).
Entropy
On the Nordic nRF54L05/10/15, nRF54LM20, nRF54LV10A and nRF7120 SoCs, the
nordic,nrf-cracen-ctrdrbgrngnode is now a child of the newnordic,nrf-cracencracennode, which only exists in the secure address map. Thernglabel is unchanged, but references to the node by path (/rng) must be updated to use&rng. As the node no longer exists in non-secure builds, non-secure board files no longer need/delete-node/ rng;, which can be removed, and must not reference&rng; they should select azephyr,psa-crypto-rngnode aszephyr,entropyinstead.Initialisation of the nrfx CRACEN library and arbitration of access to the CRACEN hardware have moved from the entropy driver to the new
CONFIG_NORDIC_CRACENdriver. It is enabled by default whenever therngnode is enabled. To use the CRACEN exclusively from the PSA crypto CRACEN driver, disable&rngand selectpsa_rngaszephyr,entropy, as before. Application code that accesses the CRACEN through nrfx directly whilerngis enabled must wrap each access innordic_cracen_acquire()andnordic_cracen_release().
Ethernet
CONFIG_ETH_PHY_DRIVERis no longer enabled by default. It is now selected by the Ethernet drivers that need a PHY driver. Out-of-tree Ethernet drivers that use a PHY driver must select it as well. (GitHub #120871)The Kconfig option
CONFIG_ETH_INTEL_IGC_NET_MTUhas been removed. The Intel IGC Ethernet driver now always uses the standard Ethernet MTU of 1500 bytes, as the Ethernet L2 does not support jumbo frames. (GitHub #122863)The
reset-gpiostiming properties of the Ethernet PHY bindings, such asethernet-phyandethernet-phy-fixed-link, have been renamed to align with the Linux Ethernet PHY binding, which uses the same names. Replacereset-assert-duration-uswithreset-assert-us, and replacereset-deassertion-timeout-mswithreset-deassert-us, multiplying its value by 1000 as it is now in microseconds. (GitHub #124061)The
ETHERNET_LLDPvalue ofethernet_hw_capshas been removed. LLDP is now enabled on every Ethernet interface whenCONFIG_NET_LLDPis set. Out-of-tree Ethernet drivers must stop reporting it. (GitHub #124787)The
ETHERNET_DSA_USER_PORTandETHERNET_DSA_CONDUIT_PORTvalues ofethernet_hw_capshave been removed. Usenet_eth_get_dsa_port_type()to get the DSA port type of an interface instead. (GitHub #124790)gPTP now drops received event messages (Sync, Pdelay_Req, Pdelay_Resp) for which the driver has not called
net_pkt_set_rx_timestamping(). Out-of-tree Ethernet drivers that only populatepkt->timestampmust set the flag, or gPTP will not synchronize.
Flash
The Espressif flash encryption compatibility option
CONFIG_ESP_FLASH_ENCRYPTIONis nowCONFIG_ESP32_FLASH_ENCRYPTION, defined by the ESP32 flash driver. The old name is kept as a deprecated option and will be removed in a future release.
I2S
CONFIG_I2S_NATIVE_SIM_RX_FILE_PATHandCONFIG_I2S_NATIVE_SIM_TX_FILE_PATHare deprecated. UseCONFIG_I2S_NATIVE_SIM_RX_PATHandCONFIG_I2S_NATIVE_SIM_TX_PATH, which also accept ALSA devices. Without the ALSA backend the old options still provide their default. (GitHub #123474)
Interrupt Controllers
GIC v3 LPI and ITS tables now use static storage instead of the system heap. Applications must provision enough table capacity for their devices and interrupt vectors. (GitHub #120728)
Enabling
CONFIG_GIC_V3_ITSrequiresCONFIG_NUM_IRQSto be greater than 8192 because LPI INTIDs start at 8192. SetCONFIG_NUM_IRQSto at least 8192 plus the total number of required LPIs across all ITS instances. Hardware support andzephyr,lpi-id-bitscan further limit the usable LPI range.Set
CONFIG_GIC_V3_ITS_MAX_DEVICESto at least the number of distinct DeviceIDs registered with each ITS instance; the default is 16. SetCONFIG_GIC_V3_ITS_MAX_VECTORSto at least the largest number of vectors requested for any one device. Use a power of two from 2 to 2048. The default is 32. Increasing these capacities can increase the statically reserved memory, including space for devices that are not registered.The
zephyr,device-id-bitsproperty ofarm,gic-v3-itsmust cover the largest DeviceID used by the platform, rather than the number of devices. Its default of 16 covers the PCIe RequesterID space. Thezephyr,lpi-id-bitsproperty ofarm,gic-v3controls the LPI table provision and defaults to 16; reduce it only when all required INTIDs fit in the smaller range.Platforms with known ITS table geometry can use
zephyr,device-table-sizeto cap the Device table reservation in bytes. The driver reserves the smaller of this cap and the automatically calculated size. The reservation must fit the direct table or, in indirect mode, the root and enough second-level pages for the configured device capacity. If all supported layouts exceed the reservation or the BASER page limit, ITS initialization fails with-ENOSPCbefore enabling the tables.Remove application or board
CONFIG_HEAP_MEM_POOL_SIZEoverrides that only reserved space for GIC v3 LPI or ITS tables. The ITS no longer contributes a minimum heap size. Retain any heap space needed by other drivers or application allocations.its_alloc_intid()is deprecated. Its signature and theits_api_alloc_intid_tdriver callback remain unchanged during deprecation. The GICv3 ITS driver now returns0from this function when it cannot allocate an LPI INTID. Callers that still use it must check for0before using the returned INTID. Useits_alloc_intids()with a count of 1 to allocate a single INTID:unsigned int intid; int ret = its_alloc_intids(dev, 1U, &intid); if (ret != 0) { /* ret is -ENOSPC or another negative error code. */ }
The new
its_alloc_intids()andits_alloc_map_intids()functions return 0 on success, a negative error code on failure, and store the first allocated INTID through the output parameter. The output parameter is left unchanged on failure. ITS driver implementations retain thealloc_intidcallback and implement the newalloc_intidsandalloc_map_intidscallbacks for the replacement APIs.Map each EventID only once per DeviceID.
its_map_intid()returns-EBUSYfor an existing mapping. Useits_send_int()only after mapping the EventID successfully.A failed mapping request leaves its output parameter unchanged. If hardware rollback cannot be confirmed, potentially mapped INTIDs and EventIDs remain reserved. These INTIDs reduce the capacity available to later requests, and retrying the same EventIDs returns
-EBUSY. Published indirect Device table pages also remain reserved after failed device setup.
MFD
nPM13xx event callbacks now use
mfd_npm13xx_event_callbackinstead ofgpio_callback. Set itshandlerandevent_maskfields directly instead of callinggpio_init_callback(). The handler takes a pointer to the new callback structure and annpm13xx_event_tevent mask; existingBIT(NPM13XX_EVENT_*)masks are unchanged. (GitHub #123060)
Modem
Sierra Wireless HL78xx: the
CONFIG_HL78XX_EVT_MONITOR_HEAP_SIZEoption has been replaced byCONFIG_HL78XX_EVT_MONITOR_QUEUE_DEPTH. The queue of notifications waiting for the deferred event monitors is now sized as a number of notifications instead of a heap size in bytes. Applications that set the old option must remove it, and set the new one if the default of 16 notifications is not enough. A notification that does not fit is dropped and counted; the count is available fromhl78xx_evt_monitor_dropped_count(). The slots are reserved statically, one queued notification each, so the default of 16 uses more RAM than the 256-byte heap it replaces. (GitHub #120425)
OPAMP
The NXP OPAMP drivers (
nxp,opampandnxp,opamp-fast) hold a power state constraint while the device is active, and the OPAMP nodes declarezephyr,disabling-power-states. WithCONFIG_PM_POLICY_DEVICE_CONSTRAINTSan enabled OPAMP therefore keeps the system out of Power Down and Deep Power Down for as long as it is active, which withoutCONFIG_PM_DEVICE_RUNTIMEis from init onwards. Enable device runtime PM for the node, or suspend it explicitly, to let the system reach those states. (GitHub #122135)nxp,opamp-fastno longer enables an instance marked withis-reference-sourcefrom its init function; the instance follows its own power state like every other instance. WithCONFIG_PM_DEVICE_RUNTIMEan application has to hold a runtime reference on the reference source while it measures an amplifier fed by it. Builds without device runtime PM are unaffected: the device is resumed at init and the instance comes up enabled as before. (GitHub #122135)
PCIe
pcie_msi_map()now returnsuint64_tinstead ofuint32_t, and theaddressmember ofmsi_vector_genericis nowuint64_t. Out-of-tree implementations ofpcie_msi_map()and code that reads the MSI vector address must be updated. The ITS getter (its_get_msi_addr()) also returnsuint64_t. (GitHub #124156)A 32-bit MSI capability whose ITS target address is above 4 GiB now makes
pcie_msi_enable()return false without writing the configuration space or enabling bus mastering; dependent drivers such as NVMe, ivshmem and IGC fail to initialize. This is intentional: use a 64-bit MSI capability or a target address below 4 GiB. (GitHub #124156)
Power Management
NXP MCX
nxp,spcwakeup-delayspecifies regulator-settling delay in SPC timer cycles. At the nominal 10 MHz timer frequency, every additional 100 cycles adds approximately 10 us to wake-up time. A nonzero programmed delay can also apply whenLP_CFGandACTIVE_CFGselect the same voltage. SoC power-stateexit-latency-usdefaults include SPC settling and mode-specific recovery allowances. Board/application overlays can select counts for their regulator, voltages, output capacitance and external power circuitry. Measure the total wake-up time for the actual project, including clock recovery and resume processing, and adjustexit-latency-usaccordingly; these defaults are not measured worst-case bounds.
PTP Clock
ptp_clock_rate_adjust()and theptp_clock_driver_api.rate_adjustdriver operation, which take the clock rate as a floating-point ratio, have been deprecated. Useptp_clock_adjust_rate()and implementptp_clock_driver_api.adjust_rateinstead, which take the rate offset from the nominal frequency as scaled parts per million, that is parts per million with a 16-bit binary fractional field:scaled_ppm = (ratio - 1) * 1000000 * 65536.PTP_CLOCK_SCALED_PPM_ONEis 1 ppm.A driver only has to implement one of the two operations. Both functions work with either of them and convert the argument if necessary, so applications and drivers can be migrated independently.
Drivers can use
ptp_clock_scaled_ppm_to_ppb()if the hardware takes the offset in parts per billion, andptp_clock_adjust_by_scaled_ppm()to compute the value of an addend register from its nominal value. All in-tree drivers have been converted. (GitHub #120828)
Serial
The
CONFIG_UART_ESP32_RX_FIFO_THRESHandCONFIG_UART_ESP32_TX_FIFO_THRESHKconfig options of the Espressif UART driver are deprecated. Set therx-fifo-thresholdandtx-fifo-thresholdproperties of each UART node in devicetree instead. The Kconfig options applied to every UART instance, while the properties apply to the node that sets them. (GitHub #119492)The
CONFIG_UART_XLNX_PSKconfig option has been removed in favour ofCONFIG_UART_CDNS. Nodes withxlnx,xuartpsmust addcdns,uart; thexlnx,xuartpscompatible remains valid as a hardware identifier, the unified driver matches oncdns,uart. Thebdivproperty has been removed; the baud rate is now computed fromclock-frequencyandcurrent-speed. (GitHub #114729)
Timers
The deprecated Cortex-M SysTick low-power companion Kconfig options have been removed. Replace them with their generic system timer equivalents:
Removed option
Replacement
CONFIG_CORTEX_M_SYSTICK_LPM_TIMER_NONECONFIG_CORTEX_M_SYSTICK_LPM_TIMER_COUNTERCONFIG_CORTEX_M_SYSTICK_LPM_TIMER_HOOKSCONFIG_CORTEX_M_SYSTICK_RESET_BY_LPMThe deprecated chosen
/chosen/zephyr,cortex-m-idle-timeris no longer supported. Use the zephyr,system-timer-companion chosen instead to select the low-power companion counter.The deprecated
drivers/timer/cortex_m_systick.hcompatibility header has been removed. Include include/zephyr/drivers/timer/system_timer_lpm.h instead, and replacez_cms_lptim_hook_on_lpm_entryandz_cms_lptim_hook_on_lpm_exitwithz_sys_clock_lpm_enter()andz_sys_clock_lpm_exit(), respectively. (GitHub #124238).The
CONFIG_MCUX_OS_TIMER_MIN_DELAYKconfig option has been removed. The NXP OS Timer driver now uses the generic system timer core, which keeps the match value at least 16 timer cycles ahead of the counter. Remove the option from application and board configurations.
W1
The 1-Wire API now uses controller/peripheral terminology. The former names remain available as deprecated aliases:
w1_master_configis deprecated in favor ofw1_controller_config, and itsslave_countmember is deprecated in favor ofperipheral_count.w1_master_datais deprecated in favor ofw1_controller_data.w1_slave_configis deprecated in favor ofw1_peripheral_config.w1_get_slave_count()is deprecated in favor ofw1_get_peripheral_count().W1_SLAVE_COUNTandW1_INST_SLAVE_COUNTare deprecated in favor ofW1_PERIPHERAL_COUNTandW1_INST_PERIPHERAL_COUNT.
The common devicetree binding include files
w1-master.yamlandw1-slave.yamlare deprecated in favor ofw1-controller.yamlandw1-peripheral.yaml. Out-of-tree bindings should update theirinclude:statements accordingly; the old files are kept as thin includes of the new ones for compatibility.
Wi-Fi
CONFIG_ESP32_WIFI_STA_RECONNECTnow only applies to an Espressif station that loses an established connection. It reconnects with a growing backoff until it succeeds or the application disconnects. While it reconnects, connection requests fail with-EALREADY. The option no longer changes how connection requests made by the application are handled.CONFIG_ESP32_WIFI_STA_RECONNECTis now enabled by default, so an Espressif station that loses an established connection reconnects on its own. Set the option tonto keep the station disconnected instead.Espressif Wi-Fi connection requests now retry authentication and association failures, such as an access point that rejects the first attempt after the station was reset, instead of failing on the first rejection. A request that leaves the
timeoutfield ofwifi_connect_req_paramsat 0 fails after three short retries. A request with a timeout retries until it expires and then reports a connection timeout, and one withSYS_FOREVER_MSretries until the application disconnects. A wrong WPA3-SAE password cannot be told apart from such a rejection, so it is retried as well.The Atmel WINC1500 Wi-Fi driver has been removed together with
CONFIG_WIFI_WINC1500, theatmel,winc1500devicetree binding and theadafruit_winc1500shield. It was deprecated in Zephyr 4.4 for lack of a maintainer and has no in-tree replacement.
Bluetooth
Bluetooth Audio
BAP
CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNThas been renamed toCONFIG_BT_BAP_UNICAST_CLIENT_GROUP_CIS_COUNT. All applications must apply a search and replace on this.
MCP
The media proxy API has been removed and users will need to use the
bt_mcs,bt_mccorbt_mcp_media_control_serverAPIs. Users of the media player API likemedia_proxy_pl_initcan seamlessly switch to usingbt_mcp_media_control_server_register(). Users using thebt_mccAPI can continue as is, butstruct mpl_cmdis nowstruct bt_mcs_cmd, andstruct mpl_searchis nowstruct bt_mcs_search. Uses ofmedia_proxy_ctrl_for local operations can in most places just search-and-replace withbt_mcp_media_control_server_. Uses ofmedia_proxy_ctrl_for remote operations will need to switch to thebt_mccAPI. (GitHub #102994)
Bluetooth Classic
The L2CAP BR/EDR ECHO API is now only available with
CONFIG_BT_TESTING:bt_l2cap_br_echo_cb,bt_l2cap_br_echo_cb_register(),bt_l2cap_br_echo_cb_unregister(),bt_l2cap_br_echo_req()andbt_l2cap_br_echo_rsp(). The stack answers a received ECHO request with an ECHO response without data, unless a registeredreqcallback handles it.
Bluetooth HCI
The STM32WB HCI driver now constructs its generated public Bluetooth address using the low 16 bits of the device UDN, the device ID, and the full 24-bit ST company ID. This corrects the previous address layout and changes the generated address on affected devices. Previously bonded peers may need to remove the old bond and pair with the device again.
Bluetooth Host
The ATT prepare write buffers (
CONFIG_BT_ATT_PREPARE_COUNT) are now shared equally between connections: a single connection holds at mostCONFIG_BT_ATT_PREPARE_COUNT_PER_CONNof them, which defaults toCONFIG_BT_ATT_PREPARE_COUNT / CONFIG_BT_MAX_CONNbut at least 1 (a pool smaller thanCONFIG_BT_MAX_CONNtherefore stays over-subscribed), and its further Prepare Write Requests are rejected with Prepare Queue Full. Applications withCONFIG_BT_MAX_CONNabove 1 whose long or reliable writes need more buffers than that share must either raiseCONFIG_BT_ATT_PREPARE_COUNTor setCONFIG_BT_ATT_PREPARE_COUNT_PER_CONNexplicitly, accepting in the latter case that one connection can hold buffers the others need. The recommended sizing isCONFIG_BT_ATT_PREPARE_COUNT= buffers needed by one client multiplied byCONFIG_BT_MAX_CONN, which keeps every connection’s capacity independent of the other connections.CONFIG_BT_ISO_TX_MTUhas been removed. Applications should define their own SDU buffer sizes. The ISO HCI data buffer size can be configured for the Controller withCONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE, and the SDU size withCONFIG_BT_CTLR_ISO_TX_SDU_LEN_MAX. In most casesCONFIG_BT_CTLR_ISO_TX_BUFFER_SIZEshould be set to 4 (if timestamps are not used) or 8 (if timestamps are used) aboveCONFIG_BT_CTLR_ISO_TX_SDU_LEN_MAX. For larger values ofCONFIG_BT_CTLR_ISO_TX_SDU_LEN_MAXit may be better to increaseCONFIG_BT_CTLR_ISO_TX_BUFFERSinstead ofCONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE.
Bluetooth Mesh
The deprecated legacy provisioning OOB API was removed together with the
CONFIG_BT_MESH_PROV_OOB_API_LEGACYKconfig option. The maximum numeric OOB authentication size is now always 32 bytes. Applications must replace:bt_mesh_input_number()withbt_mesh_input_numeric(), which takes the numeric value as a little-endian byte array and its size.The
output_numbercallback ofbt_mesh_provwithbt_mesh_prov.output_numeric, which receives the numeric value as a little-endian byte array and its size.
The Bluetooth Mesh shell
sar rx-setcommand now takes its arguments in the order the SAR Receiver states are documented and printed:<SegThresh> <AckDelayInc> <DiscardTimeout> <RxSegIntStep> <AckRetransCount>.AckRetransCountmoved from the third position to the last, so an existing invocation keeps the same number of arguments but assigns them to different states. Thesar rx-getandsar rx-setresponses are printed in this new order too. Update scripts that callsar rx-setor parse those responses.The Bluetooth Mesh shell
dfu cli sendcommand now takes the transfer mode aspushorpullinstead of a number, matchingblob cli tx. Replace a numeric mode argument withpushorpull.
Networking
The
ZFD_IOCTL_POLL_PREPARE,ZFD_IOCTL_POLL_UPDATE, andZFD_IOCTL_POLL_OFFLOADrequests have been deprecated. Implementpoll_prepare,poll_update, andpoll_offloadinfd_op_vtableinstead. Out-of-tree ioctl handlers that forward these requests to an in-tree socket should usezvfs_fdtable_call_poll_prepare(),zvfs_fdtable_call_poll_update(), andzvfs_fdtable_call_poll_offload(), as in-tree sockets no longer handle theZFD_IOCTL_POLL_*requests in their ioctl handlers.For
AF_UNSPEClookups,zsock_getaddrinfo()now returns IPv6 addresses before IPv4 ones, unless only the IPv4 addresses are reachable, and queries AAAA records before A records. Applications that use the first result now connect over IPv6 where they used IPv4. EnableCONFIG_NET_SOCKETS_DNS_PREFER_IPV4to keep IPv4 first, for example with offloaded network interfaces, where reachability cannot be determined.On an Ethernet interface,
zsock_connect(),zsock_sendto()and the other send calls now fail withENETUNREACHfor an IPv4 destination that is neither on the link nor reachable through a route or the gateway. Such packets were dropped before, after the send call had reported success, and a TCPzsock_connect()failed withETIMEDOUTonce the connect timeout passed. Applications that treat every send error as fatal may need to handleENETUNREACH, for example by trying the next address or waiting for the interface to be configured.The native network stack runs its timers and deferred work on a dedicated work queue,
CONFIG_NET_DEDICATED_WORKQUEUE, which is enabled by default. Code called from that work now runs in thenet_workqthread instead of the system work queue: the DNS resolve callback of a query that timed out, and network management event callbacks withCONFIG_NET_MGMT_EVENT_DIRECTfor the events that work raises. Such code no longer runs serialized with the application’s own system work queue items, and must not wait for work that needs the networking work queue. Applications that increasedCONFIG_SYSTEM_WORKQUEUE_STACK_SIZEfor the network stack’s work should increaseCONFIG_NET_DEDICATED_WORKQUEUE_STACK_SIZEinstead. DisablingCONFIG_NET_DEDICATED_WORKQUEUErestores the previous behavior and saves the thread and its stack.Network interface driver APIs are now device API classes. Out-of-tree network drivers must define their API instances with
DEVICE_APIand use the renamed structs:struct net_if_apiis nownet_if_driver_api.struct ethernet_apiis nowethernet_driver_api.struct dummy_apiis nowdummy_driver_api.struct ppp_apiis nowppp_driver_api.struct canbus_apiis nowcanbus_driver_api.struct offloaded_if_apiis nowoffloaded_if_driver_api.struct virtual_interface_apiis nowvirtual_interface_driver_api.struct hdlc_apiis nowhdlc_driver_api.struct ieee802154_radio_apiis nowieee802154_radio_driver_api.
For example,
static const struct ethernet_api api = {...}becomesstatic DEVICE_API(ethernet, api) = {...}. API instances are now always constant, and cannot be modified at runtime. (GitHub #124334)Wi-Fi drivers must define their API with
DEVICE_API(wifi_native, name)whenCONFIG_WIFI_USE_NATIVE_NETWORKINGis enabled, or withDEVICE_API(wifi_offload, name)otherwise.struct net_wifi_mgmt_offloadremains available to refer to the selected type. (GitHub #124334)The default Wi-Fi credentials backend has changed for some targets:
Non-secure targets with the TF-M Protected Storage partition now use
CONFIG_WIFI_CREDENTIALS_BACKEND_PSA_PSinstead ofCONFIG_WIFI_CREDENTIALS_BACKEND_PSA.Targets that enable
CONFIG_SECURE_STORAGEnow useCONFIG_WIFI_CREDENTIALS_BACKEND_PSA_PSinstead ofCONFIG_WIFI_CREDENTIALS_BACKEND_SETTINGS.Other non-secure targets with TF-M now use
CONFIG_WIFI_CREDENTIALS_BACKEND_SETTINGSinstead ofCONFIG_WIFI_CREDENTIALS_BACKEND_PSA, which is deprecated.
The new default backends can’t read credentials that the previous backends stored. To keep those credentials after updating, enable the previous backend explicitly.
The extra config files of the samples in samples/net, samples/subsys/mgmt/hawkbit, samples/subsys/mgmt/updatehub and samples/drivers/modem/hello_hl78xx, and of the network tests, no longer start with
overlay-oroverlay_, as that name is reserved for devicetree overlays. Drop the prefix from the names passed inEXTRA_CONF_FILE, for example-DEXTRA_CONF_FILE=tls.confinstead of-DEXTRA_CONF_FILE=overlay-tls.conf. These files use new names instead:samples/net/mqtt_publisher/testing.conf replaces
overlay-sample.conf.samples/net/dhcpv6_pd/pd-server.conf and samples/net/dhcpv6_pd/pd-server.overlay replace
overlay-server.confandoverlay-server.overlay.samples/net/ethernet/gptp/multiport.overlay replaces
overlay-multiport.overlay.samples/subsys/mgmt/updatehub/local.conf.example replaces
overlay-prj.conf.example.
ocpp_cs_infohas a newauthmember, whichocpp_init()reads even whenCONFIG_OCPP_BASIC_AUTHis disabled. Applications that fill the structure field by field must zero-initialize it, or setauth.usernametoNULLto connect without authentication. (GitHub #125718)NET_REQUEST_WIFI_CONNECT_STOREDnow returns the error from the last connect request if it fails for all stored networks, instead of0(or-ENOEXECfor static credentials). Update applications that call this request to handle this error.
Ethernet
Checksum offload capabilities are now advertised with one bit per IP version and protocol.
ETHERNET_CHECKSUM_SUPPORT_IPV6_HEADER,ETHERNET_CHECKSUM_SUPPORT_TCPandETHERNET_CHECKSUM_SUPPORT_UDPhave been removed.NET_IF_CHECKSUM_IPV6_HEADERhas been deprecated, as IPv6 has no header checksum and no interface advertises it anymore. Drivers reportingETHERNET_CONFIG_TYPE_RX_CHECKSUM_SUPPORTorETHERNET_CONFIG_TYPE_TX_CHECKSUM_SUPPORTmust setETHERNET_CHECKSUM_SUPPORT_IPV4_TCP,ETHERNET_CHECKSUM_SUPPORT_IPV4_UDP,ETHERNET_CHECKSUM_SUPPORT_IPV6_TCPandETHERNET_CHECKSUM_SUPPORT_IPV6_UDPfor the combinations they offload. The old bits map per IP version:ETHERNET_CHECKSUM_SUPPORT_IPV4_HEADERtogether withETHERNET_CHECKSUM_SUPPORT_TCPorETHERNET_CHECKSUM_SUPPORT_UDPbecomesETHERNET_CHECKSUM_SUPPORT_IPV4_TCPorETHERNET_CHECKSUM_SUPPORT_IPV4_UDP.ETHERNET_CHECKSUM_SUPPORT_IPV6_HEADERtogether withETHERNET_CHECKSUM_SUPPORT_TCPorETHERNET_CHECKSUM_SUPPORT_UDPbecomesETHERNET_CHECKSUM_SUPPORT_IPV6_TCPorETHERNET_CHECKSUM_SUPPORT_IPV6_UDP.
The HTTP server no longer writes into the application’s resource details, so static, static fs and websocket resource details can be declared
constand placed in flash. Dynamic resource details stay writable, the server keeps the client that holds the resource in them. Thepath_lenmember ofhttp_resource_detailis deprecated and no longer updated. A dynamic GET, DELETE or OPTIONS handler that used it to find the request parameters gets them, from the?on, in thedataof thehttp_request_ctxpassed to its first callback.
OpenThread
The
OPENTHREAD_THREAD_VERSION_1_4Kconfig option is now enabled by default.Applications that require an older OpenThread version must explicitly select the desired version in their project Kconfig configuration.
WiFi
wifi_connect_req_paramsgained PMKSA import fields, andNET_REQUEST_WIFI_CONNECTnow requires a payload of exactlysizeof(struct wifi_connect_req_params). Zero-initialize the structure and leavepmksa_entriesasNULLandpmksa_entry_countas zero when not importing entries. A mismatched pointer/count pair returns-EINVAL; a nonzero count withCONFIG_WIFI_MGMT_PMKSA_IMPORTdisabled returns-ENOTSUP. (GitHub #115470)
Other subsystems
Shell
Calling a shell command with an unknown subcommand, such as
kernel foo, now returns-ENOEXECinstead ofSHELL_CMD_HELP_PRINTED(1). The help is still printed. Update code that checks the return value ofshell_execute_cmd()for this case.
Task Watchdog
If
task_wdt_add()fails to set up a hardware watchdog fallback, it now returns the error without leaving a channel allocated. Applications must check the returned errors and avoid requesting pause options their backend does not support.
Tools
Deprecate the
--esp-baud-rateargument on the esp32 runner, the-b/--baudrateargument on the bflb_mcu_tool runner, the-bargument on the bflb_flash_command runner and the--baudrateargument on the amebaflash runner. They are replaced with a generic--baud-rateargument.The stm32flash runner now defaults to 115200 baud instead of 57600 when no
--baud-rateis given. Pass--baud-rate=57600to keep the previous speed.The deprecated
--toolchainsand--no-toolchainsoptions ofwest sdk installhave been removed. Use--gnu-toolchainsand--no-gnu-toolchainsinstead.
IPC
CONFIG_IPC_SERVICE_BACKEND_RPMSG_NUM_ENDPOINTS_PER_INSTANCEhas been renamed toCONFIG_IPC_SERVICE_RPMSG_NUM_ENDPOINTS_PER_INSTANCE, as it configures the RPMsg support library. Update application and board configuration files to use the new name. The old option remains as a deprecated alias: its value is used unless the new option is explicitly set. (GitHub #101918)
Modules
Espressif
hal_espressifoptions moved fromsoc/espressifto modules/Kconfig.esp32:The per-SoC
CONFIG_MAC_BB_PDoptions are merged intoCONFIG_ESP32_MAC_BB_PD.The per-SoC universal MAC address choices, such as
CONFIG_ESP32C6_UNIVERSAL_MAC_ADDRESSES_TWO, are replaced by one choice with theCONFIG_ESP32_MAC_ADDRESSES_ONE,CONFIG_ESP32_MAC_ADDRESSES_TWOandCONFIG_ESP32_MAC_ADDRESSES_FOURoptions. The per-SoC integer options, such asCONFIG_ESP32C6_UNIVERSAL_MAC_ADDRESSES, and the hiddenCONFIG_ESP_MAC_ADDR_UNIVERSE_*andCONFIG_ESP_MAC_UNIVERSAL_MAC_ADDRESSES_*options are removed.
The old names that can be set by users are kept as deprecated options and will be removed in a future release.
The zephyr-lang-rust module providing Rust language support is no longer an optional module of the Zephyr manifest. It is now an external module; add it to the application manifest to keep using Rust. The
manifest.project-filter +zephyr-lang-rustwest setting no longer has an effect.
Architectures
On ARM Cortex-A/R with
CONFIG_USE_SWITCH, ISRs run in SYS mode instead of IRQ mode, and nested interrupts and the handlers they call use the per-CPU interrupt stack rather than the interrupted thread’s stack. Boards and applications that sizedCONFIG_ISR_STACK_SIZEfor the outermost ISR frame alone may need a larger interrupt stack, and code or debuggers that inspect the processor mode inside an ISR see SYS mode. (GitHub #123041)The portable CPU performance monitoring API has been renamed to disambiguate it from power-management units (the
pmuname is used by both). The headerinclude/zephyr/arch/pmu.his nowinclude/zephyr/arch/perf_counter.h, and itspmu_*functions and types gained aperf_counter_prefix. (GitHub #125939)On Xtensa, the HiFi register sharing code was generalized to any coprocessor, and the fields it adds to the architecture structures were renamed:
hifi_regsinstruct _thread_archis nowcp_regs, andhifi_ownerandsave_hifiinstruct _cpu_archare nowcp_ownerandsave_cp. Code accessing these fields must use the new names. TheCONFIG_XTENSA_HIFI_SHARINGoptions are unchanged. (GitHub #120790)