Commit graph

118,807 commits

Author SHA1 Message Date
Etienne Carriere
4bce536cc6 drivers: clock_control: stm32: release Backup Domain access refcount
Fix STM32 WBA and H7 clock drivers to release the reference counter
added to access LSE configuration controllers once the clock is
configured. Keeping such an unbalanced access request is no more
needed since SoC functions manage reference counting of access requests.

Fixes issue 90942.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
2025-06-26 12:43:17 +02:00
Etienne Carriere
8da20047cc drivers: clock_control: stm32: refcounter for Backup domain accesses
Use recently added SoCs functions to request access to SoC backup
domain resources These function use a reference counter to track these
request and ensure the resources are accessible as long as at least a
consumer requires access.

By the way, correct stm32_hsem.h header file inclusion that requires
brackets (<>) delimiters, not double quotes, as per convention on header
location.

Fixes issue 90942.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
2025-06-26 12:43:17 +02:00
Etienne Carriere
c7ea5a89e6 drivers: rtc: stm32: refcounter for Backup domain accesses
Use recently added SoCs functions to request access to SoC backup
domain resources These function use a reference counter to track these
request and ensure the resources are accessible as long as at least a
consumer requires access.

By the way, move inclusion of stm32_hsem.h header file after inclusion
of the LL header files and Zephyr header standard files.

Fixes issue 90942.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
2025-06-26 12:43:17 +02:00
Etienne Carriere
5a279d9309 drivers: counter: stm32: refcounter for Backup domain accesses
Use recently added SoCs functions to request access to SoC backup
domain resources These function use a reference counter to track these
request and ensure the resources are accessible as long as at least a
consumer requires access. When we're done accessing RTC registers and
other protected resource, release the access refcount.

By the way, simplify rtc_stm32_read() when COUNTER_NO_DATE is defined
that used a useless extra local variable.

By the way, correct stm32_hsem.h header file inclusion that requires
brackets (<>) delimiters, not double quotes, as per convention header
location.

Fixes issue 90942.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
2025-06-26 12:43:17 +02:00
Etienne Carriere
c99715a866 drivers: bbram: stm32: reference counter for Backup Registers accesses
Use recently added SoCs functions to request access to SoC backup
domain resources These function use a reference counter to track these
request and ensure the resources are accessible as long as at least a
consumer requires access.

Fixes issue 90942.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
2025-06-26 12:43:17 +02:00
Etienne Carriere
7514c1aedc soc: st: stm32: reference counter for Backup SRAM accesses
Use recently added SoCs functions to request access to SoC backup
domain resources These function use a reference counter to track these
request and ensure the resources are accessible as long as at least a
consumer requires access.

Fixes issue 90942.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
2025-06-26 12:43:17 +02:00
Etienne Carriere
e3c2036994 soc: st: stm32: reference counting for backup domain accesses
Add SoC functions to enable/disable STM32 backup Domain access
and use a reference counter to track requests. These helper functions
may be called from a interrupt context. On domain access enable, the
function loops until written bit is set however this is expected to be
effective after very few clock cycles and seems not even required
(not mentioned in any SoC documentation). The loop is preserved as
used in previous implementation.

Among all supported STM32 SoCs, only STM32C0 and STM32WB0 series do not
implement this mechanism hence add option CONFIG_STM32_BACKUP_PROTECTION
that is enabled for all SoC series but these 2.

Fixes issue 90942.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
2025-06-26 12:43:17 +02:00
Adam Kondraciuk
645fb26670 tests: drivers: i2s: Run I2S tests on nRF54H20
Enable test execution on nRF54H20 target.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-06-26 12:42:59 +02:00
Alberto Escolar Piedras
ce0d65a35c manifest: Update hal_nordic with updated cracen hal and rng driver
Update with the latest nordic hal which includes an updated
CRACEN driver which supports the 54LM20 and newer devices

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-06-26 12:42:53 +02:00
Maxwell Weru
a972203871 net: lib: tls_credentials: clarify secure tag usage for TLS credentials
Updated documentation to clarify that while credential pairs should
generally share the same secure tag for subsystems supporting multiple
credentials per tag, some implementations may expect only one credential
per tag.

Signed-off-by: Maxwell Weru <mburumaxwell@gmail.com>
2025-06-26 12:42:41 +02:00
Daniel Leung
12ed0528b3 Revert "drivers: serial: ns16550: Fix TX IRQ not triggered...
...when FIFO is empty"

This reverts commit 47e43d552e.

This is breaking sample.sensor.shell.pytest where characters
are either missing or repeated when printing to the console.

Originally this is just for RISC-V with PLIC interrupt
controller. That was made more general to avoid having arch
specific code in a generic driver. And now it is breaking
on non-RISC-V platforms. Note that the QEMU RISC-V boards
all have PLIC as interrupt controller and are passing sensor
shell pytest without this workaround. So this does not seem
to be an issue with PLIC and NS16550.  So revert the commit
for now.

Fixes #92187

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-06-26 12:42:11 +02:00
Mathieu Choplain
d41716f63c boards: st: stm32n6570_dk: add stlink_gdbserver runner
Add support for the stlink_gdbserver runner to the aforementionned board.
Update the "Debugging" section of the board documentation accordingly,
along with cleaning up the existing text.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-06-26 11:20:08 +02:00
Mathieu Choplain
bab3ab2d49 boards: st: nucleo_n657x0_q: add stlink_gdbserver runner
Add support for the stlink_gdbserver runner to the aforementionned board.
Update the "Debugging" section of the board documentation accordingly,
along with cleaning up the existing text.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-06-26 11:20:08 +02:00
Chun-Chieh Li
2fd79998d0 drivers: wifi: esp_at: fix +CIPRECVDATA parsing for AT 1.7
This fixes +CIPRECVDATA parsing for AT 1.7. Per AT 1.7 spec,
remote ip/port is not replied.

Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
2025-06-26 11:19:56 +02:00
Qiankun Li
702221da2d drivers: wifi: nxp: Fix TWT setup issue.
When try to set twt, system will try to
get interface status firstly.
In shim driver, miss filling twt_capable field.
The twt_capable is set as false by default.
Failed to set twt because of incorrect
twt_capable.

Add enhance code to fill twt_capable field
in shim driver.

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-06-26 11:19:48 +02:00
Fabrice DJIATSA
7900f8d4ee tests: drivers: uart: async_api: update wba55cg clock frequency
With the current configuration, we encounter a user setting error
during the test with the log:
"Wrong number of bytes received, got: 2, expected: 3."

Workaround:
Increase the clock frequency to enable faster data transmission
and avoid user setting errors.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-06-26 11:13:30 +02:00
Fabrice DJIATSA
28c766b957 tests: drivers: uart_async_api: add tx buffer in nocache memory
Since nucleo_f746zg has NOCACHE_MEM defined
(related to test cases drivers.uart.async_api.nocache_mem
and drivers.uart.async_api.nocache_mem_dt.nucleo_f746zg),
the TX buffer should be placed in a non-cacheable memory region
for the uart_async_var_buf_length testsuite to pass.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-06-26 11:13:30 +02:00
Aleksandr Khromykh
81c636ac7f doc: release-notes-4.2: Information abot tc deprecation in mesh
Commit adds information about the removal of
the TinyCrypt crypto in Bluetooth Mesh.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2025-06-26 11:13:19 +02:00
Aleksandr Khromykh
b408445b4d bluetooth: mesh: remove tinycrypt support
Tinycrypt support deprecated in Zephyr 4.0 release.
Time to remove it.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2025-06-26 11:13:19 +02:00
Guennadi Liakhovetski
3f5f981f16 soc: intel_adsp: fix debug window number
Fixes: commit 5f4b51f9b1 ("soc: intel_adsp: add a debug window slot
descriptor") - restore the maximum debug slot number. The added slot
resides in page 0, not at the end of the array. The bug didn't have
any run-time implications - no access to those high index value slots
is performed, all platforms so far have 3 slots at most, so this is a
pure correctness fix.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
2025-06-26 11:13:08 +02:00
Jacob Winther
4871217165 boards: remove the adafruit_feather alias
Remove the adafruit_feather alias as it has been deprecated for 2 releases.

Ref: #77069
Signed-off-by: Jacob Winther <jacob@9.nz>
2025-06-26 11:12:58 +02:00
sudarsan N
654e690057 settings: zms: fix out-of-bounds null terminator write
Previously, zms_read() could fill the buffer up to sizeof(rdname),
leaving no space for the null terminator, which could cause an
out-of-bounds write.

This change reduces the read size to sizeof(rdname) - 1 and appends
a '\0' manually, ensuring the buffer is always null-terminated safely.

Fixes: CID 516244
Fixes: #90533

Signed-off-by: sudarsan N <sudarsansamy2002@gmail.com>
2025-06-26 11:12:49 +02:00
Marek Matej
e93a6338d4 samples: ot: shell: update the sample configuration
Add l2 shell and ieee802154 node to the samples.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-06-26 11:12:34 +02:00
Martin Jäger
99130bb6fe boards: espressif: esp32c6: Add ieee802154 support
Enable IEEE 802.15.4 driver for esp32c6_devkitc and xiao_esp32c6
boards.

Signed-off-by: Martin Jäger <martin@libre.solar>
2025-06-26 11:12:34 +02:00
Martin Jäger
cba8b33c3d drivers: ieee802154: Add implementation for ESP32 series
Initial commit of the IEEE 802.15.4 driver using Espressif HAL.

Signed-off-by: Martin Jäger <martin@libre.solar>
2025-06-26 11:12:34 +02:00
Marek Matej
188eef484a soc: espresssif: esp32c6: add iterable section header
Fix subsystems build by providing the iterable section header.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-06-26 11:12:34 +02:00
Marek Matej
5d855608b8 manifest: update hal_espressif
Bring changes to support the IEEE802154 on ESP32-C6.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-06-26 11:12:34 +02:00
Khoa Tran
bd47fd4f5d samples: i2s: Add support for i2s SSIE on Renesas RA boards
Add Renesas RA board support for these tests:
- samples/drivers/i2s/output

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-06-26 11:12:21 +02:00
Khoa Tran
a42978a841 tests: i2s: Add support for i2s SSIE on Renesas RA boards
Add Renesas RA board support for these tests:
- tests/drivers/i2s/i2s_api
- tests/drivers/i2c/i2c_speed

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-06-26 11:12:21 +02:00
Khoa Tran
a4202f174c dts: arm: Add i2s SSIE device node for Renesas RA family
Add i2s SSIE device node to support i2s SSIE
driver on Renesas RA SoCs

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-06-26 11:12:21 +02:00
Khoa Tran
e84ea05dd4 drivers: i2s: Initial driver support for SSIE on Renesas RA
Add i2s driver support for Renesas RA SSIE

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-06-26 11:12:21 +02:00
Abderrahmane JARMOUNI
da62b1c19d tests: drivers: spi_loopback: fix buffers alignment size
Size given to __aligned() is in bytes.
Align following DCACHE line size, or default to 32-byte alignment

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-06-26 11:12:11 +02:00
Chew Zeh Yang
5e5c40c489 drivers: udc_ambiq: added support for double endpoint buffer
implements option to enable double endpoint buffer to improve throughtput
for non-control endpoints.

Signed-off-by: Chew Zeh Yang <zeon.chew@ambiq.com>
2025-06-26 11:12:02 +02:00
Chew Zeh Yang
46cdb84590 drivers: udc_ambiq: add support for apollo510
Added UDC support for Ambiq apollo510 family with USB HS and DMA support.

Signed-off-by: Chew Zeh Yang <zeon.chew@ambiq.com>
2025-06-26 11:12:02 +02:00
Chew Zeh Yang
06d2332047 boards: ambiq: apollo510: add USB nodes
Add USB node to apollo510 qualifier, and apollo510_evb board to enable
USB support on the SoC and its EVB.

Signed-off-by: Chew Zeh Yang <zeon.chew@ambiq.com>
2025-06-26 11:12:02 +02:00
Chew Zeh Yang
d55b5bee1c west.yml: sync hal ambiq
sync latest hal to take in implementaiton of unified usb isr handling

Signed-off-by: Chew Zeh Yang <zeon.chew@ambiq.com>
2025-06-26 11:12:02 +02:00
Nhut Nguyen
f7120c716b driver: serial: rz: Fix serial issue with sci and scif
Fix issues that Renesas RZ boards cannot run the below serial
samples properly with sci and scif.

- `samples/subsys/console/echo`
- `samples/subsys/shell/shell_module`

The modification is to make the callback invoked in tei interrupt.

Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2025-06-26 11:11:47 +02:00
Jeppe Odgaard
aeb0c0aec1 tests: drivers: build_all: led: add led_pwm
Enable test for LED PWM driver.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-06-26 11:10:59 +02:00
3370e524ca samples: adc_dt: add support for the CH32V003EVT evaluation board
This demonstrates the ADC driver added in the previous commit. The
sample reads A0 as well as two built-in channels - one that reports
the internal 1.2 reference volatage and one that reports half the
analog supply voltage.

Signed-off-by: Michael Hope <michaelh@juju.nz>
2025-06-26 09:42:20 +02:00
b1cd947771 drivers: adc: add a driver for the CH32V003 ADC
The CH32V003 has a 8 channel, 10 bit onboard ADC. Add an immediate
mode driver and the appropriate pinctrl bindings. Note that the
CH32V003 GPIO pins have both a floating input and an analogue input
mode, and the pinctrl is needed to put the pin in analogue mode.

Signed-off-by: Michael Hope <michaelh@juju.nz>
2025-06-26 09:42:20 +02:00
Yangbo Lu
5fed196842 tests: drivers: gpio_basic_api: add imx943 m33 dts overlay
Added imx943 m33 dts overlay.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-06-26 09:41:53 +02:00
Yangbo Lu
4456ccd39e boards: nxp: imx943_evk: add gpio support in m33 yaml
Added gpio support in m33 yaml.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-06-26 09:41:53 +02:00
Yangbo Lu
2091b6db23 dts: arm: nxp_imx943_m33: add gpio dts nodes
Added gpio dts nodes.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-06-26 09:41:53 +02:00
Yangbo Lu
10fe3d368b soc: nxp: imx943: avoid systick stop for M33
The SLEEP_HOLD_EN is enabled by default, that will
gate systick, clear it to fix.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-06-26 09:41:53 +02:00
Yangbo Lu
e5f7cc2bef dts: arm: nxp_imx943_m33: add scmi cpu protocol node
Added scmi cpu protocol node.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-06-26 09:41:53 +02:00
Erwan Gouriou
13d334abb9 boards: stm32n6570_dk: Use /fsbl variant as mcuboot target
Add a sysbuild configuration to specify that mcuboot uses fsbl variant.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-06-26 09:41:37 +02:00
Erwan Gouriou
34df4066a2 boards: stm32n6570_dk: Assign XSPI1 clock to HCLK
Due to a BootROM clock switching issue, XSPI1 should use HCLK otherwise
app won't restart on reset.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-06-26 09:41:37 +02:00
Erwan Gouriou
2f20e78d7d dts: n6: Allow using axisram2 in chainloaded application
Make axisram2 which is used in fsbl mode available as well to
chainloaded application in order not to loose 1M of RAM

In order to avoid conflicts with bootloader, verify that code + ro data
of the loaded application won't go further than bootloader start address.
This is done with a linker assert.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-06-26 09:41:37 +02:00
Erwan Gouriou
b0c1b95311 west.yml: hal_stm32: stm32n6 chainloaded app
Point to hal_stm32 change allowing to start chainloaded app (_s
profile).

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-06-26 09:41:37 +02:00
Erwan Gouriou
edc1a4b8ac boards: stm32n6570_dk: Provide configuration for chainloaded images:
- Provide external flash partition
- Define external flash and flash controller
- Defined flashing address depending on image (FSBL/Chainloaded)

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-06-26 09:41:37 +02:00