Commit graph

126,787 commits

Author SHA1 Message Date
Almir Okato
786c9fb35e flash: espressif: erase region before writing if encryption enabled
Ensuring flash region has been erased before writing to avoid
inconsistences and force expected erased value (0xFF) into
flash when erasing a region when Hardware Flash Encryption is
enabled
This is handled on this implementation because MCUboot's state
machine relies on erased valued data (0xFF) readed from a
previously erased region that was not written yet, however when
hardware flash encryption is enabled, the flash read always
decrypts whats being read from flash, thus a region that was
erased would not be read as what MCUboot expected (0xFF).

Signed-off-by: Almir Okato <almir.okato@espressif.com>
2025-09-19 17:57:07 -04:00
Almir Okato
f6a2821b23 soc: espressif: move flash_mmap and esp_flash_api to iram/dram sections
Move both objects to IRAM/DRAM sections.

Signed-off-by: Almir Okato <almir.okato@espressif.com>
2025-09-19 17:57:07 -04:00
Zhaoxiang Jin
78b4fed391 tests: drivers: comparator: Enable nxp cmp test
Enable nxp cmp test.

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-19 17:47:58 -04:00
Zhaoxiang Jin
25ede2daf7 boards: Enable cmp on frdm_mcxc242
Enable cmp on frdm_mcxc242

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-19 17:47:58 -04:00
Zhaoxiang Jin
6d724bd80d drivers: comparator: Enable nxp comparator (cmp)
Enable nxp comparator (cmp)

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-19 17:47:58 -04:00
Zhaoxiang Jin
711a88726d drivers: sim: Enable cmp clock through sim driver
Enable cmp clock through sim driver

Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
2025-09-19 17:47:58 -04:00
Biwen Li
16c03c4145 drivers: dma: mcux_edma: convert address
Convert address for dma when update tcd registers.
- This commit fixes a bug that dma reports source/destination bus errors
  when dma try to access the unconveted addresses. The unconverted
  addresses will be reserved address from dma view.

Signed-off-by: Biwen Li <biwen.li@nxp.com>
2025-09-19 17:47:44 -04:00
Aaron Wisner
202ba136a0 include: Fix C headers such that they can be included in C++ context.
ksched.h: Add missing extern "C" for C++.
kernel_arch_func.h: Rename reserved "new" C++ keyword.

No functional change.

Signed-off-by: Aaron Wisner <aaronwisner@gmail.com>
2025-09-19 17:47:34 -04:00
Andrew Davis
803dc90dc6 boards: ti: sk_am62: Add IPC mailbox support
Add IPC mailbox chosen property. The mailbox channels used are as
expected by Linux.

Signed-off-by: Andrew Davis <afd@ti.com>
2025-09-19 21:24:40 +02:00
Andrew Davis
397bb3c6b4 boards: ti: am62: Fix size of DDR1 memory region
Unlike most other remote cores on most other TI K3 devices, the M4
on AM62 was only reserved 14MB of shared memory DDR vs the normal 15MB.
Update the same for all AM62 boards to prevent writing into unreserved
memory.

Signed-off-by: Andrew Davis <afd@ti.com>
2025-09-19 21:24:29 +02:00
Jilay Pandya
c7dc59f46d drivers: ethernet phy_dm8806_read_reg reduce nested-ifs
reduce if nesting a bit using early break

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-09-19 21:24:23 +02:00
Jilay Pandya
9992eb90cb drivers: ethernet: phy_dm8806 fix unchecked return value
Check the return values and log them with error loglevel

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-09-19 21:24:23 +02:00
Benjamin Cabé
1717b6c212 ci: compliance: treat LicenseAndCopyrightCheck warnings as ...warnings
Warnings related to the LicenseAndCopyrightCheck should not be blocking.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-19 21:24:13 +02:00
Adrien Ricciardi
d494f86ea4 doc: releases: Add Dummy Task Watchdog Kconfig
Add the newly introduced Dummy Task Watchdog feature Kconfig to the 4.3
release notes.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
2025-09-19 12:47:23 -04:00
Adrien Ricciardi
8fd797e95a task_wdt: Add dummy implementation
The introduced CONFIG_TASK_WDT_DUMMY Kconfig symbol allows to easily
disable the Task Watchdog by providing a dummy implementation.

The Task Watchdog can fire when a board is halted on a breakpoint during
a debugging session, so this new feature can turn useful in this case.

Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
2025-09-19 12:47:23 -04:00
Fabrice DJIATSA
5539a2254a samples: drivers: i2s: output: update u385rg_q sa1 pins node
Choose another sai1_fs_a pin available to avoid the need to
disable the Zephyr-chosen console and i2c3 node.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-09-19 12:46:58 -04:00
Guillaume Gautier
43bf0b3344 drivers: sensor: st: qdec: remove init struct
Remove the calls to LL_TIM_ENCODER_StructInit and LL_TIM_ENCODER_Init
in the QDEC driver. This avoids calling functions from stm32xxxx_ll_tim.c.
They are replaced by a set of simpler functions from the header file.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-09-19 12:46:46 -04:00
Guillaume Gautier
24dcfb22f0 drivers: pwm: stm32: remork complementary channel logic
Align the definition of the complementary channels to the normal channels.
That way, it is consistent for all arrays, we use channel-1 as index, and
no other operation is necessary.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-09-19 12:46:46 -04:00
Guillaume Gautier
c82a2b2b58 drivers: pwm: stm32: reduce pointer level from cfg->timer to timer
This change reduces the level of pointer indirection, which minimizes
repeated dereferencing and helps reduce the overall code size, in the same
way as commit 48e326a5520ec884f38f6a7ac4e88c59a01ceb95 for UART.

This also fixes the type complimentary -> complementary.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-09-19 12:46:46 -04:00
Guillaume Gautier
a5531f5d98 drivers: pwm stm32: remove init struct
Remove the calls to LL_TIM_xx_StructInit and LL_TIM_xx_Init in the PWM
driver. This avoids calling functions from stm32xxxx_ll_tim.c.
They are replaced by a set of simpler functions from the header file.

OC Init in particular is much simpler now. The init structure needed to be
filled out with the complementary channel (if it existed), even though its
configuration didn't change.
The new init is much more direct and only touches what needs to be
modified.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-09-19 12:46:46 -04:00
Guillaume Gautier
4457e6db95 drivers: counter: stm32: remove init struct
Remove the calls to LL_TIM_StructInit and LL_TIM_Init in the counter
driver. This avoids calling functions from stm32xxxx_ll_tim.c.
They are replaced by a set of simpler functions from the header file.

Also replaces some macros that used constants coming from the HAL. Use
an equivalent coming purely from the LL.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-09-19 12:46:46 -04:00
Michael Zimmermann
16c57f6025 samples: mqtt_sn_publisher: fix adding predefined gateway
Apparently, the code was copied from where the broadcast IP is parsed and
not adjusted correctly. Both the log message and the source of the IP
address were wrong.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-09-19 12:46:29 -04:00
Michael Zimmermann
013ca06c78 samples: mqtt_sn_publisher: fix wrong kconfig description
The opposite of what was stated previously is true.
NET_SAMPLE_MQTT_SN_GATEWAY_IP is only used when
NET_SAMPLE_MQTT_SN_STATIC_GATEWAY is y.

Since this is already expressed using Kconfig dependencies, this change
simply removes the sentence in question.

Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
2025-09-19 12:46:29 -04:00
Bjarki Arge Andreasen
7c4b0c29f0 soc: nordic: nrf54h: bicr: fix incorrect scaling of lfrccal props
The lfrccal takes the two properties tempMeasIntervalSeconds and
tempDeltaCalibrationTriggerCelsius which are in steps of 0.25.
The bicrgen.py script incorrectly treated these values as steps
of 1, so the actual values written to (and read from) bicr where
scaled incorrectly.

This commit fixes the scaling for those two props.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-09-19 12:46:14 -04:00
Benjamin Cabé
155a371ecf script: ci: check_compliance: add LicenseAndCopyright compliance check
Implement a new compliance check to ensure that all modified files
have correct licensing information (SPDX-License-Identifier as well as
copyright info).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-19 12:45:41 -04:00
Benjamin Cabé
7d510ac2f9 script: ci: check_compliance: adjust test name formatting
Provide more space to tests with a long name so that output is aligned.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-19 12:45:41 -04:00
Benjamin Cabé
95e91d67e1 scrips: ci: check_compliance: organize imports
organize import and fix associated ruff exlude rule

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-19 12:45:41 -04:00
Benjamin Cabé
5fc4580bf5 REUSE.toml: add annotation for files that may not contain licensing info
Add REUSE.toml to describe what license and copyright info applies to
files that may not contain licensing info in their headers.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-19 12:45:41 -04:00
Benjamin Cabé
1d435673c6 LICENSES: add Apache-2.0.txt
add Apache-2.0 license as per REUSE recommendations

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-19 12:45:41 -04:00
Benjamin Cabé
a5459d4563 .ruff-excludes: add copyright header
Add copyright info to this file

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-19 12:45:41 -04:00
Benjamin Cabé
e8356d253a .gitignore: add license/copyright header
Add licensing info to this file

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-09-19 12:45:41 -04:00
Aymeric Aillet
9dfac5a66e MAINTAINERS.yml: Remove aaillet as Renesas R-Car maintainer
Due to a change in my work situation, I will no longer
have the time to fulfill my obligations as a maintainer.
The Renesas R-Car area will still have a maintainer and
a collaborator, which is enough given the workload involved.

Signed-off-by: Aymeric Aillet <aymeric.aillet@iot.bzh>
2025-09-19 16:35:57 +02:00
Bjarki Arge Andreasen
9eda60d5cf MAINTAINERS: Add bjarki-andreasen to maintainers of nRF Platforms
Add bjarki-andreasen to maintainers of nRF Platforms.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-09-19 16:35:38 +02:00
Khaoula Bidani
a1cde5f523 tests: drivers: gpio: Add test for GPIO_INPUT flag in pin_get_config
Extend the pin_get_config() test to verify that when
a pin is configured as input,gpio_pin_get_config() returns
the GPIO_INPUT flag and does not set the GPIO_OUTPUT flag.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-09-19 16:35:29 +02:00
Fabio Baltieri
7a814345d1 scripts: update the Github auth API
Fixes: /home/runner/work/zephyr/zephyr/scripts/ci/do_not_merge.py:66:
DeprecationWarning: Argument login_or_token is deprecated, please use
auth=github.Auth.Token(...) instead

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-09-19 16:35:15 +02:00
Ioannis Karachalios
0d0e261713 tests: counter: Remove timer2 node from testing
By default, timer2 node is reserved for the OS tick generation and thus,
it should not be referenced by application.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2025-09-19 16:34:37 +02:00
Ioannis Karachalios
9fe858e886 dts: renesas: smartbond: Update timer2 node status
PM and PM_DEVICE should be enabled, by default. The latter, require that
timer2 node be employed and reserved for the OS tick generation.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2025-09-19 16:34:37 +02:00
Ioannis Karachalios
3dbf51ed57 tests: memc: Update yaml to support da1469x_dk_pro
Testing with external PSRAM memory requires that an extra overlay file
be defined.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
2025-09-19 16:34:37 +02:00
Gerard Marull-Paretas
c4cd5c31ea MAINTAINERS: add SiFli SF32LB entry
Add myself as a maintainer for now, and @cameled as a collaborator.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
bdac26dd51 boards: sifli: add sf32lb52_devkit_lcd
Ref. https://wiki.sifli.com/en/board/sf32lb52x/SF32LB52-DevKit-LCD.html

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
33f0a194d7 dts: bindings: add puya vendor prefix
To be used for some NOR flash devices.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
f6010ffc3d boards: common: add sftool runner support
For the recently added sftool west runner.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
6dacc14d2b scripts: west_commands: runners: add sftool runner
So we can flash using sftool.

Ref. https://github.com/OpenSiFli/sftool.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
9a1bb99d02 dts: arm: sifli: sf32lb52x: define mpi1/2
MPI1/2 are memory controllers (PSRAM, NOR, NAND, etc.).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
dd0e353ca6 dts: bindings: memory-controllers: add sifli,sf32lb-mpi
Binding for SiFli SF32LB Memory Peripheral Interface (MPI).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
e3e2a40895 drivers: serial: sf32lb: add basic driver
Just basic driver with poll-in/out capability.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
8e17e6d5b7 dts: arm: sifli: sf32lb52x: define usart1
Define node for USART1. Other available USART instances will be added in
the future.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
085e0a1fde dts: bindings: serial: add sifli,sf32lb-usart
For the UART IP in SF32LB SoCs.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
2d50a4176b drivers: pinctrl: sf32lb52x: initial driver
Initial driver for SF32LB52X SoCs.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00
Gerard Marull-Paretas
3e49ad425f dt-bindings: pinctrl: add pin definitions boilerplate for SF32LB52x
Add valid pin configurations boilerplate for SF32LB52x. All valid
configurations will be added in a follow-up commit.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2025-09-19 16:34:15 +02:00