This offloaded wifi driver is deprecated and will be removed
in a future release. It is currently scheduled to be removed in
Zephyr 4.6. The reason for deprecation is that there is no
maintainer for this driver.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
NVS calculates required_space for an entry by summing data size, ATE size
and CRC size. However, the CRC size is assumed to be 4 bytes and the
calculation does not account for the flash write block size.
On flashes with write_block_size greater than 4 bytes (e.g. 8 or 16),
the data + CRC payload must be padded to the write block size. The
current logic underestimates the required space, which may cause writes
to cross sector boundaries and corrupt adjacent entries or ATEs.
Fix this by aligning the data + CRC payload size to the flash write
block size before adding the ATE size to required_space.
This makes NVS space accounting consistent with flash write granularity
and prevents sector overflow on non-4-byte write block devices.
Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
Fix draw_char_htmono() to compute byte offsets with row-based
HTILED addressing and keep g_y controlled by the outer loop.
This avoids row-skips and broken rendering near clipping boundaries.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Fix cfb_framebuffer_finalize() to invert the software framebuffer
only when pixel format polarity and cfb inversion state differ.
This restores the expected behavior for MONO01/MONO10 finalize output.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Handle both VTILED and HTILED framebuffer layouts in cfb_invert_area().
Also update the basic cfb test helper to read pixels correctly for
HTILED buffers.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Since there is no way to run this test with `harness: display`
configuration, we will change it so that execution can be controlled
by specifying a fixture.
This method has already been proven with
`tests/drivers/display/display_read_write`.
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Previously, the PHY driver always invoked the link state callback on
every check, even when the link state had not changed, and did not
properly synchronize access to the link state (issue #103826). This could
lead to spurious notifications and potential race conditions.
This patch:
- Calls the registered callback only when the link state actually changes.
- Logs link-up and link-down events correctly.
- Introduces a semaphore to protect the PHY link state.
- Updates link state in phy_mc_t1s_update_link_state() with proper
synchronization.
This ensures that both link state updates and callbacks reflect actual
changes, preventing unnecessary notifications and improving driver
correctness.
Fixes: #103826
Signed-off-by: Parthiban Veerasooran <parthiban.veerasooran@microchip.com>
Use the DEVICE_API_GET() helper macro when extracting the bt_hci API from a
device pointer. This also enforces that the given device pointer actually
implements the API in question.
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Add the missing `dtc` property to all Renesas RX SCI nodes. This property
provides a phandle reference to the DTC (Data Transfer Controller), which
allows the SCI driver to make use of DTC-assisted data transfers.
Signed-off-by: Y Huynh <y.huynh.xw@renesas.com>
In ataes132a_aes_ecb_block(), error paths could return after
k_sem_take() without releasing device_sem, leading to a potential
deadlock on subsequent calls.
Ensure k_sem_give() is called on all early-return paths after the
semaphore is taken.
This fixes a potential deadlock when invalid buffer sizes are
detected after acquiring the device semaphore.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Use int return type for command results to avoid truncating negative
errno values and ensure proper error propagation.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
The SPI_CTRLR0 register is intended for enhanced SPI modes, however some
implementations continue to process the INST_L and ADDR_L fields in
standard mode. On those platforms the controller to sends its own
instruction/address phase in addition to what the driver sends. This
results in a malformed SPI transaction with extra bytes on the wire.
Explicitly mask these fields in standard mode and only set them otherwise
in enhanced mode.
Signed-off-by: Lee Trager <lee@trager.us>
Update ll_data_path_tx_pdu_release() to have return -ENOTSUP
so that the node_tx is released using the fallback method to
use the MFIFO from LLL to ULL_HIGH context.
Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Update the zhiantec,zfm-x0 binding description to include support for
Hi-Link HLK series capacitive fingerprint sensors (HLK-ZW3021,
HLK-ZW0623, HLK-ZW0642), which use the compatible ZFM protocol.
Signed-off-by: Siratul Islam <email@sirat.me>
`k_yield()` can't be called when interrupt is disabled, update
`k_can_yield()` to reflect that.
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
There is no need to include the k_mutex priority inheritance code
when CONFIG_PRIORITY_CEILING is set to a priority level that is at
or below that of the idle thread.
Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
Add board overlay for Infineon CY8CPROTO-041TP to support the
BME280 sensor sample. The configuration enables SPI1 and connects
the BME280 sensor with Chip Select on P4.0.
Signed-off-by: Dharun krithik k <dharunkrithik@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Enable SCB1 as SPI master and configure the corresponding peripheral
clock resource.
Signed-off-by: Dharun krithik k <dharunkrithik@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Add support for the Infineon PSoC 4 family to the SPI driver,
Kconfig options, and polling-based transfer completion for slave
mode as PSoC 4 slave hardware does not control transaction start.
Signed-off-by: Dharun krithik k <dharunkrithik@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Implement ifx_get_hw_block_num to retrieve the hardware block number
for a given SCB base address. This replaces the dependency on the
UART-specific lookup function ifx_cat1_uart_get_hw_block_num, making
the SPI driver more self-contained and ensuring correct resource
identification for SCB blocks.
Signed-off-by: Dharun krithik k <dharunkrithik@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Rename Kconfig options and internal macros to remove "CAT1" specificity,
making the driver more generic for the Infineon family. This is a
non-functional change to prepare for PSoC 4 support.
Signed-off-by: Dharun krithik k <dharunkrithik@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Add pin control definitions for SPI master signals (CLK, MISO, MOSI,
and SELECT lines) for SCB0 and SCB1 on the PSoC4100TP 64-TQFP package.
Signed-off-by: Dharun krithik k <dharunkrithik@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
- Adds the g1 driver for eic for microchip devices
- Uses the APIs of the eic driver from gpio driver
Signed-off-by: Muhammed Asif <muhammed.asif@microchip.com>
fixes a bunch of errors (eg ADL1234 instead of AD1234) and inconsistencies
in the naming of the Analog Devices ADC bindings.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
When handling an ISR (which does not have a context from which to
restore its own value of LCOUNT), we must clear LCOUNT to prevents
incorrect zero-overhead execution if calling a function such as
memmove() which could be implemented using zero-overhead loop.
A function such as memmove() implemented using zero-overhead loop
assumes LCOUNT to have properly been setup before being called; but
an ISR calling memmove() in assembly, will likely not know that.
Signed-off-by: William Tambe <williamt@cadence.com>
CMakeStyle.txt is sometimes generated when running
checkpatch.pl, and should never be pushed to the repo.
Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Obsolete the bespoke --reset-mode parameter in favor of the new standard
--reset-type parameter.
Signed-off-by: Pete Johanson <pete.johanson@analog.com>
Add support for setting the reset type for the jlink runner, to support
targets that need a non-default reset type for proper `reset halt`, etc.
Signed-off-by: Pete Johanson <pete.johanson@analog.com>
For some devices, the default JLink reset type may not work properly, so
allow overriding the reset type by passing, e.g. --reset-type=12 when
flashing.
Add new field to RunnerCaps to allow runners to specify either a fixed
list of possible types, or True to expose the standard --reset-type
parameter for that runner.
Signed-off-by: Pete Johanson <pete.johanson@analog.com>
- exit-latency-us is SOC wake time. Updated based on measurements
- exit-latency-us increased for PM3 on frdm_rw612 to match
measurements on that board.
- min-residency-us depends on use-case, moved to the board DTS, based
on measurements
Signed-off-by: Derek Snell <derek.snell@nxp.com>