Commit graph zephyr/drivers
Author SHA1 Message Date
Venkatesh Odela
712e30e3c7 drivers: ethernet: phy: Fix missing configurations
Add indirect read/write method for accessing extended register
set beyond 0x1F. Implement configuration for strap quirk, reset
and restart ensures reliable PHY initialization and operation.

Signed-off-by: Abin Joseph <abin.joseph@amd.com>
Signed-off-by: Venkatesh Odela <venkatesh.odela@amd.com>
2026-02-23 11:35:14 +00:00
Carlo Caione
ed7f33df6e drivers: lora: sx126x: add STM32WL sub-GHz radio support
Add support for the STM32WL integrated sub-GHz radio to the native
SX126x driver. The STM32WL has an SX126x-compatible radio core but
uses internal peripherals instead of external GPIOs.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2026-02-23 11:34:35 +00:00
Carlo Caione
ea3fa9a819 drivers: lora: sx126x: factor out common HAL code
Extract common HAL functions shared between different SX126x
implementations into sx126x_hal_common.c, this prepares the driver for
supporting additional platforms like the STM32WL integrated radio.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2026-02-23 11:34:35 +00:00
Shontal Biton
4f66943327 drivers: counter: Add counter driver for BURTC in Silabs s2 and s3
Add support for using BURTC as regular counter,
without overriding the sleeptimer.

Signed-off-by: Shontal Biton <shontal1005@gmail.com>
2026-02-23 11:32:26 +00:00
William Markezana
03286aad00 drivers: watchdog: add Bouffalo Lab BL70x watchdog driver
Add a watchdog timer driver for all Bouffalo Lab SoC families.

Tested on Sipeed M0Sense (BL702) with tests/drivers/watchdog/wdt_basic_api.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-02-23 08:52:12 +01:00
William Markezana
8f7cef3898 drivers: i2c: bflb: refactor transfer to reduce complexity
Extract five helpers from i2c_bflb_transfer to reduce cognitive
complexity from ~45 to ~15:

- i2c_bflb_check_msgs: validate message lengths and 10-bit addressing
- i2c_bflb_wait_idle: busy-wait for bus idle
- i2c_bflb_wait_completion: wait for transfer end with error checks
- i2c_bflb_do_read: read path with scatter into msg buffers
- i2c_bflb_do_write: write path with 0-length probe workaround

Also check return values of i2c_bflb_read/i2c_bflb_write that were
previously ignored, and fix num_msgs <= 0 to == 0 (uint8_t).

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-02-23 08:51:02 +01:00
William Markezana
a895bd6ba4 drivers: i2c: bflb: fix timeouts
Fix uninitialized k_timepoint_t in read/write paths that caused
undefined timeout behavior. Add early NAK/error detection in the
transfer loops to fail fast instead of spinning until timeout.
Remove unnecessary __no_optimization attributes.

Tested on Sipeed M0Sense (BL702) with I2C peripherals across
PDS sleep/wake cycles.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-02-23 08:51:02 +01:00
William Markezana
0ab817a08e drivers: hwinfo: add Bouffalo Lab BL70x hardware info driver
Add a hardware info driver for the Bouffalo Lab BL70x SoC family
that reads the unique device ID from the on-chip efuse.

Tested on Sipeed M0Sense (BL702).

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-02-23 08:49:54 +01:00
Pieter De Gendt
b606996c29 drivers: lora: sx126x: Put driver API into iterable sections
Use DEVICE_API to put driver API into the correct linker section.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-23 08:49:10 +01:00
Fiona Behrens
e4068f8757 soc: nuvoton m48x: use numaker reset driver for uart
Use the numaker reset driver for the reset in the numicro uart driver.

Signed-off-by: Fiona Behrens <me@kloenk.dev>
2026-02-23 08:48:43 +01:00
Henrik Brix Andersen
7651a2f4c5 drivers: can: tcan4x5x: add support for configuring nWKRQ pin voltage rail
Add support for configuring the voltage rail used for the nWKRQ
pin. Previously, the driver hard-coded this to VIO, open-drain.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-02-22 22:05:14 +01:00
Henrik Brix Andersen
22cfdb3e63 drivers: can: tcan4x5x: allow for VCCOUT to stabilize on local wake-up
Allow for VCCOUT to stabilize when issuing a local wake-up.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-02-22 22:05:14 +01:00
Henrik Brix Andersen
d1f50f29d0 drivers: can: tcan4x5x: do no busy wait for an entire millisecond
Switch to use k_usleep() instead of k_busy_wait() in tcan4x5x_reset()
function, waiting for the reset to complete.

Initially, the tcan4x5x_reset() function was only ever called during driver
initialization, where busy waiting for 1000 microseconds was not an issue,
but since adding device power management support, this function can now
also be called during device resume.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-02-22 22:05:14 +01:00
Sayed Naser Moravej
251fe8177b drivers: ethernet: add support for WIZnet w6100
This PR adds support for W6100 spi ethernet controller.
This driver is tested on the w6100-evb-pico
https://docs.wiznet.io/Product/Chip/Ethernet/W6100

Signed-off-by: Sayed Naser Moravej <seyednasermoravej@gmail.com>
2026-02-22 16:13:25 +00:00
Pieter De Gendt
2121daa8ee drivers: clock_control: Put API into iterable section
Update the driver to use DEVICE_API to put it into the correct iterable
section.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-22 16:13:03 +00:00
Camille BAUD
e1bf32d7d1 drivers: adc: fix Infineon SAR PR removing bflb adc
Please check your rebases
Fixes deletion of driver unrelated to PR.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-02-20 21:54:38 -08:00
Adam BERLINGER
da95dcdbd2 driver: flash_stm32_xspi: Remove HSLV configuration
HSLV now handled by stm32_iocell driver and board device tree.
LL_PWR_EnableXSPIM2 called already in SoC initialization:
soc/st/stm32/stm32h7rsx/soc.c

Signed-off-by: Adam BERLINGER <adam.berlinger@st.com>
2026-02-20 10:32:44 -08:00
Mathieu Choplain
b779a2b03f drivers: gpio: stm32: use device as ISR argument instead of data
The GPIO ISR needs both a pointer to the device object and its data block
(because the callback linked list is stored in the data block). Sicne the
device object has a built-in pointer to the data block, using that as the
ISR's argument allows obtaining all we need "for free" whereas the current
approach wastes 4 bytes of RAM per GPIO port instance.

Note that once compiled, the reworked ISR is effectively identical to the
old one (only the offset of one `ldr Rt, [Rn, #off]` changes).

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2026-02-20 10:31:46 -08:00
Fabin V Martin
4f95b4d152 drivers: uart: microchip: sercom g1: refactor code
Changes added to make g1 driver to be used across multiple
SoC's and also avoids use of multiple SOC symbols in the
source file for selecting between the similar but differently
named macros and reg definitions across multiple DFP's.

Signed-off-by: Fabin V Martin <Fabinv.Martin@microchip.com>
2026-02-20 10:31:08 -08:00
Dev Joshi
925224a98e drivers: fuelgauge: add support for SOH property
This commit adds support for State-of-Health (SOH) property in the
fuel_gauge subsystem.

Signed-off-by: Dev Joshi <devbhave@qti.qualcomm.com>
2026-02-20 10:28:42 -08:00
Christoph Schnetzler
7ffbc237c9 drivers: mipi_dbi: add mipi_dbi_rpi_pico_pio
Add mipi_dbi driver for MIPI_DBI_MODE_8080_BUS_8/9/16_BIT using PIO and DMA

Signed-off-by: Christoph Schnetzler <schnetzler.christoph@gmail.com>
2026-02-20 10:25:45 -08:00
Anuj Paudel
59b753094a drivers: rtc: pcf8563: Fix year offset conversion
The PCF8563 stores years as 2-digit BCD (00-99 for years 2000-2099)
as specified in the datasheet (Table 17, section 8.4.7):
https://www.nxp.com/docs/en/data-sheet/PCF8563.pdf

However, struct rtc_time uses tm_year as years since 1900 (100-199
for years 2000-2099).

The driver was incorrectly passing tm_year directly to bin2bcd()
without conversion, causing:
1. Invalid BCD values to be written (e.g., 0x7E for year 2026)
2. 100-year offset when reading back (year 2026 read as 1926)

Fix by:
- SET: Use modulo 100 to convert tm_year to chip format
- GET: Add 100 to convert chip value back to tm_year

This follows the same pattern as the DS1307 driver
(drivers/rtc/rtc_ds1307.c).

Tested in Renode simulation with custom PCF8563 peripheral.
All test years (2000, 2026, 2050, 2099) pass with valid BCD values.

Fixes #103971

Signed-off-by: Anuj Paudel <anujpaudel98@yahoo.com>
2026-02-20 14:59:14 +01:00
Erwan Gouriou
e5d5f3eee7 drivers: flash: stm32_q/o/xspi: Add default to reset_gpios_duration
Make use of a default 1ms value to reset_gpios_duration.
Do not put default to dt prop reset-gpios-duration since it should remain
optionnal.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2026-02-20 14:58:58 +01:00
Erwan Gouriou
f2ed2791f3 drivers: flash: stm32_xspi: Instantiate driver initialization
Now several drivers instances could be enabled at the same time.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2026-02-20 14:58:58 +01:00
Erwan Gouriou
434ca35827 drivers: flash: stm32_xspi: Minor cleanup
Move around some code before driver instanciation

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2026-02-20 14:58:58 +01:00
Erwan Gouriou
c40651be07 drivers: flash: stm32_xspi: Rework code relating to some properties
Some DT properties where used directly in the code w/o being put in
instatiable device structs (cfg, data).
Move them in these structs and access it from there.

Change definition of STM32_XSPI_RESET_GPIO to DT_ANY_INST

While I'm at it, simplify use of DT macros, replace
DT_NODE_HAS_PROP(DT_INST(0, st_stm32_ospi_nor), foo)
by DT_INST_NODE_HAS_PROP(0, foo).

Remove DT_XSPI_IO_PORT_PROP_OR, which is unused.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2026-02-20 14:58:58 +01:00
Erwan Gouriou
8790a72cd3 drivers: flash: stm32_xspi: Remove DT sfdp-bfp support
While there was a small related piece of code in the driver,
it is not handled in the code.
Remove the related code and make clear in the binding that this property
is not supported.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2026-02-20 14:58:58 +01:00
Erwan Gouriou
eca099fd7f driver: flash: stm32_xspi: Add Kconfig symbol for DMA
Having a dedicated Kconfig symbol will make things easier for next steps.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2026-02-20 14:58:58 +01:00
Sunil Hegde
33a7ed0179 drivers: watchdog: wdt_ti_rti: add callback support
- Add callback support for the watchdog driver.

Signed-off-by: Sunil Hegde <s-hegde3@ti.com>
2026-02-20 14:58:32 +01:00
Fin Maaß
b83997f20f drivers: ethernet: stm32: HAL_ETH_Init never returns HAL_TIMEOUT
In the V2 hal `HAL_ETH_Init()`  never returns `HAL_TIMEOUT`, so
remove that check.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-02-20 13:31:24 +01:00
Fin Maaß
4a69098aa9 drivers: ethernet: stm32: don't init hal_ret when not needed
hal_ret doesn't need to be assigned a value twice
before it is being used, so remove the unneeded first ones.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-02-20 13:31:24 +01:00
Zhaoxiang Jin
921b522a40 drivers: timer: cortex_m_systick: implement runtime frequency update
Implement z_sys_clock_hw_cycles_per_sec_update() for the Cortex-M
SysTick driver to support runtime system timer frequency changes
when CONFIG_SYSTEM_CLOCK_HW_CYCLES_PER_SEC_RUNTIME_UPDATE is enabled.

Also extend the conditional compilation guard for the external
z_clock_hw_cycles_per_sec declaration to include the runtime update
configuration option.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-20 13:31:07 +01:00
Zhaoxiang Jin
df6e6cf0d2 drivers: timer: add runtime system timer frequency update support
Add infrastructure to support updating the system timer frequency at
runtime on platforms where the timer clock rate can change dynamically.

Introduce CONFIG_SYSTEM_CLOCK_HW_CYCLES_PER_SEC_RUNTIME_UPDATE Kconfig
option that enables runtime frequency updates. This option is mutually
exclusive with CPU_FREQ_PER_CPU_SCALING since the system timer frequency
is tracked as a single global value.

Add z_sys_clock_hw_cycles_per_sec_update() API that platforms must call
after applying a system timer clock change. The kernel provides a weak
default implementation that updates the stored frequency value used by
sys_clock_hw_cycles_per_sec().

System timer drivers that cache derived constants or need to reprogram
hardware on frequency changes can provide a strong override of this
function to maintain driver state consistency while ensuring the stored
frequency is also updated.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-20 13:31:07 +01:00
Guillaume Gautier
7a7933ad50 drivers: clock: stm32l4-l5-wb-wl: remove all references to pllsai binding
Now that everything uses the generic STM32L4 PLL binding, remove all
references from the the old PLLSAI binding:
- Remove the lines using div_divr (it is now post_div_r)
- Remove the clock source check since it is now done in the driver
- Remove the PLLSAI binding since it is no longer used

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-02-20 10:11:30 +01:00
Guillaume Gautier
b600d38363 drivers: clock: stm32l4-l5-wb-wl: update pll configuration
For the STM32L4/L5/WB/WL, update the clock driver to support all PLL
channels.
Also add some BUILD_ASSERT to check that the clock are correctly defined
and configured in device tree.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-02-20 10:11:30 +01:00
Guillaume Gautier
897a30036f drivers: clock: stm32f2-f4-f7: fix error message
The property names in error message were not the correct ones (missing
an "-"). This commit fixes them.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-02-20 10:11:30 +01:00
Guillaume Gautier
39f046e15c drivers: clock: use concat instead of ##
Use CONCAT macro instead of ## to create the RCC macros.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-02-20 10:11:30 +01:00
Guillaume Gautier
779068e5ba drivers: clock: stm32: remove adcxx_prescaler macros
Remove adcxx_prescaler macros. They are unused since commit
914425fafc54bf359e1d7693846e387a1150988d.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-02-20 10:11:30 +01:00
Guillaume Gautier
22c9b6b877 drivers: clock: stm32: configure clock source with a single function
Use stm32_reg_modify_bits to configure the clock source, instead of calling
sys_clear_bits then sys_set_bits. Using modifiy makes only one write in
the RCC register instead of two previously.

Incidentally, for H5, clear was missing. It is now replaced by modify.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2026-02-20 10:11:30 +01:00
Sreeram Tatapudi
b9a4fade7c drivers: spi: Infineon: Fix IFX_SCB_ARRAY_SIZE for PSE84
Define IFX_SCB_ARRAY_SIZE for PSoC Edge SoCs to properly
determine the SCB array size.

Without this change, the driver fails to compile on
PSoC Edge platforms

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
2026-02-20 07:08:25 +01:00
Sreeram Tatapudi
4a3aaa03ab drivers: spi: Infineon: fix trailing commas in macros
Fix trailing commas in ADVANCED_SPI_FIELDS macro definition
and its usage to ensure clean macro expansion.

Signed-off-by: Sreeram Tatapudi <sreeram.praveen@infineon.com>
2026-02-20 07:08:25 +01:00
Braeden Lane
044ed89ae9 drivers: clock_control: infineon: Add ADC peripheral clock support
Extend the Infineon peripheral clock control driver to support
ADC peripherals. Adds IFX_RSC_ADC resource type handling and
PSOC4-specific clock destination initialization (set to 0 as
PSOC4 peripherals manage their own clock routing).

Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
Co-authored-by: Deepika R <deepika@aerlync.com>
Co-authored-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-20 07:08:02 +01:00
Braeden Lane
2d650bbf54 drivers: adc: Add Infineon SAR ADC driver
Add driver for the Infineon SAR ADC peripheral with device tree
binding. The driver uses a generic compatible (infineon,sar-adc)
with an infineon,version property to differentiate IP block
revisions (v2, v3). Features include:

- Single-ended and differential channel configuration
- Configurable resolution (8-12 bits)
- Multiple voltage reference sources (internal, VDDA, VDDA/2, external)
- Channel reference validation against block-level vref-src
- Hardware compensation for SAR v2/v3 single-ended channel limitation
- Interrupt-driven conversion completion
- Integration with peripheral clock control

The driver includes a compile-time per-instance API structure to
correctly report reference voltage to the ADC framework for accurate
raw-to-millivolts conversion.

Tested on CY8CKIT-041S-MAX (SAR v2) and CY8CPROTO-041TP (SAR v3) boards.

Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
Co-authored-by: Deepika R <deepika@aerlync.com>
Co-authored-by: Sayooj K Karun <sayooj@aerlync.com>
2026-02-20 07:08:02 +01:00
Petr Buchta
68b153831a drivers: flash: mcux_c40: fix partition parent lookup
Use DT_GPARENT() so that protection entries are generated for
partitions under the fixed-partitions node, even when an extra
intermediate node is present. This ensures the C40 protection table
is correctly derived from the flash<x> partitions.

Signed-off-by: Petr Buchta <petr.buchta@nxp.com>
2026-02-20 07:05:50 +01:00
Petr Buchta
42d9b9ed0a drivers: flash: guard flash_shell against NULL api
Handle the case where the chosen zephyr,flash-controller device has
no flash API (api == NULL). This prevents flash_shell from
dereferencing a NULL api pointer and hard-faulting when no usable
default flash device is available.

Signed-off-by: Petr Buchta <petr.buchta@nxp.com>
2026-02-20 07:05:50 +01:00
Jordan Yates
88fa1e2c94 flash: spi_nand: initial generic driver
Initial generic driver for SPI-NAND devices that expose the ONFI
parameter page. Does not support advanced features such as continuous
reads, software ECC, or optional power down modes.

Configuration comes from devicetree in order to support other modules,
but is validated against the loaded ONFI data at boot.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-02-20 07:05:32 +01:00
Marcelo Roberto Jimenez
9c872c664a drivers: ethernet: xmc4xxx: Fixes the checksum of bridged packets
Due to checksum offloading, the checksum field of a packet must be
zero before sending it to packet to the ethernet controller,
otherwise the computed checksum will be incorrect.

If the packet is bridged, it already has the correct checksum in
place, which will cause the automatically computed checksum to
incorrectly become zero.

In this patch we give bridged packets the special attention they
need.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2026-02-20 07:04:25 +01:00
Pete Johanson
9a175efbe6 drivers: serial: Disable async support on MAX32 RV32
MAX32 RV32 core DMA support is still a WIP, so disable async API for now
there.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2026-02-20 07:03:31 +01:00
Pete Johanson
9d22753c46 drivers: hwinfo: Disable MAX32 hwinfo driver on RV32 core.
The flash info blocks needed to provide the device ID are not accessible to
the RV32 core on MAX32 devices, so disable this hwinfo driver there.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2026-02-20 07:03:31 +01:00
Pete Johanson
814c12910f drivers: timer: Add MAX32 RV32 system timer
The RV32 core does not implement RISC-V mtime, so add a new system
timer driver uses a peripheral timer for this functionality.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2026-02-20 07:03:31 +01:00