this is a leftover from when the vlan ifaces were not
virtual ifaces. With this currently in we would deactive lldp
on the main iface everytime a vlan is deactivated.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Zephyr SDK 1.0.0 provides host tools beyond Linux hosts [1], so remove
stale Linux only wording from the getting started and application docs.
[1] https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v1.0.0
Signed-off-by: Mirai SHINJO <oss@mshinjo.com>
On 64 bit systems, the num_xfer field in the CCC payload is
a 64 bit value (size_t). Cast it to a uint32_t pointer
to silence warnings when building the driver.
Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
Don't start command queue until interrupts have been enabled.
otherwise for some very fast controllers, the queue could drain
before the interrupt is enabled.
This issue has been observed using functional simulations of
the CDNS I3C IP, but could logically also occur in hardware.
Signed-off-by: Daniel DeGrasse <ddegrasse@tenstorrent.com>
When TOOLCHAIN_VARIANT_COMPILER is empty, we should not append
a trailing slash (/) to ZEPHYR_TOOLCHAIN_VARIANT. Or else any
matching of ZEPHYR_TOOLCHAIN_VARIANT would be incorrect.
For example, ZEPHYR_TOOLCHAIN_VARIANT == 'xt-clang' and west
build would have it correct, while twister would have it as
'xt-clang/'. This prevents kconfig from matching correctly
(possibly among other things).
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
tx_job remains busy even after transmit_message finishes.
If ot thread handles the tx done (handle_tx_done) event
and tries to send another message will fail in run_tx_task
because the tx_job appears busy.
This will cause an assert to trigger in SubMac::BeginTransmit
This change makes handle_tx_done to wait for tx_job to free
before continuing.
Signed-off-by: Andrei Menzopol <andrei.menzopol@nxp.com>
Increase the maximum allowed repeat count for read and write/erase
test commands from 10 to 10000. This allows for more accurate
measurements over longer test durations.
Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
This patch adds a new driver for the ADXL355 three-axis digital
accelerometer, implementing configuration, sampling,
and full-scale range controls according to the
ADXL355 datasheet (Analog Devices).
Features:
- I2C and SPI register access
- Sampling frequency (ODR) configuration
- Full-scale range selection (±2g/±4g/±8g)
- Standby/measure power modes
- Optional FIFO streaming support via RTIO
- Basic trigger and interrupt handling
Power management is supported via PM_DEVICE callbacks
to place the sensor in standby mode when suspended
and resume continuous measurement on resume.
References:
- ADXL354/ADXL355 Datasheet (Analog Devices)
https://www.analog.com/media/en/technical-documentation/data-sheets/adxl354_adxl355.pdf
Signed-off-by: Francis Roi Manabat <francisroi.manabat@analog.com>
Add a way to add private key, peer endpoint and keepalive
when setting up the wireguard connection using the shell.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Make blake2s private so that it cannot be used (easily) by other parts
of Zephyr codespace. The blake2s is part of the code until PSA will
have support for it. At that point the code will be removed and
replaced by the PSA calls.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Instead of using buffers for keys, use PSA key management to
store the keys. This is more safe than handling buffers in
the code directly.
Do some cleanup of the code structure and make the functions
in wg_psa.c static to disallow use outside of Wireguard.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Simple demo app that creates VPN interface and can be tested
to connect to peer. The net-tools zephyr project contains
necessary scripts that setup the host side connectivity when
using native-sim board.
In host side you can setup Wireguard VPN connectivity like this
.../zephyrproject/tools/net-tools/net-setup.sh -c wireguard-vpn.conf
Signed-off-by: Jukka Rissanen <jukka.rissanen@gmail.com>
If running wg in native-sim, use the host clock to get the
current time. This helps to have a proper handshake when
connecting even after restarting the zephyr.exe process.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Allow user to provide a function that will need to get
the current time from a RTC or SNTP or similar.
Wireguard handshake replay prevention needs a monotonic
time so the application should get it from somewhere.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Send peer add/del network event when the peers is either added
to the system or deleted from the system.
Send VPN connected / disconnected event when a VPN connection
is successfully established or the peer connection is disconnected.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
The "net wg show 1" will show detailed information of the peer
id 1. This is useful when debugging connectivity issues.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
The crypto code is taken from wireguard-lwip project at
https://github.com/smartalock/wireguard-lwip
and is BSD-3-Clause licensed code.
The Blake2 RFC 7693 and XChaCha20 (from
https://datatracker.ietf.org/doc/html/draft-arciszewski-xchacha-03)
cannot currently use PSA APIs.
The XChaCha20 is found in PSA 1.2 but Zephyr is not yet using that
version.
All the other crypto usage is converted to use PSA APIs.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
As described in https://www.wireguard.com/protocol/
set DSCP to AF41 for handshake messages. The transport data
DSCP is set to 0.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This change adds a script to generate an HTML dashboard, invoked via
west, providing a consolidated and user-friendly view of various build
artifacts and metrics. This includes footprint information (as both
tables and plots), configuration tracing, sys init levels, an interactive
devicetree browser, and more.
Signed-off-by: Graham Roff <grahamr@qti.qualcomm.com>
Signed-off-by: Martí Bolívar <mbolivar@oss.qualcomm.com>
To allow other scripts to use the initlevel information determined
by the Validator class, expose an API to get them.
Signed-off-by: Graham Roff <grahamr@qti.qualcomm.com>
In order to allow the plot.py functionality to be used by other
scripts, move the code into a separate function that can be
imported.
Signed-off-by: Graham Roff <grahamr@qti.qualcomm.com>
The lower ALS interrupt threshold (SENSOR_ATTR_LOWER_THRESH) was being
converted twice with sys_cpu_to_le16(), effectively canceling the
conversion on big-endian systems. The upper threshold
(SENSOR_ATTR_UPPER_THRESH) correctly uses a single conversion.
This causes the lower threshold register to be written in incorrect
byte order on big-endian architectures.
Signed-off-by: Andre Viegas <andreviegas@piscodeluz.org>
Assisted-by: Claude:claude-opus-4.6 forgeql
This commit updates the documentation for Realtek rtl87x2g and rtl8752h
boards with the following changes:
- Removed redundant image references in the rtl87x2g documentation.
- Updated `west blobs fetch` command examples in both rtl87x2g and
rtl8752h docs. The regex was modified from targeting only the `bin/`
directory (e.g., `--allow-regex 'bee/rtl87x2g/bin/.*'`) to the entire
SoC directory (e.g., `--allow-regex 'bee/rtl87x2g/.*'`). This ensures
that all necessary libraries and binary blobs under the respective
SoC paths are properly fetched.
Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Use a code spell-checking tool to detect and fix spelling errors in
`.yaml` files under `dts/bindings`.
Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
The option CONFIG_PSA_WANT_ALG_ECDSA is required to get sign_func.
Else, generation of the CSR fails with MBEDTLS_ERR_PK_TYPE_MISMATCH.
Signed-off-by: Joel Guittet <jguittet@witekio.com>
Change K_MEM_PARTITION_P_RW_U_NA to use XTENSA_MMU_PERM_W instead of 0.
This grants write permission for privileged mode, while user mode remains
without access.
Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
Update DEVICE_DT_INST_DEFINE to use PRE_KERNEL_1 for llwu driver.
System timer(normal set as PRE_KERNEL_2) may depend of llwu driver.
Signed-off-by: Albort Xue <yao.xue@nxp.com>