Commit graph

118,807 commits

Author SHA1 Message Date
Khaoula Bidani
d00eb33729 dts: arm: st: u3: add wwdg and iwdg
Add WWDG snd IWDG support to STM32U3

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-06-25 15:46:40 -10:00
a8375c986d include: dt-bindings: fix and extend the ch32v00x pinctrl definitions
These were wrong and incomplete. Rebuild based on section 7.2.11 of
the CH32V00XRM and added the CH32V007-only remaps.

Signed-off-by: Michael Hope <michaelh@juju.nz>
2025-06-25 15:44:37 -10:00
99fbef14c2 boards: wch: update the bord test definitions to match the new drivers
The CH32V series now has GPIO, watchdog, I2C, and PWM drivers. Enable
Twister for these drivers by updating the board definitions to match.

On the larger chips, also enable the watchdog in Devicetree so it's
usable by the sample.

Note that the 203 and 303 do not yet have the appropriate iwdg
Devicetree node.

Signed-off-by: Michael Hope <michaelh@juju.nz>
2025-06-25 15:43:32 -10:00
Emil Lindqvist
401ec8bae2 modem_cellular: lara_r6: add option to clear forbidden networks from SIM
SIM-cards remember which networks has rejected attach attempts. This is
not always desired if the user has control over which networks to allow.
This commit adds a Kconfig symbol which enables clearing of saved
forbidden networks from SIM-card on boot.

Signed-off-by: Emil Lindqvist <emil@lindq.gr>
2025-06-25 15:42:41 -10:00
Emil Lindqvist
e27c4ba718 modem_cellular: lara_r6: add choice of Radio Access Technology
Add a Kconfig choice to select which Radio Access Technology to be used

Signed-off-by: Emil Lindqvist <emil@lindq.gr>
2025-06-25 15:42:41 -10:00
Emil Lindqvist
bebfd879bf modem_cellular: lara_r6: disable modem's own LWM2M client
U-blox LARA-R6 LWM2M client is enabled by default. Not only causes this
the modem to connect to U-blox's server on its own, it also for some
reason causes the modem to reply "Destination unreachable" to DNS answers
from DNS requests that we send

Signed-off-by: Emil Lindqvist <emil@lindq.gr>
2025-06-25 15:42:41 -10:00
Cong Nguyen Huu
2339c7c23c tests: drivers: mbox: mbox_data: add support for s32z
The hardware MRU on SoC S32Z supports ping-pong data on a
MBOX channel within one core.

Added Kconfig TEST_SINGLE_CPU to enable test on single CPU  to wrap
the specific code for each testcase, As the expected received data
must match the sent data when running test single CPU. This differs
from the expected data in the current supported test transfer data
between 2 other cores, where the remote core increments the data by
one before transferring it back to the main core.

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
2025-06-25 15:41:38 -10:00
Bjarki Arge Andreasen
a4800beef2 drivers: rtc: api: adjust callback APIs to not be syscalls
The rtc device driver APIs rtc_update_set_callback and
rtc_alarm_set_callback are not allowed from usermode threads, thus
they should not be marked as syscalls. The APIs where never
implemented as sycalls, there is no z_vrfy wrapper for them, so
only change needed is to not mark them as syscalls with the
special __syscall "attribute" and z_impl wrapper.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-25 15:40:06 -10:00
Filip Stojanovic
4cce811adb dts: weact_stm32h5_core: Define clk_hsi48 to fix USB support
The USB CDC driver relies on the HSI48 internal oscillator as the
default clock source for USB functionality. In the weact_stm32h5_core
device tree, the clk_hsi48 node was missing, resulting in USB
initialization failure.

Signed-off-by: Filip Stojanovic <filipembedded@gmail.com>
2025-06-25 15:37:50 -10:00
Mickael Bosch
888bde94be drivers: timer: handle the stm32u0 target
Configure the lptim to wake-up from sleep.

Signed-off-by: Mickael Bosch <mickael.bosch@linux.com>
2025-06-25 15:33:47 -10:00
Mickael Bosch
03bca9bae9 soc: stm32u0: add PM
STM32U0 specific changes to enable the PM feature.
Base on the power-related code from the STM32U5 target.

Signed-off-by: Mickael Bosch <mickael.bosch@linux.com>
2025-06-25 15:33:47 -10:00
Andreas Schuster
972f11e9e4 doc: develop: Add XDG_CONFIG_HOME information for zephyrrc
The `zephyr-env.sh` script was adjusted to look for the zephyrrc file in
three locations following the [XDG Base Directory Specification]. The
documentation of the environment variables is now adjusted to reflect that
change.

[XDG Base Directory Specification]: (https://specifications.freedesktop.org/basedir-spec/latest/)

Signed-off-by: Andreas Schuster <andreas.schuster@schuam.de>
2025-06-25 15:33:06 -10:00
Andreas Schuster
0f0497f9c5 zephyr-env.sh: Use $XDG_CONFIG_HOME/zephry/zephyrrc if present
According to the [XDG Base Directory Specification] there is a single base
directory in which user configuration files should be stored. This helps
users to keep their home directory uncluttered. This base directory can be
set in the environment variable $XDG_CONFIG_HOME and defaults to
${HOME}/.config if $XDG_CONFIG_HOME is not set.

This commit adjusts the zephyr-env.sh script to look for a user
configuration file in the following locations:

- $XDG_CONFIG_HOME/zephyr/zephyrrc
- $HOME/.config/zephyr/zephyrrc
- $HOME/.zephyrrc

The first one that is found will be used.

[XDG Base Directory Specification]: (https://specifications.freedesktop.org/basedir-spec/latest/)

Signed-off-by: Andreas Schuster <andreas.schuster@schuam.de>
2025-06-25 15:33:06 -10:00
Ravi Dondaputi
4c14c618f6 net: wifi: shell: Enable Wi-Fi credentials support
Add a snippet for Wi-Fi credentials support. Update the heap sizes as
required for enterprise mode.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2025-06-25 15:31:29 -10:00
Ravi Dondaputi
d289bed4af net: lib: wifi_credentials: Add support for Enterprise security
Add support for configuring enterprise mode security.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2025-06-25 15:31:29 -10:00
Helmut Lord
15d324cbd4 doc: services: shell: add reference to west rtt
Adds a reference to west rtt as alternative to using putty. Also provides
a command that prints supported rtt runners for the specific build.

This issue is encountered now with the nRF54L1, for example, because
the nrfutil runner does not support RTT at this time.

Signed-off-by: Helmut Lord <kellyhlord@gmail.com>
2025-06-25 15:29:56 -10:00
Kristoffer Rist Skøien
ca2e98c4c9 debug: Added CPU usage callback
- Added a CPU load callback with threshold
- Changed cpu_load to use k_timer instead of k_work

Signed-off-by: Kristoffer Rist Skøien <kristoffer.skoien@nordicsemi.no>
2025-06-25 15:29:06 -10:00
Pieter De Gendt
c906d4a103 tests: net: dhcpv4: client: Test restarting DHCPv4 client
Add tests that verify the behavior of stopping and starting the DHCPv4
client.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-06-25 14:09:46 +02:00
Pieter De Gendt
1712a930a0 tests: net: dhcpv4: client: Explicit event/callback testing
Use k_event bit flags to test individual events and callbacks. Don't rely
on the number of events that happened.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-06-25 14:09:46 +02:00
Pieter De Gendt
0b8c00b5dd net: lib: dhcpv4: Support INIT-REBOOT
Add the init-reboot state for DHCPv4 to request an already assigned IP
address.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-06-25 14:09:46 +02:00
Pieter De Gendt
99a2893713 net: lib: dhcpv4: Skip leftover hostname or domain name bytes
When reading and printing hosname or domain name from DHCP options, we need
to skip the leftover bytes that do not fit into the provided buffers.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-06-25 14:09:46 +02:00
Loic Domaigne
836cf37dcc driver: gpio_ite_it8xxx2_v2: fix untrusted bound loop
Coverity is reporting a possible untrusted loop bound, caused by accessing
num_pins through a tainted pointer. Use explicit type cast to keep coverity
happy.

CID: 347195

Signed-off-by: Loic Domaigne <tech@domaigne.com>
2025-06-25 14:09:34 +02:00
Fabio Baltieri
4f3523d9af i2c: stm32: drop few redundant guards
Drop few CONFIG_PM_DEVICE_RUNTIME guards, the pm_device_runtime
functions they are masking are no-op automatically when the
corresponding config option is not selected.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-06-25 14:08:08 +02:00
Fabio Baltieri
67f80e35b8 i2c: stm32: always call runtime_get when registering targets
Current code only calls pm_device_runtime_get when registering target
devices if the device is marked as wakeup capable by the application.

This does quite work for a setup with PM=n and PM_DEVICE=y and
PM_DEVICE_RUNTIME=y, where the CPU does not really go in stop mode ever,
and results in the i2c target device not working at all.

Fix this by always claiming the device when PM_DEVICE_RUNTIME is
enabled.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-06-25 14:08:08 +02:00
Markus Lassila
581f75656d drivers: gpio_nrfx: Free channel when changing mode
Fix an issue where calling gpio_pin_interrupt_configure
with edge mode and later calling it with level mode, did
not release the allocated gpiote channel.

Repeating the above sequence caused us to run out of
gpiote channels.

Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
2025-06-25 14:07:48 +02:00
Aksel Skauge Mellbye
b155c0dceb boards: silabs: xg24_dk2601b: Add PWM LEDs using TIMER
The TIMER has 3 PWM channels, allowing all 3 RGB leds to be
controlled by the same PWM controller instance.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00
Aksel Skauge Mellbye
fccc0a7544 drivers: pwm: silabs: Add TIMER PWM driver for Series 2
Add PWM driver for the Timer peripheral on Series 2.
The TIMER uses the high-frequency EM01 Group A clock, and has
a 16- or 32-bit counter. It supports PWM period and pulse capture
on channel 0, and PWM output on all channels.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00
Aksel Skauge Mellbye
d85d3df323 dts: arm: silabs: Add Series 2 TIMER PWM
Add binding and DT nodes for PWM using the Timer peripheral.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00
Aksel Skauge Mellbye
6b1c5e97e9 boards: silabs: xg29_rb4412a: Add PWM LEDs using LETIMER
Use LETIMER to provide PWM LED on xg29_rb4412a.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00
Aksel Skauge Mellbye
566fc7a7db drivers: pwm: silabs: Add LETIMER PWM driver for Series 2
Add PWM driver for the Low Energy Timer peripheral on Series 2.
The LETIMER runs at up to 32 kHz and has a 24-bit counter. It
only supports PWM output, it does not support input capture.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00
Aksel Skauge Mellbye
2a958aa53f dts: arm: silabs: Add Series 2 LETIMER PWM
Add binding and DT nodes for PWM using the Low Energy Timer.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00
Bjarki Arge Andreasen
bb319603fd drivers: clock_control: nrf: add support for HFCLK24M
Add support for the HFCLK24M clock to the clock_control_nrf
device driver.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-25 14:07:20 +02:00
Tim Pambor
980573f6e2 west.yml: Update cmsis_6
Update CMSIS_6 to v6.2.0.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-06-25 14:06:57 +02:00
Andrzej Głąbek
9207a21c0e drivers: flash_util: Issue error log message when flash_fill write fails
Use LOG_ERR() instead of LOG_DBG() in flash_fill() when this function
fails to perform the write operation, so that the failure is better
visible and its cause is easier to identify.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-06-25 14:06:07 +02:00
Andrzej Głąbek
fb94343ce4 tests: drivers: flash: common: Fix page size when no erase is required
When no flash device requires erase, this test does not retrieve
flash page size with flash_get_page_info_by_offs(), but instead
it takes an arbitrary page size based on the test area length.
Since the test_flash_copy routine needs to use two pages, the test
area needs to be split into at least two parts. Correct the related
code and add a check if test_flash_copy requirements are met.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-06-25 14:06:07 +02:00
Tomas Barak
15a057c8f6 samples: driver: i2s: Support echo and codec on RT1060 EVKC
- increase the memory block count
- add generic codec configuration
- add rt1060 evkc and rt1170 evkb project configuration and overlay

Signed-off-by: Tomas Barak <tomas.barak@nxp.com>
2025-06-25 14:05:47 +02:00
Tomas Barak
d42d321b57 drivers: i2s: mcux_sai: Add condition for both directions configuration
- i2s_mcux_sai doesn't support configuration of both directions

Signed-off-by: Tomas Barak <tomas.barak@nxp.com>
2025-06-25 14:05:47 +02:00
Tomas Barak
6f5693a71b boards: nxp: mimxrt1060_evk: Add wm8962 codec support for EVKC
- add wm8962 codec on i2c1
- add aliases for i2s samples

Signed-off-by: Tomas Barak <tomas.barak@nxp.com>
2025-06-25 14:05:47 +02:00
Iuliana Prodan
81268e1cde samples: Enable vendor-specific support for i.MX8ULP
Update the imx8ulp_evk_mimx8ud7_adsp board configuration to enable
vendor-specific resource table features.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-06-25 14:05:38 +02:00
Iuliana Prodan
b3e4809554 lib: open-amp: Add NXP-specific resource table implementation
Implement NXP-specific support for the remote processor
resource table, including custom definitions and initialization
logic to meet NXP's communication requirements.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-06-25 14:05:38 +02:00
Iuliana Prodan
7c82d6c2ab lib: open-amp: Update CMakeLists.txt for vendor resource table
Modify the build system to conditionally compile
vendor-specific resource table support based on configuration.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-06-25 14:05:38 +02:00
Iuliana Prodan
9db96e8a04 lib: open-amp: Add vendor-specific config options
Add config options for vendor-specific resource tables.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-06-25 14:05:38 +02:00
Iuliana Prodan
222297ee07 lib: open-amp: Add base support for resource table
Introduce macros to define initialization
routines for OpenAMP resource table entries.

This will allow to extend the default OpenAMP
resource table with vendor-specific data structures.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-06-25 14:05:38 +02:00
Iuliana Prodan
e8a702026a lib: open-amp: Allow vendor specific resource table definition
Enhance flexibility by allowing vendors to define their own
resource tables. This is achieved by moving the vdev and vring
functions into the source file, requiring each vendor to
implement these functions within their specific resource
table definitions.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-06-25 14:05:38 +02:00
Iuliana Prodan
a50ddace58 lib: open-amp: Replace struct fw_resource_table with void
Switching to void allows greater flexibility in supporting
vendor-specific resource tables.

This change reverts commit 39863b66bd, and adds some fixes.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
2025-06-25 14:05:38 +02:00
Benjamin Cabé
dc140c09ad SDK_VERSION: Use Zephyr SDK 0.17.2
This commit updates SDK_VERSION to point to the recently released Zephyr
SDK 0.17.2 release.
https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.17.2

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-25 12:15:09 +02:00
Anas Nashif
4ca1f3eb4e ci: use 0.28.1 docker image with 0.17.2 sdk
Use new docker with SDK 0.17.2.

SDK 0.17.2 has a new Qemu with improved support for RX architecture.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-06-25 06:06:36 -04:00
Peter Wang
55db18bc06 boards: frdm_mcxa166, frdm_mcxa276: add i3c support
1. enable i3c driver and sensor p3t1755
2. verified samples/sensor/thermometer

Signed-off-by: Peter Wang <chaoyi.wang@nxp.com>
2025-06-25 10:53:50 +02:00
Pan Gao
e53ceeb86b net: l2: wifi: fix ap rts_threshold cmd parameter count
fix the number of mandatory arguments for command Wi-Fi ap RTS threshold,
3 to 2.

Signed-off-by: Pan Gao <pan.gao@nxp.com>
2025-06-25 10:53:40 +02:00
Benjamin Cabé
d30adebf91 drivers: espi: espi_mchp_xec: fix typo in receive_oob error checking
Check error using the proper RX mask

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-25 10:53:09 +02:00