Commit graph

126,787 commits

Author SHA1 Message Date
Vit Stanicek
75dd8a3a7c drivers: wm8962, wm8904: Fix clock config logic
Fix clock config logic of wm8962 and wm8904 drivers, so that both can be
properly configured for master (generating BCK and WS) and slave
(receiving those) operation.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-08-04 11:51:44 +01:00
Miguel Gazquez
5df200275d soc: riscv: sensry: Remove __soc_is_irq and disable unused config
The sy1xx SoC enabled CONFIG_RISCV_SOC_EXCEPTION_FROM_IRQ and provided
its own __soc_is_irq implementation. However, the behavior matches the
default implementation, making the override unnecessary.

This commit removes the custom implementation and disables the config
option to remove unnecessary code.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-08-04 11:51:36 +01:00
Miguel Gazquez
022723752b soc: riscv: wch: Remove unused __soc_is_irq function
The __soc_is_irq function is only used when
CONFIG_RISCV_SOC_EXCEPTION_FROM_IRQ is enabled, which is not the case
for any WCH SoC. The implementation is therefore dead code.

Additionally, the implementation matches the default fallback behavior,
so no functional change would occur even if the config were enabled.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-08-04 11:51:36 +01:00
Ha Duong Quang
fa64761be1 arch: arm: cortex_m: linker: fix mpu setup failure when XIP disabled
Add a padding section after the final read only data section
to avoid overlap between ROMABLE_REGION and RAMABLE_REGION.

Signed-off-by: Ha Duong Quang <ha.duongquang@nxp.com>
2025-08-04 11:50:39 +01:00
Ayush Singh
b3be861f0b boards: beagle: pocketbeagle_2: m4: Add watchdog
- Using mcu_rti0 as watchdog timer.
- Required for MicroPython.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-08-04 11:50:20 +01:00
Ayush Singh
c345dffdfc dts: arm: ti: am62x_m4: Add mcu_rti0
- Add watchdog timer for mcu domain.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-08-04 11:50:20 +01:00
Ayush Singh
15377632c0 drivers: watchdog: Add ti rti driver
- This driver is used in k3 generation CPUs from TI.
- Does not support callbacks right now.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-08-04 11:50:20 +01:00
Ayush Singh
a86e84b85d dts: bindings: watchdog: Add TI RTI
- The compatible name is the same as used in Linux kernel
- It is the watchdog timer used in K3 generation of processors.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-08-04 11:50:20 +01:00
Michael Estes
e13881ff0c drivers: gpio: add pcal9722 SPI GPIO expander driver
Adds a driver for NXP's PCAL9722 SPI GPIO expander

Signed-off-by: Michael Estes <michael.estes@byteserv.io>
2025-08-04 11:49:29 +01:00
Michael Estes
ff222e7c12 dts: bindings: gpio: add dts binding for NXP PCAL9722 SPI GPIO expander
Add DTS binding for NXP PCAL9722 SPI GPIO expander

Signed-off-by: Michael Estes <michael.estes@byteserv.io>
2025-08-04 11:49:29 +01:00
Daniel DeGrasse
a8ecd94044 drivers: display: display_st7796s: update for RGB format change
Zephyr is swapping the definitions of RGB565 and BGR565. Swap the return
values provided by this driver for supported pixel formats to account
for this.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-03 19:58:22 +01:00
Phi Bang Nguyen
a6602a45d0 display: stm32: ltdc: Revert the BGR565/RGB565 formats swap
This reverts the workaround made in the commit:

772fbfe9cc

as the proper fix has now been merged upstream.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-08-03 19:58:22 +01:00
Phi Bang Nguyen
bf8c0aebb3 include: display: Add more documentation for RGB565 and BGR565 formats
Add more detailed documentation for RGB565 and BGR565 formats.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-08-03 19:58:22 +01:00
Daniel DeGrasse
a294653848 drivers: mspi: mspi_dw: make sure controller is disabled at entry
Some systems (IE cores with bootloaders) may not disable the DW SPI
peripheral at boot time. Make sure the peripheral is disabled before we
try to configure it.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-03 19:58:12 +01:00
Daniel DeGrasse
fc64fec8fe drivers: mspi: mspi_dw: support DDR mode
Support DDR mode within the mspi_dw driver

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-03 19:58:12 +01:00
Daniel DeGrasse
e425b3dd1c drivers: mspi: mspi_dw: improve reliability of CS signal
The designware controller has an *interesting* implementation of the CS
signal- CS will be de-asserted whenever the TX FIFO is empty, so slower
cores may see CS de-assert prematurely if they cannot keep pace with
their SPI peripheral. To help reduce odds of de-assertion, implement the
following changes:

- don't write SER bit until directly before we enable interrupts, so
  that transfers don't start early
- prefix the TX FIFO before writing SER, so the FIFO can drain a bit
  before have to service an interrupt

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-03 19:58:12 +01:00
Daniel DeGrasse
9c829a1bbe drivers: mspi: mspi_dw: add API to configure RX_DLY timing
The SSI DW peripheral supports an RX_SAMPLE_DLY register in some
instances- this register controls the number of clock cycles from the
default sample time before the RX input is actually sampled. This can be
used to improve reliability when operating the SSI at a higher clock
speed.

Add an implementation of the mspi_timing_cfg api, and header to define
the identifier so that users can configure this parameter

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-03 19:58:12 +01:00
Daniel DeGrasse
59d8fbc0a9 drivers: mspi: mspi_dw: support newer IP revisions
Bitmask offsets for the MSPI_DW peripheral are incorrect for the
4.03a databook for the DW APB SSI. Add a "v2" compatible to handle these
changed offsets. The compatible does not define new binding properties,
just modifies the register offsets.

Additionally, handle writing the DFS32 mask for v2 of this compatible,
as newer IP supports a dataframe size up to 32 bits.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-03 19:58:12 +01:00
Daniel DeGrasse
5dbaa86282 drivers: mspi: mspi_dw: properly support multi-level interrupts
Multilevel interrupts require that the irq number be read with DT_IRQN,
so update the driver to use this macro.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-03 19:58:12 +01:00
Daniel DeGrasse
cb31e67c49 drivers: mspi: mspi_dw: make pinctrl include conditional
The remainder of this driver functions when pin control is disabled,
so make the include conditional as well to fully support this case.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-03 19:58:12 +01:00
Daniel DeGrasse
98c0cc4e67 drivers: mspi: supply empty vendor specific macros for generic case
Supply empty vendor specific macros for cases where vendor specific
functions are not needed by driver.

Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
2025-08-03 19:58:12 +01:00
Maureen Helm
3da3959a79 boards: adi: Enable usb on additional max32690-based boards
USB support was previously introduced for the max32 soc family on the
max32690evkit board; this change extends that support to two additional
boards with the same soc: apard32690 and max32690fthr.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-08-02 13:20:13 +02:00
Henrik Brix Andersen
2ee6ebf3f1 drivers: can: native_linux: use CiA recommeded configurations ranges
Use the CAN clock and configuration ranges recommended by CAN in Automation
(CiA).

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-08-02 13:20:02 +02:00
Peter Mitsis
4cc973986d arch: Update arch_is_in_isr() SMP implementations
Fixes a flaw in implementations of arch_is_in_isr() that could manifest
on SMP systems. If the reading of the current CPU's nested interrupt
count is not fully atomic on an SMP system, then an ill-timed context
switch could occur leaving the caller reading the nested interrupt
count of a different CPU.

This also applies a little defensive programming to cortex_a_r's
arch_is_in_nested_exception(). Although this routine is presently
only called with interrupts locked (which will prevent the thread
from migrating), switching to use _current_cpu instead of
arch_curr_cpu() is safer as should the routine ever be called
without meeting the locking criteria, it can be detected and fixed.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-08-02 13:19:56 +02:00
Peter Mitsis
85b8ae9b6a arch: xtensa: Fix arch_is_in_isr() race condition
Fixes a flaw in the the xtensa implementation of arch_is_in_isr()
that could manifest on SMP systems. If the reading of the current
CPU's nested interrupt count is not fully atomic on an SMP system,
then an ill-timed context switch could occur leaving the caller
reading the nested interrupt of a different CPU.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-08-02 13:19:21 +02:00
Neil Chen
4e2b0cdf05 boards: frdm_mcxa153, frdm_mcxa156: add ostimer support
1. add ostimer support
2. update ostimer as default kernel timer

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-08-02 13:18:46 +02:00
Bas van Loon
d8bd0f9232 samples: fs: Add EXT2 automount sample.
Add a simple sample that tests the functionality of the EXT2 automount
feature. The sample creates a ramdisk and writes some content and tries
to read it back after unmount and mount operation.

Signed-off-by: Bas van Loon <bas@arch-embedded.com>
2025-08-02 13:18:15 +02:00
Bas van Loon
88a09e6379 fs: Implement fstab devicetree integration for EXT2
Device tree and/or automount support was not present and might be useful
when for example the settings module needs early access to a filesystem.
This patch adds support to mount an EXT2 filesystem automatically. The
implementation chosen is to provide the drive name matching a disk
drive specified in the device tree ie on an (e)MMC or SD card.

Signed-off-by: Bas van Loon <bas@arch-embedded.com>
2025-08-02 13:18:15 +02:00
Bas van Loon
4a09047b0e drivers: bluetooth: hci_nxp_setup: Prevent re-init of CRC table.
The CRC32 table only needs to be generated once, so prevent it from
regenerating every time as it only required once.

Signed-off-by: Bas van Loon <bas@arch-embedded.com>
2025-08-02 13:17:58 +02:00
Gaetan Perrot
6c569c5bfa dts: binding: vendor-prefixes: Remove duplicate vendor prefix
The "spacecubics" entry was redundant as we use the "sc" prefix for Space
Cubics, Inc.

Removing this duplicate to avoid confusion and maintain consistency in
vendor naming.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-08-01 19:40:05 +01:00
Jamie McCrae
77f19eb1b5 fs: zms: Add FLASH_MAP dependency
ZMS does not work without this and gives compilation errors, fix
this by adding the correct dependency

Signed-off-by: Jamie McCrae <spam@helper3000.net>
2025-08-01 19:38:48 +01:00
Anas Nashif
6c85528cbe tracing: ctf: fix arguments for timer_status_sync
In the metadata, found that timer_status_sync_pending was missing the
timeout parameter. Noticed when tracing tests/kernel/common.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-01 19:38:40 +01:00
Anas Nashif
d794732087 tracing: ctf: add missing k_sleep events
In a096b34835 which introduced tracing of k_sleep, the events in the
metadata file were missed causing issues when running with babeltrace.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-01 19:38:40 +01:00
Eve Redero
2fbf09372a doc: bindings: auxdisplay: add supported series
Add details on series supported by Noritake Itron driver.
Upon reading datasheets, series CU-TE, CU-Y, GU-3000, GU-7000 and
GU-D have commands matching the driver, whereas series CU-U, CU-TW,
and GU-800 use different command sets.

Signed-off-by: Eve Redero <eve.redero@gmail.com>
2025-08-01 19:38:08 +01:00
Robert Lubos
4300820e43 samples: net: zperf: Disable timeslicing
Throughputs achieved by the sample are a bit better with timeslicing
disabled, therefore disable it for best out-of-the-box experience.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-08-01 19:37:52 +01:00
Tim Pambor
62ae9c79d2 net: if: Fix net_if_list iteration issue for offloaded interfaces
Disable ASAN for net_if config to avoid iteration issues caused by
AddressSanitizer padding.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-08-01 19:37:43 +01:00
Emil Gydesen
8788f8ba26 Bluetooth: BAP: Add target latency and phy to codec_cfg
The codec configuration operation for unicast (ASCS) contain
both a target PHY and a target latency value that was previously
just hardcoded by the client and unavailable by the server.

This commit adds them to the bt_audio_codec_cfg struct so that
applications can both set and get these values.

The default values used by BT_AUDIO_CODEC_CFG use the same
values as the client would previously set.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-01 19:37:31 +01:00
Dmitrii Sharshakov
1c9c0b0d2b drivers: can: can_native_linux: set max bitrate
This enables applications to call timing configuration functions,
which enables more applications to work on native_sim.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-08-01 19:37:24 +01:00
Henrik Brix Andersen
1dbd552b2e boards: native: native_sim: add reference to the SocketCAN snippet
Add reference to the SocketCAN snippet.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-08-01 19:37:08 +01:00
Henrik Brix Andersen
81f5a801e3 snippets: add snippet for enabling SocketCAN support on native_sim
Add snippet for enabling Linux SocketCAN support on the native simulator.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-08-01 19:37:08 +01:00
Lauren Murphy
69a3ed2753 llext: replace stripping script with call to zephyr sdk strip
Replace custom stripping script with a call to Zephyr SDK strip.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-08-01 19:36:59 +01:00
Lauren Murphy
c792d78cb3 llext: add fixes for various tests on mwdt / harvard arch
Adds fixes to get LLEXT tests to work for NSIM VPX on MWDT.

Excludes prelocated extensions for MWDT for now.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-08-01 19:36:59 +01:00
Lauren Murphy
a444f7ded8 llext: add reloc and symbols for mwdt
Adds relocation and symbols generated by MWDT while using it
for NSIM VPX5.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-08-01 19:36:59 +01:00
Lauren Murphy
a4274f884b llext: dynamic heap support for harvard arch
Adds support for LLEXT_HEAP_DYNAMIC with Harvard architecture.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-08-01 19:36:59 +01:00
Lauren Murphy
944aa8174c llext: run on harvard arch with static heaps
Splits LLEXT static heap into an instruction heap placed in
instruction memory and a data heap placed in data memory.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-08-01 19:36:59 +01:00
Lauren Murphy
92db7bcf11 llext: compile llext with arc mwdt on nsim vpx5
Allow users to compile LLEXTs with the MetaWare Design Toolchain.
Provides utility to dramatically shrink bloated extensions by removing
unused section names left behind by MWDT strip. Test extensions will
not fit in NSIM VPX5 memory otherwise; each is reduced from ~16k to ~1k.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-08-01 19:36:59 +01:00
Dmitrii Sharshakov
a610e0ec82 bluetooth: hci: userchan: support connecting over UNIX socket
Can be used with Bluez btvirt

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-08-01 19:36:43 +01:00
Håvard Reierstad
2b42a1d81d Bluetooth: Host: Add l2cap credit param checks
Adds a missing requirement from Core Spec V6.0 Vol 3.A chapters 10.1
and 10.2 to ignore L2CAP_FLOW_CONTROL_CREDIT_IND packets with the
credit value set to 0.

Matches existing credit-related functions by checking that the CID
is in the dynamic range (you can't add credits to fixed channels).

Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
2025-08-01 12:20:43 -04:00
Franck Duriez
06bcb5a222 test: driver/fuel_gauge/sy24561: add test
Add test for fuel gauge SY24561

Signed-off-by: Franck Duriez <franck.lucien.duriez@gmail.com>
2025-08-01 12:20:25 -04:00
Franck Duriez
5f84be617e driver: fuel_gauge/sy24561: add emulator
Add emulator for fuel gauge SY24561

Signed-off-by: Franck Duriez <franck.lucien.duriez@gmail.com>
2025-08-01 12:20:25 -04:00