The wifi_mgmt iface_status callback gained a struct net_if
pointer parameter, but esp_hosted_status was left with the old
signature, causing an incompatible pointer type error at driver
registration. Add the missing net_if parameter to match the
callback interface.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The power-on pulse re-powers a modem that returns to its default UART
rate, since AT+IPR is not persisted across a power cycle. When the host
UART was switched to CONFIG_MODEM_CELLULAR_NEW_BAUDRATE the two ends no
longer agree, so re-initialization runs at a mismatched rate and never
completes.
Revert the host UART to the original baudrate before pulsing the power
pin, mirroring the reset path (0ba20dd96c). Guarded by original_baudrate
so it is a no-op for modems that do not switch rate.
Signed-off-by: Paulo Santos <pauloxrms@gmail.com>
Register sleep retention for HP I2C ports when peripheral power-down
is enabled, and hold pm_policy_state locks during transfers, bus
recovery, and target mode.
Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
Adjust base_timestamp_ns backward from the trigger timestamp by
(N-1)*period so it reflects the time of the first FIFO sample,
matching the lsm6dsv16x reference implementation.
Fixes: #98720
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
(cherry picked from commit f73d9b122431cd7bcfeb24b67c170241a1a61d98)
Update to avoid holding the spinlock before the blocking k_sem_take()
calls. Acquiring the spinlock only for the short register-write
sequences, allowing the ISR to fire and give the semaphores during the
blocking waits.
The check of "Context switching while holding lock" is introduced by
commit 5183fc5693 ("kernel: assert no spinlock is held on swap when
!USE_SWITCH")
Signed-off-by: Tony Han <tony.han@microchip.com>
Fixes a bug in the protimer counter driver where the top callback
was not being called when the top value was reached.
Signed-off-by: David Boullie <David.Boullie@silabs.com>
Modify existing Silicon Labs EFR32 driver and defconfigs
in order to support Coordinated Sampled Listening.
Signed-off-by: David Boullie <David.Boullie@silabs.com>
Add steps to remove stale metadata from Enhanced ACK path,
along with correctly using key identifier context.
Signed-off-by: David Boullie <David.Boullie@silabs.com>
Use the `%zu` format specifier when printing `size_t` values instead of
`%u`. On 64-bit platforms, using an incorrect format specifier is
causing compiler warnings due to type mismatches.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Rename the existing full-speed uhc quirk to the speed specific
espressif,esp32-usb-otg-fs compatible, that was introduced
in #111508.
Signed-off-by: Roman Leonov <jam_roma@yahoo.com>
Pre-count FIFO frames for the requested channel and adjust
base_timestamp_ns backward from trigger time by (N-1)*period so it
reflects the time of the first sample, matching the lsm6dsv16x
reference implementation.
Fixes: #98720
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
(cherry picked from commit 750d08206d5ec13a7c171ede9cea00dcc8aab9f6)
Use LINKER_DT_NODE_REGION_NAME_TOKEN() when assigning the flash simulator
backing array section.
Using LINKER_DT_NODE_REGION_NAME() passes a quoted string into
Z_GENERIC_SECTION(), which produces a literal section named "FlashSim"
instead of FlashSim. The linker memory-region section matcher expects the
token form, so the array was not placed in the configured RAM region.
This is needed to be able to build with zephyr/llvm on some platforms.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
DEVICE_API already includes const, with another const,
clang warns us about the double specifier.
Remove it to avoid the warning.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
DEVICE_API already includes const, with another const,
clang warns us about the double specifier.
Remove it to avoid the warning.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Adds support for the TI TLA2528 I2C ADC with GPIOs.
The TLA2528 is a 12-bit 8-channel ADC, where each channel can also be
configured as a GPIO in- or output in push-pull or open-drain.
Signed-off-by: Oliver Schmidhauser <oliver.schmidhauser@leica-geosystems.com>
Allow hl78xx_gnss_set_search_timeout() to update the GNSS search
timeout while a search is already in progress.
When GNSS is searching, a new timeout value now reschedules the
active timeout work item. Setting the timeout to 0 disables the
active search timeout. Additional timer cleanup is performed when
leaving the search state and when GNSS stop events are received.
Signed-off-by: Zafer SEN <zafersn93@gmail.com>
Add esp32c5 and esp32p4 support to the esp32 mailbox driver. The HP and
LP cores signal each other through the PMU software interrupt, the same
mechanism used on the esp32c6, with the esp32p4 LP interrupt status bit
handled per its register layout.
The esp32p4 LP core uses a multi-vectored interrupt controller that
jumps directly to the handler, so tag the LP PMU handler with
LP_CORE_ISR_ATTR so it saves and restores registers and returns with
mret; on the single-vector esp32c5 and esp32c6 the attribute is empty.
Also shrink the esp32p4 LP ulp_ram region so it stops before the shared
ulp_shm block that holds the mailbox coordination data, matching the HP
view and preventing the loader from clobbering it.
Mark the esp32c5 and esp32p4 mailbox nodes okay to match the other socs.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
On USCI the shallow buffer is not SPI FIFO buffers RX words.
The pipelined pattern can't work. So revised spi_numaker_usci_txrx.
More, USCI SPI only supports 4–16 bit words, not accepts 24/32.
Signed-off-by: cyliang tw <cyliang@nuvoton.com>
The value 2 of "phy-connection-type" is for "gmii" and it is misused
for "rgmii".
Fix the value the driver and update "phy-connection-type" from "gmii"
to "rgmii" in the dts file for sama7g54-ek board.
Signed-off-by: Tony Han <tony.han@microchip.com>
Keep the XTAL powered during sleep when it is the RTC_FAST source by
enabling the RTC_FAST_USE_XTAL sleep sub-mode, and align P4 clock init
(rc_fast bias) with the reference. Add a deep_sleep sample overlay.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Fix relative include paths after moving standalone modem drivers into
per-driver subdirectories.
Update legacy HL7800, Quectel BG9x, ST87Mxx, u-blox SARA R4, and WNC
M14A2A sources to include shared modem helper headers from the new
directory depth.
Also clean up the ST87Mxx Kconfig select ordering after the move.
Signed-off-by: Zafer SEN <zafersn93@gmail.com>
Move standalone vendor modem drivers into per-driver subdirectories.
Relocate the legacy HL7800, Quectel BG9x, ST87Mxx, u-blox SARA R4, and
WNC M14A2A source and Kconfig files under dedicated directories. Rename
the SIMCOM Kconfig file to Kconfig.simcom for consistency with the other
driver directories.
Update the standalone modem CMake and Kconfig files to reference the new
paths.
This keeps the vendor_standalone directory organized and leaves the
expanded HL78XX driver in its own directory alongside the other modem
drivers.
Signed-off-by: Zafer SEN <zafersn93@gmail.com>
adxl362 hardcoded reading_count = 1 despite its decode loop being
capable of filling multiple readings[] entries up to max_count.
The memset and header initialization were also inside the loop body,
which zeroed previously decoded readings on each iteration. Split the
decode into separate SENSOR_CHAN_DIE_TEMP and accel loops, moving the
memset and header setup (base_timestamp_ns, shift) before each loop and
setting reading_count to the actual decoded sample count afterwards.
While here, fix two coupled bugs exposed once multiple readings are
reported:
- the temperature path memset used sizeof(struct sensor_three_axis_data)
on a struct sensor_q31_data buffer, zeroing past the end of the
smaller struct; use sizeof(struct sensor_q31_data) instead.
- sample_num was never incremented in the loop, so every reading was
given an identical timestamp_delta; increment it per decoded sample.
Assisted-by: Claude:claude-sonnet-4.6
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
adxl372 hardcoded reading_count = 1 despite its decode loop being
capable of filling multiple readings[] entries up to max_count.
Set reading_count to the actual decoded sample count after the loop
completes.
Assisted-by: Claude:claude-sonnet-4.6
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
adxl355 hardcoded reading_count = 1 despite its decode loop being
capable of filling multiple readings[] entries up to max_count.
Set reading_count to the actual decoded sample count after the loop
completes.
Assisted-by: Claude:claude-sonnet-4.6
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
adxl345 hardcoded reading_count = 1 despite its decode loop being
capable of filling multiple readings[] entries up to max_count.
Set reading_count to the actual decoded sample count after the loop
completes.
Assisted-by: Claude:claude-sonnet-4.6
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
Avoid silently reporting an invalid pressure value when pressure
compensation encounters a division-by-zero condition.
Use the existing return value 0 from bme280_compensate_press() to
detect a compensation failure in bme280_sample_fetch_helper(), Log an
error, and return -EIO instead of storing an invalid pressure reading.
This ensures callers to receive an appropriate error when pressure
compensation cannot be completed successfully.
Signed-off-by: Gobi M <gobi@aerlync.com>
Use legacy method to get the SOC flash node for the rv32m1 flash driver,
because users of this flash driver define multiple child nodes with the
soc-nv-flash compatible. This prevents use of the
SOC_NV_FLASH_CHILD_NODE helper macro, which relies on one compatible
with the child being present.
Signed-off-by: Daniel DeGrasse <daniel.degrasse@analog.com>
When the trng peripheral is not enabled, the read becomes an infinite loop
for gecko-sdk based SoCs.
I don't have a reliable way to reproduce this and thus don't know what the
root cause is. The only thing I found, is that while it's stuck in an
infinite loop, the clock is enabled in the CMU register, but the TRNG is
disabled in it's control register. So hopefully, this fixes the issue.
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
Add support for the counter capture API to the MCUX CTIMER driver.
The driver stores capture callbacks per channel, maps Zephyr edge
flags to CTIMER capture modes, enables capture interrupts, and reports
captured TC values from the CTIMER CR registers.
Capture is mutually exclusive with alarms on the same channel because
both features share the counter channel namespace. Add optional
pinctrl and INPUTMUX routing support so boards can route CTIMER capture
sources from devicetree without changing the public counter API.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Many drivers in tree use a similar pattern to find their child node with
the compatible "soc-nv-flash". Rather than continuing to duplicate this
logic, define a common handler that is instance based in the flash_priv
header file, and include this from each flash driver.
Assisted-by: Claude: claude-opus-4-6
Signed-off-by: Daniel DeGrasse <daniel.degrasse@analog.com>
Return the whole video_buffer structure instead of just the index.
This helps to make index transparent to application and also make the
buffer accessible from the application.
Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
In STA mode the interface was brought operational at association, before
the controlled port was authorized, so the IP stack transmitted data
during the 802.1X handshake window which the driver then dropped with
-EPERM.
Advertise WPA_DRIVER_FLAGS_CONTROL_PORT and implement the tx_control_port
op so EAPOL frames are handed to the driver directly instead of going
through the networking stack. With EAPOL off the data path, keep the
interface dormant from association until the controlled port is
authorized, withholding data TX during authorization while the handshake
still completes.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Assisted-by: Claude:claude-opus-4.8
Add three TDM DAI instances (tdm_dai0/1/2) and one unified
acp_tdm_dma DMA controller node to the ACP 7.X device tree.
Update dma-channels default to 6 (2 per instance x 3 TDM
instances) in Kconfig.acp_tdm.
Signed-off-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
Signed-off-by: Sneha Voona <sneha.voona@amd.com>
Extend the ACP TDM DMA driver for ACP 7.X:
- Include ACP 7.X chip headers (acp7x_fw_scratch_mem.h,
acp7x_chip_offsets.h, acp7x_chip_reg.h).
- Update ACP_TDM1_FIFO_SIZE from 512 to 768 bytes
- Add ACP_PDM_2_Enable check in acp_pdm_streams_stopped() for
ACP 7.X (2 PDM instances)
- Guard acp_sdw_all_streams_stopped() under CONFIG_SOC_ACP_7_0
since ACP 7.X has no SDW logic implemented.
- Add acp_get_sample_len_from_frame_fmt() helper for 7.X
- Propagate frame_fmt from acp_tdm_context into dma_start for
per-sample-length ITER/IRER configuration
- Default channel count changed from 8 to 6 (2 per TDM instance
x 3 instances for ACP 7.X)
Signed-off-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
Signed-off-by: Sneha Voona <sneha.voona@amd.com>
Extend the existing TDM DAI driver for ACP 7.X:
- Add tdm_dai.h header with shared struct definitions
(dai_amd_tdm_params, acp_tdm_dai_config) and include guard
- Include ACP 7.X chip headers via #elif for CONFIG_SOC_ACP_7_X
- Add sample_format field to dai_amd_tdm_params for per-format
clock configuration (16/24/32-bit slots)
- Configure tdm_lrclk_div_val/tdm_bclk_div_val per sample_format
under CONFIG_SOC_ACP_7_X
- Use acp_tdm_frmt union for TXFRMT/RXFRMT register access
Signed-off-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
Signed-off-by: Sneha Voona <sneha.voona@amd.com>
SSD1680 supports RAM ping-pong for display mode 2 through the display
option register. Enable F[6] when switching to the partial refresh
profile so partial updates can use the controller's buffer swap behavior.
Expose this as a "ram-ping-pong-mode2" devicetree property on the
SSD1680-specific binding.
Signed-off-by: Aleksandrs Sevastjanovs <sevalks@gmail.com>
Replace the CONFIG_SOC_MCXW70AC / CONFIG_SOC_MCXW716C Kconfig guards
that conditionalize SIRC hardware access with a new DT boolean
property 'sirc-supported' on the nxp,mcxw7x-clock binding.
MCXW70 and MCXW71 carry the SIRC hardware block; MCXW72 (MCXW727C)
does not - its SIRCCSR register block was removed from the SDK
headers, making kCLOCK_ScgSircClk, CLOCK_UnlockSircControlStatusReg,
scg_sirc_config_t, kSCG_SircEnableInSleep and CLOCK_InitSirc
undefined at build time for frdm_mcxw72.
Set sirc-supported in the MCXW70 and MCXW71 clk_ctrl DT nodes.
Leave it absent on MCXW72 so DT_INST_PROP(0, sirc_supported)
evaluates to 0 at compile time, bypassing all three affected sites:
- get_rate() FRO_6M: fall back to the fixed 6000000U constant
- clock_control_init(): skip CLOCK_UnlockSircControlStatusReg()
- clock_control_init(): skip the SIRC LP-mode init block,
which also bypasses enable_sirc_in_lp_mode
Move enable-sirc-in-lp-mode out of nxp_mcxw7x_common.dtsi (where
it was incorrectly inherited by MCXW72) into the MCXW70/MCXW71
per-variant DTS nodes.
Tested: west build -p=always -b frdm_mcxw72 tests/lib/cpp/cxx
builds cleanly after this change.
Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>
Zephyr driver and soc code referenced five CONFIG symbols that were
only declared in the hal module, so a compliance run without the
module in place flagged them as undefined.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Replace IS_EQ() + DT_ENUM_IDX() with the simpler and more explicit
DT_ENUM_HAS_VALUE() macro.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
The COND_CASE_1() allows writing chained/nested COND_CODE_1() checks in
a simpler way. Replace such patterns in the STM32 drivers with this new
utility macro.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
In some STM32 drivers, the COND_CODE_1() macro is used with an empty
expression as the `_else` expansion. The `IF_ENABLED()` macro should be
used in this situation since it allows simplifying the code, so perform
the replacement.
While at it, in `dsi_stm32.c`, fix leakage of empty expressions due to
misplaced `;` symbols (outside the block guarded by `IF_ENABLED()`).
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
add a Kconfig, that has to be selected by the
ethernet driver, when extra headroom on tx
is needed, that way we don't need to include that
code when only using NET_L2_ETHERNET_RESERVE_HEADER.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>