Commit graph zephyr/drivers
Author SHA1 Message Date
Nikodem Kastelik
881cafe472 drivers: pinctrl: nrf: align to MSPI rename
nRF7120 uses MSPI naming now instead of QSPI.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2026-07-28 11:32:36 +01:00
Benjamin Cabé
27f531c8a4 drivers: i2c: infineon_pdl: Record RX pending state for reads
The read branch stored CAT1_I2C_PENDING_TX, copied from the write
branch; CAT1_I2C_PENDING_RX was never used. Store the RX state.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-28 11:31:30 +01:00
Benjamin Cabé
0b90eb3331 drivers: i2c: infineon: Record RX pending state for reads
The read branch stored CAT1_I2C_PENDING_TX, copied from the write
branch; CAT1_I2C_PENDING_RX was never used. Store the RX state.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-28 11:31:30 +01:00
Cherrence Sarip
7bff7ce4f5 drivers: misc: tmc6460: add FOC BLDC/PMSM gate driver
Add a driver for the Analog Devices / Trinamic TMC6460, a fully
integrated Field-Oriented Control (FOC) gate driver for brushless DC
(BLDC) and PMSM motors. The device is not a microstepping stepper, so it
lives under drivers/misc and exposes a small device-specific
register-access API rather than a shared DEVICE_API:

  - tmc6460_read / tmc6460_write        raw 32-bit register access
  - tmc6460_rtmi_stream_write           UART fire-and-forget stream write
  - tmc6460_enable / tmc6460_disable    gate-driver DRV_EN control
  - tmc6460_poll_flag                   reusable status-bit wait helper
  - tmc6460_field_update / _field_write bitfield helpers

The chip exposes 32-bit registers in a 10-bit address space and supports
both SPI and UART transports. SPI access uses fixed 48-bit datagrams;
the UART transport uses variable-length datagrams with the TMC6460 CRC8
framing (custom reflected polynomial) and tolerates interleaved RTMI
telemetry packets on the read path. The transport is selected from
devicetree via the bus the node is attached to.

The public header carries the full TMC6460 register map and the reset
values used by the sample for self-validation.

Signed-off-by: Cherrence Sarip <cherrence.sarip@analog.com>
2026-07-28 11:30:47 +01:00
Muhammed Asif
89d7620bd2 drivers: microchip: interrupt_controller: Updates g1 driver to new family
- Adds support for pic32cm jh family
- Adds new logic for eic line mapping to the port and pin
- Adds new ISR for devices with a single IRQ line in NVIC for interrupt
  controller

Signed-off-by: Muhammed Asif <asifp3104@gmail.com>
2026-07-28 11:29:43 +01:00
Appana Durga Kedareswara rao
f2ccd74a90 drivers: interrupt_controller: gic: extend GIC_SAFE_CONFIG to GICv1/v2
The GICv1/v2 driver (intc_gic.c) has two bugs in AMP configurations
where each core runs an independent Zephyr instance:

1. CPU target mask derivation: gic_dist_init() derived the CPU target
   mask from the DTS cpu_mpid_list array. In AMP mode each core's DTS
   typically only defines cpu@0, so Core 1's physical CPU interface bit
   was never set in GICD_ITARGETSRn. A new gic_get_cpu_mask() helper
   reads the hardware-banked GICD_ITARGETSR[0], which returns the
   running core's actual target bit regardless of what the DTS defines.

2. Destructive re-initialization: arm_gic_init() on the second core
   unconditionally disabled the distributor (GICD_CTLR=0) and
   overwrote all SPI enables, priorities, and target registers,
   clobbering the first core's configuration. Add the
   CONFIG_GIC_SAFE_CONFIG guard to gic_dist_init(): if the distributor
   is already enabled (GICD_CTLR bit 0 set), return early. Per-SPI
   affinity for the new core is handled by arm_gic_irq_enable(), which
   ORs the local CPU mask into the existing SPI target register without
   disturbing other cores.

Additionally:
- Extend CONFIG_GIC_SAFE_CONFIG from GICv3-only to all GIC versions
  (change Kconfig dependency from GIC_V3 to GIC).
- When CONFIG_GIC_SAFE_CONFIG is enabled, clear all SPI targets during
  distributor init and let arm_gic_irq_enable() add each core's mask on
  demand.

Tested on AMD Versal VCK190 (Cortex-R5 dual-core split mode):
- SGI delivery to both cores: PASS
- SPI delivery via 1-of-N with GICD_ITARGETSRn=0x03: PASS

Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
2026-07-28 11:27:39 +01:00
Manimaran A
bf3339dc87 divers: spi: xec: add low power mode support
Updated spi_xec_qmspi_ldma driver with low power support.
Add a pm_action handler that clears MODE.ACTV and applies the
pinctrl sleep state on suspend, and reverses both on resume.
Hold a PM_STATE_SUSPEND_TO_IDLE policy lock for the duration of
each transfer (sync and async) so suspend cannot enter mid-
transaction.

Signed-off-by: Manimaran A <manimaran.a@microchip.com>
2026-07-27 17:27:54 -05:00
Zafer SEN
56ab019ebf drivers: modem: reorganize Quectel driver directory structure
Place BG9x and BC66x drivers under a shared quectel directory
and add dedicated CMakeLists.txt files for each modem family.

Update Kconfig paths and build definitions accordingly.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-07-27 11:46:04 -07:00
Ren Chen
4ed58f907e drivers: i3c: i3cs_it51xxx: support runtime target device configure
Add support for configuring the target device at runtime.

Tested with:
- $i3c config_get target i3c@f03d00

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-07-27 11:43:37 -07:00
Ren Chen
379ecbfa06 drivers: i3c: i3cm_it51xxx: add dts pull-up resistor property
Add a devicetree boolean property, `pull-up-4k-ohm`, to allow
selecting the I3CM bus pull-up resistor.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-07-27 11:43:37 -07:00
Ren Chen
2f847ab30b drivers: i3c: i3cm_it51xxx: add auto ibi response support
Newer it51xxx socs support the automatic IBI response mechanism.
Add driver support to configure and use this hardware feature.

Tested with: tests/subsys/pmci/mctp/i3c/

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-07-27 11:43:37 -07:00
Ren Chen
96045f5383 drivers: i3c: i3cs_it51xxx: fix dynamic addr assignment build error
Fix the compile error by replacing the removed `address` member
in `struct i3c_target_config` with `dynamic_addr` member in
`struct i3c_config_target`.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-07-27 11:43:37 -07:00
Joel Guittet
cf012ab5b7 drivers: crypto: stm32_hash: provide support for sha-384 and sha-512
Some devices supports SHA-384 and SHA-512.
Some new device tree options are created to enable them.

Signed-off-by: Joel Guittet <jguittet@witekio.com>
2026-07-27 11:42:53 -07:00
Fin Maaß
a57c3251a9 drivers: ethernet: stm32: use snps,dwmac-ptp-clock
Use the new compatible snps,dwmac-ptp-clock
for the existing stm32 ptp driver.

Signed-off-by: Fin Maaß <info@finmaass.de>
2026-07-27 11:41:39 -07:00
Liam Girdwood
07473476e3 drivers: dma: intel_adsp_gpdma: use sys_write16 for ownership reg
The GPDMA ownership register is a 16-bit MMIO register. Using
sys_write32() triggers a load/store width exception under LLVM strict
alignment checking. Replace with sys_write16() to match the actual
register width.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2026-07-27 11:41:05 -07:00
Benjamin Cabé
cf9f58a9a8 drivers: rtc: ds3231: Fix 12-hour time conversion
The 12-hour read path added decimal 12 to the still-BCD hour value
before converting, producing wrong afternoon hours (8 PM decoded as
14). Convert from BCD first, then add the PM offset.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-27 11:39:37 -07:00
Benjamin Cabé
32d35ecc38 drivers: rtc: ds3231: Fix CONV control bit position
DS3231_BITS_CTRL_CONV was defined as BIT(6), colliding with BBSQW;
the temperature-conversion bit is bit 5 in the control register, as
the RS2/RS1 positions below it confirm.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-27 11:39:37 -07:00
Benjamin Cabé
3471537cdb drivers: sensor: npm10xx_adc: Use charge LSB mask for calibration
The charge calibration extracted its two LSBs with the discharge mask
(bits 1:0) instead of the charge mask (bits 3:2), skewing charging
current readings.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-27 11:39:20 -07:00
Sylvio Alves
854a1e75c5 drivers: wifi: esp32: add ip-over-mesh support
Add an Ethernet-over-mesh network interface, gated by
CONFIG_WIFI_ESP32_MESH_IP, so the Zephyr IP stack runs over the
mesh. The IP-level policy is left to the application.

The interface and the raw mesh send and receive API both drain
the single mesh receive queue, which has no demultiplexing, so
they are mutually exclusive at build time. Folding both into one
reader that switches on the frame protocol tag would let them
coexist.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-27 11:38:02 -07:00
Sylvio Alves
62e47dc952 drivers: wifi: esp32: add wi-fi mesh support
Add the Kconfig options and driver plumbing for the Espressif
Wi-Fi mesh stack. The mesh id, channel, credentials, tree limits
and node role are configurable.

The mesh stack owns both interfaces while it runs, so the
station and softAP management operations are rejected with
-EBUSY rather than left to fight it. Mesh is a boot-time mode
with no runtime teardown, which the API documents.

Bring-up waits for the stack to report that it started before
re-delivering the initial station-start event the mesh missed,
instead of assuming a fixed delay is enough.

A fixed root keeps the self-organized behavior when a router is
configured, since that is what drives its association to the
router and the reconnection that maintains the uplink. Only a
router-less fixed root stops the parent search, which would
otherwise scan for a parent that does not exist and disrupt its
softAP.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-27 11:38:02 -07:00
Sylvio Alves
8b87f0a81a drivers: wifi: esp32: dispatch wi-fi events on a dedicated task
Run the Wi-Fi and mesh event handlers on a dedicated task rather
than on the Wi-Fi library task, so a handler cannot overrun or
stall it. This applies to the station and softAP paths as well,
not only to mesh: handler work is decoupled from the library
task everywhere. The task stack, priority and queue depth are
configurable.

Delivery is asynchronous, so a caller that must observe a state
change synchronizes on the event instead of reading the state
right after the call returns. A full queue drops the event and
logs at error level; the depth is sized for the bursts a mesh
re-parent or softAP client churn produces.

Each entry carries an inline copy of the payload, so the buffer
is sized at 64 bytes: enough for every event handled here, whose
largest payload is 48 bytes, with margin for a vendor struct
that grows. A build assertion checks the handled event sizes
against it, turning such a growth into a compile error instead
of a runtime drop. An event too large for the buffer is rejected
rather than delivered without its data, so a handler is never
invoked with a null payload it expects to dereference.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-07-27 11:38:02 -07:00
Soumya Tripathy
3e731cd14e drivers: counter: revert init priority increase
Commit bbda65a ("drivers: counter: increase COUNTER_INIT_PRIORITY")
raised COUNTER_INIT_PRIORITY from KERNEL_INIT_PRIORITY_DEVICE (50) to
60 to guarantee counter devices initialize before bus-dependent devices
sharing the same default priority.

Revert to KERNEL_INIT_PRIORITY_DEVICE and remove the BUILD_ASSERT in
the RTC counter driver that enforced RTC_INIT_PRIORITY >
COUNTER_INIT_PRIORITY, as both now default to the same value with
ordering guaranteed by DT sub-priority.

Signed-off-by: Soumya Tripathy <s-tripathy@ti.com>
2026-07-27 11:37:43 -07:00
Sven Ginka
0947bcca5a drivers: memc: sam_smc: configure SAME70 SMC mode fields
The current driver is prepared for the SAM4 which has a
8-bit interface only. This commit adds optional config
to support also 16-bit interfaces for the SAME7 family.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
Co-authored-by: Pieter De Gendt <pieter.degendt@gmail.com>
2026-07-27 11:36:41 -07:00
Liu Changjie
5e122a12dd drivers: timer: wch: enable systick on CH32H41X
Allow the CH32V QingKe systick timer driver to be selected on the CH32H41X
series. The systick register layout (CTLR/SR/CNT/CMP) is identical to the
existing QingKe parts, so no driver code change is needed; only the Kconfig
dependency has to be extended.

Signed-off-by: Liu Changjie <liucj1228@outlook.com>
2026-07-27 11:36:23 -07:00
Liu Changjie
4c9de24835 drivers: pinctrl: wch: add H41X AFIO driver
Add a pinctrl driver for the CH32H41x AFIO block. Unlike the CH32V20x/30x
remap (PCFR) model, the CH32H41x selects pin alternate functions through
a per-pin 4-bit field in the AFIO GPIOx_AFLR/AFHR registers (STM32-style
mux), in addition to the usual GPIO CFGLR/CFGHR direction and bias
configuration.

The driver is gated by CONFIG_PINCTRL_WCH_H41X_AFIO (default y when the
wch,h41x-afio node is enabled) and is wired into the pinctrl CMakeLists
and Kconfig alongside the existing WCH AFIO drivers.

Signed-off-by: Liu Changjie <liucj1228@outlook.com>
2026-07-27 11:36:23 -07:00
Liu Changjie
b9722efb68 drivers: clock_control: wch: support CH32H41X 480MHz init
Extend the WCH RCC clock driver for the CH32H41X series. Add the H41X
PLL binding and SoC clock node, handle the H41X clock-enable register
names and FPRE prescaler, and implement the 480 MHz SYSCLK and
120 MHz HCLK bring-up sequence.

Select the H41X-specific path from the RCC source compatible in
devicetree. Existing CH32V00X, CH32V20X, and CH32V30X configurations
remain unaffected.

Signed-off-by: Liu Changjie <liucj1228@outlook.com>
2026-07-27 11:36:23 -07:00
Liu Changjie
16405ef6d9 soc: wch: add CH32H41X series (CH32H417 dual-core)
Add the CH32H41X SoC series under the ch32v family. The CH32H417 is
an asymmetric dual-core (AMP) RISC-V part with a QingKe V3F boot
core and a QingKe V5F application core.

Model the two cores as cpuclusters with separate CPU descriptions,
runtime-idle power states, interrupt entry, vector handling, and
non-overlapping memory. Keep the external HSE frequency
board-specific.

The optional SOC_CH32H417_BOOT_V5F setting lets the V3F early-init
hook wake the V5F image at its real flash address, 0x08010000, while
allowing standalone V3F applications to disable that behavior.

Signed-off-by: Liu Changjie <liucj1228@outlook.com>
2026-07-27 11:36:23 -07:00
Tony Han
f0887a4c48 drivers: ethernet: phy: lan8840: using the same driver for ksz9131
Add Gigabit Ethernet Transceiver LAN8840 support, using ksz9131's
driver for it.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-07-27 11:35:45 -07:00
Tony Han
73b9b3ffb4 drivers: ethernet: sam_gamc: update for supporting sama7d65 SoCs
Update the sam_gmac and mdio_sam.c for supporting Microchip SAMA7D65
SoCs.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-07-27 11:35:45 -07:00
Tony Han
107a7a1d9b drivers: ethernet: sam_gamc: update SOC_SAMA7G54 to SOC_SERIES_SAMA7G54
Update "CONFIG_SOC_SAMA7G54" to "CONFIG_SOC_SERIES_SAMA7G5" in "#ifdef"
for more flexible use of the drivers.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-07-27 11:35:45 -07:00
Mathieu Choplain
ceeb42a55e drivers: timer: mcux_*: use autogenerated Kconfig variable for compats
Instead of manually defining a variable for the compatibles' names, use
the ones that get autogenerated upon build.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-07-27 14:43:22 +02:00
Mathieu Choplain
9b87cdb062 drivers: timer: cmsdk_apb_timer: use autogenerated Kconfig variable
Instead of manually defining a variable for the compatible's name, use
the one that gets autogenerated upon build.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-07-27 14:43:22 +02:00
Mathieu Choplain
050d2da2a6 drivers: ethernet: nxp_imx_netc: use autogenerated Kconfig variable
Instead of manually defining a variable for the compatible's name, use
the one that gets autogenerated upon build.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-07-27 14:43:22 +02:00
Sher Amir Singh Dullat
756631d887 drivers: dma: stm32: claim CID1 for HPDMA channels on STM32N6
On STM32N6, HPDMA1 channels are subject to RIF CID filtering.
Channels reach the driver with no CID claimed (CCIDCFGR reads zero),
and transfers on such channels silently move no data: the transfer
completes and raises a transfer-complete event, but the destination
is untouched. GPDMA1 is unaffected; the vendor isolation API is
documented as HPDMA-only.

Claim CID1 (the CPU compartment) during controller initialization
using the LL isolation accessors, mirroring the vendor HAL's
HAL_DMA_SetIsolationAttributes().

Signed-off-by: Sher Amir Singh Dullat <sheramir51@gmail.com>
2026-07-27 14:42:33 +02:00
Mathieu Choplain
882ec6cae4 drivers: usb: common: stm32_pwr: add STM32H7R/S support
Implement support for STM32H7R/S series in the common USB power module.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-07-27 14:41:07 +02:00
Mathieu Choplain
675ea7f841 drivers: usb: common: stm32: add new PHY pseudo-driver for USBPHYC
Add a new pseudo-driver for USBPHYC instances whose input frequency
selection is configured at RCC level in a `CCIPR` register, as is
the case on STM32H7R/S series for example.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-07-27 14:41:07 +02:00
Muhammad Waleed Badar
037b0aea3c drivers: rtc: rtc_emul: seed datetime from host at init
Add CONFIG_RTC_EMUL_INIT_DATETIME to optionally seed the emulated
RTC's datetime from the host at driver init.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-07-27 14:40:54 +02:00
Ofir Shemesh
d94fd4d2f8 drivers: mbox: add ARM MHUv2 mailbox driver
Add a Zephyr mbox driver for the ARM Message Handling Unit v2.
Supports doorbell-only signalling across all hardware channel
windows from a single device instance.

Signed-off-by: Ofir Shemesh <ofirshemesh777@gmail.com>
2026-07-27 14:40:37 +02:00
TOKITA Hiroshi
d58fbb8cfc include: zephyr: xen: public: remove and migrate to the zephyr-xenlib
This PR migrates the MIT-licensed Xen public headers into the
`include/zephyr/xen/public` directory to the zephyr-xenlib module.

Since the xen public headers require GCC extensions,
enable GNU_C_EXTENSIONS along with enabling CONFIG_XEN.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2026-07-27 14:40:21 +02:00
Henrik Brix Andersen
8ba1698fbf Revert "drivers: uart: unify xilinx ps uart driver with cadence uart driver"
This reverts commit 189ccda20b as it is
causing breakage on qemu_cortex_r5/zynqmp_rpu.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-07-27 06:09:38 -05:00
Henrik Brix Andersen
8f3807f557 drivers: can: stm32: bxcan: fix calculation of maximum number of filters
Fix the calculation of CAN_STM32_MAX_FILTER_ID. As this is simply the
maximum number of RX filters available, it should not take the split nature
of the standard (11-bit) filter banks into consideration.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-07-27 10:31:46 +02:00
Sara Touqan
d86909e74f drivers: mspi: stm32: Configure XSPI memory size and type
This commit configures the XSPI memory size and memory type
from the MSPI device configuration using the STM32 HAL APIs.

Signed-off-by: Sara Touqan <zephyr@exalt.ps>
2026-07-27 09:21:41 +02:00
Khadem Ullah
ed0133f776 drivers: pcie: controller: ecam: validate raw BDF token boundaries
This patch introduces strict __ASSERT parameter validation gates to
the primary configuration read and write handlers within the ECAM
host bridge controller driver.

On platforms mapping multi-bus topologies, passing an out-of-bounds
bus index variable can cause a bit-field overflow and boundary
spillage, shifting overflow bits into upper address coordinates. The
driver then executes memory transactions over unallocated regions
inside the ECAM window, causing the hardware to return dummy data
blocks (0xFFFFFFFF) or leak address spaces silently.

Checking the raw bits before any bitwise shifts or extraction macros
are applied halts out-of-bounds parameter execution at the lowest
hardware choke point without interfering with multi-bus hierarchies
conforming to the PCI Express Specification.

Signed-off-by: Khadem Ullah <khadem.systems@gmail.com>
2026-07-27 09:21:22 +02:00
Muhammad Waleed Badar
189ccda20b drivers: uart: unify xilinx ps uart driver with cadence uart driver
Remove the dedicated xlnx_xuartps driver and consolidate support
into the Cadence UART driver (uart_cdns), as both drivers target
the same underlying Cadence UART IP used by Xilinx platforms.

Update device tree bindings and DTS files to use the Cadence
compatible string on supported platforms, remove obsolete driver
sources, and adjust build system configuration accordingly.

Also update test overlays to reflect the driver consolidation.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-07-27 09:20:04 +02:00
Benjamin Cabé
20d2b066c2 drivers: dma: ti_mspm0: Fix data width byte counts
The width selectors are matched against the configured data sizes,
which are byte counts, but the word and long constants held enum
style values of three and four. A 32-bit element therefore
selected the 64-bit hardware width and the word width was
unreachable. Use the actual byte counts of four and eight.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-26 16:57:09 +02:00
Ayush Singh
095ec75a76 drivers: gpio: mspm0: Add MSPM0L1117 support
- Some of the lut values are missing in the datasheet. In these places,
  use UINT8_MAX to denote that this pin does not support being used as
  GPIO.
- Tested using blinky sample in beagleconnect_zepto.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2026-07-26 16:55:53 +02:00
Robin Sachsenweger Ballantyne
95e424c97f dma: rpi_pico: enable channel interrupt in reload and busy check in start
The DMA Pico ISR disables the channel interrupt for the channel that
triggered it. A commonly used pattern is to start another DMA transfer from
inside the callback such as in `i2s_stm32.c` without configuring again by
calling the dma_reload() and dma_start() functions. Previously, the
dma_start() function re-enabled the channel interrupt and started the DMA
transfer whereas dma_reload() set the source and destination addresses and
started the DMA transfer. Calling either function on its own does not
produce the desired effect and calling both starts the DMA transfer twice.
The only remaining option would be to call dma_config() for every
transmission which is wasteful. This change brings the RPi Pico DMA API
functionally closer in line with the STM32 DMA API allowing dma_reload()
followed by dma_start() to correctly restart a DMA transfer with a
different source/destination address and enable the appropriate callback.

Signed-off-by: Robin Sachsenweger Ballantyne <makenenjoy@gmail.com>
2026-07-26 08:15:30 -04:00
Benjamin Cabé
2b3c9744be drivers: input: gt911: Make the status clear buffer static const
The status clear command buffer is built from compile-time constants and
only read, so make it static const to keep it in read-only memory
instead of rebuilding it on the stack on every call.

Assisted-by: Claude:opus-4.8
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-26 08:15:10 -04:00
Benjamin Cabé
c2805ec532 drivers: regulator: pca9420: Fix active discharge bit positions
The ACT_DISCHARGE_CNTL position defines were one higher than the
bit index of their corresponding masks, so the discharge bit was
never written on set and reads always reported the discharge as
enabled. Align the positions with the mask bit indices.

Assisted-by: Claude:fable-5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-07-25 11:54:57 -07:00
Flavio Ceolin
e5a673421b drivers: ethernet: stm32: combine OR'd DMA error checks
(dma_error & A) || (dma_error & B) || ... is equivalent to
dma_error & (A | B | ...). Collapse the rx/tx ETH_DMASR_* error tests
into single masked checks.

Signed-off-by: Flavio Ceolin <flavio@hubble.com>
2026-07-25 11:54:45 -07:00