Commit graph

126,787 commits

Author SHA1 Message Date
Emil Gydesen
bbcbcbfc41 Bluetooth: Adv: Store SID and expose via adv_info
Store the SID in the advertising set, and let it be possible
to get it again via bt_le_ext_adv_get_info.

The SID may be used by higher layers to shared information
about the advertising set.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-27 20:52:19 +02:00
Emil Gydesen
b714ea3484 Bluetooth: Shell: Increment SID per set
Instead of always using SID=0 for advertising sets (which can be
tricky if there are multiple advertising sets using the same SID
and address), the SID will be incremented and wrap around when
reaching the max to reduce the risk of 2 or more sets having the
same SID.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-27 20:52:19 +02:00
Aiden Hu
2dd8570eec modules: hal_nxp: mcux: update macros for usb host EHCI
Change the default value for QH/QTD/ITD/SITD
of usb host ehci.

Signed-off-by: Aiden Hu <weiwei.hu@nxp.com>
2025-08-27 16:35:52 +02:00
Aiden Hu
d560f54e9f soc: nxp: rw: update soc.c of rw for usb clock
usb clock enablement for UHC NXP EHCI on rw.

Signed-off-by: Aiden Hu <weiwei.hu@nxp.com>
2025-08-27 16:35:52 +02:00
Aiden Hu
5d9353b1fa dts: arm: nxp: update nxp_rw6xx_common.dtsi for usb host.
Add usbh node.

Signed-off-by: Aiden Hu <weiwei.hu@nxp.com>
2025-08-27 16:35:52 +02:00
Benjamin Cabé
e7b49592b2 include: drivers: swdp: Add missing doxygen comments
Complete the documentation of swdp.h

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-27 16:35:33 +02:00
Sean Kyer
3a54a4d123 settings: Add EXPERIMENTAL to TF-M ITS backend
Add select EXPERIMENTAL to the TF-M ITS
backend of the settings subsystem.

Signed-off-by: Sean Kyer <sean.actor@gmail.com>
2025-08-27 16:35:23 +02:00
Sean Kyer
102ce2ac3b tests: settings: ITS: Explicitly enable TF-M ITS
Explicitly enable the TF-M ITS backend for the
settings subsystem in the settings its test.

Signed-off-by: Sean Kyer <sean.actor@gmail.com>
2025-08-27 16:35:23 +02:00
Sean Kyer
20360ff4da settings: Remove default selection of TF-M ITS backend
Remove the default selection of SETTINGS_TFM_ITS when
TFM_PARTITION_INTERNAL_TRUSTED_STORAGE is enabled
which caused this backend to be built when it was
not intended.

Signed-off-by: Sean Kyer <sean.actor@gmail.com>
2025-08-27 16:35:23 +02:00
Bernt Johan Damslora
46e9b4a6af boards: nrf9280pdk: Add revision 0.2.0
Add revision support and overlays for rev. 0.2.0.

Signed-off-by: Bernt Johan Damslora <bernt.damslora@nordicsemi.no>
2025-08-27 16:35:09 +02:00
Bernt Johan Damslora
cb1b569fc3 boards: nrf9280pdk: disable IEEE 802.15.4 support
nRF92 series is not supported in the IEEE 802.15.4 stack yet,
so remove it from the board for now.

Signed-off-by: Bernt Johan Damslora <bernt.damslora@nordicsemi.no>
2025-08-27 16:35:09 +02:00
Jiafei Pan
7305de28db board: imx95_evk: fix jlink device id
Device ID should be MIMX9596 for i.MX95 EVK board.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-08-27 16:33:06 +02:00
Benjamin Cabé
6aa3e9e972 include: lorawan: document deps of clock sync and frag transport APIs
Add Doxygen tags giving users an indication that some API will only be
available if the corresponding Kconfig option is enabled.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-27 16:32:57 +02:00
Benjamin Cabé
993713a47f include: lorawan: remove ifdef-ry
Do not KConfig-gate function declarations as per
Zephyr's API guidelines

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-27 16:32:57 +02:00
Lyle Zhu
5245307512 Bluetooth: GATT: Check len of response before parsing response PDU
In function `parse_read_by_uuid()`, the response length is not checked
before parsing the response PDU. There is a potential issue that the
`len` will be underflowed if the `len` is less than the size of
`struct bt_att_data`.

Check the length before parsing the response PDU. If the length is less
then the size of `struct bt_att_data`, notify the upper layer with the
error `BT_ATT_ERR_INVALID_PDU` and stop the parsing.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-08-27 15:16:47 +02:00
Georgios Vasilakis
7f9459571a boards: ezurio: Fix RRAM size for nRF54l10 NS
The nRF54L1 has 1012 KB RRAM and not 1022 KB as
it was set before. This adjusts the NS target
RRAM size for the relevant Ezurio boards
which use the nRF54L10.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
2025-08-27 15:16:38 +02:00
Georgios Vasilakis
fdf55fe460 manifest: Bring TF-M with fixed nRF54L10 NS RRAM size
Corrects the RRAM size in the TF-M repo.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
2025-08-27 15:16:38 +02:00
Georgios Vasilakis
9f0d2770f1 boards: nordic: Fix RRAM size for nRF54l10 NS
The nRF54L1 has 1012 KB RRAM and not 1022 KB as
it was set before. This adjusts the NS target
with the correct size.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
2025-08-27 15:16:38 +02:00
Georgios Vasilakis
dd95a7d83d Revert "boards: nordic: nrf54l10_cpuapp_ns: Add workaround for partitions"
This reverts commit 002838ab9e.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
2025-08-27 15:16:38 +02:00
Sebastian Głąb
e0fcfa1be9 samples: subsys: usb: hid-keyboard: Confirm operation with console
Use console logs to determine if sample operates correctly.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-08-27 09:47:38 +02:00
Qiang Zhang
d350cde656 test: added input_dume test implementation.
added gpio_kpp test implementation.

Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
2025-08-27 09:47:10 +02:00
Qiang Zhang
be362de579 boards: nxp: add kpp peripheral to mimxrt1180_evk.
add kpp peripheral to mimxrt1180_evk.

Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
2025-08-27 09:47:10 +02:00
Qiang Zhang
55adebb51b dts: add KPP driver bindings.
add KPP driver bindings.

Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
2025-08-27 09:47:10 +02:00
Qiang Zhang
2441e76ad0 driver: input: Add support for KPP driver.
Added support for KPP driver.

Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
2025-08-27 09:47:10 +02:00
Qiang Zhang
0887ccd660 clock: Add KPP clock support for ccm.
Add KPP clock support for ccm.

Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
2025-08-27 09:47:10 +02:00
Qiang Zhang
79e4b31d8f hal_nxp: Add KPP driver support.
Add KPP driver support.

Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
2025-08-27 09:47:10 +02:00
Jeppe Odgaard
cbc2b3b540 shell: mqtt: remove username and password preprocessor checks
`#ifdef` will always evaluate to true when used on string Kconfig options.
Therefore username and password is set to "" if unset in Kconfig which is
not an issue.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-08-27 09:47:04 +02:00
Maksymilian Goryszewski
90723c86ed tests: posix: fs: Added fstat tests
Test posix fstat() function

Signed-off-by: Maksymilian Goryszewski <mgoryszewski@internships.antmicro.com>
2025-08-27 08:27:14 +02:00
Maksymilian Goryszewski
ba30c7b4e8 lib: posix: fs: Basic fstat() using seek and tell
Implement limited posix fstat()

Signed-off-by: Maksymilian Goryszewski <mgoryszewski@internships.antmicro.com>
2025-08-27 08:27:14 +02:00
Fabio Baltieri
eb7e08641d docs: contribution, style: specify that tabs are 8 characters
GitHub, in a moment of infinite wisdom, decided to change the default
tab from eight to four characters.

According to the GitHub announcement the problem that the change
addressed is that "many users are unaware that tab size can be adjusted
in their settings". As a result now users with this so called "improved"
setting sees a different indentation from all other users.

Help GitHub in their awareness mission, by making the users aware that
tab size can (or rather, has to) be adjusted in their settings to the
previous default, by mentioning it in the contribution guideline.

Call it out in the quick style guide too since it's not the default
anymore.

Link: https://github.blog/changelog/2025-08-07-default-tab-size-changed-from-eight-to-four/
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-08-27 08:27:05 +02:00
Zhaoxiang Jin
fba3a1e314 boards: nxp: Use the mcxa346 linkserver for mcxa266
The frdm-mcxa266 linkserver is not ready now,
temporarily use the frdm-mcxa346 linkserver.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-08-27 08:26:34 +02:00
Khoa Nguyen
a02be914ca drivers: gpio: Add select PINCTRL for renesas_ra_ioport
Add select PINCTRL for renesas_ra_ioport

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-27 05:15:28 +02:00
Sylvio Alves
2802a9a6f3 drivers: flash: esp32: handle zero-length reads as no-op
Add a guard clause in flash_esp32_read() to return 0 when the
requested length is zero. This avoids unnecessary operations
and aligns with expected flash API behavior, where reading
zero bytes is treated as a no-op.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-08-27 05:15:19 +02:00
Terry Geng
d7d5aeb800 drivers: spi: spi_pico_pio: Prevent dma_config check if DMA is not enabled
At this moment, DMA for SPI 3-wire half-duplex operation is not supported
by the pio driver. A check was implemented there to prevent user from
enabling DMA, but wasn't bypassed when CONFIG_SPI_RPI_PICO_PIO_DMA is
not enabled at all, under which the `dma_config` structure isn't defined
at all.

Fixed #94897.

Signed-off-by: Terry Geng <terry@terriex.com>
2025-08-27 05:15:09 +02:00
Dmitrii Sharshakov
3c8eeeaebb samples: settings: handle failures
If we cannot initialize settings subsystem, it does not make
much sense to do calls into it. This leads to uninitialized
variables being printed and generally makes it hard to tell whether
or not the sample runs with the given config.

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
2025-08-27 05:14:53 +02:00
WenBin Zhang
231d59f890 samples: zperf: Improve TCP performance
For TCP, CONFIG_PICOLIBC_USE_MODULE=y has a significant impact
on performance.

Use nucleo_h743zi board with loopback:
```
before:
tcp upload: 49.35 Mbps/s

after:
tcp upload: 56.52 Mbps/s
```

Use nucleo_h743zi board, default config:
```
before:
tcp upload: 71.3Mbps/s
tcp download: 75.11 Mbps/s

after:
tcp upload: 75.3Mbps/s
tcp download: 94.39 Mbps/s
```

Use nucleo_h743zi board, with tx async mode #93965:
```
before:
tcp upload: 71.3Mbps/s
tcp download: 75.11 Mbps/s

after:
tcp upload: 92.9Mbps/s
tcp download: 94.5Mbps/s
```

Signed-off-by: WenBin Zhang <freey7955@gmail.com>
2025-08-27 05:14:43 +02:00
Daniel Leung
fe5f8e0737 x86: pcie: fix allocating 1 vector under MSI-X
Fix an issue where 1 vector is being requested when MSI-X is
enabled. The previous logic always assumed the PCIE device has
only fixed or single MSI when we are requesting 1 vector, which
is not entirely correct. So if there is no vector allocated
already, try to allocate one.

Fixes #93319

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-08-27 05:14:34 +02:00
Daniel Leung
d4b4da94e7 x86: fix return for arch_pcie_msi_vectors_allocate()
arch_pcie_msi_vectors_allocate() has a return type of uint8_t.
One of the error path returns -1 which would result in 255
being returned. So fix that by returning 0 instead, as there is
no vector being allocated anyway.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-08-27 05:14:34 +02:00
Daniel Leung
bf892ffe29 tests: disk/disk_performance: add CONFIG_NVME for qemu_x86_64
qemu_x86_64 has NVME disk as overlay so we need to enable
kconfig CONFIG_NVME or else it would fail to compile.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-08-27 05:14:34 +02:00
Sebastian Głąb
b50b5b4f4e boards: nordic: nrf54lm20dk: Add usbd to supported features
Add 'usbd' to the list of features supported by nrf54lm20dk.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-08-26 23:51:09 +02:00
Benjamin Cabé
0928c70f19 include: sensing: doc: documentation improvements
- Move sensing documentation in the "OS Services" group
  and clean up group declarations
- Add missing documentation for the Sensing Subsystem API and complete
  existing docs when it was too terse
- Other grammar/cosmetic improvements

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-26 23:50:47 +02:00
Benjamin Cabé
0f7b1033d5 include: sensing: doc: sensor types doxygen fixes
add missing docs, group types using `@name`

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-26 23:50:47 +02:00
Declan Snyder
5aa89556fb samples: Fix confusing openamp sample doc
A lot of users seem to be confused by this sample when they try to do
west debug. This is because Zephyr currently does not support flashing
all the cores from a sysbuild automatically when doing a west debug
command. So west flash needs to be done prior to a west debug command.
The README previously actually said the step by step instructions are to
do the build, then immediately west debug, which would cause faulting
and crashing, so change the instructions goal to be a flash, and put a
note about needing to flash before debugging.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-08-26 23:50:33 +02:00
Ephraim Westenberger
a7527b1bf7 soc: Add support for the bgm240sa22vna module
Silicon Labs controller with integrated radio each rely on a specific
binary blob (RAIL library) for using the EFR32 radio subsystem.
This commit adds support for the Silicon Labs BGM240SA22VNA SoC.

Signed-off-by: Ephraim Westenberger <ephraim.westenberger@gmail.com>
2025-08-26 23:49:37 +02:00
Michal Simek
7944467170 drivers: ethernet: xilinx: remove unused data variable
Clean up unused variable 'data' in eth_xilinx_axienet.c.

Signed-off-by: Michal Simek <michal.simek@amd.com>
2025-08-26 22:08:23 +02:00
Raffael Rostagno
382ce7cbd3 drivers: mcpwm: esp32: Fix duty rounding
Duty value in the driver is calculated from timer cycles, which
can introduce precision loss when converting from pwm_set() to
pwm_set_cycles(). To avoid truncating values with a fractional
part ≥ 0.5 and further drifting the effective duty, round the
computed duty to the nearest integer.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:08:11 +02:00
Benjamin Cabé
98b006566d include: ec_host_cmd: doxygen improvements
- add some missing docs
- make sure API guarded by Kconfig is showing up in the docs
- show EC Host Command docs in the Device Management group
- re-arrange groups for backends and simulator API

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-26 22:07:52 +02:00
Benjamin Cabé
8ea45f3a72 doc: groups.dox: add device management group
Make sure that subsystems such as MCUmgr, EC Host Command, etc. are
grouped under a Device Management group instead of showing up as
top-level "OS Services".

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-26 22:07:52 +02:00
Philémon Jaermann
efacee0145 drivers: gnss: Correctly set the 1 bit bitfield is_tracked/corrected
Currently, if a SV is tracked, we try to store:
flags & BIT(3) -> 0b1000 -> least significant bit 0 is stored.
Same is valid for the is_corrected field.

Use double negation to treat any non-zero value as true.

Signed-off-by: Philémon Jaermann <p.jaermann@gmail.com>
2025-08-26 22:07:43 +02:00
Raffael Rostagno
2643ea23c0 tests: drivers: counter: esp32h2: Add config
Add test config for ESP32-H2.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-08-26 22:07:36 +02:00