Commit graph

118,807 commits

Author SHA1 Message Date
Jilay Pandya
177e7d2b6a drivers: sensor: uint8_t var cannot be greater than 0xff
SENSOR_XBR818_CLOCKRATE / val->val1 is getting assigned
to uint8_t variable which is causing the logically
dead issue, this commit is a fix for it.

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-06-24 20:08:54 -10:00
Jerzy Kasenberg
fea8ee47da tests: drivers: uart: async_api: Fix chain write
This fixes the case where uart_tx() called from tx callback
fill UART output fifo and immediately execute callback again.
This can happen when hardware does not have interrupt for
output FIFO empty and there is no non-blocking way to tell
that transfer finished.
For such case as soon as output FIFO is filled there is
interrupt that informs that more data can be transmitted.
For hardware with 32 byte fifo callback was seen to be
executed recursively 3 times.
That would not be a problem if chained_write_next_buf
was set BEFORE next call uart_tx().

Additionally semaphore max value is increased to 2
to accommodate such case.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg.xr@bp.renesas.com>
2025-06-24 20:07:23 -10:00
Benjamin Cabé
8186e6cc74 drivers: sensor: sht3xd: fix threshold low clear command
Fix copy-paste error causing update to SHT3XD_CMD_WRITE_TH_LOW_CLEAR to
be missing

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-24 20:06:41 -10:00
Benjamin Cabé
8b8a51fa8c tests: drivers: build_all: sensor: add adi,adxl366
This was missed when the driver was contributed in 756e699a41

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-24 20:06:14 -10:00
Benjamin Cabé
9b1e3fd195 tests: drivers: build_all: sensor: add maxim,ds3231-sensor
This was missed when the driver was contributed in 2759adaf1a

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-24 20:06:14 -10:00
Benjamin Cabé
1ae12e9ab2 tests: drivers: build_all: sensor: add everlight,als-pt19 build test
This was missed when the driver was contributed in 8f789f81c

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-24 20:06:14 -10:00
Benjamin Cabé
0d3f294338 dts: bindings: sensor: update brcm,afbr-s50 example snippet
Update the dt snippet so that it includes all the required properties

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-24 20:06:14 -10:00
Dmitrii Golovanov
208a8b3ac7 twister: Enable 'flash-before' mode on serial-pty
Enable `flash-before` mode for devices connected via serial-pty
the same way, as for physical serial.

This mode allows Twister to start reading from the DUT's serial
connection only after the flashing stage has been completed,
thus excluding an early part of the log stream not directly
related to the current test.

It can help in situations, when the device is connected via some
serial-over-network harness which is still transferring device
logs or keeping in its buffer a tail with different RunID etc.
from the previous test image run.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
2025-06-24 20:05:46 -10:00
Benjamin Cabé
4b80bb5b84 drivers: can: renesas: properly clear error flag
Fix misleading comments and ensure "Bus Error" flag is properly cleared
(Bus-Off Entry flag was used twice previously).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-24 20:05:09 -10:00
Koen Van Herck
6ccd228d62 subsys/tracing: do not select (RTT_)CONSOLE in SEGGER_SYSTEMVIEW
Tracing using Segger's SystemView works fine without enabling RTT_CONSOLE
(or CONSOLE, in general).
SEGGER_SYSTEMVIEW was automatically selecting RTT_CONSOLE, which prevents
applications from using another console backend (e.g. UART_CONSOLE).

Signed-off-by: Koen Van Herck <koen.v.herck@gmail.com>
2025-06-24 20:04:07 -10:00
Tim Pambor
15ce6e0f01 shell: Fix warning for SHELL_SUBCMD_SET_END
The macro SHELL_SUBCMD_SET_END was defined as {NULL}, which triggers a
-Wmissing-field-initializers warning due to the missing 'help' field in
the shell_cmd struct. Replacing {NULL} with {0} silences the warning.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-06-24 20:03:26 -10:00
Tomas Groth Christensen
089c4613ba driver: timer: enable 64 bit cycle counter for MCUX_OS_TIMER
Selects TIMER_HAS_64BIT_CYCLE_COUNTER as an dependency for MCUX_OS_TIMER
This already is supported in the timer implementation in
drivers/timer/mcux_os_timer.c

Signed-off-by: Tomas Groth Christensen <tgc@foss.dk>
2025-06-24 20:03:01 -10:00
Yongxu Wang
0bf39e8213 drivers: dma: Update NXP EDMA driver for version 5
1. The edma version 5 share one driver with edma 4.
2. Edma5 tcd structure some difference, Use tcd type to distinguish,
   and Edma5 uses 64 bytes for alignment instead of 32.
3. Some platforms have some address offsets for certain memory
   when processing from a DMA perspective, such as imx95 cm7 TCM,
   so add offset processing.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-06-24 20:02:35 -10:00
Yongxu Wang
774370a1d7 boards: nxp: imx95_evk_mimx9596_m7: add uart dma support
- verify in uart_async_api test case.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-06-24 20:02:35 -10:00
Yongxu Wang
896dda44b4 modules: hal_nxp: support imx95 cm7 into sdk ng
- support imx95 cm7 platform into sdk ng.

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
2025-06-24 20:02:35 -10:00
Thiyagarajan Pandiyan
fa732ece86 samples: sensor: Add distance measurement sensor sample
Added sample to measure distance

Signed-off-by: Thiyagarajan Pandiyan <psvthiyagarajan@gmail.com>
2025-06-24 19:56:13 -10:00
Felix Moessbauer
94a6c1f0ff boards: lilygo: ttgo_tbeam: remove not-needed kconfig opts
The boards defconfig enabled CONFIG_(MFD|REGULATOR), which are not
stricly needed if the corresponding node is not enabled in the device
tree. These options also enable many drivers, which are problematic on
the mcuboot bootloader target. By moving them to the Kconfig, we can
make them depend on !MCUBOOT which restores the sysboot target.

Signed-off-by: Felix Moessbauer <felix.moessbauer@gmail.com>
2025-06-24 22:51:23 +02:00
Aksel Skauge Mellbye
cb8d6dfcbb drivers: mfd: npm13xx: Namespace register macros
Prefix macros for register access with NPM13XX_ to avoid
symbol naming conflicts.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-24 22:51:13 +02:00
Arunmani Alagarsamy
60ab9888d4 samples: net: Fix MAC address logging to include correct third byte
Previously, mac->addr[2] was skipped and mac->addr[3] was duplicated.
This change ensures all six MAC address bytes are logged in the
correct order.

Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
2025-06-24 15:40:44 -05:00
Alexander Apostolu
8fee98313e drivers: sensor: asahi_kasei: akm09918c: Null check before dereference
cb_sqe could have been NULL before being passed into the callback function,
which expects cb_sqe to be non-NULL.

Add NULL check before the callback function with cb_sqe is called. The
reordering of the callback function after the sqe drop is okay as the
sqe drop is called when cb_sqe is NULL and the callback function isn't
expected to work when cb_sqe is NULL.

Signed-off-by: Alexander Apostolu <apostolu240@gmail.com>
2025-06-24 15:39:46 -05:00
Alberto Escolar Piedras
789a0a8da7 boards/raytac: Change Nordic license to Apache
For yaml files we do not normally even add a license, but if any it
should be Apache2 and not the Nordic one.
Note there is plenty of examples of yaml files very similar to this
in the Zephyr tree. So even if the author/submitter of the original
commit could have used as starting point a file from NCS, it would have
been the same if he would have used a Zephyr one.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-06-24 15:39:38 -05:00
Alberto Escolar Piedras
570f73f20e boards/ezurio: Change Nordic license to Apache
For yaml files we do not normally even add a license, but if any it
should be Apache2 and not the Nordic one.
Note there is plenty of examples of yaml files very similar to this
in the Zephyr tree. So even if the author/submitter of the original
commit could have used as starting point a file from NCS, it would have
been the same if he would have used a Zephyr one.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-06-24 15:39:38 -05:00
Fin Maaß
67e736a58c drivers: ethernet: phy: phy_qualcomm_ar8031: fix speeds undeclared
fix `speeds` undeclared.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-06-24 15:38:45 -05:00
Marc Lasch
86dbcd2cf2 net: lwm2m: Make Bootstrap on Registration Failure configurable
The fallback to Bootstrap on a Registration Failure might not be desirable
for some applications. This change makes the default behavior configure
through Kconfig.

An alternative to configure "Bootstrap on Registration Failure" would be to
set the server object resource id 16 at runtime. However, this is tedious
and error-prone, as it will be reset when the server object is deleted and
might have to be set at different locations in the client code.

Signed-off-by: Marc Lasch <marc.lasch@husqvarnagroup.com>
2025-06-24 15:38:27 -05:00
Marc Lasch
4c46b0bc8b net: lwm2m: Fix typo in bootstrap_on_fail
Bootstrap vs. Boostrap.

Signed-off-by: Marc Lasch <marc.lasch@husqvarnagroup.com>
2025-06-24 15:38:27 -05:00
Youssef Zini
baf53b3328 boards: add uart5 as console and shell-UART
Add UART5 as zephyr console and shell-UART device by default and ensure
its corresponding GPIOG node is enabled.
Add USART6 as a disabled node for potential use.
Enable UART support to the STM32MP257F-EV1 board configuration and add
the shell feature in the yaml.

Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
2025-06-24 15:37:57 -05:00
Youssef Zini
be12fa104f dts: arm: st: stm32mp2_m33.dtsi: add uart/usart
Add UART/USART nodes in non-secure context to the device tree for
STM32MP2 SoC.

Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
2025-06-24 15:37:57 -05:00
Youssef Zini
03d3075dc8 drivers: clock_control: add uart clock handling
Add clock bindings for UART/USART (1-9) peripherals in the
`stm32mp2_clock.h`.
Add UART/USART clocks rate reading to the STM32MP2 clock driver.

Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
2025-06-24 15:37:57 -05:00
Youssef Zini
98b4f4e62e dts: arm: st: stm32mp2_m33.dtsi: add rctl node
Add the reset controller node to the STM32MP2 M33 device tree source
file.

Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
2025-06-24 15:37:57 -05:00
Youssef Zini
a2d09e61a3 dt-bindings: stm32mp2_reset.h: add reset bindings
Add reset bindings for UART/USART (1-9) peripherals for the STM32MP2
series.

Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
2025-06-24 15:37:57 -05:00
Eric Mechin
62a1b8a306 drivers: flash: STM32WBA flash_stm32wba_fm.c: fix sector erase error
The STM32WBA Flash Manager driver is failing to erase a sector, instead of
erasing one sector, two sectors are erased.
Fix it by correctly calculating the number of sectors to erase

Signed-off-by: Eric Mechin <eric.mechin@st.com>
2025-06-24 15:37:41 -05:00
Robert Hancock
f8b4a04186 drivers: mdio: mdio_xilinx_axienet: Add access timeouts
Previously if the MDIO access failed to complete, the driver could enter
an infinite busy loop. Add timeouts to fail the operation if the
hardware fails to respond within a reasonable time.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
2025-06-24 15:37:24 -05:00
Robert Hancock
e673f1851f drivers: mdio: mdio_xilinx_axienet: Reduce log levels
Reduce log messages which can be triggered noisily by some PHY
drivers to debug level.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
2025-06-24 15:37:24 -05:00
Kapil Bhatt
900a7a915f doc: networking: Add wifi credentials library document
Add document for wifi credentials library, which use to load
and store credentials.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2025-06-24 15:36:34 -05:00
Sylvio Alves
36fdcfd761 samples: counter: add esp32c2 soc overlay
esp8684_devkitm board build is failing due to
missing overlay file, which enables timer/counter.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-06-24 15:36:15 -05:00
Gang Li
75ac644ee3 drivers: wifi: nxp: enable net monitor mode on IW610
Enable CONFIG_NXP_WIFI_NET_MONITOR,
       CONFIG_NXP_WIFI_HOST_TXRX_MGMT_FRAME,
       CONFIG_NXP_WIFI_MMSF on IW610.

Signed-off-by: Gang Li <gang.li_1@nxp.com>
2025-06-24 15:36:04 -05:00
Vinayak Kariappa Chettimada
fe348bce8e Bluetooth: Controller: Fixup ticker reschedule with drift
If the next ticker is too close then hop over it when
rescheduling a ticker with drift in slot window is used.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-06-24 15:35:51 -05:00
Lucien Zhao
7f45bbed3c samples: drivers: i2s/i2s_codec: support case on rt700
put __16kHz16bit_stereo_sine_pcm buffer into nocache region
Do some settings for rt700 cm33_cpu0 core

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-06-24 15:35:07 -05:00
Lucien Zhao
63a7a9308e boards: nxp: support sai0 instance
enable sai0 clock
config sai0 pin
add codec8962 support

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-06-24 15:35:07 -05:00
Lucien Zhao
fc293803f3 dts: arm: nxp: support sai instances on rt700 cm33 cpu0
add 3 sai instances on cm33 cpu0
add pinmux-cells in lpc-syscon.yaml

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-06-24 15:35:07 -05:00
Lucien Zhao
2bcec4c67e soc: nxp: imxrt7xx: set I2S_HAS_PLL_SETTING as n
The existing SAI diver cannot initialize the PLL on the
board, so the PLL settings will not be performed in the
driver.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-06-24 15:35:07 -05:00
Lucien Zhao
585a85ac55 drivers: clock_control: support rt700 getting sai clock
There are multi sai instance shared on clock source on
cm33_cpu0, clock driver don't need index parameter, so
modify clock driver to adapt clock driver.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-06-24 15:35:07 -05:00
Lucien Zhao
7101c7257c drivers: dma: dma_mcux_edma.c: add xcache support for tcd pool
XCACHE has been designed for RT700, tcd pool need to be put in
noncache region, update driver to support

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-06-24 15:35:07 -05:00
Miguel Gazquez
798dc5c976 soc: wch: Add packages for the ch32v303
Add the different packages of the CH32V303

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-06-24 15:34:42 -05:00
Miguel Gazquez
de0ef827cd dts: wch: add gpioe bank to ch32v303
Adds the gpioe bank to the ch32v303 devicetree.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-06-24 15:34:42 -05:00
Miguel Gazquez
1f5a281e9b dts: wch: fix ngpios for some WCH SoCs
The CH32V20x and CH32V30x SoCs have 16 pins per GPIO bank, but in the
devicetree, `ngpios` was incorrectly set to 8.
Fix the devicetrees by setting the correct value.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-06-24 15:34:42 -05:00
Emil Gydesen
4adabb49da Bluetooth: BAP: Use IN_RANGE in bt_bap_base_get_base_from_ad
This simplyfies the checks in the function a bit, and makes
Sonarcloud happy.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-06-24 15:34:17 -05:00
Emil Gydesen
c8ac20f2b2 Bluetooth: Audio: Add missing default case for bt_audio_dir_str
The switch was missing a default case as per the coding
guidelines.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-06-24 15:34:01 -05:00
Emil Gydesen
ae6b33be07 Bluetooth: CSIP: Remove excess + at start of link for test_k
Removed the excess +.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-06-24 15:33:41 -05:00
Yunshao Chiang
5a2765da26 drivers: comparator: add it51xxx_evb analog comparator driver
Add analog comparator driver for ITE it51xxx chip.

Signed-off-by: Yunshao Chiang <Yunshao.Chiang@ite.com.tw>
2025-06-24 15:33:17 -05:00