Commit graph

111601 commits

Author SHA1 Message Date
cyliang tw
47dfd857f9 soc: nuvoton: numaker: add support for m55m1x series
Add initial support for nuvoton numaker m55m1x SoC series
including basic init and device tree source include.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2025-03-12 14:04:23 +00:00
Michał Stasiak
588baa4022 tests: drivers: spi: Add further support for nRF54L20 PDK
Added support for nRF54L20 PDK in tests involving
multiple instances. Corrected pin assignements in
spi_error_cases test.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-03-12 14:04:15 +00:00
Krzysztof Chruściński
f68a086005 doc: debugging: Add section about CPU load
Add documentation for CPU load module.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-03-12 14:03:48 +00:00
Krzysztof Chruściński
688b561815 tests: debug: Add test for cpu_load
Add test for CPU load.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-03-12 14:03:48 +00:00
Krzysztof Chruściński
0ec2ad577d arch: arm: cortex_m: Add sys_trace_idle_exit calls
Add calls to sys_trace_idle_exit when leaving idle state. It is
used to track CPU load.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-03-12 14:03:48 +00:00
Krzysztof Chruściński
4cbafc6bd4 tracing: Add sys_trace_idle_exit call
Add new tracing API which is called when core is exiting from idle.
Current implementation is using it to track CPU load. Implementation
in tracing_none is now weak so it can be used if given backend does
not support new API call.

When CONFIG_CPU_LOAD is enabled then sys_trace_idle also calls a
hook which stores the timing information when CPU entered idle.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-03-12 14:03:48 +00:00
Krzysztof Chruściński
c7d7aac2bd debug: Add cpu_load module
Add module which can measure CPU idle time. Idle time is measured in
the pre/post CPU idle hooks but they are not provided by this module.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-03-12 14:03:48 +00:00
Nikodem Kastelik
c4ebf713b1 drivers: serial: nrf: set default frame size and endianess
Setting frame size and endianess is now supported in UARTE HAL,
so these settings must have default values configured
to avoid compiler warnings about uninitialized fields.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2025-03-12 09:54:32 +01:00
Nikodem Kastelik
400fd18fe1 drivers: clock_control: nrf: ifdef optional events
Some of the CLOCK events are associated with features
not available on every nRF device.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2025-03-12 09:54:32 +01:00
Nikodem Kastelik
a708cca780 modules: hal_nordic: nrfx: align nRF54L09/L20 symbols to new scheme
MDK 8.70.0 introduced following changes in the device naming:
- renamed nRF54L20 Eng A to nRF54LM20A Eng A
- renamed nRF54L09 Eng A to nRF54LV10A Eng A
Actual SoC renaming will happen in followup PR.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2025-03-12 09:54:32 +01:00
Nikodem Kastelik
7319cc84bb Revert "drivers: clock_control: nrf: Add workaround for XO start anomaly"
This reverts commit 2cb2cf226c.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2025-03-12 09:54:32 +01:00
Nikodem Kastelik
e0048929d6 manifest: update hal_nordic revision to integrate nrfx 3.11.0
New nrfx version integrates MDK 8.70.0.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2025-03-12 09:54:32 +01:00
Vivekananda Uppunda
48989e49ed drivers: nrf_wifi: Fix return value for getting current reg domain
It is observed that the regulatory domain API returns a failure
even when it has successfully completed its task. This change
addresses a minor fix to return the proper value to the user
when attempting to set the regulatory domain.

Signed-off-by: Vivekananda Uppunda <vivekananda.uppunda@nordicsemi.no>
2025-03-12 09:53:52 +01:00
Krzysztof Chruściński
1dfe3cba99 soc: nordic: common: vpr: Update custom idle
VPR (FLPR) on nRF54L series has fixed issue with sleeping so
custom CPU idle function does not need to be used there.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-03-12 09:53:42 +01:00
Erwan Gouriou
a28a338024 i2c: stm32: Fix return type declaration of 2 private functions
Return type should be int, no need for int32_t.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-03-12 09:53:32 +01:00
Nicolas Pitre
7fb92c9eb1 tests: lib: multi_heap: fix stack overflow
Some platforms, notably ARM64, need more than 512 bytes of breathing
room on the stack. Very weird and difficult-to-track memory corruptions
were caused by test_mheap_realloc without this.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-03-12 07:15:12 +01:00
Cla Mattia Galliard
294a26b2d1 net: mgmt: fix compiler warnings for static inline shims
Add ARG_UNUSED(x) for static inline shims inside net_mgmt.h. This avoids
compiler warnings for "unused variables".

Signed-off-by: Cla Mattia Galliard <cla-mattia.galliard@zuehlke.com>
2025-03-12 07:14:58 +01:00
Maochen Wang
1dbe1dfa1f net: lib: sockets: fix socket_service thread stuck by mistake
Use Wi-Fi connecting to Qualcomm IPQ8074 AP, and run the UDP RX traffic
with Zperf, but zperf does not return the throughput number after
traffic completion nor any session started prints. After traffic
completion, ping from STA to AP and vice versa does not work. The
socket_service thread is found blocked forever at zsock_wait_data()
after dns_dispatcher_svc_handler() is called via trigger_work().
The root cause of this issue is:
STA received one DHCPv4 packet containing DHCPV4_OPTIONS_DNS_SERVER,
it will create DNS socket and registered to socket_service. Then STA
received another IPv6 router advertisement packet containing
NET_ICMPV6_ND_OPT_RDNSS, it will close socket and change the state of
poll_events to K_POLL_STATE_CANCELLED(8), then registered to
socket_service with same fd. In socket_service thread, zsock_poll()
called zsock_poll_update_ctx() when handled ZFD_IOCTL_POLL_UPDATE, and
it checked the state of poll_events was not K_POLL_STATE_NOT_READY(0),
then it will set pfd->revents to '|= ZSOCK_POLLIN'. Finally
trigger_work() can be called as 'ctx.events[i].revents > 0' is matched.

The fix of this issue is that, in zsock_poll_update_ctx(), it should
check the state of poll_events is neither K_POLL_STATE_NOT_READY nor
K_POLL_STATE_CANCELLED before setting revents as ZSOCK_POLLIN, to avoid
trigger_work be unexpectedly called.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-03-12 07:14:46 +01:00
Lyle Zhu
f349976937 Bluetooth: SSP: Fix MITM flag incorrect issue in pairing
There is a case that if the local is a peripheral and a L2CAP server
with the security level 3,the mitm should be set to make sure the
security level can reach level 3.

But in current implementation, the MITM is not set because the MITM
of `Authentication_Requirements` parameter of remote is not set. And
the security level will be level 2 after the security pairing
procedure complete.

Add a function `bt_l2cap_br_get_max_sec_level` to
get the max level of the registered servers.
`
Force set the MITM bit if the max level is bigger than level 2 and
pairing method is not `just works`.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-03-12 07:14:25 +01:00
Khoa Nguyen
01706f34ac tests: drivers: adc: Update channel for adc0 on ek_ra4l1
Update channel for adc0 on adc_accuracy_test and adc_api
for ek_ra4l1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-03-12 07:14:08 +01:00
Khoa Nguyen
1aa48e6247 boards: renesas: Modify the pinsel for adc0 on ek_ra4l1
Currently, we set P002 (AN000) as the default pin selection
for ADC0 on ek_ra4l1. However, after testing the ADC function
with this pin selection, the ADC function does not work
on this pin.

The main reason is P002 is used for the I2C I/O Port Expander
and is connected to a 10kΩ pull-up resistor.

For the solution, we will select the P003 (AN001)
as default pinsel for adc0

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-03-12 07:14:08 +01:00
Jiafei Pan
beb5b5dfcd boards: imx95_evk: a55: add i2c support on the board
Enabled some I2C bus on the board, can use I2C shell for simple
verification.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-03-12 07:13:55 +01:00
Jiafei Pan
b72f9144b3 dts: arm64: imx95: add i2c device nodes
Added device nodes for all I2C bus on i.MX95 Cortex-A Core..

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-03-12 07:13:55 +01:00
Hake Huang
5b1f0dbc04 tests: mbox: enable mbox test for rt1180
add rt1180 config for test mbox_data
using filter instead of platform_allow

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-03-12 07:13:44 +01:00
Hake Huang
9d7ee123a5 samples: mbox: enable rt1180
using filter to add potential platform in

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-03-12 07:13:44 +01:00
Hake Huang
78c83df95e boards: nxp: mimxrt1180_evk add mbox tag
add mbox to support list

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-03-12 07:13:44 +01:00
Jilay Pandya
c52370acf7 docs: release-notes: 4.2: new stepper sample
- stepper_generic

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-12 07:13:33 +01:00
Jilay Pandya
b5ff37297d samples: stepper: add generic stepper sample
Add a generic stepper sample with gpio-stepper

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-12 07:13:33 +01:00
Jilay Pandya
c42440ce9c samples: stepper: tmc50xx minor fixes
fix minor spacing and nomeclature errors in tmc50xx stepper sample

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-12 07:13:33 +01:00
Andrew Davis
e07b8733d5 drivers: mm: rat: Only fetch region_config from translate_config once
We only need to dereference translate_config once to get the current
region_config we are working with, do this once at the start of the
sections that use it multiple times.

The compiler should optimize the multiple fetches anyway, so this
is purely for code readability.

Signed-off-by: Andrew Davis <afd@ti.com>
2025-03-12 07:13:22 +01:00
Andrew Davis
99de7521ca drivers: mm: rat: Simplify sys_mm_drv_page_phys_get logic
Instead of tracking if a matching address has been found and then
doing the translation after, we can loop until one is found and
do the translation and return immediately.

This saves having to keep a "found" variable, and makes the code
shorter and more readable IMHO. Do this here.

Signed-off-by: Andrew Davis <afd@ti.com>
2025-03-12 07:13:22 +01:00
Andrew Davis
7949ffd7d8 drivers: mm: rat: Fix virt and phys NULL checks
Do not check virt being NULL as 0 is a valid address that can be
translated. Phys on the other hand is an output pointer that will be
assigned to and so cannot be NULL, check this instead to prevent a
NULL pointer dereference later.

Note that phys is allowed to be NULL, so this is not an invalid argument.
It can set to NULL when the caller wants to check if a virtual address is
mapped but does not care about the address itself. In that case -EFAULT
should be returned if the virtual address is not mapped, 0 otherwise.
For RAT, all addresses not translated are still valid and mapped as
pass-through, so we always return 0 in this check case.

Signed-off-by: Andrew Davis <afd@ti.com>
2025-03-12 07:13:22 +01:00
Andrew Davis
8580c6d50b drivers: mm: rat: Remove extra ASSERT for num_regions
This was already checked on initialization, not need to do it
every time we do a translation.

Signed-off-by: Andrew Davis <afd@ti.com>
2025-03-12 07:13:22 +01:00
Andrew Davis
d2d43b9d97 drivers: mm: rat: Move internal struct and definitions into source file
These struct and definitions are only used internally by this driver,
move them out of the public interface header and into the driver source.

Signed-off-by: Andrew Davis <afd@ti.com>
2025-03-12 07:13:22 +01:00
Andrew Davis
693172becd drivers: mm: rat: Pass region_config as a struct not void pointer
The struct address_trans_region_config is already defined, no reason
to pass this in as a void pointer then cast it later. Pass it in
as a struct pointer.

Signed-off-by: Andrew Davis <afd@ti.com>
2025-03-12 07:13:22 +01:00
Andrew Davis
4b855962df drivers: mm: rat: Merge address_trans_init into base init function
This helper function is only used once and is way too small to need
to be factored into its own function. Inlining it greatly reduces
code size and complexity.

While merging, move the ASSERT()S out of the loop, they only need
checked once.

Signed-off-by: Andrew Davis <afd@ti.com>
2025-03-12 07:13:22 +01:00
Marcio Ribeiro
233d6b1bf5 drivers: dma: esp32: remove block size limitation
Removes block size limitation from dma rx and tx configuration

Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
2025-03-12 07:13:06 +01:00
Andrej Butok
8473928db4 zms: fix the zms_mount() sector_size check
Adds the return -EINVAL, if the fix zms_mount() sector_size
check is failed.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-03-12 02:29:31 +01:00
Fabio Baltieri
b13255895d boards: fix few incorrect ft5336 polarities
The interrupt pin is active low, not sure how any of these could have
worked correctly, maybe they've only been tested in polling mode.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-03-12 02:29:17 +01:00
Christoph Seitz
b01b77aa44 tests: net: socket: Check length for AF_PACKET SOCK_DGRAM socket
This test checks that the length returned is not altered
even if the payload resembles a valid IPv4 or IPv6 length.

Signed-off-by: Christoph Seitz <christoph.seitz@infineon.com>
2025-03-12 02:29:02 +01:00
Christoph Seitz
5992208605 net: ethernet: Refactor length check to accommodate VLAN header size
The ethernet header size with VLAN tag is 18 bytes,
so the length check should accommodate this.

Signed-off-by: Christoph Seitz <christoph.seitz@infineon.com>
2025-03-12 02:29:02 +01:00
Christoph Seitz
e43246b756 net: ethernet: Fix length update for unsupported packet families
Do not update packet length for unsupported packet families.
AF_PACKET family used the IPv6 length update, which breaks the
packet length if there is a payload with bytes resembling a
IPv6 length field less then 6 or a IPv4 length field less
then 46.

Signed-off-by: Christoph Seitz <christoph.seitz@infineon.com>
2025-03-12 02:29:02 +01:00
Sam Kwort
c5aaf3d26a boards: st: disco_l475_iot1: fix flash partition overlap
Fix a partition overlap in the flash node on the
disco_l475_iot1 board.

Signed-off-by: Sam Kwort <skwort@skwort.dev>
2025-03-12 02:28:50 +01:00
Ibrahim Abdalkader
b887cc4db5 drivers: video: gc2145: Fix video_format_cap array.
video_format_cap needs to be terminated with a NULL entry
to allow looping over the formats.

Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
2025-03-12 02:28:40 +01:00
Chris Friedt
85aebac1c0 tests: posix: add one integration platform per suite
Add one integration platform per testsuite to reduce the number
of issues reported by the qa log level introduced in #86571.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-03-12 02:28:23 +01:00
Maureen Helm
a930faa151 samples: sensor: Refactor accelerometer sample configs
Refactors accelerometer polling and trigger sample.yaml to avoid
duplicating values shared between multiple configurations.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-03-12 02:28:09 +01:00
Etienne de Maricourt
b47a2836ff net: lwm2m: Test compilation with data cache enabled
This should allow an issue such as #86681 to be found earlier for a not
widely used config.

Signed-off-by: Etienne de Maricourt <edmecomemail@gmail.com>
2025-03-12 02:27:59 +01:00
Etienne de Maricourt
16c6504ee0 net: lwm2m: Fix ifdef nesting for data cache config
Avoid a "defined but not used" warning on
`init_next_pending_timeseries_data` when
LWM2M_RESOURCE_DATA_CACHE_SUPPORT is enabled but not LWM2M_VERSION_1_1.

Signed-off-by: Etienne de Maricourt <edmecomemail@gmail.com>
2025-03-12 02:27:59 +01:00
Etienne de Maricourt
1d356abc5b doc: net: lwm2m: Update code snippet to use latest API
Documentation was not updated after the deprecated API was removed in
94e12d59.

Signed-off-by: Etienne de Maricourt <edmecomemail@gmail.com>
2025-03-12 02:27:59 +01:00
Alberto Escolar Piedras
1bfbd9262e Bluetooth: userchan: Remove support for native_posix and clarify msg
native_posix has been removed, so let's remove its support from
kconfig for this driver.
Also let's replace its mention in the help message.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-12 02:27:36 +01:00