Add support for JPEG and PNG compressed formats to the video software
generator driver. This enables testing of compressed video formats
without requiring actual camera hardware.
The compressed frame buffers are included at compile time via
generated header files, with configurable file names to support
custom test patterns.
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
Refactor BG9x driver to use DLC1 setup script with correct URC
configuration (AT+QCFG="cmux/urcport",1) and drop the periodic script.
The dial script is now only a ATD*99***1# so when PPP dialing is
retried, none of the URC setup scripts are retried.
Also, add the missing baud rate change script.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
Refactor "nordic,nrf91-slm" to configure URC and PPP in the
network setup script.
The dial script can be now left empty as AT#XPPP=1 automatically
starts the PPP on the secondary DLC.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
* Add separate state RUN_NETWORK_SCRIPT before running the PPP dial script.
* Allow defining modem with separate network setup script.
These changes allow modem to be defined with a separate script
that runs on DLC1 channel and configures URC messages and joins the
network.
The PPP dial command can then be refactored to be only a single ATD*99#
or AT+CGDATA which runs on DLC2.
URC channel is not switched, so it can be configured to be DLC1
if given modem has a command for it.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
Replace the `no-disconnect` property with enum `zephyr,suspend-action`
which aims to be more flexible. The enumeration currently has three
values: two replicate the old behavior when `no-disconnect` was absent
and present (respectively `disconnect-with-pupd` and `none`) and the
third is introduced to tackle the issue below.
The core issue is that the current implementation of the input_gpio_keys
driver will forward GPIO_PULL_DOWN/GPIO_PULL_UP flags from Devicetree to
the GPIO driver when disabling the pin, which is not really sensible...
...but works anyways: most drivers seem to ignore these flags if pin is
configured as GPIO_DISCONNECTED! The correct interpretation per GPIO API
seems to be `pin in Hi-Z/"floating" state with PD/PU resistor enabled`
which is not supported by some hardware; compliant drivers should return
-ENOTSUP which would bubble up and prevent the input_gpio_keys device
from suspending. The new enumeration's third value, `full-disconnect`,
is designed for such controllers (although really, it should be used in
most if not all cases): when selected, the Devicetree PD/PU flags are
explicitly masked out when calling gpio_pin_configure(GPIO_DISCONNECTED)
which should then succeed on more hardware than currently. One effect is
that the GPIO pin should enter a Hi-Z/"floating" state without PD/PU but
this ought to be fine, as the input_gpio_keys driver does not read the
state of the GPIO line state while suspended (and reconfigures pin as
GPIO_INPUT during resume, which enables the PD/PU again if any).
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Reject malformed nrf_wifi_umac_event_power_save_info payloads before
copying TWT entries into struct wifi_ps_config. The handler previously
trusted num_twt_flows and indexed twt_flow_info[] without checking
WIFI_MAX_TWT_FLOWS or event_len, which could overflow the fixed Zephyr
twt_flows buffer and read past the event buffer.
Fix issue #108848.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Cursor:Auto
Previously announced_cycles was set directly to the current counter
value, which includes sub-tick remainder cycles from ISR latency.
Over time these remainders accumulate, causing the announced tick
boundary to drift away from the true tick grid.
Advance announced_cycles in whole-tick increments instead, so that
the sub-tick fraction is naturally absorbed by the next interval
rather than compounding across interrupts.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Enable use of the WM8904 driver on platforms that do not provide
direct access to the MCLK signal. Introduce fs-ratio, which is used
to derive the MCLK value from the selected frame sync (FS) rate.
Signed-off-by: Mario Paja <mariopaja@hotmail.com>
Add `i3c config_get controller <bus>` and `i3c config_get target <bus>`
shell commands to print all fields of i3c_config_controller and
i3c_config_target respectively.
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
Host can cancel current Control transfer for timeout and send new
Setup packet for new one. In this situation, driver can get out
of sync and even fail all the following Control transfers, probably
getting stuck in NAK'ing.
Because the HSUSBD hardware doesn't support disarm for Control Data
already armed for previous Control transfer, this update tries to
fix the issue via monitor of Data IN token. This approach has the
points:
* Wait for Data IN token received to arm Data IN
This lowers the chance of mis-arm at the cost of performance.
It also makes mis-arm error not propagate further in one or two
broken Control transfers.
* Cancel current Control transfer on new Setup packet received
Fixes: #104922
Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
For HSUSBD, unlike Control Data OUT which is automatically armed,
we can safely flush FIFO on new Setup packet whose direction is IN
because Data IN for the new Control transfer is not yet armed.
It is manually armed after processing the new Setup packet.
Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
For USBD, move Setup interrupt handling to the back of Data/Status
so that the order Data/Status->Setup can be kept when both flags
are asserted at the same time for delayed message handling. Both
flags asserted for the order Setup->Data/Status is an error
condition because the Data/Status transfer won't be armed until
the Setup packet is processed.
Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
The sd-gpios property is optional, and GPIO_DT_SPEC_INST_GET_OR()
leaves sd_gpio.port NULL when it is absent.
The driver checked sd_gpio.port->name in the init and PM turn-off
paths, which dereferenced the missing GPIO spec before it could skip
shutdown pin setup. Check the port pointer directly instead.
Assisted-by: Codex CLI:GPT-5.5 High Reasoning
Signed-off-by: Daniel Lindestad <lindestad@proton.me>
The data struct for FT6146 driver has no reason to contain both a timer
and a GPIO callback at the same time since polling vs. interrupt mode
are mutually exclusive at compile time.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Codex:gpt-5.5
Save a tiny bit of memory by storing input codes as 16-bit values since
that's what the input subsystem expects.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Codex:gpt-5.5
Measurement of the internal Vddcore voltage differs only slightly from
the Vbat measurement. The main difference is that the Vddcore channel
is enabled differently in the ADC peripheral.
To avoid code duplication, the existing Vbat sensor driver is extended
to also handle the Vddcore measurement.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Add MEC175x SoC series support to the Microchip XEC ADC driver.
Refactor the driver to use DTS-encoded GIRQ and PCR properties
instead of series-specific ifdefs, enabling a unified driver
across MEC150x, MEC172x, and MEC175x.
Update mec_adc.h register definitions to support all three SoC
series with proper Kconfig guards for 16-channel ADC variants.
Signed-off-by: Srinivas Edireswarapu <srinivas.edireswarapu@microchip.com>
Add coordinator driver for RISC-V Advanced Interrupt Architecture (AIA)
that provides a unified API wrapping APLIC and IMSIC operations.
The coordinator simplifies application code by providing wrapper functions
for common AIA operations:
- IRQ enable/disable: Manages IMSIC EIID enable/disable
- Source configuration: Configures APLIC source trigger modes
- MSI routing: Routes APLIC sources to specific harts and EIIDs
- Source enable: Enables APLIC interrupt sources
- GENMSI injection: Software-triggered MSI via APLIC GENMSI
Note: In AIA-MSI mode, APLIC sources and IMSIC EIIDs are decoupled.
irq_enable() only enables the EIID in IMSIC; APLIC sources must be
configured separately via the source configuration APIs.
Signed-off-by: Afonso Oliveira <afonso.oliveira707@gmail.com>
Add RISC-V APLIC driver split into shared core and MSI-specific
modules following the GICv3/ITS pattern:
- intc_riscv_aplic_priv.h: private header with struct aplic_cfg,
register helpers, and aplic_msi_init() declaration
- intc_riscv_aplic.c: core driver with domain enable, source
configuration, device instantiation; calls aplic_msi_init()
when CONFIG_RISCV_APLIC_MSI is enabled
- intc_riscv_aplic_msi.c: MSI-specific code for APLIC target
routing, GENMSI injection, and MSI address geometry setup
This split allows direct delivery mode support to be added later
without touching MSI code.
Signed-off-by: Afonso Oliveira <afonso.oliveira707@gmail.com>
Add RISCV_APLIC base Kconfig (enabled by DT_HAS_RISCV_APLIC_ENABLED)
and RISCV_APLIC_MSI sub-config that is only available when every APLIC
node in the devicetree has an msi-parent property. This prevents
build failures when APLIC is used in direct delivery mode without an
IMSIC. Update CMakeLists.txt to build intc_riscv_aplic.c for the
base config and intc_riscv_aplic_msi.c for the MSI sub-config.
Signed-off-by: Afonso Oliveira <afonso.oliveira707@gmail.com>
Replace open-coded fragment loop with NET_PKT_FRAG_FOR_EACH() macro
in eth_dwc_xgmac_send().
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Replace open-coded fragment loop with NET_PKT_FRAG_FOR_EACH() macro
in eth_intel_igc_tx_data().
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Move SSDE enable after preload to prevent premature SSL interrupts
Fix DMA fallback to always have ISR variables available
Signed-off-by: Mohamed Azhar <mohamed.azhar@microchip.com>
Switch interface gating from carrier on/off to the dormant flag,
matching nrf_wifi/nxp/airoc/esp_at/esp_hosted. Carrier is set
once at init; dormant toggles per association on STA and per
AP_START/AP_STOP on AP. This preserves IP and IPv6 link-local
state across transient drops instead of tearing them down.
Allow AP TX in AP_STARTED and AP_DISCONNECTED (no clients yet,
or last client left) in addition to AP_CONNECTED, so broadcast
traffic is not rejected with -EIO.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The driver on init currently only updates control register bits that
differ from their reset values, implicitly assuming that all other
bits are still in their default state.
This assumption can break if the registers were previously modified,
e.g. 12-hour mode was selected, leading to invalid time readings
such as 32:57:12 from rtc_get_time().
Fix this by explicitly programming all control register fields
to the configuration expected by the driver, instead of relying
on the hardware reset state.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
atcwdt200 already supports the CONFIG_WDT_DISABLE_AT_BOOT feature.
However, HAS_WDT_DISABLE_AT_BOOT was not enabled in the driver config layer
at that time.
This PR fixes that issue.
Signed-off-by: Kevin Wang <kevinwang821020@google.com>
DLISTSTART is a 32-bit hardware register, while the indirect display
list pointer is represented as a pointer. Assigning the pointer directly
to the register triggers -Wint-conversion with newer GCC versions.
Cast through uintptr_t before converting to uint32_t to make the address
conversion explicit.
Signed-off-by: Zhaoming Li <lizhaoming634@gmail.com>
add reset controller support for the NXP ACMP driver
and use reset controller APIs if available.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
PatchRAM records store the HCI opcode as a little-endian value in the
firmware image. Read it with sys_get_le16() instead of casting the byte
pointer to uint16_t, which can fault on targets that do not allow
unaligned accesses.
Signed-off-by: Matthias Ringwald <matthias@ringwald.ch>
This algorithm is not actually supported by the driver; don't select the
Kconfig option saying the driver supports it.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Add configurable timeout(forever by default) for waiting on
data valid interrupt to prevent blocking forever if the
interrupt is unexpectedly disabled.
If k_sem_take() times out, disable adc interrupt and then
read adc value if the data is valid as fallback path.
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
Edge devices have multiple addresses for the external memory.
SAHB (0x60.., 0x70.. for ns and s access respectively) which
are uncached but programmable and CBUS (0x08.. and 0x18..
for ns and s access respectively) which are cached and improve
performance.
Additionally, cm33 can use both SAHB aliases and CBUS alises
but cm55 can only use SAHB aliases.
Therefore this commit redefines entirely the memory map to
use mapped partitions are offsets from the base region and
selecting the base region accordingly for
the three use cases. (cm33s, cm33ns - for eval board, cm55).
To this selected set USE_DT_CODE_PARTITION
to yes for all cores in defconfig.
Additionally cleaned up config BUILD_OUTPUT_ADJUST_LMA to be
more clear in its use.
Updated the custom linker script with the mapped partitions
updates that were added to the base linker ascript in arm.
Updated the metadata function to handle the addresses
gymnastics.
Signed-off-by: Laura Carlesso <laura.carlesso@infineon.com>
Fix missing last period when running samples/drivers/pwm/event. The last
period was incomplete because it is stopped immediately before the new
period became effective.
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
Use dt_compat_any_has_prop for CONFIG_UART_MCHP_DMA_DRIVEN to allow
mixed DMA/interrupt configurations. Added has_dma field and runtime
checks to select transfer mode per UART instance based on device tree
dmas property presence.
Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
Add a generic GPIO driver for a memory-mapped output latch register.
Include the driver implementation and devicetree binding.
Also add the required Kconfig and CMake integration.
Signed-off-by: Zhaoming Li <lizhaoming634@gmail.com>