Commit graph

112051 commits

Author SHA1 Message Date
Mathieu Choplain
4a9f88378b drivers: rtc: stm32: add support for STM32WB0 series
Modify STM32 RTC driver to support the WB0 series.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-03-19 01:32:43 +01:00
Mathieu Choplain
9f9f48dc6d dts: st: stm32wb0: add RTC node
Add RTC device node to STM32WB0 series DTSI.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-03-19 01:32:43 +01:00
Jilay Pandya
79221db413 dts: bindings: stepper remove property-allowlist from step-dir drivers
drop property-allowlist and implement invert-direction in step-dir-common

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-19 01:29:24 +01:00
Abderrahmane JARMOUNI
cbced96e2c samples: modules: lvgl: demos: increase native_sim mempool size
Increase native_sim_64 LVGL MEM_POOL_SIZE to accomodate flex_layout demo

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-03-19 01:28:54 +01:00
Kent Stark Olsen
04e3a68f27 drivers: serial: xuartps: removing redundant include
This include seems redundant as the driver builds fine without
it being included. When including soc.h it also causes issues
if one utilises the xenvm board when compiling. I suggest this
is removed completely as it seems unnecessary to create this
tight coupling to a specific SoC as the driver implementation
is describing itself perfectly well, and works well without
this soc.h-file.

Signed-off-by: Kent Stark Olsen <kent.stark.olsen@gmail.com>
2025-03-19 01:27:01 +01:00
Kent Stark Olsen
5599bf5914 drivers: serial: xuartps: fixing set_baudrate function
The Xilinx xuartps driver fails to find the correct pre-scaler
parameters for the BAUDDIV and BAUDGEN registers. This fix
corrects that behaviour. The reason why it fails is due to
the stop condition for the search being ill-conditioned.
The stop condition is based on a baudrate error, and this
was chosen to be 3 percent. This would cause the parameter
search to stop too early returning ill-condotioned pre-scaler
parameters. This has been corrected by setting the stop condition
to be 3 permille instead of 3 percent. This change was tested
with an AMD Zynq Ultrascale+ MPSoC ZU3EG.

Signed-off-by: Kent Stark Olsen <kent.stark.olsen@gmail.com>
2025-03-19 01:27:01 +01:00
Honbo He
954e926e6f boards: fanke: Add support for FK743M5-XIH6
Signed-off-by: Honbo He <hehongbo918@gmail.com>

The following features have been tested to work on the hardware:
- led
- uart1
- spi lcd
- nor flash
2025-03-19 01:26:48 +01:00
Flavio Ceolin
6e9f4bb6d6 samples: task_wdt: Use wdt device if it is ready
hw_wdt_dev may not be NULL and the device not be ready to be used.
If that is the case we explicitely initialize task_wdt_init with
NULL and do not use hw watchdog.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-03-19 01:24:56 +01:00
Mahesh Mahadevan
2b0912951b soc: imxrt5xx: Fix for USB Next
Fix to add support for USB Next Device Stack.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-03-19 01:24:35 +01:00
Camille BAUD
9ad7f840bf west: runners: Do not ignore --no-reset in command line or arguments
Prevents this code section from enforcing reset even
if --no-reset was passed at some point

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-03-19 01:24:17 +01:00
Luca Burelli
681c7da7c8 llext: fix fixed-length name buffer usage
This was inspired by the detection of 2 instances of the warning:

   warning: 'strncpy' specified bound 16 equals destination size
            [-Wstringop-truncation]

The current code is already safe with regards to overflows, because
fixed-length string functions are used in the call tree. However, when
given a name 16 chars or larger, the current compare in llext_by_name()
will not work as expected because the stored extension name is truncated
to a max of 15.

Define a global LLEXT_MAX_NAME_LEN constant to simplify all this logic
and also implement name checks in the shell before calling llext_load().

Finally, using strlen() instead of strnlen() gets the real length of the
hex string passed as a parameter, which is important for the next safety
check.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-03-19 01:23:59 +01:00
Aksel Skauge Mellbye
d2c49544c8 drivers: adc: iadc_gecko: Use pm_device_driver_init
Enable PM device support by making use of the pm_device_driver_init
helper.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-19 01:23:24 +01:00
Aksel Skauge Mellbye
5d08177276 tests: drivers: adc: Add support for xg24_rb4187c
Add overlays and enable support for xg24_rb4187c in ADC tests.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-19 01:23:24 +01:00
Francois Ramu
62f5386518 samples: boards: st: build only this sample for stm32 boards
Makes the sample build only in automatic test CI
Running on the nucleo_f411re board requires hsi enable
Running on the nucleo_wba55cg can still output the console
on the usart1 Tx even if the usart1Rx is used by the MCO output

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2025-03-18 19:59:17 +01:00
Jukka Rissanen
5ab95a7e09 samples: net: echo_service: Fix documentation
Clarify the documentation in the README.rst file. Also remove the
obsolete comment from main.c as it is no longer correct.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-03-18 19:58:53 +01:00
Jukka Rissanen
f13555c932 doc: net: Add socket service API usage documentation
Add information how to use socket service API from application
point of view.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-03-18 19:58:53 +01:00
Yishai Jaffe
71e31a2d33 doc: silabs: adopt zephyr:board-supported-hw directive
Replace manually authored hardware features table with the new Zephyr
board supported hardware directive which automatically generates an
up-to-date table based on the boards' Devicetree.

Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
2025-03-18 19:54:38 +01:00
Troels Nilsson
48fd8874e9 Bluetooth: Host: Fix missing endianness conversion for ISO ts
The timestamp was missing an endianness conversion

Signed-off-by: Troels Nilsson <trnn@demant.com>
2025-03-18 19:54:24 +01:00
Carles Cufi
bb1794bf3a west: runners: jlink: Use registry to locate JLink executable
Instead of hardcoding a set of paths and trying to find the JLink
executable in them, use the corresponding Windows registry to locate it:

`HKEY_CURRENT_USER\\Software\\SEGGER\\J-Link`

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-03-18 19:54:14 +01:00
Carles Cufi
4c12a8c782 west: runners: jlink: Avoid running logic when another runner is used
The logic to detect the default JLink location was placed at the top of
the script, executing whenever the script was imported. The west
extension command framework loads all runners when initializing, and so
this logic was being executed even when using another runner.

Move the logic to a function that is only executed when the JLink runner
is selected, to avoid executing it at all times.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-03-18 19:54:14 +01:00
Jilay Pandya
93191aae77 samples: stepper: extend sample with enable, disable, stop functions
extend stepper generic sample to include enable, disable and stop functions

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-18 19:53:59 +01:00
Amneesh Singh
4958a5fb6c soc: ti_k3: specify soc-specific ctrl partitions
The first two partitions in padconfig mmr regions need to be unlocked for
the pinctrl driver to be able to write. However, the base addresses for the
the registers can be different across SoCs and domains. Besides, currently
this is only done for M4 and that too not in the local (M4's) view.

This patch introduces a file specifying all ctrl partition base addresses
using ifdef directives for different SoCs and variants, and unlocking them
before the kernel and drivers initialize.

Signed-off-by: Amneesh Singh <a-singh7@ti.com>
2025-03-18 19:53:21 +01:00
IBEN EL HADJ MESSAOUD Marwa
fb0e6e946c dts: bindings: ethernet: Add stm32n6 ethernet compat
Add the compatible of the STM32N6 series

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-03-18 19:53:05 +01:00
IBEN EL HADJ MESSAOUD Marwa
30937d017b drivers: ethernet: eth_stm32_hal: Add stm32n6 ethernet support
-Update the ETH_STM32_HAL menu configuration to conditionally
 select USE_STM32_HAL_RIF if SOC_SERIES_STM32N6X is enabled.

-Align Ethernet descriptors to 32 bytes for STM32N6 to ensure
 efficient DMA operations and improve cache line efficiency
 and overall performance

-Add RISAF configuration in eth_initialize function for STM32N6
 series to set up master and slave security attributes
 for the Ethernet peripheral.

-Ensure RISAF configuration is done before enabling
 the Ethernet clock to maintain proper security attributes.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-03-18 19:53:05 +01:00
IBEN EL HADJ MESSAOUD Marwa
6281a8b651 boards: st: nucleo_n657x0_q: Add ethernet node
Add ethernet node

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-03-18 19:53:05 +01:00
IBEN EL HADJ MESSAOUD Marwa
6b0f392d70 dts: arm: st: n6: Add the ethernet node
Add the ethernet node

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-03-18 19:53:05 +01:00
IBEN EL HADJ MESSAOUD Marwa
70ca53befa west.yml: hal_stm32: Add stm32n6 ethernet pinctrl
Update STM32N6 pinctrl dtsi files with the ETH pins
Add STM32N6 Ethernet pinctrl config to stm32-pinctrl-config.yaml

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-03-18 19:53:05 +01:00
Christophe Tournery
2ba3bbe0d9 drivers: sensor: tdk: icm42688: fix wrap-around
When converting raw values to integer and fractional (micro) parts, the
fractional part must be a signed integer.

- Fix prototypes where the fractional part was declared as unsigned.
- Fix comments which did not match the declared type.

Signed-off-by: Christophe Tournery <christophe.tournery@freshape.com>
2025-03-18 19:52:42 +01:00
Robert Lubos
20faa0e114 net: l2: ppp: Make PPP L2 work with packet sockets
Currently, the L2 PPP won't work with AF_PACKET socket family as it only
supports packets from AF_INET/AF_INET6 families. Because of this, it's
not possible to use AF_PACKET RAW or DGRAm sockets with PPP interfaces,
as the packets they generate have family field set to AF_PACKET.

Fix this, by verifying the LL protocol field in the PPP L2 before
passing the packet the respective PPP driver. If the AF_PACKET packet is
received, and the protocol field is set to IP/IPv6, update the packet
family to AF_INET/AF_INET6 accordingly.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-03-18 16:45:53 +01:00
Johan Hedberg
81e7569fa1 Bluetooth: Host: Fix format specifier warnings
Use %zu for size_t and %zd for ssize_t, and don't use those specifiers for
any other type. Also make sure that field width specifiers get typecast to
the expected int type.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-03-18 16:45:29 +01:00
Lyle Zhu
144d329130 test: Bluetooth: BR: Add label platform_allow
Add label `platform_allow` to limit the allowed platforms.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-03-18 16:45:09 +01:00
Adrian Bieri
6f6a8d1a99 soc: nxp: imxrt: add config ADJUST_DCDC for RT10xx
There is a configuration of the DCDC in the clock_init for the RT10xx.
The RT11xx has a kconfig flag ADJUST_DCDC to enable or disable DCDC
adjust code. This flag is now also used for the RT10xx to be able to
enable or disable the DCDC adjust code.

Signed-off-by: Adrian Bieri <adrian.bieri@loepfe.com>
2025-03-18 16:44:50 +01:00
Jérôme Pouiller
8894fa42c0 soc: silabs: siwx91x: Rename UART instances
Currently, siwx917 have three instances of uart: ulpuart, uart1 and
uart2. However:

  - The other drivers on siwx91x (i2c, dma, i2s, etc...) rather use
    'ulp', '0' and '1'.

  - The reference manual also uses 'ulp', '0' and '1'.

The source of the confusion probably come from the clock driver in
WiseConnect which use clocks USART1 and USART2. However, this probably
not expected.

So, this patch renames uart1 and uart2 in uart0 and uart1. This change
also impacts the names of pins and the names of the clocks.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-03-18 16:43:54 +01:00
Jérôme Pouiller
1f73ca3919 driver: wifi: siwx91x: Fix scan timeout
WiseConnect documentation says:

  Default value of 100 millisecs is used when
  SL_WIFI_DEFAULT_ACTIVE_CHANNEL_SCAN_TIME is passed".

However, this is not true. Currently, DEFAULT_ACTIVE_CHANNEL_SCAN_TIME
is 0xFFFF and the scan time is set to 65 seconds.

To have the default scan time, the value '0' must be used.

Fortunately, '0' is also the value we get when the user does not specify
any default scan time. So the code can be simplified.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-03-18 16:43:44 +01:00
Cla Mattia Galliard
59b02d1772 ethernet: stm32_hal: Allow to configure preemtiveness independent of tc
Allow to configure the preemtiveness of the ethernet rx-thread independent
of the traffic-class queue.

Signed-off-by: Cla Mattia Galliard <cla-mattia.galliard@zuehlke.com>
2025-03-18 16:43:37 +01:00
Aksel Skauge Mellbye
bfdc89b3f1 dts: arm: silabs: Fix GPIO interrupt config for xg22 and xg27
The GPIO interrupt configuration for these devices was not valid.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-18 16:43:16 +01:00
Aksel Skauge Mellbye
a45eeeaa2e dts: arm: silabs: Fix GPIO port addresses for xg27 and xg29
The register addresses of GPIO ports on xg27 and xg29 were off by 0x30.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-18 16:43:16 +01:00
Grzegorz Ferenc
5f8722e338 doc: nrf5340_audio_dk: replace nrfjprog > nrfutil
Replaced the `-r nrfjprog` option with `-r nrfutil` in the flashing
instructions for the nRF5340 Audio DK board.
NCSDK-30139.

Signed-off-by: Grzegorz Ferenc <Grzegorz.Ferenc@nordicsemi.no>
2025-03-18 16:42:54 +01:00
Aksel Skauge Mellbye
4d6efb2302 tests: kernel: sleep: Add Silabs adjustment to max limit
Several devices have hardware-specific additional limits for
how short a sleep cycle can be. Add an entry for devices based
on Silabs sleeptimer when the OS tick rate is equal to the timer
frequency.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-18 16:42:42 +01:00
Aksel Skauge Mellbye
7dc6fb442f drivers: timer: silabs: Fix calculation of next tick
In the case where more than a full tick was unannounced when
sys_clock_set_timeout() was called, the timer driver would
subtract it from the next timeout. However, this is already
done by the caller through the elapsed() function in timeout.c,
leading to the timer interrupt firing too early.

With this fix, SYS_CLOCK_TICKS_PER_SEC can be increased to the
full speed of the low frequency timer. The underlying sleeptimer
API must be called with a timeout of at least 1, and will if needed
increase the value to the minimum value required by the hardware.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-18 16:42:42 +01:00
Aksel Skauge Mellbye
faf40c6a68 soc: silabs: Use configdefault for default values
Use configdefault to avoid weakening dependencies of defconfig
symbols.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-18 16:42:42 +01:00
Thomas Günther
e53435f9d4 boards: add morpho connector support for nucleo_g474re
Add device tree support for ST Morpho connector pins on the
nucleo-g474RE board, enabling access to GPIO pins available
on both left and right morpho headers.

Signed-off-by: Thomas Günther <thomas.guenther@limatica.com>
2025-03-18 16:42:25 +01:00
Dong Wang
872f363696 logging: Ensure atomic update of log filter slot in LOG_FILTER_SLOT_SET
Replaced the read-modify-write sequence with a single read and write
operation, preventing the intermediate value is wrongly used to filter
out logs of another thread with higher priority that preempts the current
thread.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2025-03-18 16:42:18 +01:00
Dong Wang
3fac83151d logging: Assign IDs to log backends early during log_core_init
This commit moves the assignment of backend IDs from the 'z_log_init'
function to the earlier 'log_core_init' function. This ensures that
backend IDs are assigned before they are used in the 'log_backend_enable'
function, preventing incorrect settings of log dynamic filters.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2025-03-18 16:42:07 +01:00
Michał Stasiak
def5f8ee07 soc: nordic: allow use of TWIM frequency workaround
Added Kconfig options to allow use of TWIM frequency
workaround in NRFX for nRF52 and nRF53.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-03-18 16:41:48 +01:00
Jilay Pandya
2fc2c6a55f docs: release-notes: 4.2: add stop func entry
Add entry of the newly added stop function in stepper subsystem

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-18 16:41:31 +01:00
Jilay Pandya
649ca563ab drivers: stepper: add stop function to common step-dir lib
add stop function to common step-dir lib

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-18 16:41:31 +01:00
Tomasz Leman
6249470b66 intel_adsp: ace30: mm: Set write permissions during memory mapping
The adsp_mm_save_context function was previously mapping memory without
explicitly setting write permissions, which could lead to a "store
prohibited" exception when attempting to write to the memory. This patch
adds the K_MEM_PERM_RW flag to the arch_mem_map call to ensure that the
memory is mapped with write permissions.

This change resolves the issue of accessing memory without the necessary
permissions, preventing potential exceptions and ensuring correct memory
operations. The issue was found when running the firmware on a
simulation with the MMU enabled.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2025-03-18 16:41:22 +01:00
Keith Short
d2969dca20 doc: Add guidance for copyright notices on new files
Add language indicating that new files should include a specific
copyright notice.

Signed-off-by: Keith Short <keithshort@google.com>
2025-03-18 16:41:12 +01:00
Benjamin Cabé
3281b5add6 boards: arduino: Update binding description for gpio-power-switches compat
Make binding description more concise

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-03-18 16:40:59 +01:00