Commit graph

126,787 commits

Author SHA1 Message Date
Benjamin Cabé
4c4c2ea7f6 include: drivers: sensor: doxygen docs for ccs811
Fixup doxygen documentation

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-11-04 11:26:14 +02:00
Szymon Janc
a3aa51393b Bluetooth: tester: Fix TBS Originate Call BTP command
bt_tbs_originate() returns assigned Call ID as non-negative value.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-11-03 17:00:08 +02:00
Stuart Alldritt
8af379516d mgmt: mcumgr: grp: img_mgmt: increment data_off after reading the SHA
Fix a bug where the image's SHA would be interpreted as TLV headers due
to missing a data_off increment.

Signed-off-by: Stuart Alldritt <s.k.alldritt@gmail.com>
2025-11-03 16:59:50 +02:00
Szymon Janc
4571485e16 Bluetooth: Mesh: Fix invalid write in private beacon server
There is no guarantess enum will be packed so passing uint8_t as
node_id to bt_mesh_subnet_priv_node_id_get() could (and likely will)
result in writing past stack variable.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2025-11-03 16:59:32 +02:00
Zhaoxiang Jin
393f542e51 doc: cpu_freq: Improve cpu_freq documentation.
Improve cpu_freq documentation.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-11-03 16:59:22 +02:00
Zhaoxiang Jin
f1f39e6a9e cpu_freq: Avoid redundant cpu_freq_policy_reset()
The current code calls cpu_freq_policy_reset() once within
the SMP branch of the cpu_freq_timer_handler function, and
then calls it again at the beginning of cpu_freq_next_pstate().
This causes repeated resets of 'pstate_best' and
'num_unprocessed_cpus', which prevents the 'last core' from
being reached. The initiating core should perform a reset
before broadcasting, and other cores should not reset again.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-11-03 16:59:22 +02:00
Zhaoxiang Jin
c924d8ba15 cpu_freq: remove redundant XOR calculation in k_ipi_work_add
In the current code, 'target_cpus ^= (1U << _current_cpu->id)'
is first used to remove the current core. Then, k_ipi_work_add
performs 'target_cpus ^ (1U << _current_cpu->id)' again when
passing parameters. This will add the current core to the mask
again, causing the current core to receive IPI and directly call
cpu_freq_next_pstate() at the end, which may lead to duplicate
execution.

This commit changed 'target_cpus ^ (1U << _current_cpu->id)' to
'target_cpus' in k_ipi_work_add to avoid the second XOR.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-11-03 16:59:22 +02:00
Marcelo Cunha
1c2d7f48ee sensor: bq274xx: fix design energy calculation
In the function bq274xx_gauge_configure it was being used an hardocded
value of 3.7V instead of using the design voltage parameter defined in
the device tree.

Signed-off-by: Marcelo Cunha <mcunha@petsafe.net>
2025-11-03 16:59:14 +02:00
Khaoula Bidani
c28d779432 drivers: spi: stm32: Fix race condition causing lockup in half-duplex mode
This patch adds a check for the EOT (End Of Transfer) flag
inside the polling loop in spi_stm32_half_duplex_switch_to_receive().
If EOT is set, the transfer is already complete and the loop
is exited, preventing the lockup.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
Signed-off-by: Julien Racki <julien.racki-ext@st.com>
2025-11-03 16:59:05 +02:00
Alain Volmat
b9a15a95ec samples: video: capture: fix index increment in caps display
Since the i index is already being incremented as part of the
for loop statement, the i++ done as part of the loop body should
not be done since this lead to skip of entries of the table and
moreover might lead to invalid access outside of the table.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-11-03 16:58:56 +02:00
Jordan Yates
25269118b5 net: lib: sockets: add socket service fd requirement
The net socket service implementation permanently opens a file
descriptor, which should be taken into account by the build system.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-11-03 10:42:06 +02:00
Sergei Ovchinnikov
38f8925a91 drivers: mfd: npm13xx: add delay between timer strobing and hibernate
When using I2C clock frequency >= 250 kHz, it's been observed that the
nPM1300 would unexpectedly wake up before requested time has expired. Add
a delay between applying a new timer value and triggering hibernate to
mitigate this.

Signed-off-by: Sergei Ovchinnikov <sergei.ovchinnikov@nordicsemi.no>
2025-11-03 10:41:55 +02:00
Diego Herranz
6fe24654b9 boards: imx93_evk_mimx9352_m33_ddr.yaml: remove 'flash: 0'
It was preventing this variant (imx93_evk/mimx9352/m33/ddr) to show up
in the boards documentation. Other similar boards with similar DDR variants
(e.g. imx95_evk/mimx9596/m7/ddr) don't include this 'flash: 0' line.

Signed-off-by: Diego Herranz <diegoherranz@diegoherranz.com>
2025-11-03 10:41:45 +02:00
Yuval Peress
bf0e0b3cad adc: esp32 add missing header
Without this header the logic in adc_esp32.c will never have either
ADC_CALI_SCHEME_CURVE_FITTING_SUPPORTED or
ADC_CALI_SCHEME_LINE_FITTING_SUPPORTED defined. This means
that we always see the warnings aout uncalibrated samples.

Signed-off-by: Yuval Peress <yuval.peress@gmail.com>
2025-11-02 12:34:34 -05:00
Immo Birnbaum
b6c5d91507 soc: xlnx: zynqmp: fix vectors and SRAM MPU region priority order
Place the 'vectors' region configuration behind the 'sram' and
'rom_region' configurations so that the MPU region for the
vectors takes precedence over the 'sram' region due to higher
region index = higher priority when resolving memory properties
/ permissions for overlapping regions. This is required for the
vectors to work properly if the SRAM base address is also at 0x0.

Fixes #96688.

Signed-off-by: Immo Birnbaum <mail@birnbaum.immo>
2025-11-02 12:32:32 -05:00
Chris Friedt
e438b57a8c release: Zephyr 4.3.0-rc2 v4.3.0-rc2
Update the version to v4.3.0-rc2.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-11-01 10:33:13 -04:00
Chris Friedt
e4d193b5ed scripts: coccinelle: add fork as a reserved name
`fork()` is defined by POSIX and for creating a new child process.

It is the preferred method of doing so on systems with virtual memory and
the symbol should not be used outside of the context defined by the
POSIX standard.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/fork.html

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-11-01 08:39:26 -04:00
Chris Friedt
8864ac4c1c samples: posix: philosophers: rename 'fork' to avoid POSIX conflict
There is a function, `fork()`, inside of the philosophers example that
conflicts with the POSIX `fork()` function.

Since it is customary to avoid using reserved names, adjust the sample
so that the function in question is called `philosopher_fork()`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-11-01 08:39:26 -04:00
Chris Friedt
ec84b80981 samples: cmsis: philosophers: rename 'fork' to avoid POSIX conflict
There is a macro, `fork()`, inside of the philosophers example that
conflicts with the POSIX `fork()` function.

Since it is customary to avoid using reserved names, adjust the sample
so that the macro in question is called `philosopher_fork()`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-11-01 08:39:26 -04:00
Chris Friedt
f6eb86fe6f samples: philosophers: rename 'fork' to avoid POSIX conflict
There is a macro, `fork()`, inside of the philosophers example that
conflicts with the POSIX `fork()` function.

Since it is customary to avoid using reserved names, adjust the sample
so that the macro in question is called `philosopher_fork()`.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-11-01 08:39:26 -04:00
Declan Snyder
63868e4301 drivers: mdio_nxp_enet: Remove mistaken busy wait
This busy wait was for debugging purposes and left in by mistake.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-11-01 08:38:28 -04:00
Declan Snyder
51f457088d drivers: ksz8081: Start monitoring phy after init
For some reason, a regression happened where the phy monitor was never
happening. Fix by starting the monitor at the end of init function. The
monitor will then reschedule itself from then on.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-11-01 08:38:28 -04:00
Mario Paja
497209c74e drivers: i2s: mcux sai update TX state after queue is empty
This change sets the TX state to ready after the TX queue
has been emptied.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
2025-10-31 20:04:53 -04:00
Benjamin Cabé
a6a520da26 drivers: fuel_gauge: remove dead code in set_prop functions
Remove useless assignments to `val` parameter in sbs_gauge_set_prop()
and bq27z746_set_prop(). Since `val` is passed by value, modifying it
has no effect. Also remove unused `tmp_val` variable.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-31 20:03:00 -04:00
Cristian Bulacu
72d8814b63 tests: net: route_mcast: Add test for route lookup by interface
Adding test case to validate new added function,
`net_route_mcast_lookup_by_iface`

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-10-31 20:01:55 -04:00
Cristian Bulacu
c341838502 net: ip: route: Add support to search mcast route by iface
This commit adds the possibility to check for a multicast route on a
given interface

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2025-10-31 20:01:55 -04:00
Jamie McCrae
2a09063289 cmake: Allow specifying custom VERSION file dependency
Allows applications and projects to specify their own requirements
for the application VERSION file to be re-generated, this fixes an
issue whereby the application git repository is updated with a new
commit but the old commit is still used by a build, users would
need to add a dependency in their application to the git index file

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-31 22:41:26 +02:00
Tomasz Chyrowicz
1b50f08ee9 mgmt: Handle slot version equality
If slots have equal version, but a secondary slot is the active one, the
next boot will switch to the primary slot.
Expose this through SMP commands by marking the primary slot as pending.

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
2025-10-31 22:41:16 +02:00
Jukka Rissanen
60f83dca7d net: Do not access possibly freed net_pkt
As the net_pkt might have already been sent by net_if_try_send_data()
function, the pkt might already contain garbage data. So do not try
to access if after that send call but remember the used iface and family
and use them to update the statistics.

The issue was seen with qemu_x86_64 and qemu_cortex_a53 when CONFIG_SMP
was enabled.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-10-31 22:41:07 +02:00
Henrik Brix Andersen
6a95243e59 tests: drivers: can: host: apply ruff format and fixups
Apply ruff format and fixups to the CAN host test suite pytest files.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-10-31 22:40:58 +02:00
Martin Hoff
6366bd63af drivers: serial: silabs: fix eusart driver with xg22 soc
This commit introduces a compatibility layer for older EUSART hardware
that lacks the RXTO interrupt. It fix the test uart_async_api when using
xg22 soc.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-31 22:40:49 +02:00
Martin Hoff
504eb7d39e drivers: serial: silabs: fix eusart driver when parity param is nok
When running uart_elementary on the xg22 SoC, some tests are failing due
to the lack of checks inside the configuration function. This patch adds
a check for the parity parameter.
I've also noticed an error in the ISR function where we check all the
ISR flags and not only the enabled ones. It has no impact but needs to be
changed in order to be accurate.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-31 22:40:49 +02:00
Martin Hoff
e0fcca52ae dts: arm: silabs: fix missing euart interrupt
This patch adds the missing interrupts for euart peripheral
on xg22 soc.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-10-31 22:40:49 +02:00
Declan Snyder
70e45b7039 drivers: spi_mcux_flexcomm: Fix spi slave count check
The current implementation checking for the validity of the spi slave
number is wrong. First of all, there is an off by one error where it
allows SPI_CHIP_SELECT_COUNT value as a valid slave, when really it
should be that value minus one. Secondly, it doesn't take into account
the fact that having software controlled GPIO CS can technically have
any number of slaves on the bus. So fix by finding the max of these two
values and fixing the off by one mistake. Also, for RW612, only one HW
native CS is available due to SOC pinmux limitations.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-10-31 22:40:40 +02:00
Kyle Bonnici
d18c4db7f1 CI: dts-linter: Move package.json to ./scripts/ci
Move package.json and package-lock.json to ./scripts/ci

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2025-10-31 22:40:20 +02:00
Mathieu Choplain
02a99c6d4e boards: *: doc: add missing hyphen between "Cortex" and core name
The core name is usually sticked to the Cortex(R) trademark with an hyphen,
as in "Cortex(R)-M0+" rather than "Cortex(R) M0+".

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-31 22:40:11 +02:00
Mathieu Choplain
1588a7cf5a boards: *: doc: fix Arm Cortex trademark marker
Cortex is a registered trademark of Arm Limited and should thus be
annotated as (R), not TM. Update documentation of various boards using the
wrong symbol.

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
2025-10-31 22:40:11 +02:00
Luca Burelli
40c586fb66 llext: (cosmetic) fix bad file reference in comment
This was moved in 44c7a14 ("llext: add ELF inspection APIs"), but
the comment was not updated.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-10-31 22:39:59 +02:00
Carles Cufi
ed60236f76 arch: arm64: Depend on SMP being disabled for single threading
Disabling multithreading is not possible when enabling SMP (logically)
so depend on SMP being disabled to enable
ARCH_HAS_SINGLE_THREAD_SUPPORT.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2025-10-31 22:39:49 +02:00
Etienne Carriere
91b9c3aad8 boards: st: add missing RAM and/or RAM size in board YAML files
Add system flash size and/or RAM size tags in ST boards YAML files
where the information is missing.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-31 10:38:25 -04:00
Etienne Carriere
627fa91e42 boards: st: correct RAM and/or Flash size in YAML board description
Fix several RAM size that are wrong regarding what is defined in the
related board device tree.

In many cases, SoC DTSI files have been changed to split internal RAMs
and related boards YAML file was not updated accordingly. This is the
case of H5xx, H7xx

In the case of stm32g081b_eval, polarity bytes are not default enabled
hence the internal SRAM size of 36kB, not 32kB.

Stm32mp135f was wrongly set with 256KB RAM and Flash whereas the board
assigns 256MB for each.

Stm32mp157c_dk2 assigned SRAM1, SRAM2 and SRAM3 to Zephyr hence
providing 320kB of system RAM.

Fix several typos setting RAM size to 786 whereas 768 is expected.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-10-31 10:38:25 -04:00
Jun Lin
62b1e1c28d driver: i2c: npcx: workaround invalid stop condition
The I2C state machine may fail to generate a valid STOP condition.
This may happen when the firmware sets the STOP bit in SMBCTL1 register
approximately half an SMB clock cycle following the last ACK bit in the
transaction.
Note:
  1. This issue is not expected to occur when the core clock runs at
    the default frequency (15 MHz). However, since more applications
    reuquires higher core clock frequency, this commit introduce the
    bypass to prevent the potential risk.
  2. Only NPCXn variant chips require this workaround.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
2025-10-31 10:38:04 -04:00
Benjamin Cabé
1e8a5f7dd0 doc: twister: add/move doc for display harness
The display harness initial documentation was a separate, stale (had
references to a personal Github repo), README.rst buried in the
twister/scripts folder.
Move the docs to be a "first class" part of the Twister documentation
alongside other harnesses.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-10-31 10:36:57 -04:00
Jamie McCrae
2eef80996c doc: services: device_mgmt: smp_groups: Add update on settings save
Adds an optional field which has been added to save by subtree

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-10-31 10:36:42 -04:00
Bill Waters
62e0016bf0 boards: infineon: kit_pse84_ai: cmake fix
Fix to the .hex file path. This was breaking
twister runs.

Signed-off-by: Bill Waters <bill.waters@infineon.com>
2025-10-31 10:36:19 -04:00
Albort Xue
151e9b8b24 doc: services: pm: use pm_device_runtime_get in power_domain diagram
Update the power domain flow diagram in doc/services/pm/power_domain.rst
to use the current runtime PM API name pm_device_runtime_get instead of
the older pm_device_get. This keeps the documentation consistent with the
renamed device runtime power management APIs.

Signed-off-by: Albort Xue <yao.xue@nxp.com>
2025-10-31 10:35:54 -04:00
Flavio Ceolin
6c39a27446 doc: vuln: Add CVE under embargo
Add an entry to CVE-2025-9558.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-10-31 10:35:03 -04:00
Flavio Ceolin
20210f5c25 doc: release/4.3: Add CVE under embargo
Add information about CVE under embargo.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-10-31 10:35:03 -04:00
Flavio Ceolin
debc173612 doc: vuln: Add CVE under embargo
Add an entry to CVE-2025-9557.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-10-31 10:35:03 -04:00
Flavio Ceolin
634e1c3062 doc: release/4.3: Add CVE under embargo
Add information about CVE under embargo.

Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
2025-10-31 10:35:03 -04:00