Add support for boards to specify flash_before in their board YAML files,
which is then used by pytest and shell harnesses. This is needed for
Synopsys ARC development boards (hsdk, hsdk/arc_hsdk/2cores, hsdk4xd
and iotdk) where the USB serial port disconnects during flashing.
Signed-off-by: Mohamed Moawad <moawad@synopsys.com>
The ARC IoT SoC (used on iotdk board) has a hardware limitation where
entering CPU sleep mode causes some peripherals (e.g., UART) to lose
power, preventing the board from waking up via peripheral interrupts.
Add a configurable custom CPU idle option (CONFIG_ARC_IOT_CUSTOM_CPU_IDLE)
that enables interrupts without executing the sleep instruction. This
allows the system to remain responsive while keeping peripherals powered.
The option defaults to disabled (n) to preserve normal CPU sleep behavior
for most use cases. Tests that require continuous UART operation during
idle (pytest/shell harnesses) can enable it via platform-specific
extra_configs.
This approach allows timer-based idle to work correctly by default while
providing a workaround for tests that need UART retention.
Signed-off-by: Mohamed Moawad <moawad@synopsys.com>
As described in RFC5227 ch. 2.1.1 ARP Probes are broadcasted.
ARP requests not being broadcasted should not be detected as
ARP Probes.
Signed-off-by: Andreas Huber <andreas.huber@sautergroup.com>
Make sure that if the connection is closed but we still received
a SYN packet, we do not try to access already closed connection.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
When building for several cores of the same system it can be hard to
identify which build is currently running.
This addition helps disambiguate the logs.
Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
The domain name was always set to NULL. This adds a Kconfig
that will enable setting the domain name and sets the domain
name if the config is enabled.
Signed-off-by: Tim Knodel <tbk@google.com>
A new error code FS_MGMT_ERR_FILE_CLOSE_FAILED is returned when
closing a file fails. This is done on write or close operations - read
operations remain unchecked.
Signed-off-by: Samuel Kleiser <s.kleiser@vega.com>
The SSI core requires special handling of packets that are supposed
to contain only data (no instruction and data phases):
- for TX packets, the first data frame needs to be sent as the address
(the instruction and address cannot be both set to zero length for TX,
otherwise the transfer will not be performed correctly)
- for RX packets, a dummy write to the data register (DR) is needed to
start the transfer.
Implement the above in the function that starts a packet transfer.
Rename also the `packet_frames` variable there to `data_frames` to avoid
confusion.
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
FIFO handling functions in the driver are supplied with a `packet`
parameter that is in fact not used anymore. Remove it to simplify
matters.
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
Some flash negative tests were validating multiple error conditions
in a single API call, such as combining unaligned offsets with
oversized operations.
This makes it unclear which condition is actually being tested and
can lead to fragile tests if drivers change the order of validation.
Split these cases so that each call checks a single expected error
condition, improving test clarity and robustness.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Correct set_frmival in order to avoid having un-optimized
frmival selection due to rounded values.
Computation has been done in usec, leading to incorrect
frmival selection due to value being rounded internally.
As an example, code was selecting 1/60 from sensor then 4 time
frame drop by DCMI instead of selecting directly 1/15 from
sensor.
Use msec instead to hide those rounding issue and avoid
as well 64bit variables.
This also put the first video_frmival_nsec outside of the
loop to avoid having to do the processing everytime.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Current version as a fix for something that is currently causing
problems in CI and dependabot is failing too, update this one manually
for now.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Update MAINTAINERS.yml to reflect the reorganization of Bluetooth
Classic documentation into subdirectories. Replace specific file
references with directory paths to cover all files within the
classic/ subdirectories for both shell and API documentation.
Changes include:
- Replace specific a2dp.rst file reference with classic/ directory
in Bluetooth Classic section
- Add doc/connectivity/bluetooth/api/classic/ to Bluetooth Classic
- Add doc/connectivity/bluetooth/api/classic/ to Bluetooth Host
- Replace specific a2dp.rst with classic/ directory in Bluetooth Host
Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
Reorganize Bluetooth Classic API documentation by moving existing files
(SDP, RFCOMM, A2DP, HFP) into a new `classic/` subdirectory and adding
new documentation files for L2CAP BR/EDR, AVRCP, GOEP, and BIP.
Changes include:
- Move existing Classic API docs to subdirectory `classic/`
- Add new L2CAP BR/EDR documentation
- Add AVRCP, GOEP, and BIP API reference documentation
- Update HFP documentation to include both HFP Unit and HFP-AG sections
- Update index.rst to reflect new directory structure
- Add Doxygen group documentation to AVRCP header
- Update AVRCP Cover Art to be a subgroup of AVRCP
- Fix L2CAP BR/EDR Doxygen group name and description
Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
drivers: sensor: bosch: bma4xx: Update RTIO callbacks with result argument
Commit bc8d66d538931e650dd2855fabe768720dcb4b02 introduced
a result argument to some RTIO callback handlers.
Update for the BMA4XX sensor.
Signed-off-by: Matin Lotfaliei <matinlotfali@gmail.com>
Avoid accessing request fields before validating input arguments in
coap_client_req().
The request path length is now checked only after validating the
request pointer, preventing a potential NULL pointer dereference.
No functional change intended.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Add a new API to look up a memory region's index using its DeviceTree
node name. This allows callers to identify specific regions within the
internal regions array.
Includes unit tests for successful lookups and error handling for
non-existent names.
Signed-off-by: Firas Sammoura <fsammoura@google.com>
Some tests depend on the ram board property to determine whether or not
to run, like LLEXT tests. Set the ram property for this board.
Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
Some tests depend on the ram board property to determine whether or not
to run, like LLEXT tests. Set the ram property for this board.
Signed-off-by: Tom Burdick <thomas.burdick@infineon.com>
Ensure pointers are validated before dereferencing them in
set_arbitrate_interval() and set_interval().
This avoids accessing sensor or connection fields prior to
validation and makes the code safe even when assertions are
disabled.
No functional change intended.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Rename the lora_basics_modem backend directory to lora-basics-modem
for consistency with the module naming convention.
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Rename drivers/lora/loramac_node to drivers/lora/loramac-node to align
with the module naming convention (modules/loramac-node).
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Multiple individual Kconfig files for NXP clock control drivers are
consolidated into a single Kconfig.nxp file. This improves
maintainability by grouping all NXP-related clock control
configurations in one location.
Signed-off-by: Albort Xue <yao.xue@nxp.com>
This DTS uses absolute GPIO numbers for pins on
gpio1 rather than relative pin numbers. This causes
an abort on boot when led1, neopixel_pwr, or mipi_dbi
is enabled.
Signed-off-by: Peter Hoddie <peter@moddable.com>
Compile testing of the overlay file is done via the fuel-gauge
sample.
Product photo from https://learn.adafruit.com/assets/123027
with the license CC BY-SA 3.0
Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
npcx_i3c_do_ccc() dereferences the device pointer before checking it
against NULL, making the defensive check ineffective.
Remove the redundant check.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
- Add an overlay to enable mpu6050 sensor sample.
- Contains configurations for I2C bus and Clock
Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
- Add an overlay to enable bme280 sensor sample.
- Contains configurations for I2C bus and Clock
Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
De-initialize the SCB when switching between I2C master
and slave modes
Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
- Add pin control definitions with proper open-drain drive mode
for SCL/SDA in cy8cproto_041tp-pinctrl.dtsi.
- Add I2C node and clock configuration to cy8cproto_041tp.dts.
Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Include package-level I/O mapping for I2C pins
in psoc4100tp.64-tqfp.dtsi
Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
Implement I2C configure() handling in the driver
to apply speed settings and default hardware options.
Signed-off-by: Manojkumar Konisetty <manoj@aerlync.com>
Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
boards: vicharak: shrike_lite: Add full name to the board.yml
Add the missing `full_name` field for the shrike_lite board added in
3f3b528997a815d84a13fbc4a0b686129fc38b91
Signed-off-by: Matin Lotfaliei <matinlotfali@gmail.com>
Verify that the EEPROM is large enough to hold the test write buffer
before executing the test.
This makes the test assumptions explicit and avoids unused variable
in API test.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
Trim the sdk list down to arm and riscv64, should be good enough for
testing the buildsystem and saves some disk space.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Remove the unused variable tid_int and lock. Also, match the other drivers
by dropping the back reference to the device structure and just pass
in the dev for the thread and dereference the context from there.
Signed-off-by: Charles Hardin <ckhardin@gmail.com>
This is a leftover from the past that is no more required and that should
be removed in order to prepare for the next Mbed TLS release.
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
The group display names don't work with dnf5.
As displaynames can depend on the locale and are not unique
dnf5 only supports the group identifiers.
Distributions with dnf4 like RHEL<=10, Fedora<41, and CentOS stream
shouldn't have any issues with the group id, but have not been tested.
Alternatives considered: use the @-sytax for groups introduced in dnf5,
but using the group command makes it more clear that package groups are
installed.
Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
Add include/zephyr/bluetooth/sbc.h and subsys/bluetooth/lib/sbc.c to
the libsbc module maintainer entry to ensure proper coverage of SBC
codec related files.
Signed-off-by: Mark Wang <yichang.wang@nxp.com>