Commit graph

126,787 commits

Author SHA1 Message Date
Jordan Yates
1c7f1e56cc sensor: current_amp: improve output resolution
Improve the output resolution by converting internally to microvolts
rather than millivolts.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-15 19:44:36 -04:00
Jordan Yates
1f144307cf sensor: current_amp: optional high-range gain fallback
Add the option to specify an alternate ADC gain value to use if the
initial measurement saturates the range. This enables higher data
resolutions when the values are small compared to the maximum signal
values, while still supporting the maximum.

As a concrete example, measuring charge currents from a small solar
panel (0 - 50mA), while also supporting high USB charge currents
(up to 1A).

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-15 19:44:36 -04:00
Anthony Williams
3e7a941094 sensor: icm45686: Fix one-shot missing shift value for XYZ channels
Fix missing shift values in `sensor_three_axis_data`  when performing
one-shot reads on SENSOR_CHAN_ACCEL_XYZ and SENSOR_CHAN_GYRO_XYZ

Signed-off-by: Anthony Williams <anthony289478@gmail.com>
2025-09-15 19:44:25 -04:00
Bill Waters
e20c04a320 scripts: west_commands: runners: openocd path fix
There is a fix that is needed for building on Linux and
running on Windows.  Without this fix, the scripts throws
errors and fails because of the '\' instead of '/'.  For
portability, the script should not use literal slashes.

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2025-09-15 19:44:17 -04:00
Thomas Stranger
340c59cc80 scripts: west_commands: zspdx: fix log ref to meta file
The build output meta data is written to the zephyr.meta
file not zephyr_meta.yml.
This name is defined by KERNEL_META_NAME in cmake/modules/kernel.cmake.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
2025-09-15 19:44:07 -04:00
Benjamin Cabé
3acb5f9aca ci: workflows: fix junitparser merge glob pattern
only one --glob should be passed to "junitparser merge"

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-15 20:56:33 +01:00
Leonardo Bispo
df0cb360fa script: trim RTT log data on dictionary parser
The fact that log data captured with RTT has a header, like the
following, impedes the parser to parse the data properly

```
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SEGGER J-Link V8.24 - Real time terminal output
SEGGER J-Trace PRO V4.0, SN=XXXX
Process: JLinkExe
```

Signed-off-by: Leonardo Bispo <l.bispo@live.com>
2025-09-15 14:07:11 -04:00
Yangbo Lu
298ea526c6 samples: net: gptp: add imx943_evk_mimx94398_m33_ddr support
Added imx943_evk_mimx94398_m33_ddr support.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
7e9ed6e579 drivers: ethernet: dsa_nxp_imx_netc: support PTP timestamping
Supported PTP timestamping. Now only gPTP was supported.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
600443a6b1 drivers: ethernet: nxp_imx_netc: support receiving more types frames
Supported receiving more types frames. One was TX timestamp response
frame and the other one is RX timestamped frame which were for switch
port.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
ee6b20e8c2 drivers: ethernet: nxp_imx_netc: handle ports without PTP clock enabled
PTP clock may be enabled per Ethernet port. Especially pseudo port for
switch management does not need PTP clock.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
590d9d1c6f net: dsa: support PTP timestamping in netc tag driver
Supported PTP timestamping in netc tag driver.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
15dc8d78f2 net: pkt: support common usage of control block
Supported common usage of control block for any layer.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
997edb4e13 net: dsa: add PTP solution in core driver
Added PTP solution in core driver. Now only gPTP was supported.

- ethernet_api like get_capabilities and get_ptp_clock
  were supported in port driver.

- For TX timestamp, added new dsa_api port_txtstamp for device
  to handle. Device driver might put pkt in queue, and reported
  timestamp after completing transmitting on hardware.

- For RX timestamp, the timestamp could be given to pkt in tag
  driver or device driver.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
17f4d347fe dts: bindings: dsa: allow ptp-clock property
Allowed ptp-clock property for dsa.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
eabc1b38bf net: dsa: support tagger data and connecting device to tag protocol
Supported tagger data and connecting device to tag protocol, so that some
device specific work could be handled.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
ea6bdfe890 net: dsa: move dsa_tag_netc.h to public include directory
Moved dsa_tag_netc.h to public include directory for devices
reusing.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Yangbo Lu
bb3b8dff83 west.yml: update hal_nxp to support netc switch ptp
Updated hal_nxp to support netc switch ptp.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-09-15 14:06:56 -04:00
Fabian Pflug
3ef7ec9195 boards: ti: lp_em_cc2340r5: Add support for flash & debug
Adding basic support for flashing and debugging. Not using the XDS110
debugger, as I have non on hand, but just a J-Link.

Signed-off-by: Fabian Pflug <fabian.pflug@gumulka.eu>
2025-09-15 14:06:11 -04:00
Fabian Pflug
5d12b68528 soc: ti: cc23x0: disable .bin generation
The .bin file is huge (>1GB) and will probably not be used by anyone if
there are much smaller alternatives. Because of that, disable it by
default for this soc. There is also no support for generating the
CRC32 checksum for the ccfg section in the binary.

Signed-off-by: Fabian Pflug <fabian.pflug@gumulka.eu>
2025-09-15 14:06:11 -04:00
Fabian Pflug
38b9f1f8a8 soc: ti: cc23x0: Add helper script to calculate crc32
As stated in [0] section 9.2 Customer Configuration:

	There are four different CRCs used to validate the CCFG data.
	One of the CRCs, the user record CRC, is optional and is the
	last four bytes of the 128B user record. The data over which
	the CRC is calculated starts at “Data Start Offset” from Table
	9-2 and ends at the "CRC Offset". CRC field width is 4 bytes.

Meaning the MCU will not start if the CRC fields are not correct.
TI's tools will automagically set these fields, but other tools have to
do it by hand. Therefore a new post-build-command is introduced to set
the fields at least in the .hex file by generating a new _crc32.hex
file.

[0] https://www.ti.com/lit/ug/swcu193a/swcu193a.pdf

Signed-off-by: Fabian Pflug <fabian.pflug@gumulka.eu>
2025-09-15 14:06:11 -04:00
Lucien Zhao
971357495f tests: drivers: sdhc: remove mimxrt700_evk/mimxrt798s/cm33_cpu0
Limited by board design and soc, rt700 sdhc only support 1.8V
output and there is no voltage level translators designed on
board. So sdhc function on rt700 board can't meet SD3.0 compatible.

Remove case as solution.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-09-15 14:00:43 -04:00
Tarang Patel
0ab226aa38 boards: evk_iris_w1_rw612 enable wifi support
- Enabled WiFi support
- minor fixes in the device tree

Signed-off-by: Tarang Patel <tarang3399.patel@gmail.com>
2025-09-15 14:00:24 -04:00
Sebastian Bøe
411ae81348 MAINTAINERS: Add maintainer and collaborators for nRF IronSide SE
Add maintainers for nordic's IronSide SE.

The IronSide Secure Element provides a root-of-trust and cryptographic
services to nrf54h20 and nrf9280 SoC's.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-09-15 14:00:01 -04:00
Jan Kablitz
e93bf00d5d drivers: sensor: st: lis2du12: fix missing power down before sw reset
According to the LIS2DU12 datasheet (p.30), the device must be
inpower-down mode before executing a software reset.
Entering power-down requires setting the ODR field to 0x000.
This commit adds the missing call to set ODR=0x000 before issuing the
reset. Without this step, the sensor does not recover after a controller
reset and only resumes operation after a full power cycle.

Signed-off-by: Jan Kablitz <jan.kablitz@8tronix.de>
2025-09-15 13:59:25 -04:00
Jan Kablitz
b7c971d1d1 drivers: sensor: st: lis2du12: relocate definition of reboot function
Relocate private reboot function to allow ODR configuration before
execution. This will ensure proper power-down sequence prior to software
reset.

Signed-off-by: Jan Kablitz <jan.kablitz@8tronix.de>
2025-09-15 13:59:25 -04:00
Jamie McCrae
271dbb4015 cmake: mcuboot: Add dependency to keys
Adds a dependency that causes CMake to re-configure if the input
key files for MCUboot signing/encryption have changed

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-09-15 13:59:11 -04:00
Robert Lubos
175e14449e net: if: Remove net_if_oper_state build assert
Remove the build assert checking if net_if_oper_state is of unsigned
type. It's generating warnings with clang, and in fact isn't very
useful.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-09-15 13:58:25 -04:00
Benjamin Cabé
a7c7ed805e ci: workflows: assigner.yml: only fetch west.yml on pull_request events
Fixes issue where assigner workflow now fails on issues due to trying
to access a pull_request attribute that doesn't exist on the event.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-15 13:58:13 -04:00
Benjamin Cabé
d4951a1b69 ci: workflows: fix glob pattern syntax for junitparser
Use two glob patterns for dealing with artifacts that might
be sitting at two different levels depending on whether we
downloaded single or multiple artifacts in "Download Artifacts"
step.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-15 13:57:54 -04:00
Mark Wang
67f246477f bluetooth: a2dp: save the reconfig to stream
The reconfig's configuration is not saved to stream, fix it.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-09-15 14:45:20 +02:00
Mark Wang
0963a8c2de bluetooth: a2dp: add bt_a2dp_stream_create_pdu
use bt_a2dp_stream_create_pdu to create the stream pdu net buf, then
application can use the buf->len to check whether the buf's size exceeds
the l2cap mtu.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
2025-09-15 14:45:10 +02:00
Jakub Klimczak
b240560310 tests: drivers: build_all: virtio: Add VIRTIO Network device
Add the VIRTIO Network device to the driver build_all test on
qemu_x86_64 (PCI) and qemu_cortex_a53 (MMIO). Additionally,
restrict the test to these two platforms, getting rid of qemu_x86,
as enabling networking would cause build errors on many boards,
including the qemu_x86. Use dashes in node names.

Signed-off-by: Jakub Klimczak <jklimczak@internships.antmicro.com>
2025-09-15 14:44:58 +02:00
Jakub Klimczak
1abfb70439 doc: connectivity: networking: Mention VIRTIO Network device in doc
Add instructions on running echo_server using the VIRTIO Network device
in the QEMU Ethernet documentation.

Signed-off-by: Jakub Klimczak <jklimczak@internships.antmicro.com>
2025-09-15 14:44:58 +02:00
Jakub Klimczak
3433a45d13 samples: net: echo_server: Add files for VIRTIO network device
Create an overlay and a config file for testing the VIRTIO network device.
Add some instructions to the README.rst file as well.
These can be used with any of the networking subsystem samples.

Signed-off-by: Jakub Klimczak <jklimczak@internships.antmicro.com>
2025-09-15 14:44:58 +02:00
Jakub Klimczak
91ac587124 drivers: ethernet: Add VIRTIO Network Device
Add a driver for the VIRTIO Ethernet device.
This is a minimal driver which sets a MAC address and transmits packets,
but does not support any extra features like the control channel or
checksum offloading.
Confirmed to work with the networking subsystem samples. For example, the
zperf sample shows a result of 85 Mbps download and 14 Mbps upload.

Signed-off-by: Jakub Klimczak <jklimczak@internships.antmicro.com>
2025-09-15 14:44:58 +02:00
Rafal Dyla
3cf2627d85 arch: riscv: Support for Direct ISRs for RISCV targets
Added missing features and configuration to support Direct ISRs

Signed-off-by: Rafal Dyla <rafal.dyla@nordicsemi.no>
2025-09-15 14:44:24 +02:00
Anisetti Avinash Krishna
d1425eff11 dts: x86: Added required modifications to support RTC MFD
Added required modifications to dtsi files to support Motorola, mc146818
MFD, Counter, RTC, and BBRAM (for supported devices).

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-09-15 14:44:08 +02:00
Anisetti Avinash Krishna
08b8f3c40d drivers: bbram: Enables bbram driver for motorola, mc146818
Enables bbram driver for motorola, mc146818 under its MFD
to access the RAM of the RTC.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-09-15 14:44:08 +02:00
Anisetti Avinash Krishna
2b1b3f0934 drivers: counter: Enables support for MFD in counter
Enabled support for MFD in CMOS counter.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-09-15 14:44:08 +02:00
Anisetti Avinash Krishna
a1f89976d5 drivers: rtc: Enabled MFD support for RTC mc146818
Enabled support for motorola mc146818 RTC driver.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-09-15 14:44:08 +02:00
Anisetti Avinash Krishna
fbec41494d drivers: mfd: Enabled motorola,mc146818 MFD
Enabled Motorola, mc146818 MFD, which implements RTC
read/write operations and prevents data corruption
by synchronizing these operations.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-09-15 14:44:08 +02:00
Hake Huang
4c8419b992 twsiter: binary handler: pass verbose setting to west call
pass verbose setting to west call. when the v > 2 west log
will be triggerred

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-09-15 14:43:51 +02:00
Mathieu CHOPLAIN
5bef4a9d62 drivers: usb: udc: skeleton: handle special case of set_halt() for EP0
The UDC stack assumes that 'halt' on control endpoints is automatically
cleared by device drivers and never calls udc_ep_clear_halt() for such
endpoints. In practice, most controllers do perform this automatic clear
in hardware, but this requires special handling in udc_ep_set_halt() for
control endpoints (EP0), as setting the 'halted' bit on such endpoints will
lead to the software getting out-of-sync with the hardware.

Update the UDC skeleton driver to handle this edge case and add a comment
documenting the stack's behavior, along with the hardware behavior expected
by the code added to the skeleton driver for it to be functional.

Co-authored-by: Johann Fischer <johann.fischer@nordicsemi.no>
Signed-off-by: Mathieu CHOPLAIN <mathieu.choplain-ext@st.com>
2025-09-15 12:09:32 +02:00
Sebastian Bøe
32c6776256 soc: nordic: uicr: Fix dependency issue
Although not reproducible locally, it has been observed in CI that the
uicr image will not always be the last image to be run.

To ensure it is the last image to be run we have it depend on the
'image' image when defined.

The uicr image is generated based on all other images in the build and
must therefore run last.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2025-09-15 12:09:22 +02:00
Victor Brzeski
de0d8b9655 usb: device_next: cdc_acm: switch irq_lock to spinlock
Change the irq_lock to a spinlock to be more semantically
correct.

Signed-off-by: Victor Brzeski <vbrzeski@gmail.com>
2025-09-15 12:08:53 +02:00
Tomasz Leman
68be678c4b intel_adsp: tlb: Configure HPSRAM retention mode after power transitions
Explicitly configure retention mode when powering up HPSRAM banks to
ensure consistent behavior across hardware platforms.

After D3 power state transitions, the retention mode configuration can
become undefined due to hardware reset. This causes test failures in NVL
FPGA testing environment where the hardware strictly enforces retention
mode settings.

The fix ensures retention mode is properly set in two locations:
- sys_mm_drv_hpsram_pwr(): Configure retention mode for all bank
  power-up operations
- adsp_mm_restore_context(): Explicitly set retention mode during
  D3->D0 restore sequence after each bank is powered up

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2025-09-15 12:08:21 +02:00
Tomasz Leman
a1adced1c4 intel_adsp: ace: Remove redundant HPSRAM init from D3 restore
Remove hp_sram_init() call from boot_d3_restore() as it's redundant and
causes TLB access errors. The TLB driver's adsp_mm_restore_context()
already handles all HPSRAM power management and content restoration.

The removed code was attempting to zero memory regions that are
intentionally unmapped by the TLB driver for power optimization, causing
access to disabled TLB entries during D3→D0 transitions.

Additionally, hp_sram_init() powers up all memory banks while the TLB
restore function correctly enables only the banks that were actually
used, maintaining proper power optimization.

Current flow causes errors in simulation which revealed this incorrect
double initialization in test scenarios with minimal firmware
configurations.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2025-09-15 12:08:21 +02:00
Ioannis Damigos
14184017b7 doc/releases: Document deprecation of bt_hci_bus enumeration
Document deprecation of bt_hci_bus enumeration in v4.3
release notes.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2025-09-15 12:08:04 +02:00
Ioannis Damigos
c71548ccbf include: bluetooth: Deprecate bt_hci_bus enumeration
bt_hci_bus enumeration is not used anymore.
This commit deprecates it.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
2025-09-15 12:08:04 +02:00