Commit graph zephyr/drivers
Author SHA1 Message Date
Benjamin Cabé
73952ba1b0 drivers: sensor: use proper essential type in boolean variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Benjamin Cabé
70ee13191d drivers: rtc: use proper essential type in boolean variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Benjamin Cabé
92bf44017a drivers: regulator: use proper essential type in bool variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Benjamin Cabé
d4d355632c drivers: pwm: use proper essential type in boolean variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Benjamin Cabé
1e957dcb8e drivers: modem: use proper essential type in boolean variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Benjamin Cabé
c64e54e895 drivers: dma: use proper essential type in boolean variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Benjamin Cabé
4d33f3bde0 drivers: crypto: use proper essential type in boolean variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Benjamin Cabé
ef79c52871 drivers: counter: use proper essential type in bool variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Benjamin Cabé
3cdf9f1846 drivers: adc: use proper essential type in boolean variables assignments
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
assigned true/false values, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-05 10:20:22 +00:00
Oleksandr Skopets
7b0d298450 drivers: sensor: bmi270: fix I2C write to use single transaction
Combine register address and data in one buffer and use i2c_write_dt()
instead of i2c_burst_write_dt() so the transfer is a single I2C
transaction. Some I2C controllers (e.g. Infineon) split burst write
into two transactions with a STOP in between, which causes failure.

Signed-off-by: Oleksandr Skopets <skopets.sasha@gmail.com>
2026-02-04 15:33:12 -06:00
Sai Santhosh Malae
2ed508222d drivers: clock: siwx91x: Update QSPI clock source to INTF_PLL
Doing this increases the QSPI peripheral clock from 40 MHz to 80 MHz.
This improves flash access throughput and overall performance
on siwx91x devices, as QSPI is used for external flash operations.

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2026-02-04 15:28:49 -06:00
Sai Santhosh Malae
505251140d drivers: spi: siwx91x: hold GSPI FIFO reset for one bus clock cycle
The Siwx91x GSPI controller requires the FIFO reset bits to be
held high for a minimum of one GSPI bus clock cycle.
Currently, the driver asserts and deasserts the reset back-to-back,
which may result in an insufficient reset pulse width at higher
frequencies.
Add a small, frequency-based delay after asserting the FIFO reset
bits to guarantee the minimum reset duration, ensuring reliable
FIFO reset behavior.

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2026-02-04 15:28:49 -06:00
Sai Santhosh Malae
84a5255ac8 drivers: spi: siwx91x: Fix DMA callback handling
Update the GSPI DMA configuration to conditionally register the DMA
callback based on transfer direction and RX buffer presence. The
callback is enabled for TX-only transfers when the RX buffer is NULL
and for RX transfers when a valid RX buffer is provided.

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2026-02-04 15:28:49 -06:00
Dat Nguyen Duy
597933388d drivers: nxp_lpspi: add driver support for GIC-based platforms
On Cortex-M with NVIC, if a peripheral sets its interrupt
flag again while the current handler is executing, the NVIC
pending bit is set. Even after the current handler clears
the flags, the pending bit still remain set. The current
implementation manually clears the pending bit to avoid
unneccesary extra handler calls when no additional
processing is required.

On other Arm GIC-based platforms like Cortex-R52, the GIC
automatically clears the pending bit when the peripheral
flag is cleared since these interrupts are level-sensitive.
Therefore, manually clearing the pending bit is unneccesary.

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-02-04 15:28:13 -06:00
Dat Nguyen Duy
afda1e8de4 drivers: spi_nxp_lpspi: introduce Kconfig option for ERR050456
ERR050456 affects only S32K344, not all S32 platform

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-02-04 15:28:13 -06:00
Rob Newberry
0d28bc1fb2 drivers: spi: stm32: allow for using soft NSS in peripheral mode
The current stm32 drivers will only enable soft NSS support if
the device is using a Zephyr managed GPIO for CS, or if the
CONFIG_SPI_STM32_USE_HW_SS flag is set.  Neither of these are
actually appropriate for a peripheral, which doesn't control CS.

With this change, it is possible for the SPI interface to be
configured as a peripheral but still use soft NSS -- otherwise,
short of creating a "fake" GPIO configuration, the peripheral
will always use hard NSS, and for some boards/configurations,
that is unworkable.  In the case of a board where the CS
is not hooked up, we can use soft NSS to allow the peripheral
to assume CS and be driven by the SPI clock signal alone.

Our board has only three signals (clock, COPI, POCI) enabled
on one of the SPI interfaces (it is communicating with another
MCU on the same board), and works with this change.  Without
the change, we must enable a "fake" GPIO driver configuration
(which is never used for anything, and really makes little
sense for a peripheral, but it just happens to force the
driver to go down that code path).  We cannot disable the
CONFIG_SPI_STM32_USE_HW_SS mechanism, as that impacts ALL
interfaces, and we have a second interface in controller
mode that speaks to flash and requires the NSS_HARD codepath.

Signed-off-by: Rob Newberry <rob@zenomoto.com>
2026-02-04 15:27:17 -06:00
Zhaoxiang Jin
def38a2e28 drivers: dac: dac_mcux_gau: fix comment formatting
Remove stray '/' character at the end of comment line.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-04 12:54:22 -06:00
Gaetan Perrot
5573edd13f wifi: nrf: remove unused local variables
Remove several local variables that are assigned but never used.

No functional change.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-04 12:53:07 -06:00
Matthias Alleman
821d372c47 drivers: gpio: gpio_pca_series: fix unresponsive gpio_pca_series
The gpio_pca_series driver may stop responding if the gpio_int is
asserted between reading the interrupt status and clearing it.
If the interrupt gpio_int is not deasserted by the time the handler
finishes, the interrupt work should be rescheduled.

Signed-off-by: Matthias Alleman <matthias.alleman@basalte.be>
2026-02-04 12:51:00 -06:00
Fin Maaß
ecf21e2f72 drivers: net: ppp: remove intermediate ll_addr
Remove unneeded intermediate ll_addr.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-02-04 15:18:35 +00:00
Fin Maaß
b4899f44a6 drivers: net: slip: remove intermediate ll_addr
Remove unneeded intermediate ll_addr.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-02-04 15:18:35 +00:00
Fin Maaß
da7671ae7d drivers: ethernet: native: tap: remove intermediate ll_addr
Remove unneeded intermediate ll_addr.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-02-04 15:18:35 +00:00
Wilfried Chauveau
0d48949589 drivers: serial: uart_cmsdk: apply clang-format
Following the last change, a clang-format pass is required.

Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
2026-02-04 13:56:48 +01:00
Wilfried Chauveau
f63344cf4f drivers: serial: uart_cmsdk: remove code duplication
This change makes the driver rely on DT_INST_FOREACH_STATUS_OKAY(...)
rather than copy-paste the same code several time.
This also has the advantage of allowing more that 5 instances of this
uart driver.

Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
2026-02-04 13:56:48 +01:00
Pisit Sawangvonganan
bfff5cf098 drivers: counter: stm32: remove duplicate reset implementation
Drop `counter_stm32_reset_timer`, introduced in PR #94189 (01a00d5),
as it duplicates the existing `counter_stm32_reset` functionality.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2026-02-04 13:56:29 +01:00
Jeremy Truttmann
9f2844341f drivers: ethernet: eth_native_tap: set the link address on interface
Calling net_if_set_link_addr() is needed to update the link address
information of the interface.

Signed-off-by: Jeremy Truttmann <jetstreeam.code@outlook.com>
2026-02-04 13:56:16 +01:00
Albort Xue
807f5e8f1f drivers: pwm: nxp_flexio: Add clock configuration and enable
Add explicit clock configuration and enable calls during driver
initialization.

Note: -ENOSYS is temporarily ignored as not all clock control
drivers currently implement the configure API. This handling
should be removed once all clock drivers support configure.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-02-04 13:55:30 +01:00
Albort Xue
df3b494c61 drivers: counter: mcux_tpm: Add clock configuration and enable
Add explicit clock configuration and enable calls during driver
initialization.

Note: -ENOSYS is temporarily ignored as not all clock control
drivers currently implement the configure API. This handling
should be removed once all clock drivers support configure.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-02-04 13:55:17 +01:00
Sylvio Alves
4c197048a2 drivers: counter: esp32: fix relative alarm diff calculation
Fix incorrect diff calculation for relative alarms that caused alarm
callbacks to never fire. The original code calculated diff as
(alarm_cfg->ticks - now), which caused unsigned underflow when
now > alarm_cfg->ticks, resulting in a huge diff value that
incorrectly triggered the late alarm path and set callback to NULL.

For relative alarms, the diff should simply be the ticks value since
it already represents the delay from the current time.

Also add channel validation to return -ENOTSUP for chan_id > 0 since
ESP32 timer hardware only supports one alarm comparator per timer.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-04 13:54:57 +01:00
Gaetan Perrot
bef6b24918 drivers: wifi: nrf: wifi_mgmt: remove invalid range check
Remove the negative value check on bss_max_idle_period, which is
defined as an unsigned type and can never be less than zero.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-02-04 13:54:01 +01:00
Madhab Sharma
6ffbe8bf83 drivers: wifi: esp32: retrieve scan results iteratively
Refactor scan_done_handler to retrieve Access Point (AP) records one
by one rather than pre-allocating a large buffer for the entire list.

Previously, the driver attempted to k_malloc space for all detected APs
simultaneously. In environments with high AP density or under system
memory pressure, this allocation would often fail, resulting in no
scan results being reported.

Improvements:
- Switched to stack-allocated wifi_ap_record_t to process entries.
- Replaced esp_wifi_scan_get_ap_records with a while-loop using
  esp_wifi_scan_get_ap_record to reduce peak heap usage.
- Added esp_wifi_clear_ap_list() to ensure hardware resources are
  freed after the loop completes.
- Added warning log on unexpected scan fetch failures.

This makes Wi-Fi scanning significantly more robust in memory-constrained
scenarios.

Signed-off-by: Madhab Sharma <madhabsharma94@gmail.com>
2026-02-04 13:53:34 +01:00
Bernardo Perez Priego
9ae9d167e3 serial: uart_mchp_xec: fix TX complete status check
Fix the logic in `uart_xec_irq_tx_complete` when evaluating the UART line
status register against the TX-empty mask. The previous condition could
report "TX complete" even when the TX path was not fully empty, which can
cause flush users to loop or make incorrect progress decisions.

This change corrects the comparison against the TX-empty mask so that the
function only reports completion when the hardware indicates the expected
empty state.

Signed-off-by: Bernardo Perez Priego <bernardo.perez.priego@intel.com>
2026-02-04 13:53:23 +01:00
Benjamin Cabé
226029aa89 drivers: i2c: use proper essential type for boolean variables
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
initialized and used with proper essential type (true/false).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-04 13:52:38 +01:00
Benjamin Cabé
422710bcf8 drivers: intc: use proper essential type for boolean variables
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
initialized and used with proper essential type (true/false).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-04 13:52:38 +01:00
Benjamin Cabé
aa99fda10a drivers: sensor: use proper essential type for boolean variables
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
initialized and used with proper essential type (true/false).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-04 13:52:38 +01:00
Benjamin Cabé
b295fe1bc5 drivers: memc: use proper essential type to initialize boolean variables
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
initialized with true/false, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-04 13:52:38 +01:00
Benjamin Cabé
2013be3024 drivers: counter: use proper essential type to initialize boolean variables
As per Zephyr coding guideline #59, "operands shall not be of an
inappropriate essential type". This makes sure boolean variables are
initialized with true/false, not 1/0.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-04 13:52:38 +01:00
Jamie McCrae
ff212ba22e dts: nordic: Fix missing ranges properties and relative addresses
Adds these properties which are missing, and fixes instances of
wrongly using relative addresses when they are already absolute

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-02-04 13:51:57 +01:00
Benjamin Cabé
ba97ed1ad0 drivers: fpga: adopt SHELL_HELP in FPGA shell
Use SHELL_HELP macro for help strings to ensure consistency across
various shell modules.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-04 13:49:51 +01:00
Darcy Lu
59a6e3592f drivers: watchdog: add watchdog driver for RTS5817
Add watchdog driver for RTS5817

Signed-off-by: Darcy Lu <darcy_lu@realsil.com.cn>
2026-02-04 13:49:21 +01:00
Darcy Lu
b0b5dc7ff6 drivers: pinctrl: add pinctrl driver for RTS5817
Add pin controller driver for RTS5817

Signed-off-by: Darcy Lu <darcy_lu@realsil.com.cn>
2026-02-04 13:49:21 +01:00
Darcy Lu
7960519458 drivers: reset: add reset driver for RTS5817
Add reset driver for RTS5817

Signed-off-by: Darcy Lu <darcy_lu@realsil.com.cn>
2026-02-04 13:49:21 +01:00
Darcy Lu
cff7b7a5af drivers: clock_control: add clock control for RTS5817
Add clock control driver for RTS5817

Signed-off-by: Darcy Lu <darcy_lu@realsil.com.cn>
2026-02-04 13:49:21 +01:00
Venkatesh Odela
0c770e9177 drivers: ethernet: eth_xilinx_axienet: remove unused variable
remove unused variable

Signed-off-by: Venkatesh Odela <venkatesh.odela@amd.com>
2026-02-03 14:32:49 -06:00
Seppo Takalo
f9483e3568 drivers: modem: cellular: Add shutdown script for nRF91
Add shutdown script for nRF91 Serial Modem.

Also, set unused timeout values to zero.
Only the reset_ms is used when the switch from
CMUX back to AT mode UART happens.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2026-02-03 14:31:19 -06:00
Albort Xue
23cdd0f374 drivers: flash: flexspi_nor: Update page program LUT for 4-byte addressing
When 4-byte addressing is enabled, update the page program LUT entry
to use the appropriate 4-byte page program command (SPI_NOR_CMD_PP_4B).

For octal mode (1S-8S-8S), select the correct page program command
based on address width:
- Use SPI_NOR_CMD_PP_1_8_8_4B for 32-bit addressing
- Use SPI_NOR_CMD_PP_1_8_8 for 24-bit addressing

This ensures the flash controller uses the correct command sequence
for page programming operations in both standard and octal modes with
extended addressing.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-02-03 14:27:07 -06:00
Albort Xue
8dd7b20f84 drivers: flash: spi_nor: Add octal page program command definitions
- 1-1-8 and 1-8-8 page program commands for 3-byte addressing
- 1-1-8 and 1-8-8 page program commands for 4-byte addressing

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2026-02-03 14:27:07 -06:00
Juliusz Sosinowicz
005598c100 drivers: timer: hpet: add checks to not crash at init
Zephyr was crashing in hpet when the base address
wasn't set yet when using MMU and when
`cyc_per_tick` was not defined yet.

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
2026-02-03 14:23:01 -06:00
Zacck Osiemo
690660f8f6 drivers: gpio: Introduce SC18IS606 GPIO Controller
Added a driver implementation for the GPIO Controller
on the sc18is606

Signed-off-by: Zacck Osiemo <coderv63@gmail.com>
2026-02-03 14:22:34 -06:00
Zacck Osiemo
41a6f3ebce drivers: mfd: Add base support for NXP SC18IS606
Add support for base sc18is606  device and move dependencies to
mfd header rather than the SPI device.

Signed-off-by: Zacck Osiemo <coderv63@gmail.com>
2026-02-03 14:22:34 -06:00