Commit graph

126,787 commits

Author SHA1 Message Date
Jacob Wienecke
3df02197a4 dts: arm: nxp: Move static ocram configuration to specific soc
RT1160 and RT1170 have different sizes for OCRAM1 and OCRAM2 this PR moves
the static ocram1 and ocram2 labels to the soc specific dtsi and defines
their sizes according to the RM. For RT1160, it combines the OCRAM1,
OCRAM2, and OCRAM M7 (FlexRAM ECC) into 1 node for a better user
experience. 256KB total as opposed to 64KB.

Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
2025-09-17 08:42:22 +02:00
Benjamin Cabé
4f90ec359d drivers: spi: xmc4xxx: handle error from spi_context_cs_configure_all
This fixes CI issues ("error: statement with no effect") in the
project's weekly CI run, e.g.:

west twister -p xmc47_relax_kit/xmc4700 -s drivers.spi.loopback.internal

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-17 08:42:10 +02:00
Anisetti Avinash Krishna
377926ca0d soc: intel: Added support for sys_poweroff on adl and atom
Added support for sys_poweroff on ADL and ATOM socs based on
acpi_poweroff.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-09-16 17:20:41 -04:00
Anisetti Avinash Krishna
5bdd670e2c lib: acpi: Enable poweroff feature
Enable system poweroff feature using ACPI.

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2025-09-16 17:20:41 -04:00
Peter Mitsis
5905fa867c kernel: Update k_event documentation
Updates the k_event documentation to make the k_event structure
visible but its contents opaque.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-09-16 17:20:28 -04:00
Peter Mitsis
4f4d22727b kernel: Update k_timer documentation
Updates the k_timer documentation to make the k_timer structure
visible but its contents opaque.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-09-16 17:20:28 -04:00
Peter Mitsis
3eb6d2d875 kernel: Update k_ipi_work documentation
Updates the k_ipi_work documentation to make the k_ipi_work
structure visible but its contents opaque.k

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-09-16 17:20:28 -04:00
Luis Ubieda
c98f6bccc4 spi: rtio: Add validation for NULL tx and rx buffers
In addition to #94710 fixes, SPI RTIO currently fails existing spi
loopback testcase: test_spi_null_tx_rx_buf_set.

This plus the referenced PR enable RTIO-enabled drivers to pass the
testsuite.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-09-16 16:08:15 -04:00
Paulo Santos
1e7e1dbb6d drivers: gpio_gecko: update driver to use signal-only output.
Enable the pin configuration as single-ended pull-up output, allowing for
a currentless, signal-only output.

Signed-off-by: Paulo Santos <pauloroberto.santos@edge.ufal.br>
2025-09-16 16:07:59 -04:00
Ayush Singh
f2dcb6c1f3 tests: kernel: mem_protect: sys_sem: Fix pocketbeagle_2_am6254_a53
- Since PocketBeagle 2 RevA1 has 4 cores, we need to adjust the variable
  CONFIG_MAX_THREAD_BYTES to allow this test to build.
- Does not affect Rev A0 (2 cores).

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-09-16 16:07:40 -04:00
Ayush Singh
df3e28375d tests: kernel: mutex: sys_mutex: Fix pocketbeagle_2_am6254_a53
- Since PocketBeagle 2 RevA1 has 4 cores, we need to adjust the variable
  CONFIG_MAX_THREAD_BYTES to allow this test to build.
- Does not affect Rev A0 (2 cores).

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-09-16 16:07:40 -04:00
Ayush Singh
ad2990ab25 tests: kernel: queue: Fix pocketbeagle_2_am6254_a53
- Since PocketBeagle 2 RevA1 has 4 cores, we need to adjust the variable
  CONFIG_MAX_THREAD_BYTES to allow this test to build.
- Does not affect Rev A0 (2 cores).

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-09-16 16:07:40 -04:00
Ayush Singh
c1b1abb3f6 boards: beagle: pocketbeagle_2: reva1: a53: Enable PSCI
- Since reva1 support was merged so close to psci PR, it's only enabled
  in reva0 right now. So enable it here.
- Tested with smp/pi sample

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-09-16 16:07:40 -04:00
Maciej Perkowski
c5c5e0f023 test: kernel: fix warnings in kernel.no-mt
Align expected test name in kernel fatal error handler

Signed-off-by: Maciej Perkowski <maciej.perkowski@nordicsemi.no>
2025-09-16 16:07:19 -04:00
Adrian Warecki
5c5e17f0f3 kernel: dynamic: Optimize stack pool usage
Add the flags parameter to the z_thread_stack_alloc_pool function.
Determine the maximum possible stack size based on the size of the reserved
memory for stack and the thread type (flags).

The stack size that can be used by a thread depend on its type
(kerner/user). For the same stack size, the macros K_KERNEL_STACK_DECLARE
and K_THREAD_STACK_DEFINE may reserve different amount of memory.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2025-09-16 16:07:05 -04:00
Fabrice DJIATSA
18497c57f1 tests: drivers: uart: uart_elementary: update testcase.yaml
Add some STM32 platforms to the allowed list to perform a
specific scenario.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-16 13:07:03 -04:00
Fabrice DJIATSA
e31498cf5d tests: drivers: uart: elementary: stm32: add support for hw flow control
- Configure and attach DMA for each USART node.
- Enable hardware flow control capability.
- Add RTS/CTS pin name signals.

Note: Some platform series are missing due to conflicts with other pins
used by different test drivers
(RTS pin should be connected to the CTS pin.)

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-16 13:07:03 -04:00
Fabrice DJIATSA
a86d9029b9 tests: drivers: uart: uart_aync_api: add support for stm32h5-dk
Enable the test to be executed on the stm32h573i-dk as well.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-16 13:07:03 -04:00
Fabrice DJIATSA
3c8def0691 samples: drivers: uart: async_api: add new scenario for console harness
- Add a console harness to filter console output and validate tests.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-16 13:07:03 -04:00
Fabrice DJIATSA
51aba7f739 samples: drivers: uart: async_api: add stm32 platform overlays
Configure and attach DMA for each platform's USART to enable
asynchronous UART communication.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-16 13:07:03 -04:00
Thomas Decker
7391cfa03a boards: arm: st: nucleo_h7s3l8: Add fdcan1
Enable support for FDCAN1 on nucleo_h7s3l8 board. PD0 (RX) and PD1 (TX)
are used for interfacing an external CAN transceiver according to the
breakout connector description in the board's schematic.

Signed-off-by: Thomas Decker <decker@jb-lighting.de>
2025-09-16 13:06:38 -04:00
Thomas Decker
ab94dbc86f dts: arm: st: h7rs: Add fdcan1 and fdcan2 configuration
Provide the soc configuration for fdcan1 and fdcan2 controllers.
This includes registers address, clocks and interrupt lines
details.

Signed-off-by: Thomas Decker <decker@jb-lighting.de>
2025-09-16 13:06:38 -04:00
Adrian Ściepura
5bb98db2b1 boards: x86_64: add missing cpu nodes
Some x86_64 platforms have only one CPU node defined in their
respective devicetree files, while setting `CONFIG_MP_MAX_NUM_CPUS`
to two.

This commit adds missing CPU nodes in said devicetree files.

Signed-off-by: Adrian Ściepura <asciepura@internships.antmicro.com>
2025-09-16 13:06:24 -04:00
Tamás Kiss
14d24b1698 script: logging: fix formatting of dropped messages
Print the actual number instead of a single-element tuple.
For example: "2 messages dropped" instead of "(2,) messages dropped"

Signed-off-by: Tamás Kiss <tmik@demant.com>
2025-09-16 13:06:12 -04:00
Michał Stasiak
26afb52f2b manifest: update hal_nordic revision to integrate MDK 8.72.3
New hal_nordic revision contains MDK 8.72.3 with
changes for nRF54LV10A EngA SoC.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-09-16 13:06:02 -04:00
Pavel Vasilyev
e88695add2 bluetooth: mesh: move mesh assigned numbers to dedicated header
Move assigned number for mesh from mesh.h to assigned_numbers.h where
all assigned numbers are located.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-09-16 13:05:40 -04:00
Pavel Vasilyev
690314040e bluetooth: host: audio: move audio assigned numbers to dedicated header
Move assigned number for audio from audio.h to assigned_numbers.h where
all assigned numbers are located.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-09-16 13:05:40 -04:00
Pavel Vasilyev
8c0269e2ce bluetooth: host: move assigned numbers out of gap.h
Move Bluetooth Assigned Numbers to own header file to separate them from
core GAP functionality.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-09-16 13:05:40 -04:00
Benjamin Cabé
12c6c19541 ci: workflows: upload doxygen coverage to codecov together w/ unittests
Remove codecov upload from doc build workflow and instead ensure both
test and doxygen coverage is uploaded in the same codecov.yml workflow,
this way codecov report will accurately show the consolidated coverage
for each "push" commit.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-16 13:05:23 -04:00
Benjamin Cabé
7e95d30070 doc: add doxygen-coverage target
This makes it easier for anyone to get a coverage report for the doxygen
documentation through a simple "make doxygen-coverage".

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-16 13:05:23 -04:00
Benjamin Cabé
77b0df153a tests: sensor: ti: ina2xx: explicitly cast custom sensor channel enum
clang complains about implicit conversion from enumeration type
'enum sensor_channel_ina2xx' to different enumeration type
'enum sensor_channel' causing failures in CI.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-16 13:05:14 -04:00
Felix Wang
5525941d83 drivers: Counter: Fix LPIT disable interrupt bug
The parameter for LPIT_DisableInterrupts should be
lpit_interrupt_enable_t, not channel id.

Besides, improve the code to use BIT macro for shift
operation.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-09-16 16:06:48 +02:00
Felix Wang
3eb5471390 boards: nxp: frdm_ke17z: enable lpit driver
Enable lpit0 for frdm_ke17z

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-09-16 16:06:48 +02:00
Felix Wang
5018b13de1 tests: drivers: counter_basic_api: Enable lpit test for frdm_ke17z
Enable test for all channels.
This test covers following test cases:
- test_set_top_value_without_alarm
- test_set_top_value_with_alarm
- test_valid_function_without_alarm

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-09-16 16:06:48 +02:00
Felix Wang
0cb44d75ac soc: nxp: kinetis: clock update for LPIT instances on KE1XZ
Configure LPIT0 IP clock if devicetree status is okay.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-09-16 16:06:48 +02:00
Felix Wang
d67bf2ffd8 dts: arm: nxp: ke1xz: add lpit instances for KE1XZ
Add lpit0 and all of channels settings

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2025-09-16 16:06:48 +02:00
Jonas Berg
f683bc53d1 drivers: sensor: ti: ina2xx: Add INA228 test
Add test for Texas Instruments INA228 current sensor via I2C.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
Signed-off-by: Wilkins White <ww@novadynamics.com>
2025-09-16 16:06:38 +02:00
Wilkins White
8ed9787089 drivers: sensor: ti: ina2xx: Add INA228
Add the Texas Instruments INA228 Power/Energy/Charge
monitor. This chip is similar to the INA237, but has
a more precise ADC and added energy/charge channels.

Signed-off-by: Wilkins White <ww@novadynamics.com>
2025-09-16 16:06:38 +02:00
Wilkins White
685fec5809 drivers: sensor: ti: ina2xx: Convert INA226
Convert the INA226 driver to INA2XX

Signed-off-by: Wilkins White <ww@novadynamics.com>
2025-09-16 16:06:38 +02:00
Wilkins White
5ffb8c6305 drivers: sensor: ti: ina2xx: Convert INA230
Convert the INA230 driver to INA2XX

Signed-off-by: Wilkins White <ww@novadynamics.com>
2025-09-16 16:06:38 +02:00
Wilkins White
9c113d0a00 drivers: sensor: ti: ina2xx: Convert INA237
Convert the INA237 driver to INA2XX

Signed-off-by: Wilkins White <ww@novadynamics.com>
2025-09-16 16:06:38 +02:00
Wilkins White
bb570cbea4 drivers: sensor: ti: ina2xx: Add common functions
This commit adds a common framework to reduce repeated
code in the INA2XX family.

Signed-off-by: Wilkins White <ww@novadynamics.com>
2025-09-16 16:06:38 +02:00
Wilkins White
06b1440890 drivers: sensor: ti: Rename ina23x to ina2xx
This commit renames the ina23x folder and common files to ina2xx.
The more generic name will support, e.g., the INA237 and INA228
series chips.

Signed-off-by: Wilkins White <ww@novadynamics.com>
2025-09-16 16:06:38 +02:00
Jordan Yates
f11c90c8b7 drivers: disk: sdmmc_stm32: support PINCTRL sleep
Add support for configuring pins into an alternate mode when the
device is powered off.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-16 16:05:23 +02:00
Jordan Yates
4abe1c4f91 drivers: disk: sdmmc_stm32: power up on request
Move power configuration from the device init function into the
`DISK_IOCTL_CTRL_INIT` and `DISK_IOCTL_CTRL_DEINIT` handlers. If
`pwr-gpios` is defined, this ensures that the card is not powered up
until requested, and enables power down the card when not in use.

This behaviour matches the implementation for `sdhc_spi`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-16 16:05:23 +02:00
Jordan Yates
24e91227f3 drivers: disk: sdmmc_stm32: fix clock pointer ref
Provide a pointer to the first element of the clock list explicitly (as
done by `stm32_sdmmc_clock_enable`), instead of a pointer to the list.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-09-16 16:05:23 +02:00
Miguel Gazquez
5335b7c424 scripts: west_commands: correct f-string in board mismatch error message
The board mismatch error message in `scripts/west_commands/build.py` was
partially missing f-string formatting. This caused `{self.args.board}`
to be printed literally instead of being replaced with the actual board
value.

Fix the f-string.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-09-16 16:05:03 +02:00
Yves Wang
fd598ba0f3 tests: watchdog: retain memory for frdm_mcxw7x
Added board shared sram noecc overlay.
The overlay configure shall select non ecc memory to avoid being clear
during system startup.
Change window max to 1000 for nxp wdog32 to avoid 16bit overflow when
clock freq is 32768hz and divider is 1.

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2025-09-16 16:04:51 +02:00
Yves Wang
8f82cb0848 dts: arm: nxp: Correct frdm_mcxw71 wdog default clock
Watchdog clock source is 32K_CLK
Clock divider should be 1

Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
2025-09-16 16:04:51 +02:00
Raffael Rostagno
dd0d6899e2 boards: esp32s3: Add label for USB-OTG (UDC0)
Add default zephyr_udc0 label for USB-OTG.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-09-16 16:04:03 +02:00