Commit graph

136,983 commits

Author SHA1 Message Date
Benjamin Cabé
fc2b61fe1c modules: hostap: 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é
a7ed510ec9 drivers: usb: 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é
1274be64ad drivers: serial: 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é
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
Zhaoxiang Jin
8238dd80eb doc: migration-guide: Document the re-organization of NXP DTSI files
The number of NXP DTSI files is growing rapidly, with over 150
files currently. To improve maintainability and discoverability,
we reorganized NXP DTSI files by moving them into family-specific
subdirectories under 'dts/arm/nxp'. This directory structure is
now consistent with the structure under 'soc/nxp'.

This commit updates the migration guide and release notes to
document this change.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01:00
Zhaoxiang Jin
a754cfa1d0 MAINTAINERS: Update NXP DTSI file paths after reorganization
Update file paths in MAINTAINERS.yml to reflect the reorganization of
NXP DTSI files into family-specific subdirectories. The following paths
are updated:
- dts/arm/nxp/nxp_imx* -> dts/arm/nxp/imx/nxp_imx*
- dts/arm/nxp/nxp_k* -> dts/arm/nxp/kinetis/nxp_k*
- dts/arm/nxp/nxp_lpc* -> dts/arm/nxp/lpc/nxp_lpc*

This ensures maintainer file patterns correctly match the new directory
structure introduced in the DTSI reorganization.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01:00
Zhaoxiang Jin
0a0468a001 dts: nxp: kinetis: Add copyright headers to DTSI and DTS files
Add NXP copyright headers to Kinetis DTSI files and related board DTS
files that were missing them. Updated files include:
- dts/arm/nxp/kinetis/nxp_k6x.dtsi
- dts/arm/nxp/kinetis/nxp_kl25z.dtsi
- dts/arm/nxp/kinetis/nxp_kw2xd.dtsi
- dts/arm/nxp/kinetis/nxp_kw40z.dtsi
- boards/nxp/frdm_k64f/frdm_k64f.dts
- boards/nxp/frdm_kl25z/frdm_kl25z.dts
- boards/nxp/frdm_kw41z/frdm_kw41z.dts
- boards/nxp/hexiwear/hexiwear_mkw40z4.dts
- boards/nxp/usb_kw24d512/usb_kw24d512.dts

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01:00
Zhaoxiang Jin
f7eb16a957 dts: nxp: Reorganize KINETIS DTSI files into kinetis subdirectory
1. Reorganize kinetis DTSI files into kinetis subdirectory
2. Update boards/kinetis device tree references accordingly

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01:00
Zhaoxiang Jin
7175791ed6 dts: nxp: Reorganize LPC DTSI files into lpc subdirectory
1. Reorganize LPC DTSI files into lpc subdirectory
2. Update boards/lpc devicetree references to use new paths

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01:00
Zhaoxiang Jin
ae1cf4ec67 dts: nxp: Reorganize IMX RT DTSI files into imxrt subdirectory
1. Reorganize IMX RT DTSI files into imxrt subdirectory
2. Update boards/imxrt devicetree references to use new paths
3. Update samples/imxrt overlay references to use new paths

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01:00
Zhaoxiang Jin
af4d37fc13 dts: nxp: Reorganize MCX DTSI files into mcx subdirectory
1. Reorganize MCX DTSI files into mcx subdirectory
2. Update boards/mcx devicetree references to use new paths

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01:00
Zhaoxiang Jin
20c626b4e6 dts: nxp: Reorganize RW DTSI files into rw subdirectory
1. Reorganize RW DTSI files into rw subdirectory
2. Update boards/rw devicetree references to use new paths

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01:00
Zhaoxiang Jin
5991d3de6b dts: nxp: Reorganize IMX DTSI files into imx subdirectory
1. Reorganize IMX DTSI files into imx subdirectory
2. Update boards/imx devicetree references to use new paths

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01:00
Zhaoxiang Jin
5d5a4700a6 dts: nxp: Reorganize S32 DTSI files into s32 subdirectory
1. Reorganize S32 DTSI files into s32 subdirectory
2. Update boards/s32 devicetree references to use new paths

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-05 07:52:09 +01: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
Anjali Kashyap
705703ad8a soc: stm32: fix pm_s2ram linker warning
Below warning is reported in Zephyr upstream weekly CI after
34985a73b836b7f44b3314854fc760270e38fb26 was merged:
```
ld.bfd: warning: orphan section .TEXT.pm_s2ram_mark_check_and_clear'
from zephyr/libzephyr.a(s2ram_marking.S.obj)' being placed in section
`.TEXT.pm_s2ram_mark_check_and_clear'
```

Fix the warning by adding the appropriate headers.

Signed-off-by: Anjali Kashyap <anjkas23@gmail.com>
2026-02-04 15:32:59 -06:00
Pieter De Gendt
a7edfd8eed device: Convert COND_CODE_1 with empty argument to IF_ENABLED/IF_DISABLED
Minor readability cleanup for COND_CODE_1 with an empty () argument.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-02-04 15:32:26 -06:00
Grygorii Strashko
a9ad7615c4 boards: raspberrypi: rpi_5: add Xen specific doc
Add documentation for using Zephyr as Xen Dom0 on the Raspberry Pi 5 to
describe how to build and configure Zephyr for Dom0 functionality.

Signed-off-by: Grygorii Strashko <grygorii_strashko@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-02-04 15:31:08 -06:00
Dmytro Firsov
c24ddeb8ef snippets: xen_dom0: update documentation regarding dt
Since snippet device tree overlays are applied last, this made it
impossible for applications to override boot addresses in their own
overlays.

This approach has been removed, so update the documentation with a
dedicated section explaining how applications should set device tree
nodes using runtime information provided by Xen.

Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-02-04 15:31:08 -06:00
Dmytro Firsov
6cf201feab snippets: xen_dom0: qemu_cortex_a53: Remove Xen DT nodes modification
Snippets allow modification of Kconfig build options and board device
trees during application or sample builds. However, in the case of device
trees, snippet modifications are applied at the end of device tree
generation.

This prevents the final application from setting correct values for memory
and hypervisor nodes, which may be changed at runtime by the Xen
hypervisor (depends on the final configuration, such as image size, memory
bank sizes, and load addresses, etc) since these are allocated
dynamically.

Remove these nodes from the snippet to enable applications to set these
values through their own application overlay.

Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-02-04 15:31:08 -06:00
Dmytro Firsov
b0b7e36d8f snippets: xen_dom0: spider_ca55: remove Xen DT nodes modification
Snippets allow modification of Kconfig build options and board device
trees during application or sample builds. However, in the case of device
trees, snippet modifications are applied at the end of device tree
generation.

This prevents the final application from setting correct values for memory
and hypervisor nodes, which may be changed at runtime by the Xen
hypervisor (depends on the final configuration, such as image size, memory
bank sizes, and load addresses, etc) since these are allocated
dynamically.

Remove these nodes from the snippet to enable applications to set these
values through their own application overlay.

Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-02-04 15:31:08 -06:00
Dmytro Firsov
fdeae0d514 snippets: xen_dom0: salvator_xs_m3: remove Xen DT nodes modification
Snippets allow modification of Kconfig build options and board device
trees during application or sample builds. However, in the case of device
trees, snippet modifications are applied at the end of device tree
generation.

This prevents the final application from setting correct values for memory
and hypervisor nodes, which may be changed at runtime by the Xen
hypervisor (depends on the final configuration, such as image size, memory
bank sizes, and load addresses, etc) since these are allocated
dynamically.

Remove these nodes from the snippet to enable applications to set these
values through their own application overlay.

Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-02-04 15:31:08 -06:00
Dmytro Firsov
ec4a39f1a6 snippets: xen_dom0: h3ulcb: remove Xen DT nodes modification
Snippets allow modification of Kconfig build options and board device
trees during application or sample builds. However, in the case of device
trees, snippet modifications are applied at the end of device tree
generation.

This prevents the final application from setting correct values for memory
and hypervisor nodes, which may be changed at runtime by the Xen
hypervisor (depends on the final configuration, such as image size, memory
bank sizes, and load addresses, etc) since these are allocated
dynamically.

Remove these nodes from the snippet to enable applications to set these
values through their own application overlay.

Signed-off-by: Dmytro Firsov <dmytro_firsov@epam.com>
Signed-off-by: Svitlana Drozd <svitlana_drozd@epam.com>
2026-02-04 15:31:08 -06:00
Jamie McCrae
64aab6f80d tests: bluetooth: shell: Remove invalid use of snippets
Snippets in zephyr should be globally usable for general purpose,
snippets for a single application are not a valid use-case (that
is intended for user applications in their own repositories),
therefore remove these

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-02-04 15:30:09 -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
ef4237bfee tests: spi: siwx91x: Reduce transfer duration scaling
Reduce the transfer duration scaling used by
test_spi_complete_multiple_timed. The recent increase in QSPI frequency
improves overall siwx91x performance, resulting in faster SPI transfers.

Adjust the scaling factor to keep the test timing expectations aligned
with the updated SPI transfer rates.

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
cc1a89cb3d boards: nxp: enable spi for s32k5xxcvb
Enable SPI for S32K5XXCVB

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-02-04 15:28:13 -06:00
Dat Nguyen Duy
d413877dab tests: spi_loopback: enable test for s32k5xxcvb
Enable loopback test for s32k5xxcvb

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-02-04 15:28:13 -06:00
Dat Nguyen Duy
750b2325a6 dts: arm: nxp: add lpspi dt nodes for s32k566
Add LPSPI devicetree nodes for s32k566

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-02-04 15:28:13 -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
415f02389d dts: arm: nxp: mcxw72: Use lowercase hex notation
Use lowercase 'a' instead of uppercase 'A' in hexadecimal notation
for consistency with coding style conventions.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-02-04 12:54:43 -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
Alain Volmat
d7a0757277 boards: st: stm32n6570_dk: correct red led number and add alias
The user red led on the stm32n6570_dk is LD2 hence rename the
as red_led_2 instead of red_led_1. Moreover add an alias led1
pointing to this led, since this is a USER LED, allowing to
use samples requiring two leds.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2026-02-04 12:54:03 -06:00
Chaitanya Tata
7f9dd0d996 manifest: hostap: Pull change for PD retry config
Pull the change to use Zephyr Kconfig instead of C macro.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-02-04 12:53:32 -06:00
Chaitanya Tata
e1f857749c modules: hostap: p2p: Configurable retry limit for PD
For P2P provisional discovery make the retries configurable, in case the
peer doesn't respond we can reduce to avoid airtime.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-02-04 12:53:32 -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
Alex Apostolu
7839d958ac tests: drivers: dma: cyclic: check rx buf overflow
Check the DMA transfer to ensure it doesn't write past the RX buffer.

Signed-off-by: Alex Apostolu <aapostolu@tenstorrent.com>
2026-02-04 12:52:45 -06:00
Alex Apostolu
57e9a7bbb7 tests: drivers: dma: chan_link_transfer: check rx buf overflow
Check the DMA transfer to ensure it doesn't write past the RX buffer.

Signed-off-by: Alex Apostolu <aapostolu@tenstorrent.com>
2026-02-04 12:52:45 -06:00