Commit graph

126,787 commits

Author SHA1 Message Date
Julien Panis
a473d268c3 boards: ti: lp_em_cc2340r5: Add external low-frequency oscillator
Enable external 32 kHz crystal oscillator.

Signed-off-by: Julien Panis <jpanis@baylibre.com>
2025-10-16 22:31:52 -04:00
Julien Panis
13c0a98acc dts: bindings: clock: Add TI cc23x0 external low-frequency oscillator
External 32.768 kHz crystal oscillator (LFXT) connected across
the X32P input and X32N output pins.

Signed-off-by: Julien Panis <jpanis@baylibre.com>
2025-10-16 22:31:52 -04:00
Stoyan Bogdanov
9ec8ad9b47 soc: ti: cc23x0: Add clock definition for RTC
Add conditonal definition for RTC and SYSTIM with different
values for both of them respecting clock speed and ticks
per minute.

Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
2025-10-16 22:31:52 -04:00
Stoyan Bogdanov
b82e7418c5 drivers: counter: cc23x0: Add dependency for RTC
In case RTC is used for system timer, it should not be used
as counter device. Dependency restricts counter driver to work
only with SYSTIM.

Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
2025-10-16 22:31:52 -04:00
Stoyan Bogdanov
6bb5378fbe drivers: timer: cc23x0: Add option to select between RTC and SYSTIM
Add choice menu where could be selected between RTC or SYSTIM for
system timer.

Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
2025-10-16 22:31:52 -04:00
Stoyan Bogdanov
ca6b18d808 drivers: timer: Add RTC timer driver for cc23x0
Add support for RTC as timer for cc23x0 SoC.

Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
2025-10-16 22:31:52 -04:00
Marcelo Roberto Jimenez
7777a39b63 drivers: net: Make slip use the interface name declared on Kconfig
Make the slip initialization code actually use the interface name set on
Kconfig.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2025-10-16 22:30:28 -04:00
Marcelo Roberto Jimenez
fca3d161ed drivers: net: Fix the slip initialization of the MAC address
This patch fixes a slip_get_mac() call in the wrong place, which was
causing the MAC address set in Kconfig not to be used.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2025-10-16 22:30:28 -04:00
Tim Pambor
30cdbd3dfc tests: bluetooth: controller: Fix too many arguments for format error
Remove additional NULL argument passed to zassert_not_null that caused
a -Wformat error.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-16 17:15:11 -07:00
Tim Pambor
a3d355e19c tests: posix: Fix -Wformat error
Use %ld format specifier for variables of type clock_t.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-16 17:15:11 -07:00
Tomasz Chyrowicz
86a46c48be tests: flash_map: Add tests for subpartitions
Add additional tests for subpartitions support in flash_map macros.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-16 15:06:12 -04:00
Tomasz Chyrowicz
3ae8a43667 storage: Allow to use subpartitions in flash_map
Allow to use both partition and subpartition names when suing the
flash_map API.
That way it is possible to introduce a hierarchy within DTS in a
backward compatible way.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-16 15:06:12 -04:00
Tomasz Chyrowicz
5c010ed9a3 devicetree: Fix ADDRESS macro for non-nv-flash
Currently the DT_FIXED_PARTITION_ADDR as well as
DT_FIXED_SUBPARTITION_ADDR works only for partitions under the
soc,nv-flash -compatible nodes.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-16 15:06:12 -04:00
Tomasz Chyrowicz
e4ecd4b290 devicetree: Fix MTD macro for subpartitions
The DT_MTD_FROM_FIXED_SUBPARTITION must go one level more than the
DT_MTD_FROM_FIXED_PARTITION counterpart.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-16 15:06:12 -04:00
James Bennion-Pedley
99b0c25d01 soc: wch: Add CH32V307 Support
Fixes PLL Issues with PR#95814.
Based on the work of Thomas Boje <info@andocs.biz>

Signed-off-by: James Bennion-Pedley <james@bojit.org>
2025-10-16 15:06:01 -04:00
James Bennion-Pedley
344241718a drivers: clock_control: Load correct PLL Multipliers based on look up table
Replaces inline PLL calculation with a LUT (to be based on WCH package)

Signed-off-by: James Bennion-Pedley <james@bojit.org>
2025-10-16 15:06:01 -04:00
James Bennion-Pedley
484218ac70 modules: wch: Fix Incorrect CH32FUN macro configuration
fixes bugs in setting of correct WCH classification abbreviations.
Required for future CH32V307 support.

Signed-off-by: James Bennion-Pedley <james@bojit.org>
2025-10-16 15:06:01 -04:00
Zhaoxiang Jin
b6c66b7858 west: update hal_nxp to mcux sdk 25.09.00
1. update hal_nxp to mcux sdk 25.09.00
2. Updated imxrt7xx part numbers to align with SDK.
3. Fixed typo in member of dsi_transfer_t structure. The sendDscCmd
and dscCmd shall be sendDcsCmd and dcsCmd.
4. Remove the call to the function 'CLOCK_OSC_GateOscRc400M'. This
function has been removed from the SDK.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-10-16 15:05:20 -04:00
Tim Pambor
99fd6d4f4e ztest: Add validation of zassert strings
Add __printf_like attribute to ztest assertion functions
zassert, zassume, zexpect to validate format strings and arguments
at compile time.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-10-16 15:05:07 -04:00
Etienne Carriere
6e0acef0cf tests: subsys: modem: backend: uart: stm32: fix dma DTS phandle lists
Correct b_u585i_iot02a board DTS overlay file DMA lists that was not
split by phandle and seemed to form a unique phandle. This is not
currently an issue with existing DT parsing macros and tools but may
generate build errors if tools are more strict on the DTS implementation
format.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
84f4ebc823 tests: drivers: uart: uart_async_api: stm32: fix dma DTS phandle lists
Correct STM32 boards DTS overlay files DMA lists that were not split
by phandle and seemed to form a unique phandle. This is not currently
an issue with existing DT parsing macros and tools but may generate
build errors if tools are more strict on the DTS implementation format.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
309422f86d tests: drivers: spi: spi_loopback: stm32: fix dma DTS phandle lists
Correct STM32 boards DTS overlay files DMA lists that were not split
by phandle and seemed to form unique phandles. This is not currently
an issue with existing DT parsing macros and tools but may generate
build errors if tools are more strict on the DTS implementation format.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
b5db94d31c samples: net: cellular_modem: stm32: fix dma DTS phandle lists
Correct b_u858i_iot02a DTS overlay file DMA lists that was not split
by phandle and seemed to form a unique phandle. This is not currently
an issue with existing DT parsing macros and tools but may generate
build errors if tools are more strict on the DTS implementation format.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
14cb3e2c10 samples: drivers: spi_flash: stm32: fix dma DTS phandle lists
Correct stm32h573i_dk DTS overlay file DMA list that was not split
by phandle and seemed to form unique phandle. This is not currently
an issue with existing DT parsing macros and tools but may generate
build errors if tools are more strict on the DTS implementation format.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
775b03af0f samples: boards: st: power_mgmt: suspend_to_ram: fix dma DTS phandle lists
Correct nucleo_wba55cg board DTS overlay file DMA lists that was not
split by phandle and seemed to form a unique phandle. This is not
currently an issue with existing DT parsing macros and tools but may
generate build errors if tools are more strict on the DTS implementation
format.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
c79d3d5505 samples: boards: st: uart: circular_dma: fix dma DTS phandle lists
Correct DTS file DMA lists that were not split by phandle and
seemed to form unique phandles. This is not currently as issue with
existing DT parsing macros and tools but may generate build errors
if tools are more strict on the DTS implementation formats.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
5f0dcdac1e dts: arm:st: stm32h7: fix dma phandle lists
Correct STM32H7xx SoCs DMA lists that were not split by phandle and
seemed to form unique phandles. This is not currently as issue with
existing DT parsing macros and tools but may generate build errors
if tools are more strict on the DTS implementation formats.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
d5430545df dts: arm:st: stm32h5: fix dma phandle lists
Correct STM32H5xx SoCs DMA lists that were not split by phandle and
seemed to form unique phandles. This is not currently as issue with
existing DT parsing macros and tools but may generate build errors
if tools are more strict on the DTS implementation formats.

Clean indentation by the ways for the modified DTSI file lines.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Etienne Carriere
f9e67876b4 dts: arm:st: stm32f4: fix dma phandle lists
Correct STM32F4xx SoCs DMA lists that were not split by phandle and
seemed to form unique phandles. This is not currently as issue with
existing DT parsing macros and tools but may generate build errors
if tools are more strict on the DTS implementation formats.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-16 15:04:31 -04:00
Holt Sun
69cdf1952d tests: drivers: rtc: rtc_api: add new test case.
add drivers.rtc.rtc_api.rtc_counter test case
for counter rtc.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-10-16 15:04:18 -04:00
Holt Sun
8a0d621d9d samples: drivers: rtc: add mimxrt10xx board configs
enable alarm and init priority for mimxrt10xx
sample/drivers/rtc

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-10-16 15:04:18 -04:00
Holt Sun
2fb04ff274 boards: nxp: add rtc into supported board.
Add "rtc" into supported board.yaml.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-10-16 15:04:18 -04:00
Holt Sun
13983de5bb boards: nxp: mimxrt10xx: enable SNVS counter_rtc
enable SNVS counter_rtc for mimxrt10xx board.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-10-16 15:04:18 -04:00
Holt Sun
3adf133020 dts: nxp: rt10xx: add zephyr,rtc-counter child under SNVS
The counter_rtc child node is for rtc-counter.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-10-16 15:04:18 -04:00
Holt Sun
d4c6cdfd4f drivers: counter: mcux_snvs: update driver codes.
1. Add SRTC helper macros.
2. Implement start/stop APIs.

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2025-10-16 15:04:18 -04:00
Zacck Osiemo
7f6937dac5 samples: video: capture: Configure frame width and heght for mcxn236
SDMA as the video interface on this board requires
this size frame to be set for the sample to work

Signed-off-by: Zacck Osiemo <coderv63@gmail.com>
2025-10-16 12:17:29 -04:00
Zacck Osiemo
6d60beffb9 drivers: video: mcux_sdma: Reconfigure the source when getting format
Reconfigure the sensor format with the only supported format of the
sdma when getting format

Signed-off-by: Zacck Osiemo <coderv63@gmail.com>
2025-10-16 12:17:29 -04:00
Keith Packard
7321231a64 west: Add mbedtls fix for gcc 14.3
This patch (merged upstream and to zephyr fork) avoids an incorrect warning
generated by gcc 14.3 about array bounds. It should not change the
generated code at all.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-16 12:17:21 -04:00
Charles Dias
c52ed3921c test: drivers: add HX8379C driver into test app
Include HX8379C in test app.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
2025-10-16 12:17:12 -04:00
Charles Dias
3a26535818 drivers: display: add HX8379C driver files
Add driver files for Himax HX8379C panel.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
2025-10-16 12:17:12 -04:00
Charles Dias
f9d4ec974e dts: bindings: display: add HX8379C binding file
Add binding file for Himax HX8379C panel driver.

Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>
2025-10-16 12:17:12 -04:00
Felix Wang
a8a2eefb56 dts: arm: nxp: Update lptmr prescaler setting
For lptmr counter driver, since "prescaler" has been
deprecated and replaced by prescale-glitch-filter.
Update related setting in device tree files.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-10-16 12:16:59 -04:00
Felix Wang
eb785ef63b drivers: Counter: Fix LPTMR prescaler setting not work issue
In current code, if timer-mode-sel is 0(Timer Counter Mode),
bypass_prescaler_glitch will be 1, that makes prescaler setting
be bypassed. But this setting is very useful, especially for
long timing count.

In this patch, we update prescale-glitch-filter default value to 0,
to indicate prescaler and glitch filter are disabled, which comply
the existing devices DTS setting (prescaler = 1).
And if user sets prescale-glitch-filter properity other than 0,
we should set bypass_prescaler_glitch to false to make prescaler work,
and the clock frequence should be calculated with prescaler setting.

Update prescaler field in dt-bindings to tell developer should use
prescale-glitch-filter instead.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-10-16 12:16:59 -04:00
Felix Wang
fac2034dc1 tests: drivers: counter_basic_api: Enable lptmr test for mimxrt1180_evk
The lptmr0 has been enabled with default settings defined in
dts/arm/nxp/nxp_rt118x.dtsi. Enable lptmr3 to test with
designated prescaler.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-10-16 12:16:59 -04:00
Alessandro Manganaro
077e5a3584 drivers: ieee802154: STM32WBA cube fw 1.7.0 updates
Changes required to update STM32WBA ieee802154 driver
according STM32WBA Cube FW 1.7.0 version.

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
2025-10-16 12:16:31 -04:00
Alessandro Manganaro
25e91c8df2 drivers: bluetooth: hci: STM32WBA cube fw 1.7.0 updates
Changes required to update STM32WBA bluetooth HCI driver
according STM32WBA Cube FW 1.7.0 version.

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
2025-10-16 12:16:31 -04:00
Declan Snyder
cc72789e1a dts: nxp: Fix opamp addresses
The opamp addresses were wrong given the ranges translations.
This resulted in using the NS addresses on a S build.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-10-16 12:16:13 -04:00
Erwan Gouriou
84bba8742a dts: arm: stm32n6: Add NPU Cache clock and reset lines
Add the description of NPU Cache (aka cacheaxi) to allow configuring
them in NPU Cache driver.
I intentionally chose this over creating a new dedicated node as
the exclusive user is NPU Cache and this could be done as part of
NPU driver initialization.

Update the NPU driver to take those into account as part of its init
routine.

Signed-off-by: Mickael Guene <mickael.guene@st.com>
Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-10-16 12:15:58 -04:00
Jukka Rissanen
5795b51ece cmake: extensions: Fix compliance errors
Change "if ()" to "if()" so that CI compliance checker passes.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-16 12:15:47 -04:00
Jeremy Dick
034e88ebb3 drivers: mipi-dbi-spi: Fix the delay for gpio CS
Fix a typo in the argument passed to SPI_CS_CONTROL_INIT_GPIO
in MIPI_DBI_SPI_CONFIG_DT

Signed-off-by: Jeremy Dick <jdick@pivotint.com>
2025-10-16 12:15:39 -04:00