Commit graph zephyr/drivers
Author SHA1 Message Date
Muhammad Waleed Badar
0ef82ec0ec drivers: input: cst816s: generalize driver to CST8xx family
Generalize the Hynitron CST816S touchscreen driver to support the
broader CST8xx controller family.

Changes include:
- Renaming the driver from input_cst816s.c to input_cst8xx.c
- Renaming drivers/input/Kconfig.cst816s to drivers/input/Kconfig.cst8xx
- Updating the Devicetree compatible from hynitron,cst816s to
hynitron,cst8xx
- Updating the Devicetree binding description and compatible field
- Updating board DTS files and test overlays to use the new compatible

These changes align the driver, Devicetree bindings, and compatible
strings with the actual hardware support, which covers the CST8xx
family rather than only the CST816S variant.

Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
2026-03-23 10:17:03 +01:00
Aaron Brice
01b611100c drivers: serial: renesas_ra: Fix tx_enable
In uart_ra_sci_irq_tx_enable() it clears the Transmit Data Empty and
Transmit End flags.  Doing this results in the uart re-sending the last
byte written to the TDR if the fifo is not being used.  Avoid clearing the
status in the fifo-disabled case.

Signed-off-by: Aaron Brice <aaron@embeddedts.com>
2026-03-23 10:16:50 +01:00
Hau Ho
d608642638 drivers: renesas: lvd: Fix missing LVD2DET flag clear
LVD2DET was not cleared following the required HW sequence

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-03-23 10:16:41 +01:00
Hau Ho
02e2bd37d0 drivers: gpio: Fix GPIO device init list for all ports
Add missing GPIO_DEVICE_INIT_RX_IF_OKAY()

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-03-23 10:16:41 +01:00
Hau Ho
5acd81b6a4 drivers: adc: renesas: Add MCU-specific macro to skip conv_speed on RX14T
Add MCU-specific macro to skip conv_speed on RX14T

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-03-23 10:16:41 +01:00
Quy Tran
dcf50a895a boards: renesas: rx: Add flash support on RX14T boards
Add flash partition on FPB-RX14T and MCB-RX14T boards

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2026-03-23 10:16:41 +01:00
Hau Ho
7d9db31923 drivers: pinctrl: Support pinctrl driver for RX14T SoC
Modify driver code to adapt with RX14T SoC

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-03-23 10:16:41 +01:00
Hau Ho
53399d85d1 drivers: serial: Support serial driver for RX14T SoC
Modify driver code to adapt with RX14T SoC

Signed-off-by: Hau Ho <hau.ho.xc@bp.renesas.com>
2026-03-23 10:16:41 +01:00
Benjamin Ali
6f10105a42 drivers: input: gt911: add support for multiple GT9xx variants
Added support for GT912, GT927, GT9271, GT928, and GT967 devices.
Changed if-comparison logic to switch-case for clarity.
Removed unnecessary braces.
Resolved previous compliance issues with commit messages.

Signed-off-by: Benjamin Ali <benjamin.ali@soluware.de>
2026-03-23 10:15:58 +01:00
William Markezana
6cb279c1b4 drivers: usb: udc: bflb: remove unused variable in ep_dequeue
Remove unused `buf` variable in udc_bflb_v1_ep_dequeue() that causes
a build error with -Werror=unused-variable.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-23 08:33:28 +01:00
Fabio Baltieri
cfd3ad4798 input: gpio_qdec: fix llvm warning
Fixes:

zephyr/drivers/input/input_gpio_qdec.c:359:3: error: label followed by a
declaration is a C23 extension [-Werror,-Wc23-extensions]
  359 |                 struct k_work_sync sync;
      |                 ^

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-03-22 08:30:58 -05:00
Fabio Baltieri
0c9867d1b9 input: cf1133: fix llvm compilter warning
Fix zephyrproject/zephyr/drivers/input/input_cf1133.c:280:38: warning:
format specifies type 'int' but the argument has type 'const struct
gpio_dt_spec *' [-Wformat] when compiling with llvm:

west build -p -b nrf52dk/nrf52832 tests/drivers/build_all/input -- \
	-DTOOLCHAIN_VARIANT_COMPILER=llvm

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-03-22 08:30:43 -05:00
James Walmsley
3e66900bc9 drivers: watchdog: remove build warning for empty watchdog library
Following the convention of other driver libraries, allow the library
to be empty, so there is no build warning if CONFIG_WATCHDOG is
enabled, but no driver is selected.

<!-- ps-id: 2581e043-e366-4115-b6d2-73ca070add8b -->

Signed-off-by: James Walmsley <james@fullfat-fs.co.uk>
2026-03-22 08:30:22 -05:00
Joel Holdsworth
8ca45bb768 drivers: timer: Add timer driver for or1k
The OpenRISC 1000 Tick Timer is tightly coupled to the or1k CPU core, and
is explicitly designed to facilitate task scheduling and high-resolution
timing.

The timer is documented in Chapter 14 of the OpenRISC 1000 Architecture
Manual:

    https://openrisc.io/or1k.html#__RefHeading__504849_595890882

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
2026-03-21 07:50:57 -05:00
Jilay Pandya
21ad9a6846 drivers: stepper_fake: mv to drivers/stepper
move to drivers/stepper/ from include/, effectively
internalizing it

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-03-21 00:49:14 +00:00
Jilay Pandya
27ea1094be drivers: stepper_shell: add configure ramp function
Add newly introduced configure ramp api to shell

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2026-03-21 00:49:14 +00:00
Zafer SEN
487aa933e2 drivers: modem: hl78xx: refactor variant ops and capabilities
Move variant-specific behavior out of shared HL78xx logic and into
variant ops callbacks, while using hidden capability symbols for
compile-time shape differences.

Key changes:
- Expand variant ops to cover URC handling, LPM routing, RAT policy,
  GNSS routing, and socket wake/restore decisions.
- Replace shared variant-name ifdefs with ops dispatch and capability
  symbols.
- Add hidden capability symbols for KSTATEV, KPSMEV, RRC query, and
  WDSI default profile selection.
- Keep unsupported callbacks explicit via NULL in ops tables.
- Add explicit HL7812 await_registered_timeout_lpm callback.
- Add architecture notes for future variant onboarding.

This keeps HL7800 and HL7812 behavior aligned with existing flows while
reducing shared-file preprocessor branching and improving scalability.

Signed-off-by: Zafer SEN <zafersn93@gmail.com>
2026-03-21 00:48:48 +00:00
Ryan Wiebe
5e77cf8d78 driver: spi: max32: Added DMA support for transceive_async
Added DMA support for transcieve_async using k_work for multi-buffer
transfers. Fixed bug where error isn't reported to spi_context_complete
when DMA callback receives an errorby ensuring it's invoked and the
transceive exits gracefully. Fixed bug where transceive would
loop infinitely when data size less than dma word size by skipping
the buffer that is too short.

Signed-off-by: Ryan Wiebe <ryan.wiebe@analog.com>
2026-03-21 00:48:27 +00:00
Stan Verschuuren
a5b1724903 drivers: gpio: max14906: fix swapped config_do/config_di types
The max149x6_config struct declared config_do/config_di with swapped
names, inverting semantics. Both fields are not yet used by the driver,
which is likely the reason why this went unnoticed.

Fixed by assigning each field its matching config union type.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
5bd971d97b drivers: gpio: max14916: parse write faults on all channels
max14916_pars_spi_diag() wrongly uses same mask as for MAX14906. On
4 channel MAX14906 SDO byte1 upper nibble is DoiLevel bits. On 8 channel
MAX14916, those are fault bits for channels 5-8.

Fixed by checking the full fault byte in the MAX14916 diagnostic parser.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
5b61544014 drivers: gpio: max14916: wire channel-enable DT properties
MAX14916/915 defines GPIO channel specific DT properties, but the driver
does not apply them at init and programs zero values instead. Secondly, the
build test overlay for MAX14916 only sets 4 channels out of 8.

Fixed by initializing OW-on, OW-off, and short-to-VDD from DT during
config and setting the correct channel count in the test overlay.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
19031fcc4b drivers: gpio: max14916: fix ow_on_en written to wrong register
gpio_max14916_config_diag() writes ow_on_en to wrong register
(OW_OFF_EN_REG instead of OW_ON_EN_REG).

Fixed by writing to correct register.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
7bcb55f1f0 drivers: gpio: max149x6: harmonize diagnostic helper error handling
MAX14906/916 diagnostic helpers handle error propagation differently
across diag_chan_get(), pars_spi_diag(), and reg_trans_spi_diag(). This
creates asymmetry in parser/wrapper flows.

Additionally, the parser overwrites transport errors, obfuscating their
source.

Fixed by aligning helpers to standard errno-style return semantics and
failing fast consistently, propagating nested transport errors.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
6734317755 drivers: gpio: max149x6: clear stale diagnostic channel caches
Both MAX14906/916 diag_chan_get paths keep previously cached channel fault
values when the corresponding interrupt bits are not set in later calls.
This leaves stale fault data such that diag_chan_get keeps reporting faults
after they have cleared.

Fixed by clearing fault caches before updating them from current interrupt
status.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
91e76ab2b9 drivers: gpio: max149x6: preserve parser fault status
Both MAX14906/916 pars_spi_diag paths can lose an captured FAULT1 error
when diag_chan_get() returns 0.

Fixed by only updating the parser return status when diag_chan_get()
returns nonzero.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
a82ebd31ed drivers: gpio: max149x6: propagate config path errors
max14906_ch_func(), gpio_max14906_config(), and gpio_max14916_config()
ignore return values from lower level register update/write helpers.

This leads to reports of successful pin configuration even when SPI
transactions fail.

Fixed by propagating the first error (effectively forwarding SPI errors)
to the caller, with no behaviour change in success path.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
4e9285c496 drivers: gpio: max149x6: propagate SPI write errors
Several MAX14906/916/915 SPI write paths ignore MAX149xx_REG_WRITE()
return values and proceed silently after SPI write failures.

Fixed by propagating SPI write errors in the affected paths.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
373d45f554 drivers: gpio: max149x6: propagate SPI read errors
Several MAX14906/916/915 Read/ReadModifyWrite update paths use
MAX149xx_REG_READ() return values directly without validating SPI read
errors first. This leaves SPI read errors unnoticed and corrupts registers
by writing return values unconditionally.

Fixed by early returning on SPI read errors.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Stan Verschuuren
de8640db7f drivers: gpio: max149x6: fix spurious error return on write
When max149x6_reg_transceive is called with rw=WRITE and rx_diag_buff=NULL,
the SPI diagnostic response byte is returned instead of 0, even though the
write was proper and successful.

Fixed by restricting the offending branch to READ only.

Signed-off-by: Stan Verschuuren <stverschuuren@gmail.com>
2026-03-21 00:48:23 +00:00
Benjamin Cabé
a03eccb1ef drivers: usb_c: remove unused alert_handler_cb field from driver struct
This field is not used anywhere and was probably added in error.
Callback registration is done via tcpc_set_alert_handler_cb().

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-21 00:48:09 +00:00
Nicholas Cadieux
f0ccc4d07e usb_c: fix clang-format issues
Resolve clang-format issues in usb_c.

Signed-off-by: Nicholas Cadieux <ncadieux@qti.qualcomm.com>
2026-03-21 00:48:09 +00:00
Nicholas Cadieux
cf8197b7d1 usbc: tcpc: fix memory corruption in vconn_en and vconn_discharge callbacks
The vconn_en and vconn_discharge callbacks were invoked with the TCPC
device as the first argument. Application callbacks then called
usbc_get_dpm_data(dev) with the TCPC device, causing dev->data (which
is struct tcpc_data *) to be misinterpreted as struct usbc_port_data *.
This resulted in dpm_data->vconn_pol being written to an incorrect
memory offset, silently corrupting TCPC driver state.

Fix by adding a const struct device *usbc_dev parameter to
tcpc_vconn_control_cb_t and tcpc_vconn_discharge_cb_t, and propagating
it through set_vconn_cb and set_vconn_discharge_cb in the driver API.

Signed-off-by: Nicholas Cadieux <ncadieux@qti.qualcomm.com>
2026-03-21 00:48:09 +00:00
Terry Geng
9d5cc50cc9 drivers: sensor: hx711_spi: Define trigger variables if pinctrl is set
All trigger related variables will be defined only if pinctrl has name
`trigger`. This can save some RAM when having multiple hx711 configured
but only using trigger for some of them.

Signed-off-by: Terry Geng <terry@terriex.com>
2026-03-21 00:47:57 +00:00
Terry Geng
fba78a3b73 drivers: sensor: hx711_spi: Add data ready trigger to HX711 driver
HX711 pulls DOUT low when data is ready. This commit enabled pin config
to switch from SPI to GPIO and set up GPIIO interrupts for the falling
edge.

The implementation is similar to the `infineon,airoc-wifi` driver, by
using pinctrl.

Signed-off-by: Terry Geng <terry@terriex.com>
2026-03-21 00:47:57 +00:00
Terry Geng
1fec903653 drivers: sensor: hx711_spi: Add spi driver for HX711
HX711 is a specialized 24-bit ADC for load cell and strain gauge sensors.
It uses a two-wire (PD_SCK and DOUT) serial protocol that
 - first 24 clock cycles reads out the sample
 - last 1 to 3 clock cycles set the PGA gain for the next sample

 The requirement of control the exact number of clock cycles makes the
 SCK for SPI unsuitable for clocking HX711. Instead, in this commit, the
 clock is implemented as a series of 0xAA on the MOSI.

Signed-off-by: Terry Geng <terry@terriex.com>
2026-03-21 00:47:57 +00:00
Tomasz Moń
1525950cd6 usb: device_next: remove udc_buf_get_all()
Function udc_buf_get_all() was intended to be a helper to remove all
requests from endpoint FIFO. While for just freeing all queue the
it may be argued that there may be some doubtful simplicity argument,
merging multiple submitted transfers into one is just enforcing
unnecessary complexity on class implementations.

At general level, every submitted (enqueued) request should get
corresponding completion (request callback) call. UDC drivers were
violating this sensible behavior when dequeuing (cancelling) requests by
merging all submitted requests into one.

Remove udc_buf_get_all() and replace all uses with simple loops. For
most classes (that submit just one request for an endpoint at a time)
this has no functional difference. For classes that implement double
buffering this simplifies completion handling.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2026-03-21 00:47:16 +00:00
Fin Maaß
5286027c85 drivers: firmware: qemu: don't enable QEMU_FWCFG by default
don't enable QEMU_FWCFG by default

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-20 12:40:17 -05:00
Sylvio Alves
7dca2c4813 drivers: usb: udc_dwc2: use gpio_ll for USB PHY drive capability
Update gpio_set_drive_capability() to new gpio_ll_set_drive_capability()
as part of the hal_espressif updates.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-20 12:38:43 -05:00
Fabrice DJIATSA
52fcd6c2de drivers: i2c: update i2c driver for stm32 hal2
There are different naming conventions between
HAL versions.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2026-03-20 12:38:22 -05:00
Marek Matej
e0aab61c36 drivers: wifi: eswifi: add heap request
Samples using this wifi adapter is missing heap. Adding heap request
into eswifi driver.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2026-03-20 12:37:39 -05:00
Lubos Koudelka
0147f357c6 drivers: regulator: add VREFBUF support on STM32WB
Extend the STM32 VREFBUF regulator driver to support STM32WB devices.
Update the st,stm32-vrefbuf devicetree binding and add the VREFBUF
node to the STM32WB SoC dtsi so that applications can enable the
internal reference buffer on STM32WB.

Signed-off-by: Lubos Koudelka <lubos.koudelka@st.com>
2026-03-20 12:34:56 -05:00
Pete Johanson
050748c8ba drivers: mbox: Add ADI MAX32 mbox driver.
Implement a MAX32 mbox driver with the semaphore peripheral.

Tweak the mbox test to allow testing with only one TX/RX channel pair
available.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2026-03-20 12:34:01 -05:00
William Markezana
7f71420004 drivers: usb: add Bouffalo Lab BL70x USB device controller driver
Add a USB 2.0 Full-Speed device controller driver (udc_bflb) for the
Bouffalo Lab BL70x SoC family. The driver supports up to 8 bidirectional
endpoints with interrupt-driven operation.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-20 12:33:43 -05:00
Valerio Setti
8372f0939f drivers: esp32: bt|wifi: adjust Kconfigs for TF-PSA-Crypto 1.x
- replace legacy Kconfigs with corresponding PSA_WANT ones.
- extend Mbed TLS' CMake file in order to include these legacy ecdh module
  that was removed from TF-PSA-Crypto when ESP32 BT and WiFi drivers are
  built.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-03-20 12:32:52 -05:00
Jan Carlo Roleda
d6eeab9600 drivers: sensor: adt7420: add support for ADT7410 and ADT7422
Add configuration to support ADT7410 and ADT7422
hardware specifications.

Signed-off-by: Jan Carlo Roleda <jancarlo.roleda@analog.com>
2026-03-20 10:00:42 -05:00
Jan Carlo Roleda
ac44c8b550 drivers: sensor: adt7420: add power management support
Add Power Management Subsystem to ADT7420 driver for
suspending and resuming device operations.

Signed-off-by: Jan Carlo Roleda <jancarlo.roleda@analog.com>
2026-03-20 10:00:42 -05:00
Jan Carlo Roleda
d07b8a20f6 drivers: sensor: adt7420: Extend ADT7420 Driver Support
Extended ADT7420 driver to support:
- extend dtbindings for comprehensive configuration control
- Support 13-bit and 16-bit ADC resolution
- extend Sensor API support
- extend interrupt support to include CT pin

Signed-off-by: Jan Carlo Roleda <jancarlo.roleda@analog.com>
2026-03-20 10:00:42 -05:00
Armando Visconti
4d42b179e9 drivers/sensor: st: fix i2c transfer len
Fix I2C transaction len using the correct size of the data to be sent
and not the returned length of the allocated buffer. This change is
applied to iis3dwb, lis2dux12 and lsm6dsv16x drivers, and mimic what
is also done for lsm6dsvxxx driver.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2026-03-20 09:58:05 -05:00
Mathieu Choplain
3e9e139565 drivers: pinctrl: stm32: move iosync configuration to common code
Perform iosync configuration in the common stm32_gpioport_configure_pin()
function instead of doing it from the pinctrl driver. This simplifies the
pinctrl driver and also opens the door to iosync configuration using the
GPIO API (via vendor-specific extensions) in the future.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-03-20 09:57:51 -05:00
Alain Volmat
5a27dc2b25 drivers: video: check parameters of video_closest_frmival_*
Add parameter checking of in functions video_closest_frmival
and video_closest_frmival_stepwise and return an error in
case of invalid parameter.
Previously ASSERT were used, but thoses are not always enabled,
leading to possibility to have invalid parameter being used.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2026-03-20 09:57:20 -05:00