Commit graph

126,787 commits

Author SHA1 Message Date
Tim Pambor
e3a99bd625 shell: backend: Default to poll mode for uart_native_pty
The interrupt-driven UART API is emulated via polling on native_sim,
which introduces additional overhead. Defaulting to poll mode improves
performance by avoiding this emulation cost.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-08-19 19:14:21 +02:00
Tim Pambor
120f5a073c serial: uart_native_pty: IRQ support
Add support for the interrupt-driven API. Interrupts are
emulated using a polling thread.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-08-19 19:14:21 +02:00
John Lin
0ad98e9edb dts: vendor: raspberrypi: 4M partitions for raspberrypi
4M partitions for Raspberry Pi Pico 2/W series.

Signed-off-by: John Lin <john.lin@beechwoods.com>
2025-08-19 19:14:12 +02:00
Seppo Takalo
6cdae490e3 net: lwm2m: Suppress many LOG_ERR() that are not fatal
Suppress many LOG_ERR() messages from LwM2M registry
that are not necessary runtime errors.

Libraries and applications should be able to do following
without causing LOG_ERR to be produced:

* Checking existence of object, resource or resource instance
  using lwm2m_engine_get_res(), lwm2m_engine_get_res_inst()
  or path_to_objs(). These are only exposed in internal header.
* Delete object instance or resource instance without checking
  if it exits.

As there is no public API to check existence of some path,
application is much easier to write in a way that it directly
calls just lwm2m_get...(), lwm2m_set...(), lwm2m_delete...()
and trust the return code of -ENOENT.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-08-19 19:13:59 +02:00
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