Commit graph

136,983 commits

Author SHA1 Message Date
Andreas Schmidt
62d9e618fa dts: arm: st: stm32g4: add quadspi node
The STM32G4 variants g473, g474, g483, g484, g491 and g4a1 do support QSPI
interface. All mentioned variants include the stm32g491.dtsi.

Signed-off-by: Andreas Schmidt <andreas.schmidt@dormakaba.com>
2025-08-19 19:13:51 +02:00
Hans Binderup
0b7db98317 dts: mspm0: add uart1,2 and 3 to generic mspm0.dtsi
It's now possible to describe and enable the other HW uarts.

Adding interrupts to uart0 as well.

Signed-off-by: Hans Binderup <habi@bang-olufsen.dk>
2025-08-19 19:13:34 +02:00
Jackson Farley
bfdfa2086f serial: Add error checking and interrupt support on mspm0 driver
It is now possible to enable CONFIG_UART_INTERRUPT_DRIVEN for mspm0
uart driver.

Signed-off-by: Jackson Farley <j-farley@ti.com>
Co-authored-by: Hans Binderup <habi@bang-olufsen.dk>
2025-08-19 19:13:34 +02:00
Joel Guittet
820aa7a015 drivers: uart: demonstration of bitbang driver
Add sample for uart bitbang driver.

Signed-off-by: Joel Guittet <joelguittet@gmail.com>
2025-08-19 19:13:19 +02:00
Joel Guittet
3e3ceeae49 drivers: serial: add uart-bitbang support
Initial support for uart bitbang driver.

Signed-off-by: Joel Guittet <joelguittet@gmail.com>
2025-08-19 19:13:19 +02:00
Benjamin Cabé
d7ce089a70 doc: kernel: services: use footnotes in data passing table
Minor cosmetic update so that the notes in the "Data Passing" summary
table are actual interactive footnotes.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-08-19 18:02:26 +02:00
Lothar Felten
7c02d06350 boards: st: nucleo_h563zi: device tree: add alias for led1
Add alias for led1 in addition to led0.
The leds are present on the ST Nucleo H563zi board.
Tested with ST Nucleo H563zi board.

Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
2025-08-19 18:02:17 +02:00
Camille BAUD
6f8eeaa86f west.yml: Update bflb hal for bl70x and bl61x
Update to commit with bl70x and bl61x files

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-08-19 18:01:45 +02:00
Andreas Karner
7df35633dc dts: st: nucleo_u575zi_q enable user button pull down
This PR enabled pull down option for the user button
of the nucleo_u575zi_q board to enhance wake up performance
from standby and stop3 sleep modes.

Signed-off-by: Andreas Karner <andreas.karner@outlook.com>
2025-08-19 18:01:22 +02:00
Lucien Zhao
7fbebea81d boards: mimxrt700_evk: add hwinfo reset_cause support on cm33_cpu0
1. enable hwinfo support
- get_reset_cause
- get_supported_reset_cause
- clear_reset_cause
2. verified tests/drivers/hwinfo

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-08-19 18:00:53 +02:00
Lucien Zhao
5aa600d117 drivers: hwinfo: add hwinfo_mcux_rstctl.c drivers
Implementation is specific to RSTCTL module.
Code mostly copied from hwinfo_mcux_rcm driver.

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-08-19 18:00:53 +02:00
Sri Surya
2febb866e5 boards: ambiq: Add support for the Ambiq Apollo2 EVB board
Adds support for the Ambiq Apollo2 EVB board (AMAPHEVB).

Signed-off-by: Sri Surya <srisurya@linumiz.com>
2025-08-19 18:00:41 +02:00
Sri Surya
358c113a96 soc: ambiq: apollo2: Add support for Apollo2 SoC
Added SoC series for the Ambiq Apollo2 SoC.

Signed-off-by: Sri Surya <srisurya@linumiz.com>
2025-08-19 18:00:41 +02:00
Sri Surya
ad322030a2 dts: arm: ambiq: Add DTSI for Apollo2 SOC
Added DTSI for Apollo2 SOC family

Signed-off-by: Sri Surya <srisurya@linumiz.com>
2025-08-19 18:00:41 +02:00
Sri Surya
acdf69be17 drivers: serial: pl011: Add support for Ambiq Apollo2 SoC UART
Added UART Support for Apollo2 SOC and cleanup.

Signed-off-by: Sri Surya <srisurya@linumiz.com>
2025-08-19 18:00:41 +02:00
Sri Surya
3d91929346 drivers: pinctrl: Add pinctrl driver for Apollo2 SoC
This commit adds pinctrl support for Apollo2 SoC.

Signed-off-by: Sri Surya <srisurya@linumiz.com>
2025-08-19 18:00:41 +02:00
Sri Surya
1a27391c46 dts: bindings: pinctrl: Add pinctrl bindings for Apollo2 SOC
Add pinctrl bindings for apollo2 soc

Signed-off-by: Sri Surya <srisurya@linumiz.com>
2025-08-19 18:00:41 +02:00
Daniel Leung
df35aaaa94 doc: ipc_service: fix header levels
Some header levels are incorrect, e.g. "API Reference" header
level was lower than individual header for each API group.
So fix them.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-08-19 18:00:32 +02:00
Aksel Skauge Mellbye
c8ebe3ce61 boards: seeed: xiao_mg24: Add support for PyOCD runner
Add PyOCD as a runner for xiao_mg24. Document how to install
the flashloader from CMSIS-Pack. PyOCD can be used for flashing
and debugging.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-08-19 14:16:31 +02:00
Bennet Leins
6ac6d4388c boards: st: fix STM nucleo_h533RE LED2
green_led_2 should be set to GPIO_ACTIVE_HIGH
according to the Data sheet [1] provided by ST.

"To light LD2, a high logic state '1' must be written
into the corresponding GPIO PA5. A transistor is used
to drive the LD2."

Link: https://www.st.com/resource/en/user_manual/um3121-stm32h5-nucleo64-board-mb1814-stmicroelectronics.pdf [1]
Signed-off-by: Bennet Leins <bennet.leins@bender.de>
2025-08-19 14:16:23 +02:00
Emil Dahl Juhl
9bb00a0815 boards: st: nucleo_n657x0_q: correct led polarity
As is apparent on the nucleo-n657x0-q schematics[1], all of the three
user leds are controlled via. active low gpios.

Correct the polarity of the leds.

[1] https://www.st.com/resource/en/schematic_pack/mb1940-n657x0q-c02-schematic.pdf

Signed-off-by: Emil Dahl Juhl <emil@s16s.ai>
2025-08-19 14:16:13 +02:00
Kapil Bhatt
f48a66121a net: zperf: Improve UDP multicast upload
UDP multicast uploads did not produce zperf-compatible server stats,
so the client waited for and tried to decode a non-existent reply,
causing “Unexpected response flags” and misleading
“LAST PACKET NOT RECEIVED!!!” output.

This change treats multicast as client-only: after sending
the negative-id FIN it does not wait for or decode server stats,
Instead transmits the FIN a few times to help receivers detect test end.
The shell prints a clear “Statistics (client only)” summary for multicast
and suppresses the error when client stats are valid.

Unicast behavior is unchanged.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2025-08-19 14:16:05 +02:00
Khaoula Bidani
e4840d00ca boards: st: stm32u3: enable fdcan for stm32u3 boards
Enable FDCAN for Nucleo U385RG-Q board.
Sort properties in the board chosen node and the
supported features in the board description YAML file.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-08-19 14:15:57 +02:00
Khaoula Bidani
8e3f133eae dts: arm: st: u3: add fdcan
Add FDCAN support to STM32U3

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-08-19 14:15:57 +02:00
Emil Gydesen
e6d6578d96 Bluetooth: CAP: Add missing check for abort in the started cb
bt_cap_initiator_started did not have a check for aborted like
all the other callbacks, which could cause the procedure to
continue even if it was aborted.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-08-19 14:15:48 +02:00
Quy Tran
7de5949b6b tests: driver: adc: Add ADC overlay for RSK-RX130
Add adc overlay node for RSK-RX130-512kb board

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-08-19 14:15:41 +02:00
Quy Tran
7ac8efb8c3 boards: renesas: Add ADC support on RSK-RX130 board
Add ADC pinctrl and yaml support on the RSK-RX130 board

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-08-19 14:15:41 +02:00
Quy Tran
53cb4fcb05 dts: renesas: rx: Add dts property node for adc on RX130
Add ADC node on RX130-common dts file

Signed-off-by: Quy Tran <quy.tran.pz@renesas.com>
2025-08-19 14:15:41 +02:00
Minh Tang
3f13f25752 drivers: adc: Initial support for ADC driver on RX130
Add driver code and devicetree for 12-bit ADC on
RX130 MCU

Signed-off-by: Minh Tang <minh.tang.ue@bp.renesas.com>
2025-08-19 14:15:41 +02:00
Tamás Kiss
c9087bce75 logging: fix dictionary mode for dropped messages on rtt backend
With the dictionary feature enabled, the RTT backend would still print
the "messages dropped" message as a string instead of the binary format.
Fix that by calling the correct process function when dictionary mode
is enabled.

Signed-off-by: Tamás Kiss <tmik@demant.com>
2025-08-19 13:03:03 +02:00
Krzysztof Chruściński
804e502484 drivers: clock_control: nrf: Add missing flags clearing
When BT dedicated API was turning off the HF clock it was not resetting
status flags. When onoff API was attempting to request HF clock after
that it was detecting unexpected state as status flag was indicating
as if HF clock was on.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-08-19 13:02:44 +02:00
Krzysztof Chruściński
63bc35ad4c soc: nordic: Use default SYS_CLOCK_TICKS_PER_SEC for PPR core
PPR was using 1 kHz system clock frequency instead of default 31250 Hz
used on other cores with GRTC. Low frequency impacts system clock
accuracy. There is no reason to use different frequency for PPR.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-08-19 13:02:38 +02:00
Khoa Nguyen
76fae0bcaf samples: boards: renesas: elc: Add support sample elc for ek_ra4c1
Add support sample app ``renesas/elc`` for Renesas ek_ra4c1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
1a02d973d4 samples: drivers: counter: Add support alarm for Renesas ek_ra4c1
Add support sample app ``alarm`` for Renesas ek_ra4c1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
5be75b73b7 tests: drivers: counter: Add support counter_basic_api for ek_ra4c1
Add support test app ``counter_basic_api`` for Renesas ek_ra4c1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
538fca94ee tests: boards: renesas: elc: Add support test app elc for ek_ra4c1
Add support test app ``renesas/elc`` for Renesas ek_ra4c1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
367cbaa266 tests: drivers: uart: Add support test UART for ek_ra4c1
Add support test app ``uart_async_api`` for Renesas ek_ra4c1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
565c41acee tests: drivers: spi: Add support spi test for ek_ra4c1
Add support test app spi_loopback for ek_ra4c1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
e4f7e4127e tests: drivers: pwm: Add support test PWM for ek_ra4c1
Add support test app pwm_loopback for ek_ra4c1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
ec1611a44c tests: drivers: i2c: Add support test I2C for ek_ra4c1
Add support test app i2c_api for ek_ra4c1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
1d3c7fa1c5 tests: drivers: adc: Add support test ADC for ek_ra4c1
Add support test app adc_accuracy_test and adc_api for ek_ra4c1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
a887e36133 boards: renesas: Add support for Renesas ek_ra4c1 board
Add support for Renesas ek_ra4c1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
9e66dfef44 dts: arm: renesas: ra: Add support for Renesas RA4C1 soc
Add support for Renesas r7fa4c1bd3cfp soc

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Khoa Nguyen
7d89580a41 manifest: Update hal_renesas for RA4C1 support
Update hal_renesas which support for RA4C1 MCU

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-08-19 13:02:29 +02:00
Jakub Zymelka
138f977704 drivers: adc: nrfx: enable negative values for single-ended ADC readings
The ADC driver API already supports ADC readings which can return signed
values, these are differential readings. In Nordic's datasheet, we have
a mode called "single ended", but its just a name. "Single ended" is a
differential reading, with the negative channel tied to GND. This is not
compatible with zephyrs definition of a single ended reading.

To support Nordic's "single ended" mode, the user must configure
a differential reading, with the negative input tied to ground, which
the saadc driver can then use to configure the reading as Nordic SAADC
"single ended", and return negative values as expected.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2025-08-19 13:02:21 +02:00
Aksel Skauge Mellbye
93d33faa5c soc: silabs: silabs_s2: Align power states with HAL
The definition of the EM3 energy mode is that software switches
off the LFRCO and LFXO before entering deep sleep. On Series 2,
oscillators are clocked on-demand based on peripheral requests
from hardware. Requesting EM3 will result in EM2 if any active
peripheral uses one of the oscillators, and requesting EM2
will result in EM3 if no peripherals use the oscillators.

In version 2025.6 of the HAL, this was reflected in the API
of the power manager by making EM3 an alias of EM2. Reflect
this in Zephyr by removing the separate EM3 power state.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-08-19 11:39:52 +02:00
Omri Sarig
c712502fb9 scripts/logging: Create live_log_parser
Create a new, generic parser, that is able to parse dictionary logs live
- showing the messages as they are received from the device.

This functionality previously existed only for reading the log from a UART.
With the new script, the functionality is extended to be able to also read
the log from a file or stdin.
Additionally, the script is written in an extend-able way, making it simple
to support more input sources in the future.

The new script contains a better version of the live functionality than the
old script of log_parser_uart script, therefore, the old script has been
deprecated.
The UART script is still available, and will work by invoking the new
implementation with relevant arguments translation, however, it should
ideally not be used any longer, and should be removed from a future
release.

Signed-off-by: Omri Sarig <omsi@demant.com>
2025-08-19 11:39:49 +02:00
Omri Sarig
152e6252fe scripts/logging: Handle partly read packets
The current implementation of the serial log parser is running in a loop -
every 2 seconds it checks if there is any information ready to be read, and
in this case, it reads this information and parses it.
In case the last packet of the information is not fully available, the
script will read only the first part of the packet, and will fail when
parsing, ending the run with an error.

This should not the be the case, as it is not an error to have only part
of the packet in the buffer.
This commit fixes this problem - now, instead of failing because the parser
does not have enough information, the parser will parse all the full
packets it have, and keep the last, partial packet in the queue, to be
parsed together with the next chunk of data.

This is done by updating the log parsers to return the amount of parsed
data when trying to parse the information, and updating the calling scripts
to correctly handle this new return value.
Additionally, the parser is now quietly failing in case of having a partial
message, and throw an exception for any other kind of error in the parsing
(instead of returning a boolean return code).

In addition to the partial packet handling, the current commit also do the
following, minor improvements:
* parserlib now fails by throwing an exception, instead of exiting - this
  is done to make it possible to choose a different handling for the errors
  from the calling code, if needed.
* The dictionary and parser are now created before the parse operation.
  This makes the uart parser more efficient, and also removes the
  previously duplicated messages of build id, target architecture and
  endianess (which was printed every time new information was received from
  the UART).

Signed-off-by: Omri Sarig <omsi@demant.com>
2025-08-19 11:39:49 +02:00
Omri Sarig
cb94b1ba2a scripts/logging: Add support for numbered %ll and %hh
Python does not support values of long-long (ll) or short-short (hh) in
string-formatting. The current parser is correctly removing the first "h"
or "l" from the format, to make it possible to correctly parse these
strings when they are in the dictionary.

However, the current implementation does not correctly handle the case of
having a number before the "ll" or "hh" argument - which is supported by
both C and Python.

This commit updates the parser to correctly handle these cases, by changing
the simple replace operator with a regex replace, which is able to
correctly handle this case.

Before this commit, the string of:
    "This is my long variable: %08llX"
will stay the same, which will throw a ValueError when parsing this
dictionary message:
    "ValueError: unsupported format character 'h' (0x68) at index ".
After this commit, the string will be correctly fixed to
    "This is my long variable: %08lX"
which is parsed correctly.

Signed-off-by: Omri Sarig <omsi@demant.com>
2025-08-19 11:39:49 +02:00
Aleksander Wasaznik
54165f4fb7 MAINTAINERS: Move tests/bsim/bluetooth/tester to Bluetooth Qualification
`tests/bsim/bluetooth/tester/` contains tests for
`tests/bluetooth/tester/` so it should belong to the same maintainer
area.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2025-08-19 12:28:06 +03:00