Commit graph

25,525 commits

Author SHA1 Message Date
Yongxu Wang
d24b50e952 drivers: scmi: add use_polling parameter in scmi_send_message
SCMI supports both polling and interrupt modes for message completion.
Previously, the scmi_send_message() API used a 'pre_kernel' flag to
determine which mode to use_polling during the pre-kernel phase and
interrupts post-kernel.

This approach tightly coupled the decision logic with kernel state,
limiting flexibility. In particular, certain power management (PM)
related SCMI APIs require polling mode even in post-kernel context
to avoid unintended CPU wakeups caused by interrupts.

This patch replaces the 'pre_kernel' with a more generic
'use_polling' parameter, allowing callers to explicitly specify
the desired behavior. Typical usage can still rely on k_is_pre_kernel()
to determine polling mode in higher level api, while PM related
calls can directly enforce polling regardless of kernel state.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-08-13 11:08:00 +01:00
Henrik Brix Andersen
1d45e17037 Revert "serial: uart_native_pty: IRQ support"
This reverts commit df1e6f5290.

Fixes: #94425

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-08-12 20:33:02 -04:00
Fin Maaß
9eb8e0c88f drivers: spi: litex: litespi: support interrupts
support interrupts for rx_ready, so we can use the
time we are waiting for other stuff.

implement async spi transfers.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-08-12 21:34:03 +02:00
Fin Maaß
bd7a5790ab drivers: spi: litex: increase SPI_MAX_CS_SIZE to 32
LiteSPI now has support for multiple CS.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-08-12 21:34:03 +02:00
Fin Maaß
1be193bf63 drivers: i2c: litex: remove warnings from CI
remove warnings from CI.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-08-12 21:34:03 +02:00
Fin Maaß
771b6ac07f drivers: i2c: litex: litei2c: support interrupts
support interrupts for rx_ready, so we can use the
time we are waiting for other stuff.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-08-12 21:34:03 +02:00
Mahesh Mahadevan
94f93405c1 dts: nxp: Add sleep-output property
This property allows a user to specify the operation of a
pin in sleep mode.
By default, pins are configured to be output low in sleep mode.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-08-12 21:33:34 +02:00
Marcin Szkudlinski
01d35752a4 mm: add sys_mm_drv_map_* functions with region check
the commit adds sys_mm_drv_map_page_safe and sys_mm_drv_map_region_safe
functions, wrappers for sys_mm_drv_map_region and sys_mm_drv_map_region,
with additional check if a mapped region fits into given memory range

Using of those prevents collisions and/or hijacking of virtual memory

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
2025-08-12 21:33:20 +02:00
Marcin Szkudlinski
3d461ee435 mm: add application access to unused_l2_start_aligned marker
this marker is an address of the very first byte not used by the linker,
with alignment to cacheline

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
2025-08-12 21:33:20 +02:00
Marcin Szkudlinski
51d3c7aa07 mm: add external control to virtual memory regions
this commit removes creation of virtual memory regions from
Zephyr, allowing the application to create required regions

It is up the application to use virtual memory as needed,
zephyr however is keeping the table and ensures no memory
addresses overlaps

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
2025-08-12 21:33:20 +02:00
Tim Pambor
df1e6f5290 serial: uart_native_pty: IRQ support
Add support for the interrupt-driven API. Interrupts are
emulated using a polling thread.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-08-12 21:33:00 +02:00
Krzysztof Chruściński
0a51a1714d drivers: timer: nrf_rtc: Fix custom wrapping
Use channel 0 for RTC wrapping. Skip that channel when processing
channels.
Fix algorithm that prevents setting CC=0 when custom wrapping is used.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-08-12 21:31:55 +02:00
Jakub Zymelka
c535d6e5d1 drivers: adc: nrfx_saadc: Add support for DMM
Add support for DMM which manages cache and dedicated memory spaces.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2025-08-12 12:35:48 +02:00
Tim Lin
e98920d695 drivers/i2c: it51xxx: Fix build assert to check port number instead of inst
Currently the build assert checks the number of I2C instances as
the available I2C target mode, which is incorrect.
This patch updates the build assert to check the I2C port_num instead,
since IT51xxx only supports I2C target mode on ports 0 to 2.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-08-12 09:56:19 +03:00
Aaron Fong
c9d50b6339 drivers: intc_dw: support multiple instances
Update the initializers to support platforms with multiple instances
of the DesignWare interrupt aggregator. Also ensure that the initialize
function calls irq_enable(). The calculation of the _sw_isr_table entry
also now takes CONFIG_GEN_IRQ_START_VECTOR into account.

Signed-off-by: Aaron Fong <afong@tenstorrent.com>
2025-08-12 09:54:43 +03:00
Quy Tran
56ec47c62d drivers: flash: Add flash driver support for RX with flash type 1
- Add support for flash driver on RX with flash type 1
- Add bindings for flash driver on RX

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-08-12 09:54:10 +03:00
Michal Smola
add9e60c1d drivers: i2c: mcux_lpi2c: Support split role interrupts
Some NXP SoCs have dedicated interrupts for controller and target roles.
The i2c_mcux_lpi2c driver connects only one interrupt.
Add connection of the second interrupt, if enabled, to support SoCs with
split role interrupts.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
2025-08-11 15:59:07 -04:00
Andrej Butok
bad99fff50 drivers: nxp: flash_mcux_flexspi: add jedec_id check
- Adds JEDEC-ID check to the flash_mcux_flexspi driver
  if it is defined in DTS.
- Avoids applying DTS settings to a different flash module.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-08-11 13:19:01 -05:00
Martin Hoff
d64db7c5ec drivers: dma: silabs: change default max descriptor from 8 to 16
We need to add CONFIG_DMA_MAX_DESCRIPTOR=16 for a lot of tests, then
this default value of this parameter need to be higher. It allows to
delete some overlay files.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-08-11 13:17:45 -05:00
Martin Hoff
9ed0ded09d drivers: dma: silabs: add dma block splitting for high transfer size
The LDMA driver currently has a 1:1 mapping between hardware LDMA
descriptors and struct dma_block_config. This patch allows multiple
hardware descriptors to be allocated for a single struct dma_block_config
if the block size exceeds the transfer capacity of a single hardware
LDMA descriptor. This is beneficial for other peripheral drivers: it is
no longer necessary to split the payload by the transfer capacity of a
single hardware LDMA descriptor.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-08-11 13:17:45 -05:00
Helmut Lord
169db46cd6 dp: add option to keep reset deasserted
Adds a property to keep reset deasserted even when the SWD port is
disconnected.

Signed-off-by: Helmut Lord <kellyhlord@gmail.com>
2025-08-11 14:07:41 +03:00
Tomasz Leman
bfdab166e3 intel_adsp: Introduce ACE 4.0 architecture with NVL/NVL-S platforms
Introduce the ACE 4.0 architecture, along with support for the NVL and
NVL-S platforms within the Intel ADSP framework in the Zephyr project.

This update includes:

- Addition of ACE 4.0 architecture configurations in Kconfig and
  Kconfig.intel_adsp.
- Inclusion of device tree source files for NVL and NVL-S platforms,
  defining CPU, memory, and peripheral configurations.
- Updates to driver files to support ACE 4.0 specific features,
  including DMIC and SSP configurations.
- Introduction of new header files for ACE 4.0, detailing boot,
  interrupt, IPC, power, and shim functionalities.
- Modifications to the CMakeLists.txt to include ACE 4.0 MMU support.
- Addition of default configurations for NVL and NVL-S platforms in
  Kconfig.defconfig.ace40.

The NVL and NVL-S platforms are part of the Nova Lake series, targeting
advanced audio processing capabilities. ACE 4.0 introduces enhanced DSP
capabilities and advanced power management features, improving audio
stream handling and synchronization compared to ACE 3.0.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2025-08-11 12:50:10 +03:00
Ruibin Chang
3fc27e71d2 drivers: input: it8xxx2: resolve runtime assertion failure
When the kso[17:16] lines are enabled and `CONFIG_ASSERT` is
configured, the following error occurs: "Input cannot be
enabled for 'Open Drain', 'Open Source' modes without Output."
To address this, this commit configures kso16 and kso17 as
gpio output before applying the pinctrl settings.

Tested with: no abnormal keyscan occurs during
initialization

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-08-11 12:50:00 +03:00
Ren Chen
3a4cc129a7 drivers: spi: it8xxx2: only enable spi clock during spi transaction
To reduce power consumption, the SPI clock is gated when no spi
transaction is in progress. With this mechanism, current
consumption is reduced by approximately 0.1mA when cpu idle.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-08-11 12:49:49 +03:00
Ren Chen
fdfece9e7d drivers: spi: it8xxx2: remove cs gpio support
This commit removes gpio-based cs support as it8xxx2 spi
only supports transactions using the dedicated cs pin.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2025-08-11 12:49:49 +03:00
Karthikeyan Krishnasamy
e386692b64 drivers: rtc: add driver support for ti mspm0 rtc
added Real-Time Clock driver support for Texas Instruments
MSPM0 Family, currently this driver supports rtc time keeping
and calendar alarms functionality

Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
2025-08-11 12:49:01 +03:00
Phi Tran
6966f0a910 drivers: uart: Update sci uart for support RX261
This commit to update sci uart for support RX261

Signed-off-by: Phi Tran <phi.tran.jg@bp.renesas.com>
2025-08-11 12:48:35 +03:00
Phi Tran
84190f4581 drivers: gpio: Update gpio and pinctrl driver for support RX261
Update gpio driver and pinctrl driver for support RX261

Signed-off-by: Phi Tran <phi.tran.jg@bp.renesas.com>
2025-08-11 12:48:35 +03:00
Phi Bang Nguyen
086bdae37e drivers: video: sw_generator: Fix min buffers count
The driver needs at least one buffer to be able to start.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-08-10 22:09:01 +03:00
Camille BAUD
5d8cf554e8 drivers: display: ssd1327: greyscale -> grayscale
greyscale -> grayscale

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-08-10 22:08:49 +03:00
Camille BAUD
faf96bc1f0 drivers: display: Add gamma table setting to ssd1327
This adds the ability to send gamma settings to the controller

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-08-10 22:08:49 +03:00
Dmitrii Sharshakov
f2f496df84 drivers: reset: rpi_pico: rewrite
Use HAL functions, which also wait for reset to complete.

Remove unused register size and active-low DT props.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-08-09 03:40:17 -04:00
James Smith
5261e53ea3 drivers: gpio: silabs: Don't fail to init is clock is already enabled
Don't fail to initialize gpio if it was already initialized, for
example by mcuboot. Fixes #94281.

Signed-off-by: James Smith <james@loopj.com>
2025-08-09 03:40:09 -04:00
Henrik Brix Andersen
63c13b7523 drivers: can: add Kconfig option for specifying the sample point margin
Add a Kconfig option for setting the maximum acceptable deviation in sample
point location (permille).

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-08-08 10:48:25 -05:00
Joel Jaldemark
7f7949d849 drivers: modem: add support for getting iccid from laraR6 and saraR5
Add at commands to get iccid from lara R6 and sara R5 modem

Signed-off-by: Joel Jaldemark <joeljaldemark@outlook.com>
2025-08-08 10:46:48 -05:00
Davi Herculano
34bdd17d18 driver: i2s: fix nxp i2s multi-lane config
Fix the case where multiple I2S channels are used at
the same time by using the fifo combine feature.

Signed-off-by: Davi Herculano <herculanodavi@gmail.com>
2025-08-08 10:45:26 -05:00
Yangbo Lu
dd19dcb53b drivers: eth_xmc4xxx: adjust ptp clock rate based on nominal frequency
Adjusted ptp clock rate based on nominal frequency.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-08 10:44:44 -05:00
Yangbo Lu
2d82a0dcab drivers: eth_e1000: adjust ptp clock rate based on nominal frequency
Adjusted ptp clock rate based on nominal frequency.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-08 10:44:44 -05:00
Yangbo Lu
76b7bcc0b2 drivers: eth_stm32_hal: adjust ptp clock rate based on nominal frequency
Adjusted ptp clock rate based on nominal frequency.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-08-08 10:44:44 -05:00
Felix Wang
02546580be soc: nxp: imxrt: clock update for LPIT instances on RT118X
1. Configure clock source for lpit3 for imxrt118x devices
2. Support lpit in clock driver

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-08-08 10:44:24 -05:00
Felix Wang
a717fac593 drivers: Counter: LPIT Support on Zephyr
1.Add dts bindings nxp,lpit-channel.yaml and nxp,lpit.yaml
2.Provide counter driver based on lpit driver from NXP mcux-sdk-ng

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-08-08 10:44:24 -05:00
sudarsan N
acad9532c5 drivers: sensor: voltage_divider: fix unchecked pm_device_runtime_get()
Fix Coverity CID 529858 (CWE-252): Previously, the return value of
pm_device_runtime_get() was not checked during PM resume, which could
lead to missed error conditions.

This patch ensures proper error handling by checking and propagating
the return status of the call.

Fixes: #92608

Signed-off-by: sudarsan N <sudarsansamy2002@gmail.com>
2025-08-08 10:43:26 -05:00
Michał Stasiak
c4af18dc65 drivers: spi: nrfx: release constlat mode on suspend
Release instead of requesting constant latency mode
on SPI suspend.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-08-08 11:53:53 +03:00
Lucien Zhao
8f94c91c5b drivers: watchdog: wdt_nxp_ewm.c: add clk_sel feature for ewm IP
emw clk designed on RT1180 can be chosen by CLKCTRL register,
add code to get sel from dts and configure it in driver.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-08-08 11:53:18 +03:00
Dawid Niedzwiecki
7ee39d1754 drivers: flash: add extended operations to Andes XIP driver
Add the extended operations to the Andes XIP flash driver.

The extended operations supports:
 - reading status registers of the flash chip
 - changing status registers of the flash chip
 - software lock of the status registers
 - modifying SPI read command used in memory-mapped mode

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2025-08-08 11:53:07 +03:00
Sunil Abraham
fe830c5c16 drivers: uart: microchip: add minimal support for sercom uart g1 IPs
Add uart driver with minimal features.
Implement polling receive and transmit functionality.

Signed-off-by: Sunil Abraham <sunil.abraham@microchip.com>
2025-08-08 11:52:35 +03:00
Mohamed Azhar
715adcc999 drivers: pinctrl: microchip: add pinctrl driver for Port G1 IP
Add pinctrl driver for Microchip Port G1 Peripheral IPs

Signed-off-by: Mohamed Azhar <mohamed.azhar@microchip.com>
2025-08-08 11:52:35 +03:00
Sunil Abraham
4acc520c65 drivers: clock_control: microchip: clock support for SAM D5x/E5x
Add clock control driver with minimal functionality.
Implement basic on, off, get_status and get_rate API.

Signed-off-by: Sunil Abraham <sunil.abraham@microchip.com>
2025-08-08 11:52:35 +03:00
Khoa Nguyen
836e55f724 drivers: ethernet: Update the variable type for R_ETHER_CallbackSet
- Update the variable type for R_ETHER_CallbackSet in
eth_renesas_ra.c
- Update HAL callback event handler to be compatible with FSP 6.0.0

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Signed-off-by: Ta Minh Nhat <nhat-minh.ta.yn@bp.renesas.com>
2025-08-08 11:52:13 +03:00
Khoa Nguyen
f9918ad203 drivers: mdio: Update the change from migrating FSP 6.0.0
Midify to use ``p_phy_lsi_cfg_list`` in ``ether_phy_cfg.p_extend``
instead of using ``phy_lsi_type`` and ``phy_lsi_address``
in ``ether_phy_cfg``. Update for mdio_renesas_ra

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-08 11:52:13 +03:00