Commit Graph

119882 Commits

Author SHA1 Message Date
Camille BAUD
633c0fe234 drivers: misc bflb updates
mostly makes things a little bit safer

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-08-01 07:57:36 -04:00
Camille BAUD
bdffc08279 bflb: Make BL60x independant from SDK
Reorganize and update soc folder files for SDK-independance
Reorganize and update hal_bouffalolab files for SDK-independance
Reorganize and update soc dts files for SDK-independance
Update serial and pinctrl driver files for SDK-independance
Update ai_wb2_12f, bl604e_iot_dvk, and dt_bl10_dvk
to new bl60x support
and fixup openocd config of ai_wb2_12f

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-08-01 07:57:36 -04:00
Camille BAUD
0c352f1b3a soc: bflb: re-add ATOMIC_OPERATIONS_C
This reverts 514258aa23
which causes issues here

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-08-01 07:57:36 -04:00
Gaetan Perrot
22dd888365 drivers: tee: optee: fix possible null pointer dereference
Add check for supp->current being NULL before accessing num_params in
error log.

Prevent potential NULL pointer dereference and crash when invalid
parameter count

Improve error messages for better debugging in cases with no current
request or wrong param count.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-08-01 07:56:54 -04:00
Fin Maaß
56bf288ed8 soc: litex: add array functions to soc.h
adds functions to read and write arrays to the soc.h file.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-08-01 07:55:01 -04:00
Fin Maaß
5a0fba3b9d soc: litex: support little CSR ordering
litex supports little CSR ordering, also support
it in zephyr. historical the default is big ordering.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-08-01 07:55:01 -04:00
Fin Maaß
0a2140589a soc: litex: check CONFIG_LITEX_CSR_DATA_WIDTH
Litex only supports CONFIG_LITEX_CSR_DATA_WIDTH
with 8 and 32 bit, enforce it here too.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-08-01 07:55:01 -04:00
Fin Maaß
456bfbff5d soc: litex: use generic data types
use generic data types

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-08-01 07:55:01 -04:00
Gaetan Perrot
b59d9f2f85 arch: riscv: core: fpu: mark unused function argument
Use ARG_UNUSED() to mark unused function argument.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-08-01 07:54:11 -04:00
Gaetan Perrot
470f3aff83 arch: riscv: core: pmp: mark unused function argument
Use ARG_UNUSED() to mark unused function argument.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-08-01 07:54:11 -04:00
Gaetan Perrot
6f8453f39d arch: sparc: core: thread: mark unused function argument
Use ARG_UNUSED() to mark unused function argument.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-08-01 07:54:11 -04:00
Gaetan Perrot
46341938eb arch: xtensa: core: thread: mark unused function argument
Use ARG_UNUSED() to mark unused function argument.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-08-01 07:54:11 -04:00
Gaetan Perrot
f997d7e51f dts: binding: vendor-prefixes: Update Space Cubics legal entity
Space Cubics changed its legal entity status from "LLC" to "Inc." as of
June 1st, 2025.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-08-01 07:51:51 -04:00
Anas Nashif
b1a3dc00b0 twister: report: switch --detailed-test-id logic
now no-detailed-test-id is enabled by default, so switch the logic so we
do not require the extra parameter when reruning.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-01 07:50:10 -04:00
Anas Nashif
7b1cc710b1 ci: test_plan: do not filter same test with different toolchain
Make sure we get same test with different tests included.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-01 07:50:10 -04:00
Anas Nashif
45596b7d71 ci: test_plan: fix detailed test id handling
detailed test id is no longer default, so switch the logic to deal with
that.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-01 07:50:10 -04:00
Anas Nashif
5d3adb00e3 tests: net: http: also build with clang
Build this test also with clang to increase coverage. This test is
selected because it had some issues with clang, however, there is
nothing special about this tests when it comes to clang, it will be one
of many to come to increase coverage.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-08-01 07:50:10 -04:00
Maochen Wang
92c56cc39e manifest: sync hal_nxp to update wifi driver version
upgrade wifi driver version to r52.p3 and update the TX API.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-08-01 07:49:55 -04:00
Maochen Wang
22a05e6a4e drivers: wifi: nxp: update the TX data API
Update the TX data API to support distinguishing if this packet is from
net stack or from internal packet forwarding case.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
2025-08-01 07:49:55 -04:00
Alberto Escolar Piedras
059186558f boards nrf_bsim: Add docs for new nrf54lm20bsim target
Add documentation for new simulated nRF54LM20 target

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-08-01 07:48:27 -04:00
Alberto Escolar Piedras
b82baf66af doc: bsim boards: Typo fixes
Just a few grammar fixes

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-08-01 07:48:27 -04:00
Chaitanya Tata
52bf8fbf61 tests: nrf70: bustest: Add more QSPI tests
Add tests based on QSPI command register, this is the entry point even
before we test nRF70 internal memories.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-08-01 07:47:59 -04:00
Chaitanya Tata
e17fe78a70 modules: nrf_wifi: Add generic read/write APIs
These can be used read/write any address.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-08-01 07:47:59 -04:00
Tom Hughes
ea5412ece4 arch: arm: cortex_m: Add debug.h header
Since #75677, it has not been possible to build with
CONFIG_NULL_POINTER_EXCEPTION_DETECTION_DWT enabled since there was no
declaration of z_arm_debug_enable_null_pointer_detection before its use
in arch/arm/core/cortex_m/prep_c.c.

This change creates an arch/arm/include/cortex_m/debug.h header that
contains declarations for the functions in
arch/arm/core/cortex_m/debug.c.

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-08-01 07:47:28 -04:00
WenBin Zhang
b54f4386bd net: shell: Move to a separate Kconfig file
Move it to a separate Kconfig file and move it under the net/lib/shell.
When using menuconfig, it helps to reduce the confusion of network
configuration options.

Signed-off-by: WenBin Zhang <freey7955@gmail.com>
2025-08-01 07:46:11 -04:00
Guennadi Liakhovetski
9ce6d3599c xtensa: export syscall helpers
When building with user space and LLEXT support, syscall helpers need
to be exported.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2025-08-01 07:45:16 -04:00
Jamie McCrae
748b4915ba boards: Remove help text from SoC selection Kconfigs
Help text here adds the symbols to and pollutes the Kconfig search
with options that should not be visible and have no use to anyone

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-08-01 07:44:39 -04:00
Dong Wang
52cc73d9dc dts: intel_ish: Improve and extend ISH dts files
- Add uart1 and uart2 nodes to intel_ish5.dtsi with all required
properties.
- Consistently place properties for all nodes.
- Add #interrupt-cells to the soc node.
- Update intel_ish5_8.dtsi: overrides interrupt and status for
uart1, uart2, and dma0.

These changes add missing peripherals, unify property layout, and
improve clarity for Intel ISH platforms.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
2025-08-01 07:43:16 -04:00
Seppo Takalo
d0cba34c7f net: lwm2m: Prevent QUEUE_RX_OFF while waiting for CoAP Ack
The LwM2M RD client state machine have no knowledge of ongoing
observations or any other CoAP traffic and might trigger
QUEUE_RX_OFF state while engine is still waiting for Ack.

This can happen if CoAP Ack timeout is longer than
CONFIG_LWM2M_QUEUE_MODE_UPTIME and response is lost or taking
longer than QUEUE_MODE_UPTIME.

When observation is lost, CoAP Ack may be send, but socket is not
listening anymore if its closed or not polled while in RX_OFF and this
stops observation.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-08-01 07:39:16 -04:00
Kevin Wang
5ac8c48a0a tests: drivers: spi: adp_xc7k_ae350.conf for SPI_LARGE_BUFFER_SIZE
Due to the hardware transmission limitation of SPI in adp_xc7k_ae350
(maximum of 512 bytes per transfer), CONFIG_SPI_LARGE_BUFFER_SIZE is
specified in the board configuration in the spi_loopback test.

Signed-off-by: Kevin Wang <kevinwang821020@google.com>
2025-07-31 17:17:50 -04:00
Kevin Wang
68183ce1d6 drivers: spi: atcspi200: determining if spi is used as a flash controller
XIP may indicate that the program is executed either in local memory
or flash. However, the SPI node is only used as a flash controller
when the program is executed in flash.
Therefore, optimize the related checks to ensure that when XIP is
enabled but the program is executed in local memory, the SPI node
can still be used.

Signed-off-by: Kevin Wang <kevinwang821020@google.com>
2025-07-31 17:17:50 -04:00
Kevin Wang
f817f62021 drivers: spi: atcspi200: Fix the bug for inconsistent TX/RX lengths.
1. Due to the hardware limitations of the ATCSPI200 IP, the transmission
   and reception counts must be consistent. If there is a mismatch in
   length, dummy data needs to be transmitted or received.
   Under this limitation, using the spi_context_xx related APIs to
   determine whether the transmission is complete may cause issues in
   certain situations.
   Therefore, additional variables are set to record the exact number of
   bytes need to be transmitted or received.
2. Also, fix some inaccuracies in configuring DMA transfers.

Signed-off-by: Kevin Wang <kevinwang821020@google.com>
2025-07-31 17:17:50 -04:00
Jordan Yates
1e6af82e80 fuel_gauge: composite: query sources for capacity and soc
Query the configured data sources for capacity and soc information
before falling back to the composite fuel gauge configuration. This
means the battery properties are no longer required.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-07-31 17:16:53 -04:00
Jordan Yates
3ef54ccc5c fuel_gauge: composite: support FUEL_GAUGE_TEMPERATURE
Add support for the `FUEL_GAUGE_TEMPERATURE` property.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-07-31 17:16:53 -04:00
Jordan Yates
da526b51a8 fuel_gauge: composite: choose sensor channel types
Choose whether the data sources should be queried by the generic sensor
channels (`SENSOR_CHAN_VOLTAGE`, etc), or the fuel guage specific
channels (`SENSOR_CHAN_GAUGE_*`).

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-07-31 17:16:53 -04:00
Jordan Yates
7827b7e4ca fuel_gauge: composite: more flexible data sourcing
Instead of explicitly specifying the source for the voltage and current
channels, specify primary and secondary data sources. If the requested
sensor channel does not exist on the primary source, the secondary
source will be tried.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-07-31 17:16:53 -04:00
Jordan Yates
aed7ae5dda fuel_gauge: composite: switch to tick based sampling
To ensure that data is consistent across multiple sequential calls to
`fuel_gauge_get_prop`, sensor_fetch is only called if a certain time
period has passed since the previous sampling. This emulates the
tick-based sampling of most dedicated fuel-gauge devices.

Signed-off-by: Jordan Yates <jordan@embeint.com>

tick
2025-07-31 17:16:53 -04:00
Fan Wang
7ea280466b drivers: sdhc: Add support for Apollo510 SDIO host
This commit added support for Apollo510 SDIO host driver and
ambiq board configuration in fs_sample and disk_performance

Signed-off-by: Fan Wang <fan.wang@ambiq.com>
2025-07-31 17:16:12 -04:00
Xing Chen
366d938071 boards: microchip: sam: add led and button device for sama7g54-ek
Devices has been verified by samples/basic/button

Signed-off-by: Xing Chen <xing.chen@microchip.com>
2025-07-31 17:15:27 -04:00
Xing Chen
c9fa37e592 dts: microchip: sam: add pio device to sama7g5
Add pioa, piob, pioc, piod and pioe devices to sama7g5

Signed-off-by: Xing Chen <xing.chen@microchip.com>
2025-07-31 17:15:27 -04:00
Xing Chen
7eb6e519d7 drivers: gpio: add gpio for sama7g5
Add driver for sama7g5 GPIO controller (PIO4)

Signed-off-by: Xing Chen <xing.chen@microchip.com>
2025-07-31 17:15:27 -04:00
Emil Gydesen
b76f09dc04 Bluetooth: ISO: Fix issue with BIS tx_complete
BIS termination as broadcaster is handled different
than ACL and CIS, and in rare chances the
tx_complete for BIS may not have been completed in
the system workqueue before iso_new was called for the
same bt_conn struct (e.g. via bt_iso_cig_create), which
would perform

k_work_init(&conn->tx_complete_work, tx_complete_work);

but where conn->tx_complete_work still existed in
the system workqueue, which would cause the list
of pending items on the system workqueue to be removed
as the `next` pointer would be NULL.

This also adds an assert in bt_conn_new to prevent this
issue from appearing again.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-07-31 17:14:21 -04:00
Jiafei Pan
5ec14f8719 west.yml: depends on hal_nxp PR
Tmp patch to depend on hal_nxp PR 577

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-07-31 17:13:21 -04:00
Jiafei Pan
e99b480189 modules: hal_nxp: move armv8-a cache driver to mcux-sdk-ng
Moved armv8-a cache driver from mcux-sdk to mcux-sdk-ng.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-07-31 17:13:21 -04:00
Adrian Bieri
c14b7e3e89 drivers: xbarb: include xbarb driver when config is set
CONFIG_MCUX_XBARB includes CONFIG_MCUX_COMPONENT_driver.xbarb now

Signed-off-by: Adrian Bieri <adrian.bieri@loepfe.com>
2025-07-31 17:12:22 -04:00
Vit Stanicek
e679ef486a hal_nxp: Factorise inclusion of fsl_inputmux
Create Kconfig variable NXP_INPUTMUX, which selects the fsl_inputmux
driver. Imply the MCUX component symbol from it. Imply that variable
from the NXP PINT, SmartDMA and LPC DMA drivers and from the mimxrt685s
SoC.

This needed to be done for the mimxrt700_evk/mimxrt798s/hifi4 domain, as
the INPUTMUX peripheral handles IRQ assginments and its driver
(fsl_inputmux) is used directly by the domain's soc.c. Instantiating the
currently dependent drivers (for PINT and SmartDMA) isn's possible nor
reasonable on the said target.

Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
2025-07-31 17:11:54 -04:00
Travis Lam
5274d66019 drivers: flash: nordic: nrf_mramc update
Remove cache invalidation after flash write,
cpu should automatically invalidate cache but
for HW erase invalidation needed due to erase
from different bus.

Signed-off-by: Travis Lam <travis.lam@nordicsemi.no>
2025-07-31 17:11:30 -04:00
Jonas Spinner
91ec38d7e0 Bluetooth: Classic: SDP: Replace magic numbers
Replace magic UUID sizes with `sizeof(uint8_t) +
BT_UUID_SIZE_{16,32,128}`.

Signed-off-by: Jonas Spinner <jonas.spinner@burkert.com>
2025-07-31 17:10:57 -04:00
Jonas Spinner
9d7aa28eb4 Bluetooth: Classic: SDP: Adjust doc comment
Align example UUID in doc comment with UUID in example code.

Signed-off-by: Jonas Spinner <jonas.spinner@burkert.com>
2025-07-31 17:10:57 -04:00
Jukka Rissanen
9125f07392 tests: net: dns: Add tests for resolving hostname or localhost
Make sure we are able to resolve the localhost or local hostname.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-07-31 17:10:45 -04:00