Commit graph

136,983 commits

Author SHA1 Message Date
Lucien Zhao
9d722b0634 boards: frdm-imxrt1186: enable flexcan1 instance
- enable flexcan1 instance
- test can cases: timing/shell/api
  flexcan1 clock source is 80MHz

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-03-08 16:35:37 +01:00
Kurt Eckhardt
512c5759a7 drivers: video: Update migration-guide
Rename the config CONFIG_VIDEO_HIMAX_HM01B0
to CONFIG_VIDEO_HM01B0

Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
Co-Authored-By: Alain Volmat <58030053+avolmat-st@users.noreply.github.com>
2026-03-08 16:35:20 +01:00
Kurt Eckhardt
26ae95ecb9 drivers: video: hm01b0 - add missing pieces
Adding some of the missing pieces to the HM01b0 video class.

changed the VIDEO define to match all of the other video drivers
that I have tried:
That is CONFIG_VIDEO_HIMAX_HM01B0 to CONFIG_VIDEO_HM01B0

Added a few more format sizes: 324x324 to 324x244 164x122
match the spec.

Added BAYER format for the color camera (VIDEO_PIX_FMT_SBGGR8)
Only for Full, and QVGA, as cameras with BAYER filter do
not support the binning mode.

Added 4 data bit support, using new format: VIDEO_PIX_FMT_Y4

Support for hflip/vflip controls.

Added the frmival set/get/enum functions, to allow us better
control of how many frames are generated per second.

Used the reset register enumeration similar to other implementions,
such as Arduino library, Teensy Library, and OpenME

Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
2026-03-08 16:35:20 +01:00
Kurt Eckhardt
0f4f142b9e drivers: video: add VIDEO_PIX_FMT_Y4
Add the format to video.h
```
/**
 * @code{.unparsed}
 *   0                   1                   2                   3
 * | 0000yyyy 0000Yyyy | 0000yyyy 0000Yyyy | 0000yyyy 0000Yyyy | ...
 * @endcode
 */
```

Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
2026-03-08 16:35:20 +01:00
Joakim Andersson
8ff525c41e logging: Do not add newline when flushing buffer
Do not add a newline when flushing the buffer to the host terminal.
The caller may not want these newlines to be added, and the host
terminal can handle line wrapping on its own.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2026-03-06 21:39:17 +01:00
Joakim Andersson
9ec3b06186 drivers: console: Do not add newline when flushing buffer
Do not add a newline when flushing the buffer to the host terminal.
The caller may not want these newlines to be added, and the host
terminal can handle line wrapping on its own.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2026-03-06 21:39:17 +01:00
Joakim Andersson
4e6fca0e00 logging: Add buffer size configuration for posix console stdout
Add buffer size configuration for posix log backend.
This allows to increase the buffer size for the posix console, which is
needed to avoid message flushed in the middle of ansi escape sequences.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2026-03-06 21:39:17 +01:00
Joakim Andersson
2b16db9abd drivers: console: Add buffer size configuration for posix console stdout
Add buffer size configuration for posix console stdout buffer.
This allows to increase the buffer size for the posix console, which is
needed to avoid message flushed in the middle of ansi escape sequences.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2026-03-06 21:39:17 +01:00
Appana Durga Kedareswara rao
352fde02ea arch: arm64: mmu: page-align address and size in add_arm_mmu_region()
Static MMU region entries populated via
MMU_REGION_DT_COMPAT_FOREACH_FLAT_ENTRY() pass raw DTS reg address and
size values to __add_map(), which asserts page-alignment. DTS nodes may
legitimately have non-page-aligned reg sizes reflecting actual hardware
register footprints, causing an assert crash during early boot when
CONFIG_ASSERT=y.

Align the base address down and size up to CONFIG_MMU_PAGE_SIZE in
add_arm_mmu_region(), mirroring the k_mem_region_align() logic already
used by the dynamic DEVICE_MMIO_MAP path in kernel/mmu.c. This ensures
all static platform MMU region entries are mapped with page-granular
parameters regardless of DTS reg values.

Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>
2026-03-06 21:38:13 +01:00
Sylvio Alves
c6cefdf3e4 samples: boards: espressif: ulp: add console harness to timer_wakeup
Add console harness configuration to the LP core timer wakeup
sample to enable automated test validation via expected serial
output matching.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-06 21:38:04 +01:00
Benjamin Cabé
df8b586172 doc: contribute: add AI coding assistant guidelines
Add guidance for contributors and reviewers using AI tools,
inspired by https://www.kernel.org/doc/html/latest/process/coding-assistants.html

- Licensing compliance and DCO responsibilities
- Encourage the use of 'Assisted-by:' tag for attribution of AI tools
- Clarify reviewer expectations when using AI for code review

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Antigravity:claude-opus-4.6
2026-03-06 21:37:32 +01:00
Benjamin Cabé
65e017aaa3 doc: contribute: incomplete or low-quality PRs may not be reviewed
Add an explicit note at the beginning of the PR Requirements section
that clearly states that incomplete/low-quality PRs are unlikely to
receive reviewer engagement, and they may be closed or have changes
requested without detailed feedback.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-06 21:37:32 +01:00
Tomasz Chyrowicz
94699ca137 nrf54h20: Add MCUboot to supported configurations
The MCUboot is supported on nRF54H20 platform.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2026-03-06 21:37:21 +01:00
Yassine El Aissaoui
0e7643c010 soc: nxp: mcxw2xx: Improve low power precision using dual-timer approach
Switch from OS timer-only approach to dual-timer strategy for improved
low power timing precision, especially for connectivity applications.

The previous approach used OS timer for both system ticks and low power
wakeup. With low tick rates, sleep time calculations lacked
precision, causing premature wakeups before BLE events, increasing power
consumption.
This rework uses high-precision SYSTICK during operation and switches
to OS timer for low power wakeup and coordination with link layer
event scheduling.

Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
2026-03-06 21:37:01 +01:00
Gabriele Zampieri
90029d359f drivers: modem: cellular: fix CSQ_RSSI_TO_DB macro
The macro was incorrectly using the rssi variable as input instead of
its v parameter. This only worked because a variable called rsii was
defined in the calling context.

Signed-off-by: Gabriele Zampieri <gabriele.zampieri@arsenaling.com>
2026-03-06 21:36:54 +01:00
Martí Bolívar
230e5d27b3 include: dt-bindings: delete usb.h
This file, added in 2cac70e099,
("dts: bindings: usb: Add enum to maximum-speed property"),
Seems to have no purpose. It's not included anywhere and it's not
valid DTS syntax so it doesn't belong in dt-bindings.

Just remove it.

Signed-off-by: Martí Bolívar <marti.bolivar@oss.qualcomm.com>
2026-03-06 21:36:32 +01:00
Martí Bolívar
cabdf6de78 dt-bindings: display: improve a comment
The comment is misleading -- it's not that it's unsupported,
it's that it's a syntax from a completely different language.

Signed-off-by: Martí Bolívar <marti.bolivar@oss.qualcomm.com>
2026-03-06 21:36:32 +01:00
Martí Bolívar
26362098e9 drivers: opamp: delete dt-bindings/opamp/opamp.h
This was added in 26334d691b802086942560e7171a827dbfa447d8:("drivers:
Add opamp API"). It is only included by zephyr/drivers/opamp.h.

Its content needs to be in zephyr/drivers/opamp.h. The dt-bindings
directory is for sharing C macros with C and devicetree. Since this
contains an enum, which is not valid devicetree syntax, it could never
have been used except from driver code etc. Put the code where it
belongs.

Signed-off-by: Martí Bolívar <marti.bolivar@oss.qualcomm.com>
2026-03-06 21:36:32 +01:00
Pasi Liimatainen
e8fd6730b8 soc: nordic: pm support for nrf92 series
Add PM support for nrf92 series products
by making power management implementation common
to all Haltium platform

Signed-off-by: Pasi Liimatainen <pasi.liimatainen@nordicsemi.no>
2026-03-06 21:36:25 +01:00
Benjamin Cabé
b377bfa9e7 doc: security: standards: add EU Cyber Resilience Act (CRA) FAQ
Add comprehensive FAQ documentation explaining how the EU Cyber
Resilience Act relates to both manufacturers using Zephyr in
commercial products and to the Zephyr Project as an open-source
software steward.

Fixes zephyrproject-rtos/zephyr#83964

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-06 21:35:45 +01:00
Benjamin Cabé
68bf8c83dc doc: security: rephrase introduction to security standards
Rewords the introductory text to improve grammar, flow, and clarity. The
updated text better explains the shift

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-03-06 21:35:45 +01:00
Emil Lindqvist
ba5148006b rtc: stm32: allow disabling of pending alarm
Currently there's no way of disabling an RTC alarm if it's set; only if
it's active. This commit disables the alarm, regardless of the status.

Signed-off-by: Emil Lindqvist <emil@lindq.gr>
2026-03-06 15:14:04 +01:00
Martin Jäger
6612580d9e cmake: gcc-m-fpu: Support Cortex-M55 with single-precision FPU
The Cortex-M55 is available with single-precision and double-precision
FPUs. However, when setting -mfpu=auto, the compiler always seems to
guess that the CPU supports all features.

In contrast to other Cortex-M cores, there is no extension +nofp.dp
available, which would only disable the use of dual-precision
floating-point instructions. So we need to set the FPU features
explicitly.

See here for GCC docs on CPU extensions and FPU features:
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/ARM-Options.html#index-mcpu-2

The explicit configuration of the precision also ensures that the Kconfig
CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION is considered. In addition to that,
it matches the IAR settings.

Signed-off-by: Martin Jäger <martin.jaeger@a-labs.io>
2026-03-06 15:13:45 +01:00
Holt Sun
4d7440110b drivers: rtc: rtc_counter: allow alarms before set_time
rtc_counter rejected rtc_alarm_set_time() before rtc_set_time() because the
epoch offset was not yet established. This breaks rtc_api on boards using
the zephyr,rtc-counter wrapper.

Fix by tracking whether the epoch is valid and deferring counter alarm
programming until rtc_set_time() establishes the epoch (then reschedule).

Also fix alarm pending semantics so an alarm is marked pending when it
fires regardless of whether a callback is installed, and treat -ETIME
from counter_set_channel_alarm() (with EXPIRE_WHEN_LATE) as an immediate
expiry by setting pending.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-03-06 15:13:33 +01:00
Sebastian Głąb
c1cb5d97d7 tests: drivers: i2c: Enable i2c_nrfx_twim test on nrf54lm20b
Add overlay required to run the i2c_nrfx_twim test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 15:13:15 +01:00
Sebastian Głąb
c84e4e3888 samples: drivers: i2c: Enable rtio_loopback sample on nrf54lm20b
Add overlay required to run the rtio_loopback sample on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 15:13:15 +01:00
Sebastian Głąb
d788ad5d3b tests: drivers: i2c: Enable i2c_target_api test on nrf54lm20b
Add overlay required to run the i2c_target_api test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 15:13:15 +01:00
Sebastian Głąb
f1d1d59c4c tests: boards: nrf: i2c: Enable i2c_slave test on nrf54lm20b
Add overlay required to run the i2c_slave test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 15:13:15 +01:00
Sebastian Głąb
3ce67933a8 samples: drivers: counter: Enable alarm sample on nrf54lm20b
Add overlay required to run the alarm sample on  nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 15:13:15 +01:00
Sebastian Głąb
6666899d73 samples: drivers: Enable spi_bitbang on nrf54lm20b
Add overlay required to run the spi_bitbang sample on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 15:13:15 +01:00
Sebastian Głąb
6a27c34c6b tests: drivers: spi: Add harness to dt_spec test
Define harness for SPI dt_spec test that will allow
Twister to determine test result.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 15:13:15 +01:00
Fin Maaß
580a4d3c36 drivers: ethernet: sam_gmac: reuse cfg and data struct
reuse cfg and data struct in the ptp driver part.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-06 15:13:00 +01:00
Fin Maaß
10b98bf7b9 drivers: ethernet: xmc4xxx: reuse cfg and data struct
reuse cfg and data struct in the ptp driver part.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-06 15:13:00 +01:00
Chaitanya Tata
3bb97ca73a samples: net: wifi: shell: Add nRF7002Eb2 combos to twister
Add nRF7002EB2 with 54LM20 Series platforms to twister, 54L15 is not
added due to its low RAM.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-03-06 15:12:30 +01:00
Chaitanya Tata
02b90eee89 boards: shields: Add nRF7002 EB-II shield
This is primarily intended for providing Wi-Fi capabilities for the
nRF54L Series hosts using SPI.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Bansidhar Mangalwedhekar <bansidhar.mangalwedhekar@nordicsemi.no>
2026-03-06 15:12:30 +01:00
James Bennion-Pedley
d0057bd2cc usb: uac2: kconfig override for feedback endpoint size
Adds compile-time option for overriding UAC2 Feedback endpoint to allow
usage with non-class-compliant Windows UAC2 driver.

Signed-off-by: James Bennion-Pedley <James.Bennion-Pedley@thinksmartbox.com>
2026-03-06 15:12:15 +01:00
Adrian Warecki
8184ee18b4 logging: Add missing compiler barrier after k_is_user_context
Remove the k_is_user_context call from the Z_LOG_LEVEL_ALL_CHECK macro.
Add the Z_LOG_LEVEL_ALL_CHECK_BREAK macro, which safely checks whether
logging is performed in user context before checking the dynamic log level
that requires access to kernel structure.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2026-03-06 11:37:00 +00:00
Adrian Warecki
fab9ced9dc logging: sensing: tests: Add missing compiler barriers
Add missing memory barriers after branching on k_is_user_context() to
prevent reordering possible of privileged memory access.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2026-03-06 11:37:00 +00:00
Adrian Warecki
d28b9002f8 logging: sensing: tests: Remove the unnecessary CONFIG_USERSPACE checks
Remove the unnecessary CONFIG_USERSPACE checks around k_is_user_context
calls. This function is inline and already performs the config check
internally.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2026-03-06 11:37:00 +00:00
Jan Behrens
62bf2ac5cc doc: stepper: Updates migration guide
Updates the migration guide to account for changed Kconfig symbols.

Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
2026-03-06 11:36:36 +00:00
Jan Behrens
6c58a0bb30 drivers: stepper: Move existing drivers to new event handling
Replaces the event handling of drivers using gpio_stepper_common with
the new event handling logic.

Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
2026-03-06 11:36:36 +00:00
Jan Behrens
eeef2153fd drivers: stepper: Adds new stepper controller event handling
The new event handling is based on the one from gpio_stepper_common but
is designed to be useable by different types of stepper motion
controllers.

Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
2026-03-06 11:36:36 +00:00
Jan Behrens
6880dd8ee0 drivers: stepper: gpio_stepper_common: Fixes callback execution
Fixes callbacks not being executed if ISR_SAFE_EVENTS is disabled and
and the trigger_callback function is executed in an ISR context.

Signed-off-by: Jan Behrens <jan.behrens@navimatix.de>
2026-03-06 11:36:36 +00:00
Kapil Bhatt
035d533e5e doc: connectivity: wifi: Add WEP Wi-Fi security support
WEP (Wired Equivalent Privacy) support is added for backwards
compatibility. It should not be used in new deployments.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2026-03-06 11:36:24 +00:00
Kapil Bhatt
6cecb912e7 net: Add WEP security support
Add WEP security support in Wi-Fi mgmt ops.
Need to enable Kconfig CONFIG_WIFI_NM_WPA_SUPPLICANT_WEP.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2026-03-06 11:36:24 +00:00
Zhaoxiang Jin
224f5f74c4 pm: device: Refine device driver initialization
Only set state to ACTIVE after RESUME succeeds, if it fails,
keep SUSPENDED STATE and attach an error code.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2026-03-06 11:36:10 +00:00
Yangbo Lu
83487071e9 samples: ethernet: put gptp mimxrt1180_evk conf to right place
One gptp mimxrt1180_evk_mimxrt1189_cm33.conf file was missed
to move in below commit. Fixed it.

840d464ffb samples: net: move Ethernet samples to folder

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2026-03-06 11:35:59 +00:00
Fin Maaß
2f78a9df1c fs: shell: improve cmd_cp()
improve cmd_cp() by combining 2 error messages and
replacing gotos.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-06 11:35:40 +00:00
Sebastian Głąb
3eeea53b61 tests: drivers: pwm: Enable pwm_gpio_loopback test on nrf54lm20b
Add overlay required to run the pwm_gpio_loopback test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 11:35:15 +00:00
Sebastian Głąb
d1e1b2d5f3 tests: drivers: pwm: Enable pwm_api test on nrf54lm20dk
Add overlays required to run the pwm_api test on
nrf54lm20a and nrf54lm20b targets.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 11:35:15 +00:00