Add support for NXP JPEG decoder hardware module. This driver provides
memory-to-memory (M2M) video transformation capability to decode JPEG
compressed images into raw pixel formats.
Key features:
- Supports JPEG input format (VIDEO_PIX_FMT_JPEG)
- Resolution support: 64x64 to 8192x8192 pixels (16-pixel step)
- Automatic format detection from JPEG header parsing
- No color space conversion (output format matches JPEG encoding)
- Interrupt-driven operation with input/output buffer queues
- Configurable output buffer pitch for flexible memory layouts
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
MEMC_MCUX_XSPI was gated on DT_HAS_NXP_XSPI_PSRAM_ENABLED, but
FLASH_MCUX_XSPI selects it based only on DT_HAS_NXP_XSPI_NOR_ENABLED,
causing a Kconfig error on boards with XSPI NOR flash but no XSPI
PSRAM device. Move it to its own DT_HAS_NXP_XSPI_ENABLED block,
matching the existing MEMC_MCUX_FLEXSPI pattern.
Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
The STM32C5 integrates the same DesignWare Ethernet MAC QoS IP core as
the H5 and H7 series, in version 5.40 with a 32-bit AHB master and MII
and RMII support, so the glue only has to select the PHY interface for
it.
The HAL based driver stays the default, unless PTP is enabled.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The MDIO driver derives the MDC divider from the MAC CSR clock, which
the glue took as the first entry of the devicetree clocks array. That
holds for every STM32 series supported so far, but ties the driver to
the order of a property whose entries are named.
Look the gate up by its "stm-eth" name instead, the way the PTP clock
index already does. Every in-tree ethernet node names it, so a series
that does not gets a build error rather than a silently wrong rate.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Add the PM_STATE_SUSPEND_TO_RAM case to pm_state_set, entering via
arch_pm_s2ram_suspend with rp2350_s2ram_off as the callback: power down
the domains via POWMAN (keeping XIP cache and SRAM bank0/1 on) and
execute WFI. On resume, pm_state_exit_post_ops clears the debug-power
override set right before the power-down (it must be cleared on the
resume path, since a real wake resumes into arch_pm_s2ram_suspend()'s
caller rather than returning from rp2350_s2ram_off(), so clearing it
there would never run) and reconfigures the clocks.
SysTick is powered down along with the rest of the switched core, so
hook the RP2350 up to the generic system-timer low-power companion
interface (CONFIG_SYSTEM_TIMER_LPM_COMPANION_HOOKS) instead of
reimplementing timer restart locally: z_sys_clock_lpm_enter() arms a
POWMAN alarm for the requested timeout and z_sys_clock_lpm_exit()
reports the elapsed time from the POWMAN timer, both added to
rp2350_powman.c. Selecting CONFIG_SYSTEM_TIMER_RESET_BY_LPM makes the
cortex_m_systick driver reprogram SysTick from scratch on exit, so no
SoC-specific restart hook is needed.
Clock restoration is delegated to clock_control_rpi_pico_reconfigure(),
factored out of the rpi_pico clock_control driver's init function rather
than reimplementing a fixed XOSC/PLL_SYS/clk_ref/sys/peri sequence in
power.c: this restores every devicetree-declared clock at the board's
actual configured rates, not just a hardcoded subset, and keeps a single
source of truth between cold boot and S2RAM resume.
Signed-off-by: Gabriel Germano <gabriel.lucasgermano@gmail.com>
Add DMAC support to SCI B I2C driver for RA MCU:
- Add CONFIG_I2C_RENESAS_RA_SCI_B_DMAC configuration option
- Add rx-dtc, tx-dtc device tree properties
- Support both DTC/DMAC transfer with shared transfer infrastructure
- Add tx-dtc and rx-dtc properties to device tree binding
- Add DMAC configurations, interrupt and callback declarations
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
- Add CONFIG_SPI_RENESAS_RA_SCI_B_DMAC configuration option
- Add device tree properties for DTC (rx-dtc, tx-dtc)
- Support both DTC/DMAC transfer with shared transfer infrastructure
- Add tx-dtc and rx-dtc properties to device tree binding
- Add DMAC configurations, interrupt and callback declarations
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
- Add CONFIG_SPI_B_DMAC configuration option
- Support both DTC/DMAC transfer with shared transfer infrastructure
- Add DMAC configurations, interrupt and callback declarations
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add DMA Controller (DMAC) support for asynchronous UART TX/RX on
Renesas RA SCI-B.
Key changes:
- Add UART_RA8_SCI_B_UART_DMAC and UART_RA8_SCI_B_UART_DTC Kconfig
option to gate DTC/DMA support
- Add tx-dtc and rx-dtc DT binding properties for DTC transfer
- Support both DTC/DMAC transfer with shared transfer infrastructure
- Add DMAC transfer configuration, interrupt and callback declarations
Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Update comments, log messages, Kconfig prose, and driver-local
identifiers to use the controller/target terminology ratified by
coding guideline A.2 and already used by the Zephyr I2C API.
Identifiers mirroring the Broadcom datasheet
(e.g. S_CMD_STATUS_MASTER_ABORT, MASTER_WR_STATUS) are kept unchanged.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:fable-5
The eSPI virtual UART channel cannot receive host traffic once the fast
clock (FMCLK) to the eSPI_SIF module stops, so the chip drops incoming
data as soon as it enters Sleep or Deep Sleep. Setting the
ESPI_FMCLK_ENSLP field of ENSLP_CTL keeps that clock running in those
states.
Add the fast-clk-to-espi-sleep-support property to describe the series
that implement the field, set it on npcx4, and gate the register write
on the new CLOCK_CONTROL_NPCX_ESPI_FMCLK_IN_SLEEP option, which is only
selectable when the property is present and both ESPI_PERIPHERAL_UART
and PM are enabled.
Assisted-by: Copilot:claude-opus-5
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Log when the Tx FIFO cannot accept a byte, and when the controller
is registered as a master.
Signed-off-by: Syed Muhammad Murtaza <syedx.muhammad.murtaza@altera.com>
Do not store a new speed configuration until the requested rate is
validated, so a failed configure leaves the previous settings in place.
Signed-off-by: Syed Muhammad Murtaza <syedx.muhammad.murtaza@altera.com>
Return an error from the non-blocking read helper instead of a
truncated byte, and only pass valid FIFO data to the target callback.
Signed-off-by: Syed Muhammad Murtaza <syedx.muhammad.murtaza@altera.com>
Allow the MCUX KPP driver to work with clock providers that do not
expose a named clock cell, such as fixed-clock.
Existing users with a named clock cell keep the previous behavior.
Fixed-clock providers use a zero clock subsystem.
Signed-off-by: Samuel Slesar <samuel.slesar@nxp.com>
Implement the reg_domain management op so the country code can be
read and set through the Wi-Fi management API and the wifi
reg_domain shell command.
Zephyr names the worldwide domain "00" while the Espressif
regulatory table uses "01", so the code is translated in both
directions. The third octet of the country string selects the
operating environment and is set to ' ' to accept a plain alpha-2
code. A forced domain is mapped to disabling 802.11d so the
configured country is not overridden by the surrounding APs.
On get, the 2.4 GHz channels are reported first and the 5 GHz ones
after them, as the other dual-band drivers do. The 5 GHz set comes
from the country channel mask, where an all-zero mask means every
channel the regulatory rules allow. Channel 14 is flagged passive
only and the 5 GHz channels 52 to 144 are flagged as DFS. The list
is clamped to MAX_REG_CHAN_NUM because callers report the filled
count back in num_channels rather than passing the buffer capacity
in it, and a NULL chan_info returns the channel count alone.
Assisted-by: Claude:opus-5
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Even if the driver does not support the frame timeout configuration,
if the HW peripheral does, we need to set it to disabled.
Otherwise the value is just random garbage which corrupts the
whole uart configuration as it will be OR'ed with the rest.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
The STM32N6 integrates the DesignWare Ethernet MAC QoS IP core in
version 5.20, with MII, RMII and RGMII support and a 64-bit AXI4 master
instead of the 32-bit AHB master of the other series.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The bus mode register was left at its reset value, so the AHB master
issued undefined length bursts and did not align them. Utilize fixed
length bursts with address aligned beats instead.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The bus mode register was left at its reset value, so the AHB master
issued undefined length bursts and did not align them. Utilize fixed
length bursts with address aligned beats instead.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The bus mode register was left at its reset value, so the AHB master
issued undefined length bursts and did not align them. Utilize fixed
length bursts with address aligned beats instead.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The DMA bus mode register was only ever written for the software reset
and the descriptor size, which left the programmable burst length at
its reset value of one beat, so the DMA moved a single beat per bus
transaction. Set it to 32 beats, which is what the vendor drivers of
every platform this core supports use.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
The controller IBI handler executes in interrupt context but uses
ibi_lock_sem with K_FOREVER. Semaphore takes from an ISR may only use
K_NO_WAIT.
The semaphore is only used by the IBI interrupt handler and does not
serialize against another execution context. Remove it instead of
introducing a non-blocking acquisition failure path.
Signed-off-by: Duc Viet Le <levietduc0712@gmail.com>
The uart_driver_api irq_update member is void (*)(const struct device *),
but numicro_uart_irq_update() still returns int, so building the driver
fails with an incompatible pointer type error. Make it return void,
which changes no behavior: the body is a no-op and uart_irq_update()
discards the value.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5
Implement a generic emulated sensor that echoes back configured sensor
readings. This simplifies testing of higher level libraries and drivers
that depend upon querying a device exposing the sensor API.
Signed-off-by: Jordan Yates <jordan@embeint.com>
The slim ring buffer API is now header-only and always available and the
tree has already migrated from the _claim/_finish API, so the RING_BUFFER
symbol no longer gates any code.
Remove the now-redundant "select RING_BUFFER" and CONFIG_RING_BUFFER=y
entries across drivers, subsystems, samples and tests.
Signed-off-by: Måns Ansgariusson <mansgariusson@gmail.com>
The ring buffer API is now unconditionally available, so the mock serial
driver no longer needs to compile its written/read_queue buffers and the
poll/queue/peek helpers conditionally.
Remove the #ifdef CONFIG_RING_BUFFER blocks and the -ENOTSUP fallback in
serial_vnd_poll_in().
Signed-off-by: Måns Ansgariusson <mansgariusson@gmail.com>
Made some items runtime configurable such as the SSID and PSK
In addition, the channel and mesh id can be configured during runtime
Removed Kconfigs relating to these items
Signed-off-by: Humphrey Chiramba <humphrey@plentify.co.za>
start_output, stop_output and apply_properties are mandatory in the
audio codec interface and this driver does not define them, so calling
one of them dereferences a null pointer.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
i3c_detach_i3c_device() documents -EALREADY for a device that is not
attached, but this driver's detach callback still returned -EINVAL.
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
Assisted-by: Claude:claude-opus-5
i3c_detach_i3c_device can return -EALREADY if a device is
already detached. Update i3c_bus_rstdaa_all to handle this
return type as a non-error.
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
Assisted-by: Claude:claude-opus-5
Enclose the GPIO_INT_MODE_EDGE case logic within a block to fix a
compilation failure caused by case label being directly followed
by a variable declaration.
Signed-off-by: Vivian Pais <v-pais@ti.com>
Store the modem context using its actual type so future accesses through
the registration data remain type-correct. Remove the incompatible cast.
Fixes#113551
Assisted-by: Codex:gpt-5
Signed-off-by: Jaeyeong Lee <lee@jaeyeong.cc>
Fix mixup of QUEUE_STATUS_IBI_BUF_BLR (IBI data buffer level)
with QUEUE_STATUS_IBI_STATUS_CNT (number of queued IBI status entries).
Using BUF_BLR was causing under-reading while data was pending, and
over-reads while it wasn't.
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
Assisted-by: Claude:claude-opus-5
INTR_SLAVE_MASK enabled INTR_IBI_UPDATED_STAT and
INTR_DYN_ADDR_ASSGN_STAT unconditionally, but the INTR_STATUS
write in i3c_dw_irq was guarded by CONFIG_I3C_USE_IBI=y. This was
causing my target to get stuck re-entering ISR and hang.
Resolving by removing INTR_IBI_UPDATED_STAT from the target
interrupt mask when IBI=n and moving the dynamic address handling
out of the IBI=y guard.
Signed-off-by: Zayne Stites <Zayne.Stites@infineon.com>
Assisted-by: Claude:claude-opus-5
gnss_nmea_generic_suspend() is only called from
gnss_nmea_generic_pm_action(), which is compiled out unless
CONFIG_PM_DEVICE is set. Building with CONFIG_PM_DEVICE=n leaves it
unused and fails with -Werror=unused-function. Guard its definition
with the same #if CONFIG_PM_DEVICE used for the caller.
Found via a twister CI run building drivers.gnss tests for boards
without device PM enabled. Not built or run on hardware.
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
RCTL.BAM (bit 15) is required for the 8254x MAC to accept Ethernet
broadcast frames. Multicast promiscuous mode (RCTL.MPE) does not cover
broadcasts, so ARP, DHCP and other broadcast traffic is dropped in
hardware.
Set RCTL_BAM when programming RCTL at interface bring-up. With this
change, QEMU e1000 in TAP mode can complete ARP/DHCP and pass traffic.
Signed-off-by: Yuan Bian <bianyuan@kylinos.cn>
When CONFIG_NXP_WIFI_RECOVERY is enabled, wlcmgr_mon_task handles
WIFI_RECOVERY_REQ by calling wlan_reset(CLI_RESET_WIFI) directly on
its stack. This performs a full WiFi disable+re-enable sequence whose
cumulative stack consumption (~4200 bytes) exceeds the default 3072
byte limit, causing a stack overflow:
ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
Current thread: wlcmgr_mon_task
Increase the default stack size to 5120 bytes when NXP_WIFI_RECOVERY
is selected. Verified with kernel thread stacks: usage 4200/5120
(82%). Keep 3072 bytes for non-recovery builds to avoid wasting RAM.
Signed-off-by: Han Zhao <han.zhao@nxp.com>
ads1x4s0x_channel_setup() applied ADS1X4S0X_REGISTER_INPMUX_SET_DEFAULTS
to `gain` instead of `input_mux`, so the INPMUX default was written to
the PGA accumulator (immediately overwritten by PGA_SET_DEFAULTS) rather
than the INPMUX byte. The behavior is unchanged because input_mux has
both MUX nibbles written unconditionally before use, but the code did
not do what it reads as doing. Fix the target variable.
Signed-off-by: Nate Murphy <nmurphy.mine@gmail.com>
The driver's endpoint configuration must be per instance.
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
The NXP Wi-Fi driver should use the Zephyr Kconfig symbol
CONFIG_NXP_WIFI_5GHz_SUPPORT instead of the internal wifi_nxp
symbol CONFIG_5GHz_SUPPORT which is only available through
an indirect macro alias.
Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
When a passive scan is requested without an explicit channel
list (full-band scan), the per-channel scan_type assignment
loop is skipped because band_chan[0].channel is zero. This
leaves chan_list[].scan_type at MLAN_SCAN_TYPE_UNCHANGED (0),
so the requested scan type is not propagated to the lower
layer for non-DFS channels.
Fix this by setting chan_list[0].scan_type after the channel
loop when no explicit channels are provided.
Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
The init event is a list of {tag, length, value} triplets, and which tags
the slave sends varies between firmware versions, so reading them at fixed
offsets logs the wrong values.
Look them up by tag, and check the event length against the frame length
before walking.
Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
The slave boots in WIFI_MODE_NULL and leaves the mode to the host, but
the driver never selected one.
Set the mode to APSTA so that MAC address queries also succeed.
Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
Replace direct NVIC pending-state calls with k_irq_set_pending()/
k_irq_is_pending()/k_irq_clear_pending(), dropping the dependency on
cmsis_core.h where nothing else needed it.
The NVIC_EnableIRQ()/NVIC_DisableIRQ() pair on the error interrupt
becomes irq_enable()/irq_disable().
Assisted-by: Claude:claude-opus-5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Replace direct NVIC pending-state calls with k_irq_set_pending()/
k_irq_is_pending()/k_irq_clear_pending(), dropping the dependency on
cmsis_core.h where nothing else needed it.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>