Commit graph zephyr/drivers
Author SHA1 Message Date
Camille BAUD
3c22e65285 bflb: bluetooth: Fix BL70x M16S1 blob
Missing bl_rand shim, use proper size of EM

Fixes https://github.com/zephyrproject-rtos/zephyr/issues/109697

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-05-27 15:19:03 +01:00
Lin Yu-Cheng
df8a711c93 drivers: i2c_dw: add bus status check flow
The i2c bus may be pulled low by unstable environment.
Check the status before I2C transfer and
skip transmission if the bus is not ready.

Signed-off-by: Lin Yu-Cheng <lin_yu_cheng@realtek.com>
2026-05-27 15:18:24 +01:00
Luca Impagliazzo
1ef6567a21 drivers: modem: telit: align LE910C1TX with generic cellular modem patterns
- Switch binding to zephyr,cellular-modem-device.yaml
- Use MODEM_DT_INST_PPP_DEFINE to properly associate PPP with the modem
  device and preserve runtime PM integration

Signed-off-by: Luca Impagliazzo <Luca.Impagliazzo@telit.com>
2026-05-27 15:17:09 +01:00
Jordan Yates
415e8273d1 modem: cellular: network status event
Add an event for broadcasting the current network status (Cell tower
info) to application users. There is no common 3GPP AT command that
provides this information, but vendor-specific commands appear to exist
for most modems. e.g. `AT%XMONITOR` for Nordic and `AT#RFSTS` for Telit.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-05-27 15:16:51 +01:00
Jordan Yates
8801bfd5a0 modem: cellular: store access technology
Store the current registration access technology internally.

Switch cellular drivers to request the long form registration events to
extract this information. The `+CREG`, `+CGREG` and `+CEREG` commands
are 3GPP standards, but no effort has been made to check that each modem
supports the `2` mode beyond the nRF91 and Telit LE910C1 modems.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-05-27 15:16:51 +01:00
Sylvio Alves
513cd31abe drivers: i2c: esp32: add i2c target mode support
Add the i2c_target_register and i2c_target_unregister callbacks
for the ESP32 I2C driver. The target path uses the SCL stretch
interrupt to feed one byte per controller clock, supports the
byte-by-byte and buffer-mode callbacks, and reports bus errors
through the optional error callback.

The same instance can act as controller between target
callbacks, since i2c_transfer temporarily switches it to
controller mode and restores the target configuration when the
transaction ends.

Target mode requires the SCL stretch-cause hardware feature and
is therefore enabled on ESP32-S2, S3, C3, C5, C6 and H2 only.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-05-27 15:16:35 +01:00
Valerio Setti
c15cba4e7a modules: mbedtls: rename mbedTLS library and documentation usage
Having an interface library named "mbedTLS" and the real library named
"mbedtls" (as provided by the Mbed TLS module) is misleading.
This commit replaces:
- mbedTLS -> mbedtls_iface for the CMake library. "mbedTLS" is still
             available as alias to "mbedtls_iface" for backward
             compatibility, but this should be removed in the future.
- mbedTLS -> Mbed TLS in comments and documentation.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-05-27 15:16:06 +01:00
Ching Ping Sun
9ef4c82c0f drivers: ethernet: dm9051: Fix buffer size for 4-byte CRC
The DM9051 IC automatically appends a 4-byte CRC to each frame
stored in internal SRAM. The original driver did not account for
this, causing potential buffer overflow for large frames.

Add ETH_DM9051_CRC_SIZE constant and increase TX/RX buffer sizes
accordingly. Use IN_RANGE macro for RX length validation and
sizeof(data->rx_buf) for length checks.

Fixes: buffer overflow when receiving frames close to MTU (1500 bytes)
Fixes: potential RX length check issues with hardcoded values
Fixes: missing minimum frame size validation

Suggested-by: jukkar
Signed-off-by: Ching Ping Sun <tom_sun@davicom.com.tw>
2026-05-27 15:13:48 +01:00
Jisheng Zhang
56789a7e7f i2c: dw: skip pinctrl configuration if no pinctrl state
There is such situation where the PINCTRL is enabled but no pinctrl
state for i2c dw, we need to skip the pinctrl_apply_state() otherwise
the driver can't be initialized successfully.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
2026-05-27 15:12:14 +01:00
Jan Behrens
e304ae53af drivers: stepper: step-dir: Fix missing include
Adds the missing gpio.h include in step_dir_stepper_common.h

Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
2026-05-27 08:43:14 +02:00
Simon Guinot
7a424d5f57 drivers: led: leds_group_multicolor: fix brightness value
Remap brightness values from the [0, 255] range to the
[0, LED_BRIGHTNESS_MAX] range before calling
led_set_brightness_dt().

Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
2026-05-27 08:42:50 +02:00
William Tang
fa50b30d10 drivers: can: mcux: flexcan: Fix off-by-one error in MB IRQ handling
The FLEXCAN_MbHandleIRQ function expects the last mailbox index as a
parameter, not the total number of mailboxes. Mailbox indices are
zero-based (0 to N-1), so passing the mailbox count directly causes
an off-by-one error that could lead to accessing an invalid mailbox
index during interrupt handling.

This fix changes the fourth parameter from `config->number_of_mb` to
`config->number_of_mb - 1U`, ensuring the correct last mailbox index
is passed to the IRQ handler.

The issue could manifest as incorrect interrupt handling or potential
memory access violations when processing CAN mailbox interrupts,
particularly when all available mailboxes are configured in classical
CAN.

Signed-off-by: William Tang <william.tang@nxp.com>
2026-05-27 08:42:29 +02:00
Yongxu Wang
61cdfd01ce firmware: scmi: reboot: Simplify power state handling
Drop scmi_system_protocol_message_attributes() checks and rely on
scmi_system_power_state_set() return value instead, since protocol
attributes do not guarantee support for specific power states.

This simplifies the logic and ensures consistent handling of reboot
requests. Also improve error logging by including the requested
power state.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2026-05-27 08:40:22 +02:00
Moksh Panicker
06b9598993 drivers: i2c: stm32: re-initialize peripheral after bus recovery
After GPIO-based I2C bus recovery, pinctrl_apply_state() restores
the SCL/SDA pin configuration, but the I2C peripheral registers
remain in a faulted state. This causes the bus to remain unusable
after recovery completes.

Call i2c_stm32_runtime_configure() after restoring pin state to
fully reinitialize the peripheral registers, leaving the bus in
a known-good working state.

Fixes #108956

Signed-off-by: Moksh Panicker <mokshpanicker.7@gmail.com>
2026-05-27 08:37:46 +02:00
Radu Ciobanu
2c4046da82 drivers: dac: ad5529r: enable internal voltage reference
Select the internal 4.096V reference during init. The REF_SEL register
defaults to external, causing 0V output when no external reference is
connected.

Signed-off-by: Radu Ciobanu <Radu-rares.Ciobanu@analog.com>
2026-05-27 08:36:42 +02:00
Fabio Baltieri
1037d1a9af drivers: input: bee: use the common input_kbd_matrix_active function
Replace the custom bee_keyscan_all_released_and_debounced function with
input_kbd_matrix_active.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-05-27 08:36:28 +02:00
Fabio Baltieri
c368139a7b drivers: input: expose the input_kbd_matrix_active function
Make the input_kbd_matrix_active function available to keyboard drivers
directly.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2026-05-27 08:36:28 +02:00
William Markezana
d743a296c5 drivers: clock_control: bl808: add CPUPLL support
Add CPU PLL initialization, configuration, and clock gating for BL808.
The CPUPLL uses the same WAC PLL register layout as AUPLL, located at
CCI_BASE + 0x7D0 with CCI_CPUPLL_* field prefixes.

Config tables provide per-crystal analog parameters and SDMIN values
for the 480 MHz reference frequency. CPUPLL is the default root clock
source in bl808.dtsi at 320 MHz, with BCLK at 80 MHz. Boards can
override up to 480 MHz via DTS overlay.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-05-27 08:35:57 +02:00
William Markezana
93674c1d7e drivers: clock_control: bl808: add AUPLL support
Add Audio PLL initialization, configuration, and clock gating to the
BL808 clock controller. The AUPLL uses the CCI register block at
offset 0x750 with the same WAC PLL layout as WIFIPLL.

Config tables provide per-crystal analog parameters and SDMIN values
targeting 442.368 MHz (48 kHz audio family). BFLB_MUL_CLK scales to
other frequencies such as 451.584 MHz for the 44.1 kHz family.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-05-27 08:35:57 +02:00
Kurtis Dinelle
6b7302e454 drivers: sensor: tmp451: add TMP451 temperature sensor driver
Add support for the TI TMP451 remote and local temperature sensor.

Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Kurtis Dinelle <kurtisdinelle@gmail.com>
2026-05-27 08:35:06 +02:00
Daniel Schultz
3447db2776 drivers: serial: aesc: Add pinctrl
Apply pinctrl settings during the init function.

Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
2026-05-27 08:34:52 +02:00
Daniel Schultz
aca1beaa5b drivers: gpio: aesc: Add pinctrl
Apply pinctrl settings during the init function.

Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
2026-05-27 08:34:52 +02:00
Daniel Schultz
6e01bdd88c drivers: pinctrl: Add Aesc Pinmux Controller
The pinmux controller for the aesc silicon platform is a simple
controller to mux differnt input outputs to one output option.

Since this is an internal controller, pull, drive strength and slew
rate are not implemented due missing IO pad features.

Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
2026-05-27 08:34:52 +02:00
Jacob Wienecke
bace6c99d4 drivers: display: st7796s: add PM device support
Add pm_device_action callback to handle the display's power
management actions. The driver initializes via
pm_device_driver_init. First-time hardware setup lives in the
TURN_ON action so the framework runs it once the device's power
domain is on. On suspend the driver sends DISPOFF followed by
SLPIN. On resume it sends SLPOUT followed by DISPON, with delays
per datasheet.

Datasheet delays in suspend and resume branch on k_can_yield():
yield-safe contexts use k_msleep, otherwise k_busy_wait. This
keeps both runtime-PM (regular thread) and system-managed (idle
thread, IRQs locked) callers safe.

Register the driver with PM_DEVICE_DT_INST_DEFINE so the PM
framework or runtime PM can control the display power state.

Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
2026-05-27 08:31:51 +02:00
Henrik Brix Andersen
78154294fd drivers: eeprom: fake: install default delegate to avoid uninitialized mem
Install default EEPROM read API delegate to avoid unitialized "out"
variable when no delegate is installed by the application/test suite.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-05-26 14:50:44 -05:00
Henrik Brix Andersen
d5bd93ab08 drivers: can: fake: install default delegates to avoid uninitialized mem
Install default CAN API delegates to avoid unitialized "out" variables when
no delegate is installed by the application/test suite.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2026-05-26 14:50:11 -05:00
Sergei Ovchinnikov
da56fe6ee0 drivers: regulator: npm13xx: add check for nPM1300 PMIC revision
To apply the LDO soft start by default when relevant.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2026-05-26 14:49:28 -05:00
Henrik Brix Andersen
cdb5827599 drivers: timer: stm32: lptim: select CONFIG_RESET
Select CONFIG_RESET as the STM32 Low Power Timer (LPTIM) driver depends on
it.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2026-05-26 15:26:26 +02:00
Tony Han
acfb59ebde drivers: ethernet: sam_gmac: handle the GMAC register with device MMIO
Handle GAMC register with device memory-mapped input/output management.
As the MMIO is used, remove the MMU configurations for GMAC accordingly.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-05-26 15:23:38 +02:00
Tony Han
19c9d0d842 drivers: ethernet: mdio: mdio_sam: handle register with device MMIO
Handle GAMC register with device memory-mapped input/output management.

Signed-off-by: Tony Han <tony.han@microchip.com>
2026-05-26 15:23:38 +02:00
CHEN Xing
a46abafa51 drivers: spi: mchp: add flexcom spi driver
Add microchip flexcom spi driver.

Signed-off-by: CHEN Xing <xing.chen@microchip.com>
2026-05-26 15:20:07 +02:00
Manjae Cho
8d4b54cc78 drivers: ethernet: add WIZnet W6300 support
Add a driver for the WIZnet W6300 stand-alone Ethernet controller
with SPI interface. The driver operates in MACRAW mode using Socket 0
to send and receive raw Ethernet frames via Zephyr's Ethernet L2 layer.

PHY link state is monitored via the W6300 interrupt pin combined with
a periodic polling thread. The SPI protocol uses a 4-byte command
frame (instruction + address high + address low + dummy) for both
read and write operations, as required by the W6300 hardware.

Signed-off-by: Manjae Cho <manjae.cho@samsung.com>
2026-05-26 15:18:02 +02:00
Ren Chen
a9f1c19260 drivers: intc: it8xxx2: fix race in interrupt restoration
Fix the race between restoring interrupt enable register (ier)
states and runtime interrupt enabling that caused ec watchdog
timeouts on Google Ciri platform during stress testing. The
issue occurs if the adc interrupt enable bit is set right
before restoration, overwriting it with the outdated disabled
status and stucking adc thread.

To address this, this commit synchronizes `ier_setting[]` with
runtime enable/disable operations so
`ite_intc_restore_interrupts()` uses the latest ier state.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-05-26 09:23:39 +02:00
Sylvio Alves
bf57bcf4f1 soc: espressif: fix psram heap and linker-reserved window
Wi-Fi on PSRAM-enabled builds was failing because the shared multi
heap overlapped relocated .ext_ram.data noinit content. Anchor the
heap on the linker-reserved window, size esp32c5 and esp32s3 ext
segments to the cache window and bump the Wi-Fi SPIRAM heap floor.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-05-26 09:21:22 +02:00
Sylvio Alves
c0ca340b15 drivers: wifi: esp32: add task stack-size kconfig
Add ESP32_WIFI_TASK_STACK_SIZE to control the stack size used by the
Wi-Fi tasks spawned through the blobs. The adapter applies the
value as a floor: when the Wi-Fi library passes a larger stack,
at runtime, the larger value wins, so a higher Kconfig only
raises the minimum and never shrinks the request.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-05-26 09:21:08 +02:00
Venkatesh Odela
bfc4681bc1 drivers: dma: dma_xilinx_axi_dma: soft-reset DMA core
dma_init() performs a soft-reset to put the DMA into a known state, but
this reset is not repeated on subsequent stop/start cycles. If the DMA
stopped with error bits set, the next configure picks up the dirty state.

Add a needs_dma_soft_reset flag that is set by dma_stop() and checked at
the top of dma_configure(). When set, dma_configure() issues a soft-reset
via the RX channel DMACR (which resets both TX and RX), polls until the
reset bit clears, then continues with normal configuration.

Fixes DMA re-use after network interface down/up cycles.

Signed-off-by: Venkatesh Odela <venkatesh.odela@amd.com>
2026-05-26 09:20:34 +02:00
Brenden Adamczak
641b46bdd9 drivers: clock_control: stm32: MSI support for stm32n6
Add the MSI clock configuration and enabling based on device tree.

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/108573
Signed-off-by: Brenden Adamczak <cerebralasylum1@gmail.com>
2026-05-25 18:18:41 +02:00
cyliang tw
dc5f98e241 drivers: pinctrl & gpio: modify numaker driver for m031x support
Modify gpio_numaker.c & pinctrl_numaker.c for SOC_SERIES_M031X support.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2026-05-25 18:18:15 +02:00
Jay Pacamarra
760d3cf577 drivers: clock_control: stm32h7: gate set_up_plls() to M7 builds
adds a #if defined(CONFIG_CPU_CORTEX_M7) compilation gate for the
set_up_plls() function. This eliminates compiler errors on dual core
STM32H7 SoCs where the secondary core (Cortex-M4) enables pll since
according to the Zephyr docs, the clock configuration is only accessible
to the M7 core.

For example on the stm32h755xx soc the secondary Cortex-M4 core may choose
to enable the spi3 peripheral and have its kernel clock use pll2. Without
this fix, an implicit declaration of function errors related to the
following functions: get_vco_input_range and get_vco_output_range.

Signed-off-by: Jay Pacamarra <jay.pacamarra@sanctuary.ai>
2026-05-25 18:17:45 +02:00
Jordan Yates
062309af77 charger: add LOG_INF messages to charger state changes
Add basic `LOG_INF` messages notifying users of the updated charging
state when callbacks to users are run notifying them of the changes.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-05-25 18:17:23 +02:00
Jordan Yates
0976468924 charger: bq2518x: support notifications
Add support for charging status notifications if the interrupt pin is
connected to the application.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-05-25 18:17:23 +02:00
Jordan Yates
8279523641 charger: bq2518x: extract status decoding
Extract status decoding logic so it can be reused by other functions.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-05-25 18:17:23 +02:00
Jordan Yates
6c85f5cf3a charger: bq2518x: control TS_EN bit from devicetree
Property to disable the NTC based control of the charger.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-05-25 18:17:23 +02:00
Jordan Yates
8d16925e0c charger: bq2518x: relax charge voltage limitations
Relax the voltage clamping applied when configuring the maximum charge
voltage from software. Instead of treating the devicetree value as the
top limit, allow the full IC charge range to be selected.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2026-05-25 18:17:23 +02:00
Ruibin Chang
f5f7706414 input: it515xx_kbd: remove "required: true" of prop in yaml
KSO16 and KSO17 may be used as GPIO function,
so the property can't be claimed "required: true".

Also, add the condition, if kso16/kso17 is used as kbs function,
then switch pin function to output temporarily before pin control
to kbs mode.

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
2026-05-25 13:42:51 +02:00
Ruibin Chang
49197058ab input: it8xxx2_kbd: remove "required: true" of prop in yaml
KSO16 and KSO17 may be used as GPIO function,
so the property can't be claimed "required: true".

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
2026-05-25 13:42:51 +02:00
Jérémy Lefaure
250425d881 drivers: virtio: Align virtqueue receive callbacks array
Some architectures require aligned accesses so the recv_cbs address must be
aligned. With this fix, Virtio will work on riscv32_virtual platform.

Signed-off-by: Jérémy Lefaure <jlefaure@antmicro.com>
2026-05-25 13:40:02 +02:00
Jérémy Lefaure
b2ba607a2b drivers: virtio: Fix virtio_mmio for 32 bits platforms
On 32 bits platforms, the 32 bits shift leads to undefined behavior. This
fix makes the driver build without warning on 32 bits platforms.

Signed-off-by: Jérémy Lefaure <jlefaure@antmicro.com>
2026-05-25 13:40:02 +02:00
Michał Stasiak
6e229ff217 drivers: hwinfo_nrf: Align WDT reset reason to guard symbols
Some reset reason masks are now guarded by symbols.
Include them in WDT reset reason definition.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2026-05-25 13:39:54 +02:00
Chun-Chieh Li
b7cdf80084 drivers: i2c: numaker: format code
Format the code using clang-format and make no logic changes

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2026-05-25 13:39:32 +02:00