Commit graph

126,787 commits

Author SHA1 Message Date
Marcelo Roberto Jimenez
074f4db67a drivers: ethernet: Run clang-format before applying a patch
This patch just formats the file before the real patch so that
whitespace changes do not mix with the real code changes.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2025-10-13 09:37:56 -04:00
Ben Marsh
2a0fb72c6a drivers: flash: stm32_qspi: Fix special behaviour for Microchip QSPIs
Commit 539928d introduced a special behaviour for Microchip QSPI flash
memories into the STM32 QSPI flash driver, to handle the fact that these
memories use the PP_1_1_4 opcode (32H) for the PP_1_4_4 operation
(usually 38H).

The special Microchip-specific behaviour introduced in that commit sets
the address mode for a QSPI 1-1-4 write operation to 4 address lines,
rather than 1 address line, when the write command is configured as
SPI_NOR_CMD_PP_1_1_4. If the write command is configured as
SPI_NOR_CMD_PP_1_4_4, nothing is done and the operation will not succeed.

This behaviour is a bit backwards, as it results in a QSPI flash memory
configured in 1-1-4 write mode using 4 address lines (1-4-4 operation).
It should be the other way round, so that a QSPI flash memory configured
in 1-4-4 mode uses 4 address lines (1-4-4 operation).

This commit changes the Microchip-specific special behaviour to set the
opcode for the specified write mode, rather than using a different write
mode to that which is configured in order to use a valid opcode. This
means that a QSPI flash memory configured in 1-4-4 mode, or without the
writeoc DT property set (defaults to 1-4-4 for quad mode), will operate
in 1-4-4 mode. 1-1-4 mode is unsupported, as before.

Also update the Kconfig option description for
CONFIG_USE_MICROCHIP_QSPI_FLASH_WITH_STM32 to remove references to the
Global Block Protection Unlock instruction - this was added at the same
time as the Microchip-specific special behaviour for the 1-1-4 / 1-4-4
opcode but is distinct from this and is not affected by
CONFIG_USE_MICROCHIP_QSPI_FLASH_WITH_STM32.

Signed-off-by: Ben Marsh <ben.marsh@helvar.com>
2025-10-13 09:37:21 -04:00
Titouan Christophe
4deaa62656 boards: st: stm32h7s78_dk: add support for touch input
Add support for the touch input controller on the STM32H7S78-DK:
- Enable I2C1 on the board
- Add device tree node for the touch controller in the display panel

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
2025-10-13 09:36:27 -04:00
Petri Pitkanen
f04d0196de test: Bluetooth: tester: Add support for EAD peripheral
Added three functions to support the EAD peripheral:
    - Setting and storing key materials for EAD
    - Encrypting data for EAD advertisements
    - Decrypting data from EAD advertisements

Signed-off-by: Petri Pitkanen <petri.pitkanen@silabs.com>
2025-10-13 09:36:11 -04:00
Jörg Hofrichter
47abb0c65d boards: adafruit: Fix ws2812 pin on Adafruit Feather RP2040.
As stated in [1], the ws2812 pin is on GPIO16.

[1] https://github.com/adafruit/Adafruit-Feather-RP2040-PCB/blob/main/Adafruit%20Feather%20RP2040%20pinout.pdf

Signed-off-by: Jörg Hofrichter <joerg@projektecke.de>
2025-10-13 09:36:02 -04:00
Firas Sammoura
05ba27accd arch: riscv: Handle multiple pmpcfg registers in PMP init
The PMP initialization and thread seeding logic in arch/riscv/core/pmp.c
did not correctly handle scenarios where the global PMP entries span
across multiple `pmpcfg` hardware registers.

The `global_pmp_cfg` array, intended to store the hardware register
values, was hardcoded to size 1. This is only sufficient if all global
PMP entries fall within the range covered by the first `pmpcfg` register
(e.g., pmpcfg0). When more global entries are used, their configurations
reside in subsequent `pmpcfg` registers (pmpcfg1, pmpcfg2, etc.).

The code was only saving/restoring and checking `global_pmp_cfg[0]`,
leading to loss of configuration for entries mapped to higher `pmpcfg`
registers.

This patch fixes this by:

1.  Resizing the `global_pmp_cfg` array to
    `CONFIG_PMP_SLOTS / PMPCFG_STRIDE` to correctly accommodate values
    from all potentially used `pmpcfg` CSRs.
2.  In `z_riscv_pmp_init`, using `memcpy` to save the entire contents of
    the local `pmp_cfg` array (derived from initial setup) into the
    `global_pmp_cfg` array.
3.  In `z_riscv_pmp_thread_init`, using `memcpy` to restore the entire
    saved global configuration from `global_pmp_cfg` into a thread's
    `pmp_cfg` array.
4.  Updating the SMP consistency assertion in `z_riscv_pmp_init` to
    compare the contents of the array element @ `index / PMPCFG_STRIDE`
    of the `pmp_cfg` arrays.

These changes ensure that the configurations from all relevant `pmpcfg`
registers are preserved and correctly propagated to thread contexts.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2025-10-13 09:35:36 -04:00
Rami Saad
7d2fb6c013 mgmt: mcumgr: grp: settings_mgmt: Add capability to save setting by key
Extend the save command to allow passing name/val pair to save a
subtree or individual setting to persistent storage.
Resolves zephyrproject-rtos#90407

Co-authored-by: Jamie <40387179+nordicjm@users.noreply.github.com>
Signed-off-by: Rami Saad <rami.saad@morgansolar.com>
2025-10-13 09:35:23 -04:00
Keith Packard
5505c0d7ad modules/psa-arch-tests: Add GCC 14.3 support patch
psa-arch-tests includes device drivers that failed to mark
registers with 'volatile'. GCC 14.3 cleverly optimized
sequential register accesses using strd/ldrd instructions which
caused the drivers to fail.

Move the psa-arch-tests repository forward to the version which includes a
fix for this.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-10-13 09:35:01 -04:00
Quy Tran
e86098fb20 tests: drivers: watchdog: use Kconfig options for setup flags and timeout
Replace hard-coded platform definrs with Kconfig marcos

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-13 09:33:35 -04:00
Quy Tran
ef8665dc4d boards: renesas: Enable watchdog driver on RSK-RX130-512kb
Enable iwdt dts nodes and iwdtsclk clock on RSK-RX130-512kb

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-13 09:33:35 -04:00
Quy Tran
255096e02c soc: renesas: rx: enable option function select register 0
Enables OSF0 register select for IWDT driver setting on start mode

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-13 09:33:35 -04:00
Quy Tran
fd859e7a3b dts: renesas: rx: add iwdt property node for watchdog driver
Add iwdt property node on dts for watchdog driver

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-13 09:33:35 -04:00
Sang Tran
7b9fd54052 drivers: watchdog: Support Renesas RX independent watchdog timer driver
Add initial support for independent watchdog driver for Renesas RX
with r_iwdt_rx RDP HAL

Signed-off-by: Sang Tran <sang.tran.jc@renesas.com>
2025-10-13 09:33:35 -04:00
Sang Tran
b82eefc397 arch: rx: Add NMI vector table for Renesas RX MCU
Add support for non-maskable interrupt (NMI)  vector table for
Renesas RX architecture

Signed-off-by: Sang Tran <sang.tran.jc@renesas.com>
2025-10-13 09:33:35 -04:00
Quy Tran
2b25575d9c soc: renesas: rx: Update OFS value in vects.c using Kconfig
OFS values setting for RXv1/RXv2 will be defined in SOC
Kconfig and set in vects.c file

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-13 09:33:35 -04:00
Quy Tran
842fd974cc include: arch: rx: Move _ebss before noinit to preserve after reset
This change ensure .noinit is excluded from zeroed memory region after
reset

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-10-13 09:33:35 -04:00
Firas Sammoura
4b3cb736d5 arch/riscv: Refactor PMP configuration reading
Factor out the logic for reading PMP configuration registers (pmpcfgX)
from dump_pmp_regs into a new static inline helper function,
z_riscv_pmp_read_config.

This new function encapsulates the architecture-specific (RV32/RV64)
and slot-count-specific reads of the pmpcfg CSRs, improving code
organization and potential reusability.

Signed-off-by: Firas Sammoura <fsammoura@google.com>
2025-10-13 08:57:15 +02:00
Tim Lin
fb7406488f soc: it51xxx/linker: Make h2ram_pool behind the CONFIG_ESPI_IT8XXX2 option
Apply the same CONFIG_ESPI_IT8XXX2 guard to the .h2ram_pool section
in the IT51XXX linker script, since the eSPI driver is compatible with
IT8XXX2. This keeps linker behavior consistent and avoids unused
memory allocation on non-eSPI platforms.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-10-13 08:56:54 +02:00
Tim Lin
74c57ce769 soc: it8xxx2/linker: Make h2ram_pool behind the CONFIG_ESPI_IT8XXX2 option
The .h2ram_pool linker section was previously always included, even on
platforms that do not enable eSPI. This caused unnecessary memory
reservation in the RAMABLE_REGION for non-eSPI configurations.

Add a CONFIG_ESPI_IT8XXX2 guard around the .h2ram_pool section definition
so that it is only included when eSPI support is enabled.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-10-13 08:56:54 +02:00
Andrzej Głąbek
7ff2be07f2 drivers: mspi_dw: Remove needless TXEIR check
This is a follow-up to commit f0f5f8cdef.

There is no need to check if TXE interrupt flag is set before
calling tx_dummy_bytes(), as the function can handle the case
when it is called even though there is no room in the TX FIFO.
On the other hand, the check may be actually harmful, as it may
prevent adding more items to the TX FIFO while the SSI controller
is waiting until the FIFO achieves its transfer start level.
Remove the check then and exit the ISR loop when no dummy bytes
could be written into the TX FIFO.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-10-13 08:56:39 +02:00
Yongxu Wang
60d8b2fe37 soc: nxp: imx943: Fix potential out-of-bounds access in pm_mcore loop
Limit the loop to the smaller of nvic_iser_nb and
GPC_CPU_CTRL_CMC_IRQ_WAKEUP_MASK_COUNT to ensure safe access.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-10-13 08:55:32 +02:00
Marcelo Roberto Jimenez
7899951c94 drivers: ethernet: Add promiscuous mode to xmc4xxx
This patch adds promiscuos mode to the XMC4xxx SOC's ethernet driver.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2025-10-13 08:55:05 +02:00
Marcelo Roberto Jimenez
ef42928c50 drivers: ethernet: Run clang-format before applying a patch
This patch just formats the file before the real patch, otherwise
the changes would be hard to read.

The only addition was a third parameter (NULL) to all the usages
of the macro WAIT_FOR, since the dangling comma triggered conflicts
between clang-format and check_compliance.py.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2025-10-13 08:55:05 +02:00
Jordan Yates
892013a5c6 fuel_gauge: composite: fix unreleased PM constraint
Fix the PM constraint not being released when the sample fetch API call
fails.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-13 08:54:24 +02:00
Richard Wheatley
d50f116279 samples: add overlay for adc samples/tests
adc adc overlay for samples and tests

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
2025-10-13 08:46:04 +02:00
Richard Wheatley
980741229b boards: ambiq: apollo4p_blue_kbr_evb add adc0
add adc0 to board dts
add adc to yaml test config
add adc default configuration to pinctrl

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
2025-10-13 08:46:04 +02:00
Richard Wheatley
a49b78a049 dts: arm: ambiq: update apollo4p_blue to use adc
update ambiq apollo4p_blue adc

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
2025-10-13 08:46:04 +02:00
Richard Wheatley
7ef0911346 dts: arm: ambiq: add power states to apollo4p_blue
add power states to the ambiq apollo4p_blue

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
2025-10-13 08:46:04 +02:00
Richard Wheatley
dc18e381dc soc: ambiq: apollo4x: add Add pinctrl to apollo4x
add pinctrl select by default for apollo4x

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
2025-10-13 08:46:04 +02:00
Kiara Navarro
fa2aeb1e3f logging: rtt: remove cast to void to used function arguments
The `ctx` arg is used in `data_out_drop_mode`, so casting to void should
be removed.

Signed-off-by: Kiara Navarro <knavarro@paltatech.com>
2025-10-13 08:45:03 +02:00
Kiara Navarro
e8db885acd logging: rtt: mark unused function arguments
Add missing ARG_UNUSED() to mark unused function arguments.

Signed-off-by: Kiara Navarro <knavarro@paltatech.com>
2025-10-13 08:45:03 +02:00
Sebastian Viviani
77e4752cbc shields: support for ssd1306 shield on nrf5340dk
The ssd1396 shield uses an I2C interface, and the nrf5340dk board
overlay needs a bigger buffer size by default to work.

Signed-off-by: Sebastian Viviani <sebastian.viviani@nordicsemi.no>
2025-10-13 08:44:16 +02:00
James Roy
44ff3d3805 samples: Add red-black tree sample program
Introduce an example program to demonstrate
how to use the red-black tree API.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-13 08:44:07 +02:00
James Roy
ce8c0eac5b samples: data_structures: Fix the incorrect sample path in README
Change `samples/lib/mini_heap` to the actual path
`samples/data_structures/mini_heap`.

Signed-off-by: James Roy <rruuaanng@outlook.com>
2025-10-13 08:44:07 +02:00
Emil Gydesen
1c004a08c3 Bluetooth: CCP: Client: Add support for get provider name
Add support for getting the remote bearer provider
name.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-10-13 08:43:47 +02:00
Tim Pambor
18d885d76c tests: libc: thread: fix -Wformat errors
Cast uintptr_t to unsigned long long and adjust format specifier
accordingly to ensure compatibility on both 32-bit and 64-bit
architectures.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-12 10:58:20 -04:00
Tim Pambor
ecffdacb64 tests: posix: fix -Wformat errors
Use %lld format specifier for variables of type eventfd_t. Cast variables
of type time_t to long long and use %lld format specifier to ensure
compatibility with 32-bit and 64-bit time_t.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-12 10:58:11 -04:00
Tim Pambor
ba9147948a tests: mcumgr: Improve compatibility with 64-bit platforms
Use %zu format specifier for size_t type to ensure compatibility with both
32-bit and 64-bit platforms.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-12 10:58:01 -04:00
Camille BAUD
a8677f5fc4 tests: drivers: flash: fix test_storage_partition
It's triggering on things without a flash driver or flash tag...
Disable it based on the presence of a activated flash driver.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-10-12 11:29:21 +03:00
Pavel Vasilyev
5547392275 tests: bsim: bluetooth: host: misc: hfc: Enable auto-initated procedures
Remove FIXME and re-enable autoinitiated procedures.

Removing the configuration as bug doesn't appear anymore.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-10-11 20:06:48 -04:00
Philippe Peurichard
87ffb9711e samples: subsys: display: add stm32f469_disco conf file
Add stm32f749i_disco conf file to enable input driver
for touchscreen in LVGL samples applications.

Signed-off-by: Philippe Peurichard <p.peurichard@gmail.com>
2025-10-11 20:06:40 -04:00
Philippe Peurichard
d3f989378c samples: drivers: display: add stm32f469_disco conf file
Add stm32f749i_disco conf file to support samples display driver
applications . Increase the amount of HEAP to ensure
k_malloc allocation goes well.

Signed-off-by: Philippe Peurichard <p.peurichard@gmail.com>
2025-10-11 20:06:40 -04:00
Philippe Peurichard
d4a8099d4d boards: st: add pllsai for ltdc & mipi-dsi support on stm32f469 disco
Extension of support of pllsai for display configuration of stm32f469
discovery board. Enable Display panel through LTDC & DSI-HOST
blocks. Enable Touch screen. Enable FMC/SDRAM for Framebuffer.

Signed-off-by: Philippe Peurichard <p.peurichard@gmail.com>
2025-10-11 20:06:40 -04:00
Philippe Peurichard
a7a751c8dd dts: arm: st: add mipi_dsi node in stm32f469.dtsi
Describe mipi_dsi block available on stm32f469 & above
Allow to display data on DSI panels taking output of LTDC
after serializing data.

Signed-off-by: Philippe Peurichard <p.peurichard@gmail.com>
2025-10-11 20:06:40 -04:00
Jordan Yates
c3a0dafcb4 boards: nordic: Arduino SPI high drive strength
All nRF development kits have long traces from the SoC to the Arduino
header. Set the drive strength on the SPI ports to high to increase the
chances that the default SPI frequency defined in shields works without
errors.

This aligns the remaining DKs with the nRF91 DKs.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-10-11 20:06:31 -04:00
Danny Nuch
c9d3a01c20 arch: arm: specify max MPU regions for CONFIG_ARMV7_M_ARMV8_M_MAINLINE
Specifies max value of 16 MPU regions for this processor.

Signed-off-by: Danny Nuch <dannynuch@gmail.com>
2025-10-11 08:35:58 -04:00
Mahesh Mahadevan
b8419e6d29 dts: rw6xx: Update the power mode exit latency
Update the exit latency based on measurements

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-10-10 20:51:24 -04:00
Mathieu Choplain
7bbecd8c37 scripts: kconfig: fix dt_nodelabel_int_prop crash if prop doesn't exist
dt_nodelabel_int_prop did not check if the property existed on the node
before accessing it, which would result in a build-time crash (and thus
build error) if used on a node which lacked the requested property.

Fix by using the common _node_int_prop() helper which handles all edge
cases properly.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-10 20:51:13 -04:00
Aksel Skauge Mellbye
48d3aef043 samples: basic: button: Disable led on xgm240 boards
Button 0 and LED 0 share a GPIO pin on xgm240 boards. Remove the
`led0` alias in a board overlay to make the button sample work
out of the box.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-10 20:51:03 -04:00
Aksel Skauge Mellbye
3506523872 boards: silabs: Add xgm240_rb4316a and xgm240_rb4317a
Add support for xGM240-RB4316A and xGM240-RB4317A radio boards
for xGM240 modules. The two boards share pinout configuration, but
have different radio and power configurations.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-10-10 20:51:03 -04:00