Commit graph zephyr/drivers
Author SHA1 Message Date
Krzysztof Chruściński
fea078ff42 drivers: gpio: nrf: Do not use nrfx_gpiote when no interrupts
If CONFIG_GPIO_NRFX_INTERRUPT is disabled then nrfx_gpiote driver API
shall no be accessed at all (driver can be disabled).

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-11 17:53:23 +00:00
Fin Maaß
52c254af76 net: add Kconfig option for checksum offloading
Adds a Kconfig option to detect if checksum offloading
is supported by any driver and one to activate it.

Main benefit is that `net_if_need_calc_rx_checksum()` and
`net_if_need_calc_tx_checksum()` are now inline and therefore the
compiler can optimize more, when checksum offloading is not supported.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-11 17:52:13 +00:00
Jordan Yates
0bf99fa4e4 net: ip: net_core: remove conn_mgr_if_used on RX
Remove the unconditional `conn_mgr_if_used` call on data reception.
Receiving data ends up being a poor metric for "interface in use" in
many situations. This is especially the case when connected to networks
with broadcast packets that are not necessarily relevant for us, such as
ARP discovery requests.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-03-11 17:50:02 +00:00
Bernhard Reiter
d082f98e6a drivers: sensor: tmag5170: fix sensor_value scaling in conversions
Use micro-units when converting readings to struct sensor_value.

The previous implementation used 100000-based scaling for fractional
values, while sensor_value expects 10^-6 units. As a result, converted
magnetic field values were reported as 10x the expected gauss value
instead of gauss, and the incorrect scaling caused apparent jumps in
the reported sensor readings.

Fix the conversions by using 1000000-based scaling and
sensor_value_from_micro().

Signed-off-by: Bernhard Reiter <bernhard.reiter@swarovskioptik.com>
2026-03-11 17:49:19 +00:00
Vincent Surkijn
311a841620 drivers: pwm: add support for enabling DMA requests
Extend the PWM API with optional API functions for enabling DMA requests

Possible solution for #88670

Signed-off-by: Vincent Surkijn <vincent.surkijn@siemens.com>
2026-03-11 11:38:01 +01:00
Tim Pambor
a067aaa446 drivers: ethernet: dwmac_stm32h7x: align MAC address config with HAL driver
Update the dwmac_stm32h7x ethernet driver to use the same default
MAC address as the STM32 HAL driver.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-10 17:59:18 -07:00
Tim Pambor
741ce732c0 drivers: ethernet: dwmac_stm32h7x: support MAC address config
Update the dwmac_stm32h7x ethernet driver to use a MAC address
configuration struct.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-10 17:59:18 -07:00
Tim Pambor
e3808554d7 drivers: ethernet: dwmac_mmu: support MAC address config
Update the dwmac_mmu ethernet driver to use a MAC address
configuration struct.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-10 17:59:18 -07:00
Tim Pambor
fe3dad209b drivers: ethernet: dwmac: Allow to report errors from platform init
Change return value of dwmac_platform_init to int and return error code
in case of failure. This allows to report errors from platform init and
fail the driver probe if platform init fails.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2026-03-10 17:59:18 -07:00
Tom Burdick
bdcade6646 gpio: infineon: Add shared gpio ports
Infineon PSOC4 parts share many ports with a single IRQ line. Using the
SHARED_INTERRUPT handler feature of Zephyr results in a very large IRQ
vector table. Instead structure in DT the idea that the ports are
sharing an interrupt with a sort of pseudo interrupt controller.

This also rectifies the need to ifdef on CAT1C/M0+. I added a note
making it clear that in those cases we likely need to rework the way
interrupts are done anyways as there's secondary interrupt
muxes/controllers involved.

Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
2026-03-10 17:58:42 -07:00
Tom Burdick
75132cf2df gpio: infineon: Clean up GPIO driver
Use IF_ENABLED when possible to keep code indents looking nicer rather
than ifdef's. Rename everything to be ifx (drop the cat1 naming). Drops
the unused intc_prio config member.

Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
2026-03-10 17:58:42 -07:00
Ryan McClelland
33c6ddcc4a drivers: i3c: shell: reject RSTACT set with defining byte >= 0x80
Per MIPI I3C spec Table 38, RSTACT defining bytes >= 0x80 are only
valid for get operations (Format 3). Reject attempts to use them with
set (Format 2) early with -EINVAL rather than sending an invalid CCC
on the bus.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:29 -07:00
Ryan McClelland
7730659f6f drivers: i3c: shell: fix wrong argv index in reattach command
The reattach command takes <device> <target> [<old_dyn_addr>], so the
optional old dynamic address is argv[3], not argv[2]. The check also
used argc > 2 which is always true since the minimum argc is 3.

This caused the target device name string to be parsed as a hex
address via strtol, resulting in incorrect old_dyn_addr values.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:29 -07:00
Ryan McClelland
5faf33e2dd drivers: i3c: shell: fix wrong variable in read error message
i3c_read_to_buffer printed the controller device name (s_dev_name)
instead of the target device name (s_tdev_name) when the target
device lookup failed.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:29 -07:00
Ryan McClelland
e84061accf drivers: i3c: shell: use shell_device_get_binding in ibi_hj_response
cmd_i3c_ibi_hj_response used device_get_binding() while every other
function in the file uses shell_device_get_binding(). Use the correct
shell variant for consistent device lookup semantics.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:29 -07:00
Ryan McClelland
42a0e54f6a drivers: i3c: cdns: fix cancel transfer timeout detection
The cancel-and-wait loop uses `while (retry_count--)` with a post-loop
check of `retry_count == 0`. This is broken in two ways:

1. When all retries are exhausted, the final post-decrement wraps the
   uint32_t from 0 to UINT32_MAX, so the timeout check never fires and
   the error is silently ignored.

2. When the controller goes idle on the last retry, retry_count is
   legitimately 0 after the break, causing a false timeout report.

Replace with a simple for-loop and a bool flag to correctly distinguish
between the idle and timeout cases.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:14 -07:00
Ryan McClelland
bb85f99cd4 drivers: i3c: cdns: fix wrong register used for IBI FIFO depth
CONF_STATUS1_IBI_DEPTH extracts bits [12:10] from the CONF_STATUS1
register, but cfg0 (CONF_STATUS0) was being passed instead of cfg1.
This resulted in reading the wrong bits and computing an incorrect
IBI FIFO depth.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:14 -07:00
Ryan McClelland
8bc4795570 drivers: i3c: cdns: fix wrong bit shift in CONF_STATUS0_IBIR_DEPTH
The IBIR depth field occupies bits [7:6], a 2-bit field, but was
right-shifted by 7 instead of 6. This lost the lower bit of the
field, causing incorrect IBIR FIFO depth calculation for half of
the possible hardware configurations.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:14 -07:00
Ryan McClelland
2ed80b34f2 drivers: i3c: cdns: fix missing parentheses in DDR preamble macros
The DDR preamble macros were missing parentheses around the shift
expressions. Without them, using these in bitwise OR expressions
produces wrong results due to C operator precedence, since | binds
tighter than <<.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:14 -07:00
Ryan McClelland
5f8f8e2194 drivers: i3c: cdns: fix CMD1_FIFO_DB macro producing zero for byte values
CMD1_FIFO_DB masked bits [15:8] then shifted left by 8, which always
produced zero when the input is a byte value (0-255) since bits [15:8]
are zero for a uint8_t. The defining byte field is at bits [15:8] of
the command word.

Use FIELD_PREP with the correct field mask to place the defining byte
in the right position.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:14 -07:00
Ryan McClelland
30d843ea76 drivers: i3c: cdns: fix swapped #endif comments
The #endif comments for CONFIG_I3C_CONTROLLER and
CONFIG_I3C_TARGET were swapped, and the outermost #endif
was missing its CONFIG_I3C_USE_IBI comment.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:14 -07:00
Ryan McClelland
10c97a0523 drivers: i3c: cdns: fix missing parentheses in REV_ID_VERSION macro
Add missing parentheses around macro parameter `m` in
REV_ID_VERSION to prevent operator precedence issues when
a complex expression is passed.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2026-03-10 17:55:14 -07:00
Felix Wang
7a27272c46 drivers: sensor: nxp: Add QDC MCUX driver
Add driver support for NXP MCUX Quadrature Decoder (QDC) sensor.
The driver provides:
- Position tracking via SENSOR_CHAN_ROTATION channel
- Configurable counts per revolution
- Single phase and normal decoder work modes
- Input filtering with configurable count and sample period
- INPUTMUX integration for flexible signal routing
- Modulo count mode support

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-03-10 22:22:28 +01:00
Farsin Nasar V A
399e58d962 drivers: dac: microchip: Update DAC G1 driver for PIC32CX_SG
Update DAC G1 driver implementation to support PIC32CX_SG

Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
2026-03-10 22:21:44 +01:00
Camille BAUD
0fdda30623 drivers: gpio: Introduce BFLB BL61x GPIO FIFO / Wire Out
Introduce a fast GPIO output system with pulse width modifications

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-10 22:20:46 +01:00
Camille BAUD
358b954dda drivers: gpios: Various BL61x improvement and support GPIO > 31
Various BL61x GPIO improvements

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-10 22:20:46 +01:00
Lutz Dittrich
4bf6cad3d8 drivers: sensor: lm75: return full resolution
There are many lm75 variants differing in temperature resolution.
Typical values are 9, 10, 11, and 12 bit. They all use the same
format (16 bit signed integer with LSB at 1/256 degree C).
Depending on the on the actual variant some of the LSB are not
defined. The new calculation scheme uses all 16 bits independent
on the actual sensor resolution. In the worst this leads to
some pseudo-resolution in case the undefined bits are not
reported as 0 by the sensor.

Signed-off-by: Lutz Dittrich <dittrich@netwake.com>
2026-03-10 22:20:01 +01:00
Atilla Filiz
9c14845fce drivers: flash: spi_nand: ignore ECC errors on the parameter page
The parameter page is not ECC protected, but can return ECC errors under
some conditions. These errors should be ignored so drivers can
initialize.

Signed-off-by: Atilla Filiz <atilla@fi-tech.be>
2026-03-10 14:21:04 -05:00
Keith Packard
67f03524ef interrupt_controller: GCC 14 compat patch for intc_nxp_irqsteer.c
SDK 1.0.0's GCC compiler flags a warning about 'cfg' being used without
being set. The compiler is wrong, but let's assign the variable to NULL
to avoid the warning.

Signed-off-by: Keith Packard <keithp@keithp.com>
2026-03-10 14:18:47 -05:00
William Markezana
27f97c132b drivers: entropy: add BFLB SEC engine TRNG driver
Add an entropy driver for Bouffalo Lab BL70X that reads
random data from the SEC TRNG block and wires it into
Zephyr's entropy API.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-10 14:18:36 -05:00
Clément Laigle
14ce0b69d1 drivers: ili9163c: add support for ILI9163C display
Add support for the ILI9163C display controller.

Signed-off-by: Clément Laigle <c.laigle@catie.fr>
2026-03-10 14:17:15 -05:00
Kate Wang
f6ff907ab2 drivers: display: st7796s: Update driver
Add the support of DBI bus color coding configuration, also
pass down height/width/pitch of the frmae buffer descriptor
during frame update. Some DBI controller may need this configuration.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-03-10 14:16:39 -05:00
Duy Dang
925d652d10 driver: pinctrl: Add support R-Car V4H SoC
Add pin definition for R-Car V4H SoC.

Signed-off-by: Duy Dang <duy.dang.yw@renesas.com>
2026-03-10 14:15:49 -05:00
Duy Dang
3d68ed92d5 driver: clock_control: Add V4H clock control driver
Support Clock Pulse Generator driver for V4H

Signed-off-by: Duy Dang <duy.dang.yw@renesas.com>
2026-03-10 14:15:49 -05:00
Jan Behrens
86f6c012c2 drivers: counter: rpi_pico_pit: Fixes unwanted running
Fixes the counter running after initialization and the counter running
after calling counter_set_top_value, regardless of previous state.
Also adjusts the tests.

Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
2026-03-10 17:24:32 +01:00
Harini T
d9220b8286 watchdog: wdt_xilinx_wwdt: Add explicit state validation in feed
Add software state check (!data->wdt_started) to wdt_feed() validation
to ensure feed operations are only allowed after wdt_setup() has been
called.

Signed-off-by: Harini T <harini.t@amd.com>
2026-03-10 15:10:22 +01:00
Raffael Rostagno
1dd41b7a0b drivers: gpio: esp32: Add pull support for wakeup
Add pull-up/down support to RTCIO pins for wakeup function.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-10 15:09:30 +01:00
Raffael Rostagno
f25243cf7a drivers: gpio: esp32: Add wakeup support
Add support to GPIO_INT_WAKEUP flag at config() event.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-10 15:09:30 +01:00
Raffael Rostagno
53fe964473 drivers: gpio: esp32: Add device PM
Add device PM to ESP32 GPIO driver.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-10 15:09:30 +01:00
Raffael Rostagno
14acf0cab1 drivers: counter: rtc: esp32: Add device PM
Add device PM to ESP32 RTC counter driver.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-10 15:09:30 +01:00
Raffael Rostagno
5250dc705a drivers: uart: esp32: Add device PM
Add device PM to ESP32 UART driver.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-10 15:09:30 +01:00
Raffael Rostagno
af76ef1162 drivers: systimer: esp32: Add systimer compensation
Add systimer compensation for time spent in light sleep while stalled.
Add sys_clock_idle_exit() for dticks announcement when leaving
light sleep.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-10 15:09:30 +01:00
Alexis Czezar Torreno
840f1991a2 drivers: stepper: adi_tmc: add TMCM-3216 driver
Add driver for the Trinamic TMCM-3216 3-axis stepper motor controller
module with RS485 communication interface.

RS485 Bus Layer:
- 9-byte TMCL datagram TX/RX with checksum validation
- Half-duplex echo handling with timeout detection
- GPIO-based DE (Driver Enable) pin control

TMCM-3216 Driver:
- Implements Zephyr stepper API (enable/disable, microstep resolution,
  absolute/relative positioning, continuous rotation)
- SAP/GAP (Set/Get Axis Parameter) commands
- MVP (Move to Position) and ROR/ROL (Rotate Right/Left) commands
- Position reached flag and velocity-based motion detection
- Event callbacks for step completion
- Semaphore-protected bus access for thread safety

Public API:
- tmcm3216_set_max_velocity / tmcm3216_get_max_velocity
- tmcm3216_set_max_acceleration
- tmcm3216_get_actual_velocity
- tmcm3216_get_status

Build System:
- Kconfig options for controller, stepper_ctrl, and stepper_driver
- RS485 bus automatically selected when TMCM-3216 is enabled

Signed-off-by: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>
2026-03-10 15:07:27 +01:00
Josuah Demangeon
4282f14306 drivers: video: introduce Sony IMX219 sensor driver
Add support for the Sony IMX219 CSI sensor.
This sensor supports resolution of 3280x2464 in RGGB bayer format
either 8 or 10 bits and using 2 or 4 CSI lanes.
Only 10 bits on 2 CSI lanes is currently supported, and only in
1920x1080 pixel resolution using cropping using the video_set_format(),
and will need to be converted to video_set_selection() instead.

Signed-off-by: Josuah Demangeon <me@josuah.net>
Co-authored-by: Alan Shaju <alanshaju@rideltech.com>
Co-authored-by: Alain Volmat <alain.volmat@foss.st.com>
2026-03-10 15:04:02 +01:00
Josuah Demangeon
591d6e3d17 drivers: video: sort CMakeLists.txt/Kconfig imports
Switch to zephyr-keep-sorted-start/stop to keep checking the new
driver imports are always sorted, which reduces chances of git
conflict while adding new drivers from separate branches.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2026-03-10 15:04:02 +01:00
Josuah Demangeon
70e1f96cb6 driver: video: ctrls: add VIDEO_CID_DIGITAL_GAIN
Only VIDEO_CID_ANALOGUE_GAIN and VIDEO_CID_GAIN were defined. Also add
the complementary VIDEO_CID_DIGITAL_GAIN.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2026-03-10 15:04:02 +01:00
Fin Maaß
068569a268 drivers: sdhc: litex: add litesdcard driver
add litex litesdcard driver.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-10 12:33:41 +01:00
Khai Cao
e08cbc77e0 drivers: flash: select MPU_ALLOW_FLASH_WRITE for Renesas RA MRAM
MRAM programs via direct memory-mapped writes, which the ARM MPU
blocks unless MPU_ALLOW_FLASH_WRITE is enabled. Fixes a Data Access
Violation on ra8x2 when running the flash common test suite.

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-03-10 09:39:10 +01:00
Tony Han
3c07a68ae2 drivers: net: sam_gmac: set GMAC_NCFGR.GBE when working in Gigabit mode
Set register bit GMAC_NCFGR.GBE to configure GMAC for 1000Mbps operation.
Gigabit mode is not supported by SAM E70/S70/V70/V71 family, it is
supported by SAMA7G54.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-03-10 09:38:25 +01:00
Albort Xue
864269e27c drivers: flash: mcux_flexspi_nor: use IP read path
When IPED encryption is enabled, AHB-mapped reads can hang.

Switch flash_flexspi_nor_read() to use FlexSPI IP read
transactions and handle unaligned requests with aligned
chunk reads plus memcpy to the caller buffer.

This removes the SoC-specific workaround and avoids
hangs in encrypted regions.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-03-10 09:35:59 +01:00